/* Dr. Cholan's Ortho & Derma Care Clinic
   Sleek, minimal, legible. One typeface (Manrope). Black text, violet highlights.
   Spacing scale: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 */

:root {
  --canvas: #F6F5FB;
  --surface: #FFFFFF;
  --tint: #EEEBF8;
  --ink: #000000;
  --ink-2: rgba(0, 0, 0, .7);
  --violet: #6A3FE0;
  --violet-ink: #4A22B5;
  --soft: #E7E1FB;
  --line: rgba(20, 10, 60, .1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tamil: "Noto Sans Tamil", var(--font);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(48px, 6vw, 80px);
  --head-gap: clamp(18px, 2vw, 26px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ta { font-family: var(--tamil); }
.muted { color: var(--ink-2); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.t-hero { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -0.045em; text-wrap: wrap; }
.t-xl { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.t-lg { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.t-md { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.soft { color: var(--violet); }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 36em; text-wrap: pretty; }
.kicker { font-size: 14px; font-weight: 700; color: var(--violet-ink); margin-bottom: 8px; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-md); border: 0;
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn .ar { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--violet-ink); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: var(--violet-ink); }
.btn-white { background: var(--surface); color: var(--ink); }
.btn-white:hover { background: var(--soft); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet-ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Announcement ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 9px var(--gutter);
  white-space: nowrap;
}
.announce a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
.announce a:hover { text-decoration-color: #fff; }
.announce-short { display: none; }
/* Scrolling offers */
.announce.ticker { display: block; padding: 0; overflow: hidden; position: relative; cursor: default; }
.announce.ticker::before, .announce.ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1; pointer-events: none; }
.announce.ticker::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.announce.ticker::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.offers-track { display: flex; width: max-content; animation: offers-scroll var(--offers-time, 30s) linear infinite; }
.announce.ticker:hover .offers-track, .announce.ticker:focus-within .offers-track, .announce.ticker.paused .offers-track { animation-play-state: paused; }
.offer { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0 9px 22px; }
.offer-tag { padding: 2px 9px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.offer a { font-weight: 800; }
.offer-dot { font-style: normal; color: rgba(255,255,255,.45); margin-left: 12px; }
@keyframes offers-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .announce.ticker { overflow-x: auto; }
}
@media (max-width: 600px) {
  .announce { font-size: 13px; }
  .announce-long { display: none; }
  .announce-short { display: inline; }
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246,245,251,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand b { display: block; font-weight: 800; font-size: 17px; line-height: 1.1; letter-spacing: -0.02em; }
.brand small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { background: var(--tint); }
/* Gallery dropdown */
.has-sub { position: relative; }
.sub-btn { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: inherit; cursor: pointer; }
.sub-btn svg { width: 15px; height: 15px; transition: transform .2s ease; }
.sub-btn:hover, .has-sub.open .sub-btn { background: var(--tint); }
.has-sub.open .sub-btn svg { transform: rotate(180deg); }
.sub {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(40,20,110,.45); z-index: 60;
}
.has-sub.open .sub { display: block; }
.sub a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; white-space: nowrap; }
.sub a small { font-size: 12.5px; font-weight: 700; color: var(--violet-ink); }
.sub-label { padding: 12px 14px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-tel svg { width: 17px; height: 17px; color: var(--violet); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 1040px) {
  .nav-links, .nav-tel { display: none; }
  .menu-btn { display: grid; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 12px; right: 12px; top: 74px;
    background: var(--surface); border-radius: var(--r-lg); padding: 8px; box-shadow: 0 24px 50px -24px rgba(40,20,110,.4);
  }
  .nav.open .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav.open .nav-links { max-height: calc(100vh - 90px); overflow-y: auto; }
  .nav.open .sub-btn { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 17px; }
  .nav.open .sub { position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; background: none; }
  .nav.open .sub a { padding: 12px 16px; font-size: 16px; }
}
@media (max-width: 560px) {
  .nav .btn { display: none; }
  .nav-in { height: 62px; }
  .nav.open .nav-links { top: 66px; }
  .brand small { font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: 12px 12px 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  min-height: clamp(540px, calc(100svh - 120px), 760px); display: flex; align-items: center;
  background: linear-gradient(180deg, #DECBE5 0%, #D2BEE0 20%, #C9B2DA 40%, #B69ED1 60%, #9E83BD 80%, #8166A4 100%);
  isolation: isolate;
}
.hero-card > img {
  position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: 55% 30%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
.hero-copy { padding: clamp(28px, 6vw, 80px); max-width: min(620px, 50%); }
.hero-copy .lede { margin: 20px 0 30px; max-width: 26em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .hero { padding: 8px 8px 0; }
  .hero-card { flex-direction: column; align-items: stretch; min-height: 0; background: var(--soft); border-radius: 22px; }
  .hero-card > img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 100% 20%; -webkit-mask-image: none; mask-image: none; }
  .hero-copy { padding: 24px 20px; max-width: none; }
  .hero-copy .lede { margin: 14px 0 22px; }
}
@media (max-width: 560px) {
  .t-hero { font-size: 38px; }
  .hero-card > img { aspect-ratio: 1 / 1; object-position: 78% 25%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Proof row ---------- */
.proof { padding-top: 12px; }
.proof-in { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--surface); border-radius: var(--r-lg); }
.proof-in > div { padding: 22px 24px; }
.proof-in > div + div { border-left: 1px solid var(--line); }
.proof-in dt { font-weight: 800; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -0.02em; line-height: 1.2; }
.proof-in dd { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 860px) {
  .proof-in { grid-template-columns: 1fr 1fr; }
  .proof-in > div:nth-child(3) { border-left: 0; }
  .proof-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-in > div { padding: 18px 16px; }
}

/* ---------- Statement ---------- */
.mission { padding: var(--section) 0 calc(var(--section) * .5); }
.statement {
  font-size: clamp(26px, 3.3vw, 44px); line-height: 1.32; letter-spacing: -0.03em; font-weight: 600;
  max-width: 24em; margin: 0;
}
.statement .face {
  display: inline-block; vertical-align: middle; width: 1.2em; height: 1.2em; border-radius: 50%; object-fit: cover;
  margin: -0.16em 0.04em 0; border: 2px solid #fff; box-shadow: 0 6px 14px -6px rgba(40,20,110,.45);
}

/* ---------- Marquee (plain type, no pills) ---------- */
.marquee {
  overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-track span { display: inline-flex; align-items: center; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); margin: 0 26px; }

/* ---------- Sections & heads ---------- */
section { scroll-margin-top: 80px; }
.sec, .sec.tight { padding: var(--section) 0 0; }
main > .sec:last-child { padding-bottom: var(--section); }
.head { margin-bottom: var(--head-gap); max-width: 760px; }
.head .lede { margin-top: 8px; max-width: 36em; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; }

/* ---------- Care tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; max-width: 100%; }
.tab { border: 0; background: transparent; padding: 11px 20px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 15px; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab:not([aria-selected="true"]):hover { background: var(--tint); }
.panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.panel[hidden] { display: none; }
.panel > * { min-width: 0; }
.panel-img { position: relative; min-height: 480px; background: var(--soft); }
.panel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; }
.panel-body > p:not(.kicker) { margin: 14px 0 22px; color: var(--ink); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ticks li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A3FE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.panel-body .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 880px) {
  .panel { grid-template-columns: 1fr; }
  .panel-img { min-height: 0; aspect-ratio: 4 / 3; }
  .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 11px 8px; font-size: 14px; }
  .panel-body .btn { align-self: stretch; }
}

/* ---------- Finder banner ---------- */
.banner { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(140deg, #E2D9FA 0%, #CDBEF4 60%, #B9A5EE 100%); }
.banner > * { min-width: 0; }
.banner-copy { padding: clamp(24px, 4.5vw, 56px); }
.banner-copy .lede { margin: 12px 0 22px; }
.banner-img { position: relative; min-height: 420px; overflow: hidden; }
.banner-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.75); padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 700; transition: background .15s ease, border-color .15s ease; }
.chip:hover { background: #fff; border-color: rgba(0,0,0,.25); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.answer { margin-top: 16px; background: var(--surface); border-radius: var(--r-lg); padding: 20px 22px; min-height: 112px; }
.answer .who { display: block; font-size: 14px; font-weight: 700; color: var(--violet-ink); margin-bottom: 4px; }
.answer b { display: block; font-size: 18px; margin-bottom: 4px; }
.answer p { font-size: 16px; margin: 0 0 10px; }
.answer a { font-size: 15px; font-weight: 700; color: var(--violet-ink); }
@media (max-width: 880px) {
  .banner { grid-template-columns: 1fr; }
  .banner-img { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
}

/* ---------- Doctors ---------- */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1fr; }
.doc > * { min-width: 0; }
.doc-photo { position: relative; background: var(--soft); aspect-ratio: 16 / 11; }
.doc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.doc-body { padding: 26px 28px 30px; }
.doc-body .quals { font-size: 14.5px; color: var(--ink-2); margin: 4px 0 14px; }
.doc-body > p:not(.kicker):not(.quals):not(.spec) { font-size: 16px; }
.spec { padding-top: 14px; margin: 16px 0 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.spec span { display: block; font-size: 13.5px; font-weight: 700; color: var(--violet-ink); margin-bottom: 2px; }
@media (max-width: 1080px) and (min-width: 641px) {
  .docs { grid-template-columns: 1fr; }
  .doc { grid-template-columns: .85fr 1.15fr; }
  .doc-photo { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 640px) {
  .docs { grid-template-columns: 1fr; }
  .doc-photo { aspect-ratio: 1 / 1; }
  .doc-body { padding: 22px 20px 24px; }
}

/* ---------- Why (2x2 grid) ---------- */
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.why-card .img { aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.why-card .img img { width: 100%; height: 100%; object-fit: cover; }
/* Photo slider (swipe or tap the dots; auto-advances) */
.slider { position: relative; touch-action: pan-y; }
.slider-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.slider-track img { flex: 0 0 100%; user-select: none; -webkit-user-drag: none; }
.slider-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(4px); }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background .2s ease; }
.slider-dots button[aria-selected="true"] { width: 20px; background: #fff; }
.why-card .txt { padding: 24px 26px 28px; }
.why-card p { margin: 10px 0 0; }
@media (max-width: 760px) { .why-list { grid-template-columns: 1fr; } .why-card .txt { padding: 20px; } }

/* ---------- Reviews ---------- */
.reviews {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(380px, 82vw); scroll-snap-align: start; background: var(--surface); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 20px; margin: 0; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 15px; padding-top: 16px; border-top: 1px solid var(--line); }
.review figcaption b { display: block; line-height: 1.2; }
.review figcaption .muted { font-size: 13.5px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--violet-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.car-ctrl { display: flex; gap: 8px; }
.car-ctrl button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.car-ctrl button:hover { background: var(--soft); }
.car-ctrl svg { width: 18px; height: 18px; }

/* ---------- Visit steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: s; background: var(--surface); border-radius: var(--r-xl); }
.steps li { counter-increment: s; padding: 26px 24px 28px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.steps b { display: block; font-size: 17.5px; margin-bottom: 4px; letter-spacing: -0.01em; }
.steps span { font-size: 15.5px; color: var(--ink-2); display: block; line-height: 1.5; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li { padding: 20px; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
  .steps li::before { margin: 0; grid-row: span 2; }
}

/* ---------- Camp ---------- */
.camp { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.camp > * { min-width: 0; }
.camp-img { position: relative; min-height: 420px; overflow: hidden; background: var(--soft); }
.camp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camp-body { padding: clamp(24px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.camp-body h2 { margin-bottom: 14px; }
.camp-body p:not(.kicker) { margin-bottom: 24px; }
@media (max-width: 880px) {
  .camp { grid-template-columns: 1fr; }
  .camp-img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .camp-body .btn { width: 100%; } }

/* ---------- Gallery ---------- */
/* Masonry: every photo keeps its own shape, columns fill without gaps */
.gallery { columns: 3 240px; column-gap: 10px; }
.gallery:has(> figure:nth-child(2):last-child) { columns: 2 240px; } /* only two photos: two columns, no empty gap */
.gallery figure { position: relative; margin: 0 0 10px; border-radius: var(--r-md); overflow: hidden; background: var(--soft); break-inside: avoid; }
.gallery .g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery video { display: block; width: 100%; height: auto; pointer-events: none; }
.g-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 999px; background: rgba(10,8,30,.55); backdrop-filter: blur(4px); }
.g-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; pointer-events: none;
  color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.25;
  background: linear-gradient(to top, rgba(10,8,30,.72), rgba(10,8,30,0));
}
.g-tabs { overflow-x: auto; scrollbar-width: none; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-note { margin: 4px 0 16px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: 8px; } .gallery figure { margin-bottom: 8px; }
  .g-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .g-tabs .tab { padding: 11px 8px; }
}
@media (max-width: 520px) { .gallery figcaption { font-size: 13px; padding: 22px 10px 9px; } }

/* Photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,6,20,.92); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8,6,20,.6); }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 56px 64px 24px; max-width: 100%; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox [hidden] { display: none !important; }
.lightbox video { max-width: min(1100px, 100%); max-height: calc(100vh - 140px); border-radius: 12px; background: #000; }
.lightbox figcaption { font-size: 16px; font-weight: 700; text-align: center; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 999px; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox figure { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq > * { min-width: 0; }
.faq-side .lede { margin: 14px 0 22px; }
.faq-list { background: var(--surface); border-radius: var(--r-xl); padding: 6px 24px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--soft); }
.faq details > div { padding: 0 0 20px; font-size: 16px; max-width: 42em; }
@media (max-width: 880px) { .faq { grid-template-columns: 1fr; gap: 20px; } .faq-list { padding: 4px 20px; } }

/* ---------- Book & visit ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.book > * { min-width: 0; }
.book-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 40px); display: flex; flex-direction: column; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid rgba(0,0,0,.16);
  background: var(--canvas); font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(0,0,0,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(106,63,224,.14); background: #fff; }
.form .btn { justify-self: start; }
.form .note { font-size: 14px; color: var(--ink-2); }
.form .err { color: #A3121A; font-size: 14.5px; font-weight: 700; margin: 0; }
.form .err:empty { display: none; }
.book-alt { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book-alt a { display: block; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; }
.book-alt a:hover { border-color: var(--violet); }
.book-alt span { display: block; font-size: 13.5px; color: var(--ink-2); }
.book-alt b { display: block; font-size: 18px; letter-spacing: -0.01em; }

.visit { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.visit iframe { width: 100%; height: 240px; border: 0; display: block; filter: grayscale(.35); }
.visit-info { padding: 24px clamp(20px, 3vw, 32px) 28px; display: grid; gap: 18px; }
.visit-info h3 { margin-top: 8px; }
.addr { margin: 6px 0 0; font-size: 15.5px; }
.spot-us { margin: 0; }
.spot-us img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.spot-us figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #1F8F4E; box-shadow: 0 0 0 4px rgba(31,143,78,.16); }
.status.closed i { background: #B4232A; box-shadow: 0 0 0 4px rgba(180,35,42,.14); }
.hours { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours td { padding: 8px 0; border-top: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { color: var(--violet-ink); font-weight: 800; }
.hours .note td { font-size: 14px; color: var(--ink-2); font-weight: 600; text-align: left; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .form .two, .book-alt { grid-template-columns: 1fr; }
  .form .btn, .contact-row .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer { padding: 0 0 32px; }
.footer-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-line { margin-top: 14px; max-width: 24em; font-size: 15.5px; }
.footer h4 { font-size: 14px; font-weight: 800; letter-spacing: 0; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.footer li { margin: 6px 0; }
.footer a { text-decoration: none; }
.footer ul a:hover { color: var(--violet-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 20px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 60;
    padding: 6px; border-radius: 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(40,20,110,.4);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 13px; text-decoration: none; font-size: 14.5px; font-weight: 700; }
  .mbar a svg { width: 18px; height: 18px; }
  .mbar a.wa { color: #17733e; }
  .mbar a.primary { background: var(--ink); color: #fff; }
}

/* ---------- Motion ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .wi { display: inline-block; will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.hero-card > img { animation: settle 2.2s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > .lede, .hero-copy > .hero-ctas { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > .lede { animation-delay: .35s; }
.hero-copy > .hero-ctas { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; row-gap: 8px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Per-doctor booking ---------- */
.book { grid-template-columns: 1.25fr 1fr; }
.doc-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doc-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; padding: 12px; cursor: pointer;
  background: var(--canvas); border: 1.5px solid transparent; border-radius: 16px; transition: border-color .15s ease, background .15s ease;
}
.doc-opt img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; object-position: 50% 15%; flex: none; }
.doc-opt b { display: block; font-size: 15.5px; line-height: 1.25; letter-spacing: -0.01em; }
.doc-opt small { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.doc-opt em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--violet-ink); margin-top: 2px; }
.doc-opt:hover { border-color: rgba(0,0,0,.15); }
.doc-opt[aria-checked="true"] { background: var(--surface); border-color: var(--ink); box-shadow: 0 10px 24px -18px rgba(40,20,110,.6); }

.bk-step { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.bk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bk-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.bk-row .bk-title { margin-bottom: 0; }
.bk-row { margin-bottom: 12px; }
.bk-nav { display: flex; gap: 6px; }
.bk-nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.bk-nav button svg { width: 16px; height: 16px; }
.bk-nav button:disabled { opacity: .35; cursor: default; }

.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.date-chip {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 2px; border-radius: 12px; cursor: pointer;
  background: var(--canvas); border: 1.5px solid transparent; font-weight: 600; min-width: 0;
}
.date-chip span { font-size: 12.5px; color: var(--ink-2); }
.date-chip b { font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.date-chip small { font-size: 11.5px; color: var(--ink-2); }
.date-chip:hover:not(:disabled) { border-color: rgba(0,0,0,.18); }
.date-chip[aria-checked="true"] { background: var(--ink); color: #fff; }
.date-chip[aria-checked="true"] span, .date-chip[aria-checked="true"] small { color: rgba(255,255,255,.75); }
.date-chip:disabled { cursor: not-allowed; opacity: .45; }

.slots { display: grid; gap: 14px; }
.slot-group p { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  min-height: 42px; border-radius: 10px; border: 1px solid rgba(0,0,0,.14); background: var(--surface); cursor: pointer;
  font-size: 14.5px; font-weight: 700;
}
.slot:hover:not(:disabled) { border-color: var(--violet); color: var(--violet-ink); }
.slot[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.slot:disabled { cursor: not-allowed; color: rgba(0,0,0,.3); background: var(--canvas); text-decoration: line-through; }
.slot-empty { margin: 0; padding: 16px; border-radius: 12px; background: var(--canvas); font-size: 15px; }

#book-form .bk-title { margin-bottom: 0; }
.bk-summary {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--soft);
}
.bk-summary img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; object-position: 50% 15%; flex: none; }
.bk-summary b { display: block; font-size: 15.5px; }
.bk-summary span span { display: block; font-size: 15px; font-weight: 700; color: var(--violet-ink); }
.bk-summary small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; }

.doc-book { margin-top: 18px; }

@media (max-width: 1000px) { .book { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .doc-switch { grid-template-columns: 1fr; }
  .doc-opt { flex-direction: row; align-items: center; }
  .date-strip { gap: 4px; }
  .date-chip { padding: 8px 0; }
  .date-chip b { font-size: 17px; }
  .date-chip span { font-size: 11.5px; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-book { width: 100%; }
}
