/* 8FUN 샤워부스수리 — Stone & Coral 디자인 시스템 기반, Ink Navy + Signal Amber 톤 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  /* 다크 톤 */
  --ink:    #14213D;
  --ink2:   #1B2C4F;
  --bd2:    #2A3C60;

  /* 포인트 컬러 */
  --amber:  #F2A93B;
  --amber2: #D98C1A;

  /* 배경 레이어 */
  --bg:     #F7F6F3;
  --bg2:    #EFEDE7;
  --bg3:    #E2DFD6;
  --wh:     #FFFFFF;

  /* 텍스트 톤 */
  --mid:    #565C68;
  --dim:    #8A8F9A;
  --bd:     #DDD9D0;

  /* 그림자 */
  --sh1: 0 1px 3px rgba(20,33,61,.05), 0 4px 12px rgba(20,33,61,.06);
  --sh2: 0 4px 16px rgba(20,33,61,.09);

  --radius: 16px;
  --radius-sm: 4px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.75; font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; word-break: keep-all; letter-spacing: -0.03em; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Scroll reveal system ---------- */
.rv { opacity: 0; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.rv.vis { opacity: 1 !important; transform: none !important; }
.rv-up { transform: translateY(20px); }
.d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; } .d3 { transition-delay: .21s; } .d4 { transition-delay: .28s; }
.no-js .rv, .rv.vis-fallback { opacity: 1 !important; transform: none !important; }

/* ---------- Header (light) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--wh); border-bottom: 1px solid var(--bd);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--sh1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.site-logo span { color: var(--amber2); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--mid); font-size: 0.9rem; font-weight: 400; padding: 8px 14px; transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber2) !important; border: 1px solid var(--amber2); font-weight: 700 !important;
  padding: 8px 20px !important; border-radius: var(--radius-sm); font-size: 0.85rem; margin-left: 8px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--amber2); color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); }
.nav-toggle span:nth-child(1) { width: 22px; } .nav-toggle span:nth-child(2) { width: 14px; }

/* ---------- Mobile fullscreen menu (light) ---------- */
.mob-menu { display: none; position: fixed; inset: 0; background: var(--wh); z-index: 950; flex-direction: column; justify-content: center; padding: 0 32px; gap: 20px; }
.mob-menu.open { display: flex; }
.mob-menu a { font-size: clamp(22px,7vw,34px); font-weight: 900; color: var(--ink); letter-spacing: -0.04em; transition: color .15s; }
.mob-menu a:hover { color: var(--amber2); }
.mob-menu-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--mid); min-width: 44px; min-height: 44px; }
.mob-menu-cta { color: var(--ink) !important; background: var(--amber); border-radius: var(--radius-sm); padding: 14px 0 !important; margin-top: 8px !important; font-size: 18px !important; text-align: center; font-weight: 800 !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 14px 0; font-size: 0.82rem; color: var(--mid); }
.breadcrumb a:hover { color: var(--amber2); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Hero: 사진 배경 풀블리드(메인/상세 페이지 전용, 실사진 보유) ---------- */
.hero { position: relative; overflow: hidden; }
.hero.hero-photo {
  min-height: 640px; display: flex; align-items: center; padding: 48px 0;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-bg.active { opacity: 1; }
.hero.hero-photo .container { position: relative; z-index: 2; }
.hero-card {
  max-width: 540px; padding: 32px 34px; background: rgba(20,33,61,.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--amber); border-radius: 6px;
  box-shadow: var(--sh2);
}
.hero-card h1, .hero-card .hero-sub { color: #fff; }

/* ---------- Hero: 라이트(사진 없는 가이드/텍스트 페이지) ---------- */
.hero.hero-light {
  background: var(--bg2); color: var(--ink); padding: 56px 0 60px; border-bottom: 1px solid var(--bd);
}
.hero.hero-light .hero-sub { color: var(--mid); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber2);
  margin-bottom: 16px;
}
.hero.hero-photo .hero-badge { color: var(--amber); }
.hero-badge::before { content: ''; width: 2px; height: 12px; background: currentColor; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.04em; }
.hero-sub { margin-top: 16px; font-size: 1rem; font-weight: 300; line-height: 1.7; max-width: 46ch; }
.hero-photo .hero-sub { color: rgba(255,255,255,.75); }
.hero-cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; min-height: 44px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem; letter-spacing: .01em; border: none; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber2); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.hero-light .btn-outline, .btn-outline-dark { color: var(--ink); border: 1px solid var(--bd); }
.hero-light .btn-outline:hover, .btn-outline-dark:hover { background: var(--wh); }
.btn-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--wh); border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--amber2); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.section-eyebrow::before { content: ''; width: 2px; height: 14px; background: var(--amber2); }
.section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-top: 10px; }
.section-desc { color: var(--mid); margin-top: 10px; font-size: 0.98rem; font-weight: 300; line-height: 1.75; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--wh); border: 1px solid var(--bd); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--sh1); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--mid); font-size: 0.9rem; font-weight: 300; line-height: 1.7; }
.card .num { color: var(--amber2); font-weight: 800; font-size: 0.85rem; margin-bottom: 10px; display: block; }

