/* 테마 B 럭셔리 콜라주형 — 모서리 0 고정 / 컬러: 저채도(딥차콜·웜그레이·오프화이트·골드) */
:root {
    --primary: #B08D57;
    --charcoal: #2A2825;
    --warmgray: #8B8378;
    --offwhite: #F5F2ED;
    --border: #E4DFD5;
    --text: #2A2825;
    --text-muted: #8B8378;
    --card-radius: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
    color: var(--text);
    background: var(--offwhite);
    word-break: keep-all;
    line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0 0 0.75rem;
}
section { padding: 6.5rem 0; }
.section-label { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--primary); margin-bottom: 1rem; }
.section-label::before { content: "— "; }
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head p { color: var(--text-muted); }

/* 버튼: 언더라인형 고정 (테마B) */
.btn {
    display: inline-block;
    border-radius: var(--card-radius);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    background: none;
}
.btn-underline {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--charcoal);
    transition: border-color .25s, color .25s;
}
.btn-underline:hover { border-color: var(--primary); color: var(--primary); }
.btn-underline.on-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-underline.on-dark:hover { border-color: var(--primary); color: var(--primary); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245,242,237,.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; }
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en { font-size: 0.95rem; letter-spacing: 0.14em; font-weight: 700; }
.brand-kr { font-size: 0.7rem; color: var(--text-muted); }
.main-nav { display: flex; gap: 2rem; font-size: 0.9rem; }
.main-nav a:hover { color: var(--primary); }
.header-cta { font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 860px) { .main-nav { display: none; } }

/* Hero collage */
.hero-collage {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    background: var(--charcoal);
}
.hero-collage img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; opacity: .78; }
.hero-collage .tile1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.hero-collage .tile2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.hero-collage .tile3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.hero-collage .tile4 { grid-column: 3 / 5; grid-row: 2 / 4; }
.hero-collage .tile5 { grid-column: 1 / 2; grid-row: 3 / 4; }
.hero-collage .tile6 { grid-column: 2 / 3; grid-row: 3 / 4; }
.hero-text {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    background: radial-gradient(ellipse at center, rgba(42,40,37,.72) 0%, rgba(42,40,37,.55) 45%, rgba(42,40,37,.35) 100%);
    padding: 1.5rem;
}
.hero-text .brand-en { font-size: 1rem; letter-spacing: 0.3em; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.hero-text h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.5rem 0; }
.hero-text .tagline { font-size: 1.05rem; color: rgba(255,255,255,.85); max-width: 540px; margin: 0.5rem auto 0; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-size: 0.8rem; letter-spacing: 0.1em; color: rgba(255,255,255,.7); }

/* Quick links (E-1 갤러리 캡션 카드) */
.quicklink-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.quicklink-card figcaption { padding: 0.9rem 0.1rem 0; font-size: 0.92rem; }
@media (max-width: 1024px) { .quicklink-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .quicklink-grid { grid-template-columns: 1fr; } }

