/* ==========================================================================
   pages.css — header, footer, hero tiles, status tile, treatment tiles,
   booking, gallery lightbox, legal pages
   ========================================================================== */

/* ---------- Header (floating liquid-glass pill) ---------- */
.site-header-wrap { position: sticky; top: 0; z-index: 100; padding: 12px var(--gutter) 0; pointer-events: none; }
.site-header { position: relative; z-index: 2; pointer-events: auto; max-width: var(--max); margin-inline: auto; height: 64px; padding: 0 10px 0 12px;
  border-radius: var(--pill); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--green), 0 0 0 3px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .12em; color: var(--green); }
.brand-sub { font-size: .54rem; letter-spacing: .22em; font-weight: 600; color: var(--gold-ink); margin-top: 3px; white-space: nowrap; }
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-book { display: none; }
.nav-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 380px); z-index: 1; pointer-events: auto; padding: 96px 24px 32px; overflow-y: auto;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  border-left: 1px solid rgba(255, 255, 255, .7); box-shadow: -20px 0 60px rgba(15, 61, 46, .2);
  transform: translateX(105%); visibility: hidden; transition: transform .5s var(--ease-spring), visibility .5s; border-radius: 32px 0 0 32px; }
.nav-drawer.open { transform: none; visibility: visible; }
.nav-drawer a.navlink { display: block; padding: 14px 6px; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(15, 61, 46, .14); }
html[lang="ta"] .nav-drawer a.navlink { font-family: 'Noto Sans Tamil', sans-serif; font-size: 1.2rem; }
.nav-drawer a.navlink[aria-current="page"] { color: var(--gold-ink); }
.nav-drawer .btn-liquid { margin-top: 26px; width: 100%; }
.scrim { position: fixed; inset: 0; z-index: 0; background: rgba(15, 61, 46, .28); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; pointer-events: auto; }
.scrim.open { opacity: 1; visibility: visible; }

