/* 제습환기청정기 · exchangewa.bosungworld.com
   Design DNA: text-forward split hero, icon-row services (no numbered cards),
   horizontal-scroll case gallery, accordion FAQ. */

:root {
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;

  /* palette: deep navy (footer/hero haze only) + warm beige everywhere else */
  --deep: #0A1628; /* deep_id=1 DeepDarkNavy, seed=exchangewa%2 */
  --scrim: #E8EAED; /* scrim_id=1, seed=exchangewa%6 — scrolled header / shown consult-bar bg */
  --scrim-line: #E5E7EB;
  --ink: #1A1A1A;
  --ink-soft: #5B4650;
  --bg-soft: #F6F2EA;
  --bg: #FFFFFF;
  --line: #E9E2D3;
  --accent: #E8D9C4;
  --accent-deep: #D1C3B0;
  --accent-soft: #F5EEE4;
  --radius-btn: 12px;
  --radius-img: 10px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-body); font-weight: 700; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-deep); margin-bottom: 14px;
}

/* ---------- header (transparent-over-hero, solid on scroll) ---------- */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
header.site-header.scrolled {
  background: var(--scrim);
  border-bottom: 1px solid var(--scrim-line);
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; transition: color .3s; }
.logo span { color: var(--accent-soft); transition: color .3s; }
header.site-header.scrolled .logo { color: var(--ink); }
header.site-header.scrolled .logo span { color: var(--accent-deep); }
nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a { font-size: 15px; font-weight: 500; color: #fff; transition: color .3s; }
nav.main-nav a:hover { color: var(--accent-soft); }
header.site-header.scrolled nav.main-nav a { color: var(--ink); }
header.site-header.scrolled nav.main-nav a:hover { color: var(--accent-deep); }
.nav-cta {
  background: var(--accent); color: var(--ink) !important;
  padding: 10px 20px; border-radius: var(--radius-btn);
  font-weight: 600 !important; font-size: 14px !important;
}
.nav-toggle { display: none; }

/* ---------- hero (split, text-forward) ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; margin-bottom: 20px;
}
.hero-lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 30px; }
.oneline { white-space: nowrap; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- cta band (neutral base — accent pops via the button, not a chromatic section bg) ---------- */
.cta-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 56px 0; }
.cta-band h2 { color: var(--ink); font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta-band p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: scale(1.02) translateY(0); } 50% { transform: scale(1.02) translateY(-10px); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0) 55%, rgba(10,22,40,.35) 100%);
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg); }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* service: icon rows, not numbered cards */
.service-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.service-row { background: var(--bg); padding: 32px; display: flex; gap: 20px; }
.service-row .icon { flex: none; width: 48px; height: 48px; color: var(--accent); }
.service-row h3 { font-size: 18px; margin-bottom: 8px; }
.service-row p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* case: horizontal scroll gallery */
.case-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.case-scroll::-webkit-scrollbar { height: 6px; }
.case-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.case-card {
  scroll-snap-align: start; flex: none; width: min(340px, 78vw);
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.case-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .thumb img { transform: scale(1.06); }
.case-card .body { padding: 18px 20px 22px; }
.case-card .body .tag { font-size: 12px; color: var(--accent-deep); font-weight: 700; margin-bottom: 6px; display: block; }
.case-card .body h3 { font-size: 17px; margin-bottom: 4px; }
.case-card .body p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.case-more { margin-top: 28px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-grid .case-card { width: auto; }
@media (max-width: 880px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* keyword page: plain photo gallery (no per-card copy) */
.kw-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kw-gallery img { border-radius: var(--radius-img); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 880px) { .kw-gallery { grid-template-columns: repeat(2, 1fr); } }

/* guide summary */
.guide-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.guide-card {
  background: var(--bg-soft); border-radius: 16px; padding: 26px; display: flex; flex-direction: column;
  transition: background .15s;
}
.guide-card:hover { background: var(--accent-soft); }
.guide-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.guide-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.guide-card .guide-link { font-size: 13.5px; font-weight: 700; color: var(--accent-deep); margin-top: auto; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; justify-content: space-between; gap: 20px;
  font-weight: 600; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .a { padding: 0 4px 22px; color: var(--ink-soft); font-size: 15px; max-width: 68ch; }

/* ---------- floating consult ---------- */
.float-consult { position: fixed; bottom: 28px; z-index: 50; }
.float-consult.side-right { right: 22px; }
.float-consult.side-left { left: 22px; }
.float-btn {
  background: var(--accent); color: var(--ink); border: none; border-radius: var(--radius-btn);
  padding: 15px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18); display: flex; align-items: center; gap: 8px;
}
.float-panel {
  display: none; position: absolute; bottom: 60px; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.14); width: 220px;
}
.float-consult.side-left .float-panel { right: auto; left: 0; }
.float-consult.open .float-panel { display: block; }
.float-panel .num { font-size: 20px; font-weight: 800; color: var(--accent-deep); }
.float-panel a.call { display: block; margin-top: 10px; text-align: center; background: var(--accent); color: var(--ink); padding: 10px; border-radius: 10px; font-weight: 700; }
.float-consult.bar-active { display: none; }

/* ---------- bottom consult bar (scroll-reactive) ---------- */
.consult-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: #fff;
  padding: 14px 0;
  transform: translateY(100%); opacity: 0; pointer-events: none;
  transition: transform .3s, opacity .3s, background .3s, box-shadow .3s;
}
.consult-bar.show {
  transform: translateY(0); opacity: 1; pointer-events: auto;
  background: var(--scrim);
  border-top: 1px solid var(--scrim-line);
  box-shadow: 0 -7px 21px rgba(0,0,0,.07);
}
.consult-bar-in { display: flex; align-items: center; justify-content: center; gap: 18px; }
.consult-bar-text { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.consult-bar-btn { padding: 12px 24px; font-size: 14px; }
@media (max-width: 480px) {
  .consult-bar-text { display: none; }
}

/* ---------- footer ---------- */
footer.site-footer { background: var(--deep); color: #C9D2DC; padding: 60px 0 0; }
footer.site-footer .footer-grid {
  display: flex; flex-wrap: wrap; gap: 48px 80px; justify-content: space-between; align-items: flex-start;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12);
}
footer.site-footer .footer-brand strong { color: #fff; font-size: 18px; letter-spacing: -.01em; }
footer.site-footer .biz { color: #8FA0B3; font-size: 14px; line-height: 1.9; margin: 12px 0 20px; }
footer.site-footer .footer-actions { display: flex; gap: 10px; }
footer.site-footer .footer-actions a {
  border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 9px 16px; border-radius: var(--radius-btn); font-size: 13.5px; font-weight: 600;
  transition: border-color .15s, color .15s;
}
footer.site-footer .footer-actions a:hover { border-color: var(--accent); color: var(--accent-soft); }
.footer-nav-block { padding-top: 2px; }
.footer-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: #7C8CA0; text-transform: uppercase; margin-bottom: 18px;
}
.footer-links { display: flex; flex-wrap: wrap; row-gap: 14px; column-gap: 32px; }
.footer-links a { color: #C9D2DC; font-size: 14.5px; font-weight: 500; position: relative; padding-bottom: 3px; }
.footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.footer-links a:hover { color: var(--accent-soft); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-bottom { padding: 22px 0; font-size: 12.5px; color: #7C8CA0; }

/* ---------- detail page: full-bleed hero banner ---------- */
.detail-hero {
  position: relative; padding: 120px 0 60px; color: var(--ink);
  background-size: cover; background-position: center;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,.38) 0%, rgba(10,22,40,0) 30%),
    rgba(255,255,255,.32);
}
.detail-hero.plain { background-color: var(--bg-soft); }
.detail-hero .in { position: relative; z-index: 1; }
.detail-hero .eyebrow { background: rgba(255,255,255,.7); padding: 6px 14px; border-radius: 999px; text-shadow: none; }
.detail-hero h1 { font-size: clamp(28px, 4vw, 44px); text-shadow: 0 2px 18px rgba(255,255,255,.6); }

/* detail body: alternating image/text rows */
.detail-body { background: #fff; padding: 70px 0; }
.xrow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 76px; }
.xrow:last-child { margin-bottom: 0; }
.xrow.rev .img { order: 2; }
.xrow.rev .txt { order: 1; }
.xrow .img img { border-radius: var(--radius-img); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.xrow .txt .no { font-size: 12px; color: var(--ink-soft); font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.xrow .txt h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 14px; }
.xrow .txt p { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }

.points { display: grid; gap: 10px; margin-top: 18px; }
.points li { list-style: none; padding-left: 22px; position: relative; color: var(--ink-soft); font-size: 14.5px; }
.points li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* region cross links */
.region-links { display: flex; flex-wrap: wrap; gap: 10px; }
.region-links a { border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; background: #fff; }

/* sitemap page */
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 34px; }
.sitemap-cols h3 { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.sitemap-cols ul { list-style: none; margin: 0; padding: 0; }
.sitemap-cols li { margin-bottom: 9px; }
.sitemap-cols a { font-size: 14.5px; }

/* generic centered container used across sub pages */
.center-wrap { text-align: center; max-width: 640px; margin: 0 auto 50px; }

@media (max-width: 1080px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .service-rows { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .xrow, .xrow.rev { grid-template-columns: 1fr; }
  .xrow.rev .img, .xrow.rev .txt { order: initial; }
  footer.site-footer .footer-grid { flex-direction: column; text-align: center; align-items: center; }
  footer.site-footer .biz { text-align: center; }
  .footer-actions { justify-content: center; }
  .footer-label { text-align: center; }
  .footer-links { justify-content: center; }
  .oneline { white-space: normal; }
  .biz .hours { white-space: nowrap; }
  .biz .reg-label { display: block; }
  .biz .reg-no { display: block; white-space: nowrap; }
}

@media (max-width: 520px) {
  .guide-grid { grid-template-columns: 1fr; }
}