/* ---------- Related cards (thumbnail) ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.related-card {
  display: block; background: var(--wh); overflow: hidden; transition: transform .2s;
}
.related-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bd); position: relative; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .cap { padding: 12px 4px; }
.related-card .cap .cat { color: var(--amber2); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.related-card .cap h4 { font-size: 0.96rem; font-weight: 700; margin-top: 4px; }
.related-card.cta-card { display: flex; align-items: center; justify-content: center; background: var(--ink2); color: #fff; }
.related-card.cta-card .thumb { display: none; }
.related-card.cta-card .cap { text-align: center; padding: 30px 16px; }
.related-card.cta-card h4 { color: #fff; font-size: 1.02rem; }
.related-card.cta-card .cap .cat { color: var(--amber); }

/* ---------- Before/After (정적 2단, 슬라이더/호버전환 미사용) ---------- */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ba-item { overflow: hidden; box-shadow: var(--sh1); position: relative; }
.ba-item img { aspect-ratio: 16/9; object-fit: cover; }
.ba-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(20,33,61,.85); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: var(--radius-sm);
}
.ba-item.after .ba-tag { background: var(--amber); color: var(--ink); }

/* ---------- Process (원형 배지 + 연결선) ---------- */
.process { display: flex; flex-direction: column; gap: 0; }
.proc-step { display: grid; grid-template-columns: 46px 1fr; gap: 18px; position: relative; padding-bottom: 30px; }
.proc-step:last-child { padding-bottom: 0; }
.proc-step .dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--wh); border: 2px solid var(--amber); color: var(--amber2);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; z-index: 1;
}
.proc-step:not(:last-child)::before {
  content: ''; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--bd);
}
.proc-step h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.proc-step p { color: var(--mid); font-size: 0.9rem; font-weight: 300; line-height: 1.7; }

/* ---------- Process horizontal (메인페이지 요약용, PC에서 가로 그리드) ---------- */
.proc-h { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); }
.proc-h-item { padding: 0 22px; border-right: 1px solid var(--bd); }
.proc-h-item:first-child { padding-left: 0; }
.proc-h-item:last-child { border-right: none; padding-right: 0; }
.proc-h-item .n { font-size: 1.7rem; font-weight: 900; color: var(--amber2); line-height: 1; margin-bottom: 14px; opacity: .8; }
.proc-h-item h4 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.proc-h-item p { font-size: 0.86rem; color: var(--mid); font-weight: 300; line-height: 1.7; }

/* ---------- Service accordion ---------- */
.svc-acc { border-bottom: 1px solid var(--bd); }
.svc-acc:first-child { border-top: 1px solid var(--bd); }
.svc-acc-btn {
  width: 100%; padding: 22px 0; display: flex; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
}
.svc-acc-btn .row { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.svc-acc-btn .n { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--amber2); flex-shrink: 0; }
.svc-acc-btn .t { font-size: clamp(15px, 2vw, 19px); font-weight: 700; color: var(--ink); }
.svc-acc-btn .sub { font-size: 13px; color: var(--dim); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: auto; padding-left: 16px; display: none; }
.svc-acc-ico {
  width: 28px; height: 28px; border: 1px solid var(--bd); flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--dim); font-weight: 300;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.svc-acc.open .svc-acc-ico { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: rotate(45deg); }
.svc-acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.svc-acc.open .svc-acc-body { max-height: 300px; }
.svc-acc-body-inner { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 0 0 26px 0; align-items: center; }
.svc-acc-body-inner.no-img { grid-template-columns: 1fr; }
.svc-acc-body-inner img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.svc-acc-body-inner p { font-size: 0.92rem; color: var(--mid); font-weight: 300; line-height: 1.8; margin-bottom: 12px; }
.svc-acc-body-inner .link { font-size: 0.86rem; font-weight: 700; color: var(--amber2); }
@media (min-width: 769px) { .svc-acc-btn .sub { display: block; } }
@media (max-width: 768px) {
  .svc-acc-body-inner { grid-template-columns: 1fr !important; gap: 14px; }
  .svc-acc-body-inner img { display: none; }
  .svc-acc.open .svc-acc-body { max-height: 400px; }
}

