:root {
  --ink: #1f1d1e;
  --grey: #363435;
  --red: #d8262d;
  --red-bright: #ec3138;
  --red-deep: #b51e24;
  --white: #ffffff;
  --mist: #f6f3f3;
  --text: #2a2829;
  --muted: #5c595a;
  --line: #e6dfe0;
  --font: "Atkinson Hyperlegible", system-ui, sans-serif;
  --hindi: "Hind", "Atkinson Hyperlegible", sans-serif;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.1875rem; line-height: 1.6; color: var(--text); background: var(--white); }
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--red-deep); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 66ch; }
.hi, [lang="hi"] { font-family: var(--hindi); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: .5rem 1rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 5.5rem; padding: .4rem 0; }
.brand { display: block; text-decoration: none; }
.logo { height: 68px; width: auto; }
nav { margin-left: auto; }
nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--text); text-decoration: none; font-size: 1.05rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-color: var(--red-bright); color: var(--ink); }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 999px; font: 700 1.05rem/1 var(--font); text-decoration: none; border: 2px solid transparent; transition: background-color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-call { background: var(--red); color: var(--white); }
.btn-call:hover { background: var(--red-deep); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.head-call { white-space: nowrap; }
.text-link { font-weight: 700; }

/* Hero */
.hero { background: radial-gradient(110% 90% at 85% 40%, #fbe6e6 0%, var(--white) 58%); padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-hi { color: var(--red-deep); font-size: 1.15rem; margin-bottom: .5rem; }
.focus { animation: focus 1.8s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes focus {
  0% { filter: blur(14px); opacity: .35; letter-spacing: .03em; }
  60% { filter: blur(2px); opacity: 1; }
  100% { filter: blur(0); letter-spacing: -.01em; }
}
.lead { font-size: 1.3rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 0; }
.hero-facts dt { font-size: .95rem; color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.hero-art { display: grid; place-items: center; }
.iris { width: min(100%, 26rem); filter: drop-shadow(0 30px 50px rgba(31, 29, 30, .28)); animation: focus-art 2.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes focus-art { from { filter: blur(18px) drop-shadow(0 30px 50px rgba(31, 29, 30, .28)); transform: scale(.94); } }
.fibres, .ring { transform-origin: 120px 120px; }
.fibres { animation: spin 90s linear infinite; }
.r1 { animation: spin 40s linear infinite reverse; }
.pupil { transform-origin: 120px 120px; animation: pupil 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pupil { 0%, 100% { transform: scale(1); } 50% { transform: scale(.78); } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.sec-head p { color: var(--muted); margin: 0; }
.small-h { font-size: 1.3rem; }

/* Treatment rows */
.t-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.t-list a { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr 2rem; gap: 1.5rem; align-items: center; padding: 1.4rem .75rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background-color .2s; }
.t-list a:hover { background: var(--mist); }
.t-name { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.t-name .hi { display: block; font-size: 1rem; font-weight: 400; color: var(--red-deep); }
.t-desc { color: var(--muted); }
.t-go { width: .8rem; height: .8rem; border-top: 2.5px solid var(--red-bright); border-right: 2.5px solid var(--red-bright); transform: rotate(45deg); transition: transform .2s; }
.t-list a:hover .t-go { transform: translateX(4px) rotate(45deg); }

/* Doctor */
.doctor-band { background: var(--ink); color: #dcd8d9; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.doctor-band h2 { color: var(--white); }
.doctor-band .text-link { color: #ff8085; }
.doc-grid { display: grid; grid-template-columns: 17rem 1fr; gap: 3rem; align-items: center; }
.doc-photo { display: block; aspect-ratio: 1; border-radius: 1.25rem 1.25rem 7rem 1.25rem; overflow: hidden; background: var(--mist); box-shadow: 0 0 0 4px var(--red-bright); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.creds { font-weight: 700; color: #ff8085; }
.page-head .creds { color: var(--red-deep); }

/* RGHS */
.rghs-card { display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; align-items: center; background: var(--mist); border-left: 6px solid var(--red-bright); padding: clamp(1.75rem, 4vw, 3rem); border-radius: 0 1rem 1rem 0; }
.rghs-card .rghs-mark { grid-row: span 3; width: 7.5rem; }
.ins-head .rghs-mark { width: 6rem; margin-bottom: 1rem; }

/* Visit */
.visit-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; border-top: 1px solid var(--line); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours.big li { font-size: 1.2rem; padding: .8rem 0; }
.hours.big li span:last-child { font-weight: 700; color: var(--ink); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; padding: 2rem 0 4rem; }
.visit-grid h2 { margin-top: 1.5rem; }
.map { width: 100%; min-height: 26rem; border: 0; border-radius: 1rem; }

/* Article pages */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.h1-hi { display: block; font-size: .5em; color: var(--red-deep); font-weight: 400; margin-top: .4rem; }
.crumbs { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }
.doc-head { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; align-items: center; }
.article { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.article section { border-top: 1px solid var(--line); padding-top: 2rem; display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; }
.article section h2 { font-size: 1.45rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .4rem; border-left: 3px solid var(--red-bright); border-bottom: 3px solid var(--red-bright); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: s; padding-left: 3.25rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 1rem; }
.steps h3 { margin-bottom: .25rem; }
.note { background: var(--mist); border-radius: 1rem; padding: 1.25rem 1.5rem; }
.note p { margin: 0; }

/* FAQ */
.faq { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 700; color: var(--ink); font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.8rem; font-weight: 400; color: var(--red-bright); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; }

/* CTA + footer */
.cta-band { background: var(--red-deep); color: #ffe9ea; padding: 3rem 0; }
.cta-band h2 { color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-row p { margin: 0; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn-call { background: var(--white); color: var(--red-deep); }
.cta-band .btn-call:hover { background: var(--ink); color: var(--white); }
.cta-band .btn-ghost { border-color: var(--white); color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }
.site-foot { background: #141314; color: #bdb8b9; padding: 3.5rem 0 6rem; font-size: 1.05rem; }
.site-foot a { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.foot-name { color: var(--white); font-weight: 700; margin-bottom: .6rem; }
.site-foot .hours li { border-color: rgba(255, 255, 255, .12); }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .95rem; }
.call-bar { display: none; }

/* Online booking */
body > [data-kyorit-widget] { display: none; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: start; padding: 1rem 0 4rem; }
.book-widget { min-height: 120px; }
.book-widget iframe { display: block; max-width: 100%; }
.book-side h2 { margin-top: 1.5rem; }
.book-side h2:first-child { margin-top: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .doc-grid, .sec-head, .visit-mini, .visit-grid, .foot-grid, .doc-head, .article section { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .iris { width: 13rem; }
  .doc-photo { max-width: 15rem; }
  .rghs-card { grid-template-columns: 1fr; }
  .rghs-card .rghs-mark { grid-row: auto; width: 5.5rem; margin-bottom: 1rem; }
  .t-list a { grid-template-columns: 1fr 1.5rem; }
  .t-desc { grid-column: 1; }
  .t-go { grid-column: 2; grid-row: 1 / span 2; }
  .head-call { display: none; }
  .logo { height: 58px; }
  .menu-btn { display: inline-flex; font: 700 1rem var(--font); background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: .5rem 1rem; }
  nav ul { display: none; position: absolute; left: 0; right: 0; top: 5.5rem; background: var(--white); flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
  nav ul.open { display: flex; }
  nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
  .book-grid { grid-template-columns: 1fr; }
  #kyorit-fab { bottom: calc(5.2rem + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Topic pages */
.topic-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.topic-head .lead { margin-bottom: 1.5rem; }
.topic-art { margin: 0; border-radius: 1.25rem; overflow: hidden; background: var(--mist); box-shadow: 0 1px 0 var(--line); }
.topic-art img, .vision img { display: block; width: 100%; height: auto; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: inherit; }
.vision { margin: 0; }
.vision img { border-radius: 1rem; background: var(--mist); }
.vision figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.urgent { border-left: 4px solid var(--red); background: #fdecec; border-radius: 0 1rem 1rem 0; padding: 1.25rem 1.5rem; }
.urgent p { margin: 0; }
.urgent a { color: var(--red-deep); font-weight: 700; }
.steps h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
.steps p { margin: 0; }

/* Card grid */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; background: #fff; transition: border-color .2s, transform .2s; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mist); }
.card-name { font-weight: 700; font-size: 1.12rem; padding: 1rem 1.1rem 0; }
.card-hi { color: var(--red-deep); font-size: .95rem; padding: .15rem 1.1rem 0; }
.card-desc { color: var(--muted); font-size: .98rem; padding: .5rem 1.1rem 1.1rem; }
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.more { margin-top: 1.5rem; }
.related { padding-bottom: 3rem; }
.related .small-h { margin-bottom: 1.25rem; }
@media (max-width: 900px) {
  .topic-head { grid-template-columns: 1fr; }
  .topic-art { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
.page-head + .section { padding-top: 0; }
.art-credit { font-size: .85rem; color: var(--muted); padding: .55rem .9rem; background: #fff; }
.art-credit a { color: inherit; }
.vision figcaption + .art-credit, .vision .art-credit { padding-left: 0; background: none; }

/* Flagship service bands (cataract, medical retina) */
.band-mist { background: var(--mist); }
.feature { padding: clamp(3rem, 6vw, 5rem) 0; }
.feature-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; margin-bottom: 2.5rem; }
.feature h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 .75rem; }
.feature .ticks { margin: 1.25rem 0 1.75rem; }
.feature-img { margin: 0; }
.feature-img img { display: block; width: 100%; height: auto; border-radius: 1.25rem; background: #fff; box-shadow: 0 1px 0 var(--line); }
.feature-img figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.feature-alt .feature-img { order: -1; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2.5rem; }
.glance div { background: var(--mist); border-radius: 1rem; padding: 1rem 1.2rem; }
.glance dt { font-size: .9rem; color: var(--muted); }
.glance dd { margin: .25rem 0 0; font-weight: 700; }
.group { padding-top: 1rem; }
.group-h { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 .4rem; }
.group-intro { color: var(--muted); margin: 0 0 1.25rem; max-width: 60ch; }
.group .cards { margin-top: 1rem; }
@media (max-width: 900px) {
  .feature-grid, .glance { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-alt .feature-img { order: 0; }
}
