:root {
  --accent: #6B4A32;
  --accent-soft: #F1E6DC;
  --ink: #000000;
  --desc: #4B5563;
  --bg: #FFFFFF;
  --bar-chrome: #E6E8EB;
  --line: #E5E7EB;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); letter-spacing: -0.02em; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-weight: 700; }

/* ---------- Header (bath-emblem variant) ---------- */
.topbar { height: 3px; background: var(--accent); }
header.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid transparent; transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
header.site-header.is-scrolled {
  background: var(--bar-chrome); box-shadow: 0 1px 16px rgba(0,0,0,0.06); border-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; max-width: 1180px; margin: 0 auto; }
.emblem { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.emblem-line { flex: 1; height: 1px; background: #D9D5CF; display: none; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-icon { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.brand-icon svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1rem; font-weight: 700; }
.brand-keyword { font-size: 0.68rem; color: var(--accent); letter-spacing: .04em; }
.edge-label { font-size: 11px; color: #9a9690; letter-spacing: .05em; white-space: nowrap; display: none; }
nav.main-nav { display: flex; align-items: center; gap: 22px; }
nav.main-nav a { font-size: 15px; font-weight: 500; white-space: nowrap; }
.btn-consult {
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 4px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.hamburger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: #000; margin: 5px 0; }
@media (min-width: 900px) { .emblem-line, .edge-label { display: block; } }
@media (max-width: 899px) {
  nav.main-nav { position: fixed; inset: 56px 0 0 0; background: #fff; flex-direction: column; padding: 24px; gap: 18px; transform: translateX(100%); transition: transform .25s ease; z-index: 90; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 18px; }
  .hamburger { display: block; }
}

/* ---------- eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; }
.eyebrow svg { flex-shrink: 0; width: 18px; height: 18px; }
.section-title { font-size: clamp(22px, 3vw, 32px); margin-bottom: 6px; }
.section-head { margin-bottom: 32px; }
.section-lead { color: var(--desc); font-size: 15px; margin-top: 10px; }

.section { padding: 72px 0; }

/* ---------- Hero: ggg-split ---------- */
.hero-ggg { background: #fff; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.hero-ggg-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero-ggg-media { position: relative; overflow: hidden; border-right: 1px solid #000; }
.hero-ggg-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-ggg-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
.hero-ggg-copy h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; margin-bottom: 20px; }
.hero-answer { font-size: 16px; color: var(--desc); line-height: 1.75; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 26px; font-weight: 600; font-size: 15px; border-radius: 4px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid #000; color: #000; }
@media (max-width: 860px) {
  .hero-ggg-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-ggg-media { border-right: none; border-bottom: 1px solid #000; aspect-ratio: 4/3; }
  .hero-ggg-copy { padding: 36px 24px; }
}

/* ---------- oska-split (info section) ---------- */
.oska-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.oska-split img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.oska-col h3 { font-size: 17px; margin-bottom: 8px; }
.oska-col p { color: var(--desc); font-size: 14.5px; line-height: 1.7; margin: 0 0 26px; }
@media (max-width: 860px) { .oska-split { grid-template-columns: 1fr; } }

/* ---------- service cards (border-lift hover) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-card { padding: 30px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: border-color .3s ease; position: relative; }
.svc-card:hover { border-color: #000; }
.svc-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 16px; margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; color: var(--desc); line-height: 1.6; margin: 0; }

/* ---------- portfolio editorial-card list ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card { display: block; }
.case-card .thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; margin-bottom: 14px; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: #000; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 3px; letter-spacing: .04em; }
.case-card .cc-region { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.case-card h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.case-card p { font-size: 13.5px; color: var(--desc); margin: 0 0 10px; line-height: 1.6; }
.case-card .bar { height: 2px; background: var(--accent-soft); position: relative; overflow: hidden; border-radius: 2px; }
.case-card .bar span { position: absolute; inset: 0; width: 46%; background: var(--accent); }
@media (max-width: 980px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- portfolio intro ---------- */
.pf-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px 2%; align-items: center; margin-bottom: 56px; }
.pf-intro img { border-radius: 12px; aspect-ratio: 7/6; object-fit: cover; width: 100%; }
.pf-intro .about-list { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--desc); }
.pf-intro .about-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .pf-intro { grid-template-columns: 1fr; } }

/* ---------- case detail page ---------- */
.page-hero { position: relative; height: 320px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.page-hero::after { content:""; position:absolute; inset:0; background: rgba(20,16,12,.42); }
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 36px; }
.page-hero h1 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); }
.page-hero .crumb { color: #fff; opacity: .85; font-size: 13px; margin-bottom: 10px; }
.case-body { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.case-body .lead-img { width: 550px; max-width: 100%; height: 410px; object-fit: cover; border-radius: 18px; margin: 0 auto 40px; cursor: zoom-in; }
.case-body .case-label { font-size: 11px; color: #8a8a8a; margin-bottom: 10px; }
.case-body h2.case-title { font-size: clamp(22px,3vw,28px); font-weight: 700; margin-bottom: 36px; }
.case-body .article p { font-size: 15.5px; line-height: 1.85; color: #333; margin: 0 0 20px; }
.article b { font-weight: 700; }

.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.compare-row figure { margin: 0; }
.compare-row img { width: 100%; height: auto; max-height: 500px; object-fit: contain; background: #F4F3EC; border-radius: 12px; cursor: zoom-in; }
.compare-row figcaption { text-align: center; font-size: 13px; color: #888; margin-top: 8px; }
@media (max-width: 640px) { .compare-row { grid-template-columns: 1fr 1fr; } }

#process .process-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid #E0E0DC; }
#process .process-item { padding: 28px 20px 28px 24px; border-right: 1px solid #E0E0DC; }
#process .process-item:first-child { padding-left: 0; }
#process .process-item:last-child { border-right: none; }
#process .pnum { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
#process .process-item h3 { font-size: 16px; font-weight: 800; color: #22262B; margin: 0 0 8px; }
#process .process-item p { font-size: 13.5px; color: #5B6169; line-height: 1.65; margin: 0; }
@media (max-width: 767px) { #process .process-list { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; font-weight: 600; font-size: 15.5px; }
.faq-q .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content:""; position:absolute; background:var(--accent); }
.faq-q .plus::before { left:0; top:9px; width:20px; height:2px; }
.faq-q .plus::after { left:9px; top:0; width:2px; height:20px; transition: transform .2s ease; }
.faq-item.open .plus::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 20px; margin: 0; color: var(--desc); font-size: 14.5px; line-height: 1.75; }

.related-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 40px auto 0; }
.related-row a { display: block; }
.related-row img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.related-row .rr-region { font-size: 12px; color: var(--accent); font-weight: 700; }
.related-row h4 { font-size: 14.5px; margin-top: 4px; }
@media (max-width: 640px) { .related-row { grid-template-columns: 1fr; } }

/* ---------- Closing ---------- */
.closing { position: relative; height: 650px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.closing::before { content:""; position:absolute; inset:0; background: rgba(19,19,19,.55); }
.closing-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 24px; max-width: 640px; }
.closing-inner h2 { font-size: clamp(22px,3.2vw,32px); white-space: nowrap; margin-bottom: 18px; }
.closing-inner .quote { font-size: 15px; opacity: .92; line-height: 1.7; margin-bottom: 30px; }
.closing-inner .btn-ghost { display: inline-block; border: 1px solid #fff; color: #fff; padding: 14px 34px; font-size: 14px; font-weight: 600; border-radius: 0; }
@media (max-width: 640px) { .closing-inner h2 { white-space: normal; font-size: 22px; } }

/* ---------- footer ---------- */
footer.site-footer { background: #fff; color: #000; border-top: 1px solid var(--line); padding: 48px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-biz h4 { font-size: 14px; margin-bottom: 12px; }
.footer-biz p { font-size: 13px; color: #555; line-height: 1.9; margin: 0; }
.footer-col h4 { font-size: 13px; margin-bottom: 12px; color: #888; }
.footer-col a { display: block; font-size: 13.5px; padding: 5px 0; color: #333; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: #999; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- bottom consult bar (PC scroll-based) ---------- */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--bar-chrome); border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(0,0,0,.08); padding: 12px 24px; display: flex; justify-content: center; transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.bottom-bar.show { transform: translateY(0); opacity: 1; }
.bottom-bar a.btn-primary { min-height: 48px; display: flex; align-items: center; padding: 0 30px; }
@media (max-width: 767px) {
  .bottom-bar { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; transform: translateY(0); opacity: 1; padding: 10px 14px; }
  .bottom-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 14.5px; font-weight: 700; }
  .bottom-bar a.btn-primary { background: var(--accent); color: #fff; }
  .bottom-bar a.btn-call { background: #fff; color: #000; border: 1px solid #000; }
  body { padding-bottom: 68px; }
}

/* ---------- lightbox ---------- */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 999; display: none; align-items: center; justify-content: center; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox-nav.prev { left: 20px; } .lightbox-nav.next { right: 20px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 30px; background: none; border: 0; cursor: pointer; }

/* ---------- generic region/category hero ---------- */
.info-topcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.info-topcard { background: #fff; border-radius: 10px; padding: 26px 22px; border-top: 4px solid var(--accent); box-shadow: 0 1px 10px rgba(0,0,0,.05); }
.info-topcard h3 { font-size: 15.5px; margin-bottom: 8px; }
.info-topcard p { font-size: 13.5px; color: var(--desc); margin: 0; line-height: 1.6; }
@media (max-width: 860px) { .info-topcards { grid-template-columns: 1fr; } }

.nowrap-line { white-space: nowrap; }
@media (max-width: 500px) {
  .biz-line { display: flex; flex-direction: column; }
}