/* ---------- Compare table ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--wh); border: 1px solid var(--bd); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh1); }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--bd); text-align: left; font-size: 0.92rem; }
.compare-table th { background: var(--ink); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 700; color: var(--ink); width: 26%; }
.compare-table td { font-weight: 300; color: var(--mid); }
.compare-table td:first-child { font-weight: 700; }

/* ---------- Checklist ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.check-item { display: flex; gap: 12px; background: var(--wh); border: 1px solid var(--bd); border-radius: var(--radius); padding: 16px 18px; }
.check-item .mark { width: 20px; height: 20px; flex: none; border-radius: var(--radius-sm); background: var(--amber); position: relative; margin-top: 2px; }
.check-item .mark::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.check-item p { font-size: 0.86rem; color: var(--mid); font-weight: 300; line-height: 1.6; }

/* ---------- Symptom flow ---------- */
.flow-row { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow-item { flex: 1 1 0; background: var(--wh); border: 1px solid var(--bd); padding: 18px; position: relative; min-width: 150px; }
.flow-item:not(:last-child)::after {
  content: '→'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  color: var(--amber2); font-weight: 800; z-index: 1; background: var(--bg); width: 24px; text-align: center;
}
.flow-item .k { color: var(--amber2); font-weight: 700; font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }
.flow-item p { margin-top: 6px; font-size: 0.88rem; font-weight: 300; }

/* ---------- Badge band ---------- */
.badge-band { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { background: var(--wh); border: 1px solid var(--bd); border-radius: var(--radius-sm); padding: 9px 16px; font-size: 0.84rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--bd); }
.faq-item:last-child { border-bottom: 1px solid var(--bd); }
.faq-item summary {
  padding: 20px 4px; font-weight: 500; cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; font-size: 0.98rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none; width: 20px; height: 20px; border: 1px solid var(--bd); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 1rem; font-weight: 300;
  transition: background .2s, border-color .2s, color .2s;
}
.faq-item[open] summary::after { content: '−'; background: var(--amber); border-color: var(--amber); color: #fff; }
.faq-item .faq-a { padding: 0 30px 20px 4px; color: var(--mid); font-size: 0.92rem; font-weight: 300; line-height: 1.8; }

/* ---------- CTA band (다크, 전폭 — 풋터 바로 위에서 하나의 다크 블록으로 이어짐) ---------- */
.cta-wrap { position: relative; background: var(--ink2); overflow: hidden; }
.cta-wrap::before {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px;
  background: var(--amber); opacity: .08; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.cta-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 64px 0; }
.cta-band h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { color: rgba(255,255,255,.5); margin-top: 10px; font-weight: 300; max-width: 46ch; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- Contact page ---------- */
.phone-display { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.contact-hero { text-align: center; padding: 56px 0 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink2); color: rgba(255,255,255,.4); padding: 40px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--bd2); margin-bottom: 24px; }
.footer-col h5 { color: rgba(255,255,255,.55); font-size: 10px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-col p { font-size: 0.82rem; line-height: 1.85; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.86rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom { font-size: 0.75rem; color: rgba(255,255,255,.25); }

/* ---------- Floating CTA (desktop) ---------- */
.fl { position: fixed; bottom: 28px; right: 28px; z-index: 800; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fl-top { width: 40px; height: 40px; background: var(--wh); border: 1px solid var(--bd); border-radius: var(--radius-sm); display: none; align-items: center; justify-content: center; color: var(--mid); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.fl-top:hover { background: var(--ink2); color: #fff; }
.fl-cta { display: flex; align-items: center; gap: 8px; background: var(--amber); color: var(--ink); padding: 12px 18px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 20px rgba(242,169,59,.35); transition: background .2s, transform .15s; }
.fl-cta:hover { background: var(--amber2); color: #fff; transform: translateY(-2px); }

/* ---------- Mobile bottom CTA bar ---------- */
.mob-bot { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .compare-table { display: block; overflow-x: auto; }
  .flow-row { flex-direction: column; }
  .flow-item:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -13px; transform: translateX(50%); }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; padding: 48px 0; }
  .fl { display: none; }
  .proc-h { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .proc-h-item { border-right: none; border-bottom: 1px solid var(--bd); padding: 0 0 20px !important; margin-bottom: 20px; }
  .proc-h-item:nth-child(odd) { padding-right: 20px !important; }
  .proc-h-item:nth-child(even) { padding-left: 20px !important; }
}

@media (max-width: 600px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .before-after { grid-template-columns: 1fr; }
  .card-grid, .related-grid { grid-template-columns: 1fr; }
  .hero.hero-photo { min-height: 420px; padding: 36px 0 44px; }
  .hero-card { padding: 22px 20px; max-width: 100%; }
  .hero.hero-light { padding: 40px 0 44px; }
  .section { padding: 48px 0; }
  .mob-bot {
    display: flex; align-items: center; justify-content: center; position: fixed; bottom: 0; left: 0; right: 0; z-index: 700;
    background: var(--ink2); border-top: 1px solid var(--bd2); padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  }
  .mob-bot .btn { width: 100%; justify-content: center; }
  .proc-step { grid-template-columns: 40px 1fr; }
  .proc-step .dot { width: 40px; height: 40px; font-size: 0.9rem; }
  .proc-step:not(:last-child)::before { left: 19px; top: 40px; }
}