/* Portfolio grid (grid-3) */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.related-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card {
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden; transition: all .3s; cursor: pointer; text-decoration: none; display: block;
    background: #fff;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(42,40,37,.14); border-color: var(--primary); }
.portfolio-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card .body { padding: 1.25rem 1.4rem 1.5rem; }
.portfolio-card .badge { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--primary); }
.portfolio-card h3 { font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.portfolio-card .loc { font-size: 0.85rem; color: var(--text-muted); }
.portfolio-more { text-align: center; margin-top: 3rem; }
.portfolio-card.portfolio-hidden { display: none; }

/* Mid banner */
.mid-banner {
    background: var(--charcoal); color: #fff; text-align: center;
    padding: 4rem 1.5rem; margin: 6.5rem 0;
}
.mid-banner h2 { color: #fff; }
.mid-banner p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 1.75rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { border: 1px solid var(--border); padding: 2rem 1.75rem; background: #fff; }
.service-card .thumb { aspect-ratio: 4/3; overflow: hidden; margin: -2rem -1.75rem 1.5rem; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }
.service-symptoms { list-style: none; margin: 1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }
.service-symptoms li { position: relative; padding-left: 0.9rem; margin-bottom: 0.4rem; }
.service-symptoms li::before { content: "-"; position: absolute; left: 0; color: var(--primary); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
.process-step .num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.process-step h3 { font-size: 1.05rem; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* Brand story 3col */
.story-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: center; }
@media (max-width: 900px) { .story-3col { grid-template-columns: 1fr; } }
.story-3col .eyebrow { font-size: 0.75rem; color: var(--primary); letter-spacing: 0.1em; }
.story-3col h3 { font-size: 1.15rem; }
.story-3col p { color: var(--text-muted); font-size: 0.92rem; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { border: 1px solid var(--border); padding: 2rem; background: #fff; }
.trust-card h3 { font-size: 1.05rem; }
.trust-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Service area */
.area-list { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.area-list span { border: 1px solid var(--border); padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* Mood banner */
.mood-banner { height: 46vh; min-height: 320px; background-size: cover; background-position: center; }

/* FAQ (native details) */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0.75rem 0 0; color: var(--text-muted); }

/* Minimal CTA */
.cta-minimal { text-align: center; }
.cta-minimal blockquote { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; margin: 0 auto 2rem; max-width: 640px; }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.8); padding: 4rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .brand-en { letter-spacing: 0.14em; font-weight: 700; color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.88rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; }
.footer-col a:hover { color: var(--primary); }
.footer-biz {
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex; flex-wrap: wrap; gap: 1.25rem;
    font-size: 0.78rem; color: rgba(255,255,255,.5);
    padding: 1.25rem 1.5rem;
}

/* Floating */
.floating-bar { position: fixed; right: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; z-index: 60; }
.floating-btn {
    width: 3.2rem; height: 3.2rem; display: flex; align-items: center; justify-content: center;
    background: var(--charcoal); color: #fff; font-size: 0.78rem; border: 1px solid var(--primary);
}
.floating-btn:hover { background: var(--primary); }

/* Detail hero */
.detail-hero {
    position: relative; height: 52vh; min-height: 340px;
    background-size: cover; background-position: center;
    display: flex; align-items: flex-end;
}
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(42,40,37,.5); }
.detail-hero .inner { position: relative; color: #fff; padding: 3rem 1.5rem; width: 100%; }
.detail-hero .back-link { font-size: 0.85rem; color: rgba(255,255,255,.75); margin-bottom: 1rem; display: inline-block; }
.detail-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.detail-hero .loc { color: rgba(255,255,255,.8); }

.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: #fff; }
@media (max-width: 760px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-bar div { padding: 1.4rem; border-right: 1px solid var(--border); }
.info-bar div:last-child { border-right: none; }
.info-bar .k { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; }
.info-bar .v { font-weight: 600; margin-top: 0.3rem; }

/* Blog-style story body (spec section 4) */
.story-body { max-width: 720px; margin: 0 auto; font-size: 1rem; line-height: 1.9; }
.story-body p { margin-bottom: 1.5rem; }
.story-body figure { margin: 2rem 0; }
.story-body figure img { width: 100%; border-radius: var(--card-radius); }
.story-body figcaption { margin-top: .5rem; font-size: .85rem; color: var(--text-muted); text-align: center; }
.story-body mark {
    background: rgba(176, 141, 87, 0.28);
    padding: 0.05em 0.2em;
    border-radius: 2px;
    font-weight: 600;
}
.story-quote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.05rem;
    font-style: italic;
    background: rgba(176, 141, 87, 0.06);
}
.story-quote .signature { display: block; margin-top: .75rem; font-size: .85rem; font-style: normal; color: var(--text-muted); text-align: right; }

.summary-box { max-width: 720px; margin: 3rem auto 0; border: 1px solid var(--border); padding: 1.75rem 2rem; background: #fff; }
.summary-box h3 { font-size: 1rem; }
.summary-box ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--text-muted); }
.related-links { max-width: 720px; margin: 2.5rem auto 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }

.detail-cta { text-align: center; background: var(--offwhite); border-top: 1px solid var(--border); padding: 5rem 1.5rem; }

/* 세부페이지 비교표 */
.compare-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.92rem; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 0.75rem 1rem; text-align: left; }
.compare-table th { background: var(--offwhite); font-weight: 700; }
.compare-table td { color: var(--text-muted); }

/* Consultation page */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .step-list { grid-template-columns: 1fr; } }
.step-list .num { font-size: 1.6rem; font-weight: 700; color: var(--primary); }

/* Sitemap page */
.sitemap-list { max-width: 720px; margin: 0 auto; }
.sitemap-list h3 { font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 2rem; }
.sitemap-list ul { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.sitemap-list li { border-bottom: 1px solid var(--border); padding: 0.8rem 0; }

/* NSEO page */
.nseo-hero { background: var(--charcoal); color: #fff; text-align: center; padding: 5rem 1.5rem; }
.nseo-hero h1 { color: #fff; }
.nseo-hero p { color: rgba(255,255,255,.75); max-width: 560px; margin: 1rem auto 0; }
