/* =========================================================
   서울인치과의원 — main.css  (Premium redesign)
   화이트 · 딥 민트/틸 그라데이션 · 웜 샌드 · 카페 무드
   ========================================================= */

/* ---------- 디자인 토큰 ---------- */
:root {
  --brand:      #17A98C;
  --brand-600:  #12917A;
  --brand-700:  #0E7A67;
  --brand-800:  #0B5F51;
  --brand-text: #0E7A67;
  --brand-200:  #9FE0D3;
  --brand-100:  #CDEEE7;
  --brand-050:  #EDF9F6;
  --teal-ink:   #0C2E2A;   /* 딥 틸 (다크 섹션) */
  --sand:       #F1EBE1;
  --sand-600:   #E7DECF;
  --ink:        #17242B;
  --ink-soft:   #3A4A52;
  --muted:      #6A7A81;
  --line:       #E7EDEB;
  --line-2:     #EFF3F1;
  --bg:         #FFFFFF;
  --bg-soft:    #F5FAF8;
  --white:      #FFFFFF;

  --grad-brand:  linear-gradient(135deg, #1FBE9E 0%, #12917A 60%, #0E7A67 100%);
  --grad-dark:   linear-gradient(160deg, #103F39 0%, #0C2E2A 70%);
  --grad-sheen:  linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));

  --shadow-xs:  0 2px 8px rgba(16,42,50,.06);
  --shadow-sm:  0 6px 20px rgba(16,42,50,.07);
  --shadow:     0 16px 44px rgba(16,42,50,.10);
  --shadow-lg:  0 30px 70px rgba(16,42,50,.16);
  --shadow-brand: 0 16px 34px rgba(18,145,122,.32);

  --header-h: 68px;
  --radius:      18px;
  --radius-lg:   26px;
  --radius-img:  22px;
  --radius-pill: 999px;
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  font-size: 1rem;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, dl, figure, table, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.nav-open, body.lightbox-open { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }

/* ---------- 공통 섹션/타이틀 ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  color: var(--brand-text);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow-light { color: #EAFBF5; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -.02em;
}
.section-lead { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }

.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; margin-bottom: 26px; }
.section-head--invert .section-title { color: #fff; }
.section-head--invert .section-lead { color: rgba(233,251,245,.82); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(18,145,122,.42); }
.btn-ghost { background: #fff; color: var(--brand-text); border: 1.5px solid var(--brand-200); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-glass {
  background: rgba(255,255,255,.14); color: #fff;
  border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255,255,255,.26); transform: translateY(-3px); }
.btn-cta-white { background: #fff; color: var(--brand-700); box-shadow: var(--shadow); }
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- 상단 공지 바 ---------- */
.topbar { background: var(--teal-ink); color: #DFF5EF; font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 24px; flex-wrap: wrap; }
.topbar-strong { color: #fff; font-weight: 700; }
.topbar-tel { font-weight: 700; color: #fff; }
.topbar-sep { opacity: .4; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; }
.brand-name em { font-style: normal; color: var(--brand-text); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a {
  padding: 9px 14px; font-size: .96rem; font-weight: 600; color: var(--ink-soft);
  border-radius: var(--radius-pill); transition: color .2s, background .2s;
}
.site-nav > a:hover { color: var(--brand-text); background: var(--brand-050); }
.site-nav > a.active { color: var(--brand-text); }
.site-nav > a.active::after { content: none; }
.nav-cta { display: none; }
.header-cta { margin-left: 10px; padding: 11px 20px; font-size: .95rem; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 12px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }

/* ---------- 히어로 ---------- */
.hero { position: relative; min-height: clamp(560px, 88svh, 820px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(9,32,29,.86) 0%, rgba(9,32,29,.55) 42%, rgba(9,32,29,.12) 78%),
    linear-gradient(0deg, rgba(9,32,29,.55), rgba(9,32,29,0) 40%);
}
.hero-content { position: relative; max-width: 660px; padding-block: 60px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 .hl {
  background: linear-gradient(120deg, #7FF0D8, #37D6B4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.9); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-badge {
  position: absolute; right: max(24px, calc((100vw - var(--container))/2 + 24px)); bottom: 108px; z-index: 2;
  width: 260px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px); border-radius: var(--radius); padding: 18px 20px; color: #fff;
  box-shadow: var(--shadow);
}
.hero-badge p { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.92); }
.hero-badge strong { font-size: 1rem; }
.stars { color: #FFC24B; letter-spacing: 2px; font-size: .95rem; margin-bottom: 8px; }

.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform:translate(-50%,12px);} 100%{opacity:0;} }

/* ---------- 신뢰 스트립 ---------- */
.trust { position: relative; margin-top: -58px; z-index: 5; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.trust-ic {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, #EAF8F3 0%, #D2EFE7 100%);
  display: grid; place-items: center;
}
.trust-ic img { width: 32px; height: 32px; }
.trust-text strong { display: block; font-size: 1.08rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.trust-text span { display: block; margin-top: 5px; font-size: .87rem; color: var(--muted); line-height: 1.4; }

/* ---------- 병원소개 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.about-media { position: relative; }
.about-media > img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--brand-100); border-radius: var(--radius-lg); z-index: -1; }
.about-media-tag {
  position: absolute; left: -14px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow);
}
.about-media-tag img { width: 34px; height: 34px; }
.about-media-tag span { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.about-media-tag em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .82rem; }

.check-list { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.director-card { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 16px 20px; background: var(--sand); border-radius: var(--radius); }
.director-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-xs); }
.director-card strong { font-size: 1.06rem; }
.director-card strong em { font-style: normal; color: var(--brand-text); font-weight: 700; margin-left: 4px; font-size: .9rem; }
.director-card p { color: var(--muted); font-size: .92rem; margin-top: 2px; }

/* ---------- 카드 그리드 공통 ---------- */
.card-grid { display: grid; gap: 22px; }
.treatments-grid { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.feature-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--brand-050); margin-bottom: 18px; transition: background .3s; }
.feature-card:hover .feature-ic { background: var(--brand-100); }
.feature-ic img { width: 52px; height: 52px; }
.feature-card h3 { font-size: 1.16rem; font-weight: 800; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: .93rem; }

/* ---------- 강점 (다크 섹션) ---------- */
.section-why { background: var(--grad-dark); color: #fff; overflow: hidden; }
.section-why::before { content:""; position:absolute; top:-120px; right:-120px; width:340px; height:340px; background: radial-gradient(circle, rgba(31,190,158,.35), transparent 70%); }
.why-grid { grid-template-columns: repeat(4, 1fr); position: relative; }
.why-card {
  position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 34px 26px 28px; overflow: hidden;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); border-color: rgba(127,240,216,.5); }
.why-num { position: absolute; top: 14px; right: 20px; font-size: 2.6rem; font-weight: 800; color: rgba(127,240,216,.16); letter-spacing: -.04em; }
.why-card img { width: 58px; height: 58px; background: rgba(255,255,255,.9); border-radius: 16px; padding: 9px; margin-bottom: 18px; }
.why-card h3 { font-size: 1.18rem; font-weight: 800; }
.why-card p { margin-top: 10px; color: rgba(233,251,245,.78); font-size: .94rem; }

/* ---------- 진료환경 ---------- */
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.equip-card figure { position: relative; border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-sm); }
.equip-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.equip-card:hover img { transform: scale(1.06); }
.equip-card figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 22px 20px; color: #fff; background: linear-gradient(0deg, rgba(9,32,29,.9), rgba(9,32,29,0)); }
.equip-card figcaption h3 { font-size: 1.15rem; font-weight: 800; }
.equip-card figcaption p { font-size: .9rem; color: rgba(255,255,255,.85); margin-top: 4px; }

/* ---------- 방문 후기 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review-card::before { content: "\201C"; position: absolute; top: 4px; right: 22px; font-size: 4.5rem; line-height: 1; color: var(--brand-100); font-family: Georgia, serif; }
.review-card blockquote { margin-top: 12px; font-size: 1.04rem; font-weight: 600; line-height: 1.6; color: var(--ink); }
.review-card cite { display: block; margin-top: 18px; font-style: normal; font-size: .88rem; color: var(--muted); font-weight: 600; }
.review-cta { text-align: center; margin-top: 40px; }

/* ---------- 갤러리 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-img); box-shadow: var(--shadow-xs); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,32,29,.55), transparent 55%); opacity: 0; transition: opacity .3s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-cap { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: .92rem; z-index: 1; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }
.gallery-item.g-tall { grid-row: span 2; }
.gallery-item.g-wide { grid-column: span 2; }

/* ---------- 진료시간 + 오시는길 ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.hours-card, .location-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow-sm); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 15px 6px; text-align: left; border-bottom: 1px solid var(--line-2); }
.hours-table th { font-weight: 700; color: var(--ink); width: 42%; }
.hours-table td { text-align: right; color: var(--ink-soft); font-weight: 600; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.row-highlight th, .row-highlight td { color: var(--brand-text); font-weight: 800; }
.row-highlight th em { font-style: normal; background: var(--brand-050); color: var(--brand-text); font-size: .72rem; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.row-lunch th, .row-lunch td { color: var(--muted); font-weight: 500; }
.hours-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

.map-embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: clamp(320px, 42vw, 460px); border: 0; filter: saturate(1.05); }
.map-open { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--brand-text); font-weight: 700; font-size: .88rem; padding: 10px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.map-open:hover { transform: translateY(-2px); }
.info-h { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.location-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.location-actions .btn { flex: 1 1 auto; }
.map-thumb { position: relative; display: block; border-radius: var(--radius-img); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow-xs); }
.map-thumb img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s var(--ease); }
.map-thumb:hover img { transform: scale(1.05); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(9,32,29,.78); color: #fff; font-weight: 700; font-size: .92rem; padding: 10px 18px; border-radius: 999px; backdrop-filter: blur(4px); }
.location-list { display: grid; gap: 2px; margin-bottom: 24px; }
.location-list > div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.location-list dt { font-weight: 700; color: var(--brand-text); font-size: .92rem; }
.location-list dd { color: var(--ink-soft); }

/* ---------- CTA 밴드 ---------- */
.cta-band { background: var(--grad-brand); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 45%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(52px, 7vw, 84px); flex-wrap: wrap; }
.cta-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.cta-sub { margin-top: 12px; color: rgba(255,255,255,.9); }
.cta-copy .eyebrow { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--teal-ink); color: #C9DCD7; padding-top: clamp(52px, 7vw, 80px); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.6fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-name { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-tag { color: rgba(201,220,215,.7); font-size: .92rem; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-col h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-200); margin-bottom: 14px; }
.footer-col p { font-size: .94rem; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; }
.footer-bottom p { font-size: .84rem; color: rgba(201,220,215,.6); }

/* ---------- 라이트박스 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 5vw; background: rgba(9,24,22,.92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 20px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1; border: 1px solid rgba(255,255,255,.3); }
.lightbox-close:hover { background: rgba(255,255,255,.26); }

/* ---------- 플로팅 도크 ---------- */
.dock { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.dock-btn { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-pill); font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.dock-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dock-tel { background: var(--grad-brand); color: #fff; }
.dock-map { background: #fff; color: var(--brand-text); border: 1px solid var(--line); }
.dock-ic { font-size: 1.05rem; }

/* ---------- 맨 위로 ---------- */
.to-top { position: fixed; left: 20px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--brand-text); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.3rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-050); }

/* ---------- 스크롤 리빌 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.card-grid .reveal, .trust-grid .reveal { transition-delay: 0s; }
.feature-card.reveal:nth-child(2), .why-card.reveal:nth-child(2), .trust-card.reveal:nth-child(2), .review-card.reveal:nth-child(2), .equip-card.reveal:nth-child(2) { transition-delay: .08s; }
.feature-card.reveal:nth-child(3), .why-card.reveal:nth-child(3), .trust-card.reveal:nth-child(3), .review-card.reveal:nth-child(3), .equip-card.reveal:nth-child(3) { transition-delay: .16s; }
.feature-card.reveal:nth-child(4), .why-card.reveal:nth-child(4), .trust-card.reveal:nth-child(4) { transition-delay: .24s; }

/* 섹션 앵커 오프셋 */
:where(section[id]) { scroll-margin-top: calc(var(--header-h) + 14px); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  .treatments-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { bottom: 96px; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 32px 40px; background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav > a { font-size: 1.4rem; font-weight: 700; padding: 12px 0; }
  .nav-cta { display: inline-flex; margin-top: 18px; }
  .nav-toggle { z-index: 110; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 460px; }
  .about-media::before { inset: 14px -14px -14px 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
}

@media (max-width: 720px) {
  .trust { margin-top: -32px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-card:nth-child(2) { border-right: 0; }
  .trust-card:nth-child(1), .trust-card:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .equipment-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item.g-wide { grid-column: span 2; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .topbar-sep:nth-of-type(2), .topbar-item:not(.topbar-strong):not(.topbar-tel):first-child { }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .treatments-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .dock-label { display: none; }
  .dock-btn { width: 52px; height: 52px; justify-content: center; padding: 0; }
  .topbar-inner { font-size: .78rem; gap: 8px; }
}

@media (max-width: 380px) {
  .treatments-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item.g-wide, .gallery-item.g-tall { grid-column: auto; grid-row: auto; }
  .brand-name { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-scroll span { animation: none; }
  .btn:hover, .feature-card:hover, .why-card:hover, .review-card:hover, .gallery-item:hover img, .equip-card:hover img { transform: none; }
}