/* ---------- Hero tiles ---------- */
main > .section:first-child { padding-top: clamp(16px, 3vw, 36px); }
.a-hero { padding: clamp(26px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; min-height: 340px; }
.a-hero h1 { margin-bottom: .3em; }
.hero-name { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-style: italic; font-weight: 600; color: var(--gold-ink); margin: 0 0 12px; }
.a-hero .sub { font-size: 1.12em; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.a-photo { padding: 0; min-height: 320px; display: flex; align-items: flex-end; background: var(--green-2); }
.a-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-photo .cap { position: relative; margin: 14px; padding: 16px 18px; border-radius: 22px; width: calc(100% - 28px); background: rgba(15, 61, 46, .72); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); color: var(--cream); border: 1px solid rgba(255, 255, 255, .25); }
.cap b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.cap span { font-size: .9rem; color: rgba(255, 255, 255, .9); }
.cap .big { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .25); }
.cap .big em { font-family: var(--serif); font-size: 2.6rem; font-style: normal; font-weight: 700; color: var(--gold); line-height: 1; }
.a-tamil { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.a-tamil .ta-tag { font-family: 'Noto Sans Tamil', var(--sans); font-size: clamp(1.15rem, 3.6vw, 1.7rem); font-weight: 600; line-height: 1.35; color: var(--gold); margin: 0; }
.a-tamil .ta-name { font-family: 'Noto Sans Tamil', var(--sans); font-size: .85rem; margin: 0; color: rgba(255, 255, 255, .9); }
.a-tamil .orn { margin: 6px 0 0; width: 100%; }

.a-open { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.status-line { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; color: var(--green); line-height: 1.1; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #B34A3A; flex: none; }
.is-open .dot { background: #2C8A5F; box-shadow: 0 0 0 0 rgba(44, 138, 95, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(44, 138, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(44, 138, 95, 0); } }
.status-sub { font-size: .9rem; color: var(--muted); margin: 0; }

.a-steps h3 { margin-bottom: 14px; }
.mini-steps { display: grid; gap: 12px; }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.mini-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.mini-steps b { display: block; line-height: 1.3; }
.mini-steps span { color: var(--muted); font-size: .88rem; }
@media (min-width: 640px) { .mini-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.a-map, .ab-map, .ct-map { padding: 0; min-height: 280px; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 280px; display: block; position: absolute; inset: 0; filter: saturate(.85); }

/* ---------- Treatments ---------- */
.tr-tile { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 2.4vw, 24px); }
.tr-tile h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 6px 0 0; }
.tr-tile p { font-size: .88rem; color: var(--muted); margin: 0; }
.tr-tile .btn { margin-top: auto; align-self: flex-start; background: var(--green); color: #fff; border-color: transparent; }
.tr-tile .btn:hover { background: var(--gold); color: var(--green); }
.tr-tile .btn-ghost { background: var(--green); color: #fff; border-color: transparent; }
.tr-tile .btn-ghost:hover { background: var(--gold); color: var(--green); }
.tr-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.tr-icon svg { width: 26px; height: 26px; }
.tr-acu { padding: clamp(22px, 3vw, 36px); gap: 12px; }
.tr-acu h3 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.tr-acu p { font-size: 1rem; color: rgba(255, 255, 255, .92); }
.tr-acu .tr-icon { background: var(--gold); color: var(--green); width: 58px; height: 58px; }
.subs { display: grid; gap: 8px; margin: 8px 0 14px; }
.subs a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--cream); transition: background .2s, transform .3s var(--ease-spring); }
.subs a::after { content: "›"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.subs a:hover { background: rgba(255, 255, 255, .24); transform: translateX(3px); }
@media (min-width: 640px) { .subs { grid-template-columns: 1fr 1fr; } }
.tr-all { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; color: var(--cream); background: var(--glass-dark); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.tr-all svg { width: 28px; height: 28px; color: var(--gold); }
.pg-tile h3 { margin-bottom: 14px; }
.notice { margin-top: var(--gap); padding: 16px 22px; border-radius: var(--r-md); background: rgba(207, 224, 210, .75); border: 1px solid rgba(15, 61, 46, .2); font-size: .95rem; max-width: none; }

/* ---------- About / contact / info ---------- */
.ab-photo { padding: 0; min-height: 360px; background: var(--sage); }
.ab-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stat { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.stat b { font-family: var(--serif); font-size: clamp(3.6rem, 9vw, 5.2rem); line-height: .85; color: var(--gold); font-weight: 700; }
.stat span { font-size: 1rem; max-width: 14ch; line-height: 1.3; }
.quals { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.info-list { display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.ico { flex: none; width: 44px; height: 44px; border-radius: 15px; background: var(--green); color: var(--gold); display: grid; place-items: center; }
.ico svg { width: 21px; height: 21px; }
.tile h3 + .ico, .ct-tile .ico { margin-bottom: 12px; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px dashed rgba(15, 61, 46, .25); font-weight: 400; vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { color: var(--muted); padding-right: 14px; }
.hours td { font-weight: 600; }
.ct-tile .big-link { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--green); text-decoration: none; word-break: break-word; line-height: 1.15; display: inline-block; margin-bottom: 14px; }
.ct-form .field { margin-bottom: 16px; }
.neu-tile { background: rgba(255, 255, 255, .86); }

/* ---------- Testimonials ---------- */
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--green); margin-bottom: 16px; }
html[lang="ta"] .quote p { font-family: 'Noto Sans Tamil', sans-serif; font-size: 1.02rem; line-height: 1.8; }
.quote footer { font-size: .9rem; color: var(--muted); }
.badge { display: inline-block; padding: 3px 12px; border-radius: var(--pill); background: var(--gold); color: var(--green); font-size: .72rem; font-weight: 700; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq-tile { padding: 0; }
.faq-tile summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; color: var(--green); min-height: 68px; }
.faq-tile summary::-webkit-details-marker { display: none; }
.faq-tile .answer { padding: 0 20px 20px; color: var(--muted); }
.faq-tile .answer p { margin: 0; }

/* ---------- CTA tile ---------- */
.cta-tile { text-align: center; padding: clamp(32px, 6vw, 64px); }
.cta-tile p { margin-inline: auto; }
.cta-tile .btn-row { justify-content: center; margin-top: 22px; }

/* ---------- Booking ---------- */
.form-tile { background: rgba(255, 255, 255, .88); }
.info-box { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: rgba(207, 224, 210, .8); border: 1px solid rgba(15, 61, 46, .2); font-size: .93rem; margin-bottom: 20px; }
.info-box svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.info-box p { margin: 0; color: var(--ink); }
.demo-box { padding: 12px 16px; border-radius: var(--r-md); border: 1px dashed var(--gold-ink); background: #FFF6DA; font-size: .88rem; margin-bottom: 16px; }
.progress { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; }
.progress li { flex: 1; font-size: .8rem; font-weight: 600; color: var(--muted); border-top: 4px solid rgba(15, 61, 46, .16); border-radius: 4px; padding-top: 8px; }
.progress li.done { border-color: var(--green-2); color: var(--green); }
.progress li.current { border-color: var(--gold); color: var(--green); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.live-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.live-card dl { margin: 0; }
.live-card .row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(15, 61, 46, .14); font-size: .93rem; }
.live-card .row:last-child { border-bottom: 0; }
.live-card dt { flex: 0 0 92px; color: var(--muted); }
.live-card dd { margin: 0; font-weight: 600; word-break: break-word; }
.live-card dd.empty { color: #5C6356; font-weight: 400; font-style: italic; }
.live-card .fee { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.summary { border-radius: var(--r-md); background: rgba(255, 255, 255, .6); border: 1px solid rgba(15, 61, 46, .18); padding: 4px 18px; margin: 0 0 20px; }
.summary div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(15, 61, 46, .22); }
.summary div:last-child { border-bottom: 0; }
.summary dt { flex: 0 0 110px; color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; font-weight: 600; word-break: break-word; }
.success { text-align: center; }
.success .tick { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(207, 224, 210, .8); }
.success .tick svg { width: 38px; height: 38px; }
.success p { margin-inline: auto; }
.booking-id { display: inline-block; margin: 8px 0 4px; padding: 10px 22px; border: 2px dashed var(--gold-ink); border-radius: var(--r-md); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; color: var(--green); background: rgba(255, 255, 255, .6); }
.success .summary { text-align: left; }
.upi { display: grid; gap: 10px; justify-items: center; padding: 18px; border-radius: var(--r-md); background: rgba(207, 224, 210, .7); margin-bottom: 20px; }
.upi img { width: 150px; height: 150px; border-radius: 12px; background: #fff; }
.upi code { font-size: 1.05rem; font-weight: 700; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: var(--pill); font-size: .82rem; font-weight: 700; background: var(--gold); color: var(--green); }
.status-pill.Confirmed { background: var(--green-2); color: #fff; }
.status-pill.Cancelled, .status-pill.No-show { background: #8E2A1E; color: #fff; }
.m-actions-row { margin-top: 18px; }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; color: var(--cream); }
dialog.lightbox::backdrop { background: rgba(10, 43, 32, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox img { max-width: 94vw; max-height: 78vh; border-radius: 24px; margin-inline: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .4); }
.lightbox .lb-cap { text-align: center; margin: 14px auto 0; font-size: .95rem; padding: 8px 18px; border-radius: var(--pill); width: fit-content; background: rgba(15, 61, 46, .7); border: 1px solid rgba(255, 255, 255, .25); }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lb-btn.prev { left: 10px; } .lb-btn.next { right: 10px; } .lb-btn.close { top: 18px; right: 14px; transform: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(28px, 5vw, 56px); padding-top: 64px; color: rgba(255, 255, 255, .88); border-radius: 40px 40px 0 0; position: relative; overflow: hidden;
  background: radial-gradient(60% 80% at 90% 0%, rgba(201, 162, 75, .2), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(31, 90, 69, .8), transparent 60%), #0A2B20; }
.site-footer a { color: var(--cream); text-decoration-color: rgba(201, 162, 75, .7); }
.site-footer h4 { font-family: var(--sans); font-size: .95rem; letter-spacing: .02em; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.foot-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.foot-brand .brand, .foot-brand .brand-name { color: var(--cream); }
.foot-brand .brand-sub { color: var(--gold); }
.foot-brand .brand img { box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--gold); }
.foot-brand p { margin-top: 14px; font-size: .95rem; }
.foot-tag { font-family: 'Noto Sans Tamil', sans-serif; color: var(--gold); font-weight: 600; margin: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .16); padding-block: 20px calc(20px + 76px); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.4em; }
.legal li { margin-bottom: .5em; list-style: disc; margin-left: 1.2em; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) { .header-book { display: inline-flex; } }
@media (min-width: 960px) {
  .nav-desktop { display: flex; gap: 2px; }
  .nav-desktop a { padding: 9px 13px; text-decoration: none; font-weight: 500; color: var(--ink); border-radius: var(--pill); font-size: .92rem; transition: background .2s; }
  .nav-desktop a:hover { background: rgba(255, 255, 255, .55); }
  .nav-desktop a[aria-current="page"] { color: var(--green); font-weight: 700; background: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(15, 61, 46, .18); }
  .menu-btn, .nav-drawer, .scrim { display: none; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; }
  .float .f-call { display: none; }
  .foot-bottom { padding-bottom: 20px; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 1.3rem; } .lang-toggle button { padding: 6px 9px; } }

/* ---------- extras ---------- */
.doc-tile { padding: clamp(26px, 5vw, 56px); }
.doc-tile > div { max-width: 760px; }
.bento--visit { grid-template-columns: 1fr; }
@media (min-width: 800px) { .bento--visit { grid-template-columns: repeat(3, 1fr); } }
.ct-tile h3 { margin-bottom: 10px; }
.ct-mail .big-link { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.g-tile { -webkit-backdrop-filter: none; backdrop-filter: none; }
.tile.legal { max-width: 800px; }

.doc-tile { display: grid; gap: 28px; align-items: center; }
.doc-seal { width: 150px; height: 150px; border-radius: 50%; order: -1; box-shadow: 0 0 0 8px rgba(255, 255, 255, .55), 0 0 0 9px rgba(15, 61, 46, .12), 0 24px 50px rgba(15, 61, 46, .25); }
@media (min-width: 900px) { .doc-tile { grid-template-columns: 1fr 260px; gap: 56px; } .doc-seal { order: 2; width: 240px; height: 240px; margin-inline: auto; } }
.nav-desktop a, .header-book { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1180px) { .brand-sub { display: none; } .nav-desktop a { padding: 8px 10px; font-size: .88rem; } }

.brand { flex: none; }
.header-actions { flex: none; }

/* compact summary card on phones so the form stays close to the top */
@media (max-width: 999px) {
  .live-card { padding: 16px 18px; border-radius: 24px; }
  .live-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
  .live-card .row { padding: 6px 0; font-size: .85rem; gap: 8px; }
  .live-card dt { flex: 0 0 82px; }
  .live-card .fee { display: none; }
}

/* ==========================================================================
   Hero animation (calm, one orchestrated moment on load)
   ========================================================================== */
.a-hero { --rx: 0deg; --ry: 0deg; --px: 0; --py: 0; isolation: isolate;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
.a-hero:hover { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }   /* tilt only, no lift */
.js .a-hero.reveal { transform: perspective(1100px) translateY(16px) scale(.97); }
.js .a-hero.reveal.in { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
/* light drifting inside the tile */
.a-hero::before { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(34% 34% at 28% 32%, rgba(201, 162, 75, .08), transparent 70%), radial-gradient(38% 38% at 78% 68%, rgba(168, 214, 190, .35), transparent 70%), radial-gradient(30% 30% at 60% 20%, rgba(207, 224, 210, .5), transparent 70%);
  animation: heroGlow 18s ease-in-out infinite alternate; }
@keyframes heroGlow { to { transform: translate(8%, 6%) rotate(14deg) scale(1.08); } }

/* staggered entrance for the copy */
.hero-in .hero-name, .hero-in .sub, .hero-in .btn-row { animation: heroRise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in .hero-name { animation-delay: .1s; }
.hero-in .sub { animation-delay: .95s; }
.hero-in .btn-row { animation-delay: 1.15s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* headline: words rise out of a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(110%); animation: wordUp 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.25s + var(--i) * .11s); }
@keyframes wordUp { to { transform: none; } }

/* acupuncture line-art: spine draws itself, points pulse in sequence, needles slide in */
.hero-art { position: absolute; right: clamp(8px, 3vw, 36px); top: 50%; height: min(86%, 400px); width: auto; aspect-ratio: 300 / 380; translate: calc(var(--px) * 16px) calc(-50% + var(--py) * 12px); transition: translate .6s cubic-bezier(.2, .7, .2, 1); pointer-events: none; opacity: .92; display: none; }
@media (min-width: 720px) { .hero-art { display: block; } .a-hero > *:not(.hero-art) { position: relative; z-index: 1; } .a-hero .sub, .a-hero h1 { max-width: min(58%, 520px); } }
.art-spine { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .5s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.art-needles path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--d) ease-out forwards; }
.art-needles circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .6s var(--d) var(--ease-spring) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.art-points g { opacity: 0; animation: fadeIn .6s calc(.6s + var(--i) * .35s) ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.art-points .rip { fill: none; stroke: #C9A24B; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ripple 3.6s calc(1.4s + var(--i) * .5s) ease-out infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(4.2); opacity: 0; } }
.art-halo { transform-box: fill-box; transform-origin: center; animation: breatheArt 7s ease-in-out infinite; }
.art-ring { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
@keyframes breatheArt { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* doctor photo drifts slowly, caption sits still */
.a-photo > img { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { to { transform: scale(1.1) translate(-1.5%, -1%); } }

/* Tamil tagline: slow gold shimmer */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .a-tamil .ta-tag { background: linear-gradient(100deg, #C9A24B 0%, #C9A24B 35%, #F7E7B0 50%, #C9A24B 65%, #C9A24B 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 7s linear infinite; }
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* mini-step numbers pop in as the tile reveals */
.a-steps.in .mini-steps .n { animation: pop .6s var(--ease-spring) both; }
.a-steps.in .mini-steps li:nth-child(2) .n { animation-delay: .15s; } .a-steps.in .mini-steps li:nth-child(3) .n { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .w > span { transform: none; }
  .art-spine, .art-needles path { stroke-dashoffset: 0; }
  .art-needles circle, .art-points g { opacity: 1; }
  .a-hero, .a-hero:hover, .js .a-hero.reveal, .js .a-hero.reveal.in { transform: none; }
}

/* keep the animated headline to ~3 lines beside the line-art */
.a-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.5rem); }
html[lang="ta"] .a-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
@media (min-width: 720px) { .a-hero .sub, .a-hero h1 { max-width: min(62%, 560px); } }

/* "26 years" stat tile (replaces the hero photo) */
.a-stat { grid-area: photo; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 320px; }
.stat-seal { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 10px 26px rgba(0, 0, 0, .25); }
.stat-num { display: flex; flex-direction: column; }
.stat-num em { font-family: var(--serif); font-style: normal; font-weight: 700; font-size: clamp(5rem, 11vw, 7.5rem); line-height: .85; color: var(--gold); font-variant-numeric: lining-nums; }
.stat-num span { font-size: 1.05rem; margin-top: 10px; max-width: 14ch; line-height: 1.3; color: var(--cream); }
.stat-who { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .28); }
.stat-who b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.15; color: var(--cream); }
.stat-who span { font-size: .9rem; color: rgba(255, 255, 255, .9); }

/* single wide hero card */
.a-hero { min-height: clamp(420px, 56vh, 560px); }
.hero-stat { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(15, 61, 46, .18); max-width: min(62%, 560px); }
.hero-stat em { font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--gold-ink); font-variant-numeric: lining-nums; }
.hero-stat span { font-size: .95rem; font-weight: 600; color: var(--green); }
.hero-stat .who { flex-basis: 100%; font-weight: 400; color: var(--muted); font-size: .88rem; }
.hero-stat i { display: none; }
@media (max-width: 719px) { .hero-stat { max-width: none; } }
.hero-in .hero-stat { animation: heroRise 1.1s 1.3s cubic-bezier(.2, .7, .2, 1) both; }

/* ==========================================================================
   Treatment photos (Pexels, free licence) — full-bleed banner at the top of each tile
   ========================================================================== */
.tr-tile { --tp: clamp(16px, 2.4vw, 24px); }
.tr-acu { --tp: clamp(22px, 3vw, 36px); }
.tr-photo { margin: calc(var(--tp) * -1) calc(var(--tp) * -1) 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); position: relative; }
.tr-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 61, 46, 0) 55%, rgba(15, 61, 46, .28)); pointer-events: none; }
.tr-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .tile:hover .tr-photo img { transform: scale(1.06); } }
.tr-photo + .tr-icon { margin-top: -30px; position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 8px 18px rgba(15, 61, 46, .3); }
.tr-photo + .tr-icon svg { width: 23px; height: 23px; }
.tr-acu .tr-photo + .tr-icon { width: 52px; height: 52px; margin-top: -34px; box-shadow: 0 0 0 4px rgba(15, 61, 46, .9), 0 8px 18px rgba(0, 0, 0, .3); }
.tr-acu .tr-photo { aspect-ratio: 16 / 10; }

/* photo banners on the About page tiles (same treatment as the therapy tiles) */
.ab-ph1, .ab-ph2, .ab-ph3, .ab-clinic { --tp: clamp(20px, 3vw, 30px); }
.ab-ph1 .tr-photo, .ab-ph2 .tr-photo, .ab-ph3 .tr-photo, .ab-clinic .tr-photo { margin-bottom: 18px; }
.ab-clinic .tr-photo { aspect-ratio: 16 / 9; }
.ab-clinic .tr-photo img { object-position: 50% 60%; }

.ab-local { --tp: clamp(20px, 3vw, 30px); }
.ab-local .tr-photo { margin-bottom: 18px; aspect-ratio: 16 / 9; }
.ab-local .tr-photo img { object-position: 50% 55%; }
.ab-map { min-height: 340px; }

.g-tile img { object-position: 50% 68%; }

.ab-photo img { object-position: 50% 15%; }

/* ==========================================================================
   Typography: one plain, readable family (Inter). Sizes re-tuned from the old serif.
   ========================================================================== */
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: .2em; }
.brand-sub { letter-spacing: .2em; font-size: .52rem; }
.hero-name { font-style: normal; font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.a-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 700; }
html[lang="ta"] .a-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.page-hero h1, .section-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.tr-acu h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.tr-tile h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.nav-drawer a.navlink { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.status-line { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; }
.quote p { font-size: 1.1rem; line-height: 1.55; font-weight: 500; }
.tr-all { font-size: 1.2rem; font-weight: 600; }
.ct-tile .big-link { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 700; letter-spacing: -.01em; }
.ct-mail .big-link { font-size: clamp(1rem, 1.7vw, 1.2rem); }
.stat-who b, .cap b { font-weight: 700; font-size: 1.2rem; }
.hero-stat em { font-weight: 800; font-size: 2.3rem; }
.stat b { font-weight: 800; }
.date-btn b { font-weight: 700; font-size: 1.45rem; }
.mini-steps .n { font-weight: 700; font-size: 1rem; }
.step h3, .live-card h3 { font-weight: 700; }
.live-card h3 { font-size: 1.25rem; }
.foot-tag { font-weight: 600; }
.legal h2 { font-size: 1.4rem; }
.ab-who h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.doc-tile h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-tile h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }

/* Phone numbers: even-width digits, a little extra spacing and weight so they are easy to read and dial */
a[href^="tel:"].big-link, .site-footer a[href^="tel:"], .ct-phone .big-link {
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: .06em; font-weight: 700; white-space: nowrap;
}
a[href^="tel:"].big-link { font-size: clamp(1.35rem, 2.6vw, 1.8rem); text-decoration: none; color: var(--green); }
.site-footer a[href^="tel:"] { font-weight: 600; font-size: 1.02rem; }

/* doctor portrait in the home page introduction */
.doc-photo { width: min(220px, 60%); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 26px; order: -1; justify-self: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, .6), 0 22px 50px rgba(15, 61, 46, .25); }
@media (min-width: 900px) { .doc-photo { order: 2; width: 260px; } }

/* ==========================================================================
   CALM WHITE THEME — white page, soft mint tiles, deep green only for text and buttons
   ========================================================================== */
/* the former "dark" tiles become soft mint */
.tile--dark { background: linear-gradient(160deg, rgba(222, 240, 230, .95), rgba(240, 248, 243, .92)); color: var(--ink); border-color: rgba(31, 90, 69, .16); box-shadow: 0 8px 28px rgba(15, 61, 46, .07), inset 0 1px 0 #fff; }
.tile--dark h2, .tile--dark h3, .tile--dark h4 { color: var(--green); }
.tile--dark p, .tile--dark .lead { color: var(--muted); }
.tile--dark .btn-ghost { color: var(--green); border-color: var(--green); background: rgba(255, 255, 255, .6); }
.tile--dark .btn-ghost:hover { background: var(--green); color: #fff; }
.tile--dark .chips li { background: rgba(255, 255, 255, .8); border-color: rgba(15, 61, 46, .16); color: var(--green); }
.tile--dark :focus-visible { outline-color: var(--green); }
.tr-acu p { color: var(--muted); }
.subs a { background: rgba(255, 255, 255, .75); border-color: rgba(15, 61, 46, .16); color: var(--green); }
.subs a:hover { background: #fff; }
.subs a::after { color: var(--gold-ink); }
.tr-acu .tr-photo + .tr-icon { box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(15, 61, 46, .22); }
.tr-all { background: linear-gradient(160deg, rgba(222, 240, 230, .95), rgba(240, 248, 243, .92)); color: var(--green); }
.tr-all svg { color: var(--gold-ink); }
.a-tamil .ta-tag { color: var(--gold-ink); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .a-tamil .ta-tag { background: linear-gradient(100deg, #8A6A1E 0%, #8A6A1E 35%, #C9A24B 50%, #8A6A1E 65%, #8A6A1E 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.a-tamil .ta-name { color: var(--muted); }
.stat b { color: var(--gold-ink); }
.stat span { color: var(--green); }
.cta-tile .btn-gold, .tile--dark .btn-gold { background: var(--green); color: #fff; }
.cta-tile .btn-gold:hover, .tile--dark .btn-gold:hover { background: var(--gold); color: var(--green); }
.tr-acu .btn-gold { background: var(--green); color: #fff; }
.tr-acu .tr-icon { background: var(--green); color: #fff; }
.tile--dark .notice { background: rgba(255, 255, 255, .8); color: var(--ink); }

/* footer: light, quiet */
.site-footer { background: linear-gradient(180deg, #F6FAF8 0%, #EAF3EE 100%); color: var(--muted); border-top: 1px solid rgba(15, 61, 46, .1); }
.site-footer a { color: var(--green); text-decoration-color: rgba(201, 162, 75, .7); }
.site-footer h4 { color: var(--gold-ink); }
.site-footer :focus-visible { outline-color: var(--green); }
.foot-brand .brand, .foot-brand .brand-name { color: var(--green); }
.foot-brand .brand-sub, .foot-tag { color: var(--gold-ink); }
.foot-brand .brand img { box-shadow: 0 0 0 1px rgba(15, 61, 46, .2); }
.socials a { border-color: rgba(15, 61, 46, .25); }
.foot-bottom { border-top-color: rgba(15, 61, 46, .12); }

/* ==========================================================================
   HERO: logo + clinic name
   ========================================================================== */
.a-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 30px; min-height: clamp(460px, 64vh, 620px); padding: clamp(28px, 5vw, 64px); }
.hero-copy { position: relative; z-index: 1; }
.a-hero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); max-width: none; margin-bottom: .2em; line-height: 1.08; }
html[lang="ta"] .a-hero h1 { font-size: clamp(1.7rem, 3.8vw, 2.9rem); }
.hero-ta { font-family: 'Noto Sans Tamil', var(--sans); font-size: clamp(1.05rem, 2.3vw, 1.4rem); font-weight: 600; color: var(--gold-ink); margin: 0 0 14px; line-height: 1.4; }
html[lang="ta"] .hero-ta { display: none; }
.hero-line { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; color: var(--green); margin: 0 0 12px; }
.a-hero .sub { max-width: 46ch; margin-bottom: 26px; }
.hero-stat { max-width: none; }
.hero-in .hero-ta, .hero-in .hero-line { animation: heroRise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in .hero-ta { animation-delay: .9s; } .hero-in .hero-line { animation-delay: 1.05s; }
.hero-in .sub { animation-delay: 1.2s; } .hero-in .btn-row { animation-delay: 1.35s; } .hero-in .hero-stat { animation-delay: 1.5s; }

.hero-logo { position: relative; order: -1; justify-self: center; width: min(54vw, 220px); aspect-ratio: 1; translate: calc(var(--px) * 12px) calc(var(--py) * 10px); transition: translate .6s cubic-bezier(.2, .7, .2, 1); animation: heroRise 1.6s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; position: relative; z-index: 1; box-shadow: 0 0 0 8px #fff, 0 0 0 9px rgba(15, 61, 46, .12), 0 30px 70px -20px rgba(31, 90, 69, .45); }
.hero-logo::before, .hero-logo::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(31, 90, 69, .2); animation: logoBreathe 7s ease-in-out infinite; }
.hero-logo::before { inset: -26px; }
.hero-logo::after { inset: -54px; border-color: rgba(31, 90, 69, .11); animation-delay: 1.4s; }
@keyframes logoBreathe { 0%, 100% { transform: scale(.97); opacity: .6; } 50% { transform: scale(1.04); opacity: 1; } }
@media (min-width: 900px) {
  .a-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; }
  .hero-logo { order: 2; width: min(100%, 320px); }
  .hero-logo::before { inset: -36px; } .hero-logo::after { inset: -74px; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* gentle support note inside the psychological-problems tile */
.helpline { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(15, 61, 46, .18); font-size: .88rem; line-height: 1.5; color: var(--ink); }
.pg-tile .chips li { font-size: .88rem; padding: 6px 12px; }

/* ==========================================================================
   Hero logo = the clinic's animated logo (video). Dark card, plays once, holds the final frame.
   ========================================================================== */
.hero-logo { aspect-ratio: 4 / 5; width: min(58vw, 230px); border-radius: 28px; cursor: pointer; }
.hero-logo::before { inset: -12px; border-radius: 38px; border: 1px solid rgba(31, 90, 69, .2); animation: logoBreathe 7s ease-in-out infinite; }
.hero-logo::after { display: none; }
.hero-video { display: block; position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #050505;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(15, 61, 46, .12), 0 30px 70px -20px rgba(31, 90, 69, .5); }
@media (min-width: 900px) { .hero-logo { width: min(100%, 330px); } .hero-logo::before { inset: -16px; border-radius: 42px; } }

/* ---------- Google reviews ---------- */
.rating-tile { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rating-tile p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.rating-big { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--green); letter-spacing: -.02em; }
.stars { display: inline-flex; gap: 2px; font-size: 1.25rem; line-height: 1; }
.star { color: #CBD3CD; }
.star.on { color: #B07F10; }
.g-badge { margin-left: auto; padding: 5px 14px; border-radius: var(--pill); border: 1px solid rgba(15, 61, 46, .18); background: rgba(255, 255, 255, .8); font-weight: 700; font-size: .85rem; color: var(--green); }
.q-head { margin-bottom: 8px; }
.quote footer a { color: var(--green); font-weight: 600; }
.review-links { justify-content: center; margin-top: 24px; }
.review-links:empty { display: none; }
.rev-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); }

.rev-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: .85rem; color: var(--muted); text-align: center; max-width: none; }
a.g-badge { text-decoration: none; }
a.g-badge:hover { background: #fff; border-color: var(--green); }
.stars { white-space: nowrap; }

/* ---------- Testimonials carousel ---------- */
.carousel { grid-column: 1 / -1; --gap: 16px; --per: 1; min-width: 0; }
.car-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 22px; margin: 0 -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -2px; }
.car-track > .quote { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; }
.car-track > .quote footer { margin-top: auto; padding-top: 6px; }
@media (min-width: 700px) { .carousel { --per: 2; } }
@media (min-width: 1000px) { .carousel { --per: 3; } }
.car-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.car-prev svg { transform: scaleX(-1); }
.car-dots { display: flex; align-items: center; }
.car-dot { width: 24px; height: 28px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.car-dot::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: rgba(15, 61, 46, .25); transition: width .3s var(--ease-spring), background .2s; }
.car-dot[aria-current="true"]::before { width: 22px; background: var(--green); }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }

.car-track > .quote { justify-content: flex-start; }
.car-track > .quote p { font-size: 1.02rem; line-height: 1.55; font-weight: 500; }
.car-track > .quote p[lang="ta"] { font-size: .95rem; line-height: 1.8; }
.car-track > .quote .badge { align-self: flex-start; }
.car-track > .quote .q-head { margin-bottom: 10px; }

/* small laptops / landscape tablets: not enough room for logo text + menu + button, so show the emblem only */
@media (min-width: 960px) and (max-width: 1179px) { .brand-text { display: none; } .nav-desktop a { padding: 8px 12px; } }

/* footer credit line: its own row, centred, quieter than the legal links */
.foot-credit { flex-basis: 100%; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(15, 61, 46, .1); text-align: center; font-size: .85rem; color: var(--muted); max-width: none; }
.foot-credit strong { color: var(--green); font-weight: 700; }

.foot-credit a { color: var(--green); text-decoration-color: var(--gold); }

/* Footer socials: sit under the hours, solid green chip with white glyph */
.socials { margin-top: 20px; }
.socials a { width: 46px; height: 46px; border-radius: 14px; border: 0; background: linear-gradient(145deg, var(--green-2), var(--green)); color: #fff; box-shadow: 0 6px 16px rgba(15, 61, 46, .25); }
.socials a:active { transform: scale(.94); }
.socials svg { width: 22px; height: 22px; }
