/* Sri Prabha Eye Care — website */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--pearl);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "ss01" on;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--navy); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(clamp(20px, 4vw, 40px), env(safe-area-inset-left)); padding-right: max(clamp(20px, 4vw, 40px), env(safe-area-inset-right)); }
.ico { width: 20px; height: 20px; flex: none; }
.muted { color: var(--slate); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display-md { font-size: clamp(2.35rem, 1.5rem + 3.2vw, 4rem); line-height: 1.04; max-width: 16ch; }
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.95rem, 1.35rem + 1.9vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-weight: 450; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.9rem); line-height: 1.15; letter-spacing: -0.012em; color: var(--navy); }
.lead { color: var(--slate); font-size: 1.06rem; line-height: 1.7; max-width: 46ch; margin-top: 16px; }
.telugu { font-family: var(--font-telugu); font-weight: 500; line-height: 1.7; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sapphire); margin-top: 22px; }
.link .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link:hover .ico { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: -0.005em; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--ink); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #d6b97f; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.btn:disabled { opacity: .6; cursor: progress; }

.iconbtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--navy); color: #fff; }

/* ---------- Status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 500; color: var(--slate); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa6b6; flex: none; position: relative; }
.status.is-open i { background: #22b07d; box-shadow: 0 0 0 4px rgba(34, 176, 125, .16); }
.status-head { padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.status-lg { margin-top: 22px; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.status-light { margin-top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(242, 244, 247, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(10, 23, 48, .4); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; line-height: 1.05; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.brand small { display: block; font-size: .78rem; color: var(--slate); font-weight: 500; margin-top: 3px; white-space: nowrap; }
.mainnav { display: flex; gap: 4px; margin-left: 28px; }
.mainnav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: .95rem; color: var(--slate); border-radius: 999px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.mainnav a:hover { color: var(--navy); }
.mainnav a[aria-current="page"] { color: var(--navy); background: var(--paper); box-shadow: var(--shadow-1); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.show-sm { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-flush-top { padding-top: 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .h2 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(60, 195, 211, .14), transparent 70%),
    radial-gradient(50% 60% at 10% 110%, rgba(29, 78, 158, .45), transparent 70%),
    var(--ink);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, .5), transparent);
}
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero-assoc { display: inline-flex; align-items: center; gap: 10px; color: var(--brass); font-size: .92rem; font-weight: 500; }
.hero-assoc .ico { width: 18px; height: 18px; }
.hero .display { margin-top: 26px; }
.hero .telugu { margin-top: 22px; color: rgba(255, 255, 255, .82); font-size: 1.08rem; }
.hero-lead { margin-top: 14px; max-width: 34em; color: rgba(255, 255, 255, .7); font-size: 1.08rem; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-facts div { padding-right: 30px; margin-right: 30px; border-right: 1px solid rgba(255, 255, 255, .12); }
.hero-facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts dt { white-space: nowrap; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; color: #fff; letter-spacing: -0.01em; }
.hero-facts dd { font-size: .86rem; color: rgba(255, 255, 255, .58); margin-top: 6px; }
.hero-facts .fact-address { max-width: 280px; }
.hero-facts .fact-address dd { line-height: 1.4; }

/* Eye chart — the one moving thing on the page */
.chart { position: relative; max-width: 480px; margin-left: auto; width: 100%; }
.chart-card {
  --lx: 50%; --ly: 60%;
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #ffffff 0%, #f1f4f8 100%);
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, .6);
  font-size: clamp(15px, 1.75vw, 24px);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.chart-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .44em; padding: 1.2em 0; }
.chart-blur { filter: blur(4.5px); opacity: .5; }
.chart-sharp { -webkit-mask-image: radial-gradient(circle 78px at var(--lx) var(--ly), #000 95%, transparent 100%); mask-image: radial-gradient(circle 78px at var(--lx) var(--ly), #000 95%, transparent 100%); }
.chart .row { position: relative; width: 100%; display: flex; justify-content: center; }
.chart .letters { font-family: var(--font-ui); font-weight: 600; color: var(--ink); letter-spacing: .2em; margin-right: -.2em; line-height: 1; }
.chart .acuity { position: absolute; right: 1.1em; top: 50%; transform: translateY(-50%); font-size: .5em; font-weight: 600; color: #8b97a8; font-variant-numeric: tabular-nums; }
.chart-sharp .acuity { color: var(--sapphire); }
.chart-lens { position: absolute; left: var(--lx); top: var(--ly); width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px var(--brass), 0 0 0 7px rgba(201, 169, 110, .18), 0 22px 40px -12px rgba(10, 23, 48, .45), inset 0 0 22px rgba(60, 195, 211, .22);
}
.chart-lens i { position: absolute; inset: 14px 22px auto auto; width: 34px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .7); transform: rotate(35deg); filter: blur(2px); }
.chart figcaption {
  position: absolute; left: 22px; right: 22px; bottom: -22px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(16, 38, 74, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); font-size: .9rem;
}
.chart figcaption b { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--brass); }

@media (prefers-reduced-motion: no-preference) {
  .chart-card { animation: chart-in 1.1s var(--ease) both .15s; }
  .chart-sharp { animation: focus-in 1.4s var(--ease) both .5s; }
  @keyframes chart-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes focus-in { from { filter: blur(6px); } to { filter: blur(0); } }
}

/* ---------- Page hero (inner pages) ---------- */
.pagehero {
  background: radial-gradient(60% 120% at 100% 0%, rgba(60, 195, 211, .12), transparent 70%), var(--ink);
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
}
.pagehero .hero-lead { margin-top: 20px; }
.pagehero .btn { margin-top: 32px; }
.pagehero-404 .code { font-family: var(--font-display); font-size: 1.2rem; color: var(--brass); margin-bottom: 14px; }

/* ---------- Split (title + services) ---------- */
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.split-head { position: sticky; top: 120px; }
.services { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.service { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 28px; padding-right: 0; }
.service-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); color: var(--sapphire); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.service-ico .ico { width: 22px; height: 22px; }
.section-paper .service-ico { background: var(--pearl); }
.service h3, .reason h3 { margin-top: 20px; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.service p, .reason p { margin-top: 8px; color: var(--slate); font-size: .97rem; line-height: 1.65; }

/* ---------- Lens range ---------- */
.lens-range { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 500; font-size: .95rem; color: var(--navy); background: var(--paper); }

/* ---------- Promise ---------- */
.promise { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.promise-mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 400px; width: 100%; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-2); }
.promise-mark::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .55); }
.promise-mark img { width: 78%; height: auto; border-radius: 50%; }
.promise-copy .h2 { max-width: 18ch; }
.promise-copy p { margin-top: 18px; color: var(--slate); max-width: 56ch; font-size: 1.03rem; line-height: 1.75; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.step-num { position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--brass); font-family: var(--font-ui); font-weight: 600; font-size: .92rem; font-variant-numeric: lining-nums; box-shadow: 0 0 0 6px var(--paper); }
.step h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--slate); font-size: .96rem; }

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 30px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.voice blockquote { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.42; color: var(--navy); letter-spacing: -0.008em; }
.voice blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .7; color: var(--brass); margin-bottom: 10px; }
.voice figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brass-soft); color: var(--brass-deep); font-weight: 600; }
.voice figcaption b { display: block; font-weight: 600; color: var(--navy); line-height: 1.2; }
.voice figcaption small { color: var(--slate); font-size: .85rem; }

/* ---------- Visit / timings ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.hours { margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hours-day { font-weight: 500; color: rgba(255, 255, 255, .86); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hours-day em { font-style: normal; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(201, 169, 110, .16); color: var(--brass); }
.hours-time { text-align: right; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-row.is-today .hours-time { color: var(--brass); }
.visit-card { padding: clamp(26px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.visit-item { display: flex; gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.visit-item .ico { color: var(--brass); margin-top: 3px; }
.visit-item h3 { font-size: .85rem; font-weight: 500; color: rgba(255, 255, 255, .55); }
.visit-item p { margin-top: 6px; color: #fff; font-size: 1.02rem; }
.phones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.phones a { font-variant-numeric: tabular-nums; }
.phones a, .footer-phones a { white-space: nowrap; }
.phones .sep, .footer-phones .sep { width: 1px; height: 14px; background: currentColor; opacity: .3; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.story-copy .h2 { max-width: 20ch; }
.story-copy p { margin-top: 18px; color: var(--slate); max-width: 60ch; line-height: 1.8; }
.story-card { padding: 34px; border-radius: var(--r-lg); background: var(--navy); color: #fff; box-shadow: var(--shadow-2); position: sticky; top: 120px; }
.story-card img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.story-card dl { margin-top: 26px; }
.story-card dl div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.story-card dt { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--brass); }
.story-card dd { margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.story-card .telugu { margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .86); }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { padding: 28px; border-radius: var(--r-lg); background: var(--pearl); }
.reason .service-ico { background: var(--paper); }
.assoc { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--navy); color: #fff; border: 1px solid rgba(201, 169, 110, .35); }
.assoc .h3 { color: #fff; }
.assoc p { margin-top: 10px; color: rgba(255, 255, 255, .7); max-width: 52ch; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 104px); }
.faq .lead a { color: var(--sapphire); font-weight: 600; white-space: nowrap; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .3s var(--ease), background-color .2s; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--navy); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s; }
.faq-item[open] summary i { background: var(--navy); border-color: var(--navy); }
.faq-item[open] summary i::before { background: #fff; }
.faq-item[open] summary i::after { opacity: 0; }
.faq-item p { padding: 0 56px 26px 0; color: var(--slate); line-height: 1.75; }

/* ---------- Contact ---------- */
.section-lift { padding-top: 0; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 48px); align-items: start; margin-top: clamp(-48px, -4vw, -32px); }
.contact-info { padding: clamp(26px, 3vw, 36px); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.info-row { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row > .ico { color: var(--brass-deep); margin-top: 2px; }
.info-row h2 { font-size: .85rem; font-weight: 500; color: var(--slate); }
.info-row p { margin-top: 6px; color: var(--navy); font-weight: 500; }
.info-row .link { margin-top: 10px; font-size: .94rem; }
.form-card { padding: clamp(26px, 3.4vw, 40px); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.form-card .muted { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fld { display: block; margin-top: 20px; }
.fld > span { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.fld em { font-style: normal; font-weight: 400; color: var(--slate); }
.fld input, .fld textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--pearl);
  font-size: 1rem; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.fld textarea { resize: vertical; min-height: 128px; }
.fld input:focus, .fld textarea:focus { border-color: var(--sapphire); background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 158, .12); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin-top: 18px; padding: 12px 16px; border-radius: var(--r-sm); font-size: .95rem; }
.form-msg.is-ok { background: var(--ok-soft); color: var(--ok); }
.form-msg.is-error { background: var(--danger-soft); color: var(--danger); }
.form-card .btn { margin-top: 24px; }
.map { overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--pearl-2); aspect-ratio: 21 / 8; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid rgba(201, 169, 110, .22); color: rgba(255, 255, 255, .66); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand-light b { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .55); }
.brand-light img { width: 52px; height: 52px; box-shadow: none; }
.footer-brand p { margin-top: 20px; max-width: 34ch; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: border-color .2s, color .2s; }
.footer-social a:hover { border-color: var(--brass); color: var(--brass); }
.footer h2 { font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: #fff; }
.footer-grid p + p { margin-top: 12px; }
.footer-phones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .45); }

/* ---------- Floating WhatsApp (desktop) & tab bar (mobile) ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 16px 30px -12px rgba(15, 80, 40, .6); transition: transform .2s var(--ease); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float .ico { width: 26px; height: 26px; }
.tabbar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .mainnav { margin-left: 8px; }
  .status-head { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 900px) {
  .hero-in, .split, .lens-range, .promise, .visit, .story, .faq, .contact { grid-template-columns: 1fr; }
  .split-head, .story-card { position: static; }
  .chart { margin: 0 auto; }
  .promise-mark { max-width: 280px; }
  .contact { margin-top: 0; padding-top: 28px; }
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- Phone (app-like) ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: calc(68px + env(safe-area-inset-top, 0px)); }
  .topbar-in { height: 64px; gap: 12px; }
  .mainnav, .hide-sm { display: none; }
  .show-sm { display: grid; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 1.18rem; }
  .brand small { font-size: .74rem; }

  .hero-in { padding-top: 36px; padding-bottom: 64px; gap: 40px; }
  .hero .display { margin-top: 18px; font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .hero-assoc { font-size: .85rem; }
  .hero .telugu { font-size: 1rem; margin-top: 16px; }
  .hero-lead { font-size: 1rem; }
  .hero-cta { margin-top: 26px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); margin-top: 34px; padding-top: 20px; }
  .hero-facts div { padding-right: 12px; margin-right: 12px; }
  .hero-facts dt { font-size: 1.15rem; }
  .hero-facts dd { font-size: .78rem; line-height: 1.4; }
  .chart { max-width: 340px; }
  .chart-card { font-size: 15px; }
  .chart-lens { width: 116px; height: 116px; margin: -58px 0 0 -58px; }
  .chart-sharp { -webkit-mask-image: radial-gradient(circle 56px at var(--lx) var(--ly), #000 95%, transparent 100%); mask-image: radial-gradient(circle 56px at var(--lx) var(--ly), #000 95%, transparent 100%); }
  .chart figcaption { left: 16px; right: 16px; padding: 13px 16px; }

  .section { padding: 64px 0; }
  .section-tight { padding: 36px 0; }
  .section-head { margin-bottom: 30px; }
  .lead { font-size: 1rem; }

  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 24px 0; border-right: 0; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .service:nth-child(odd) { border-right: 0; }
  .service .service-ico { grid-row: span 2; }
  .service h3 { margin-top: 2px; }

  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * max(20px, env(safe-area-inset-left))); padding: 2px max(20px, env(safe-area-inset-left)) 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: none; scroll-snap-align: start; }

  .steps { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 17px; }
  .step { border-top: 0; padding: 0 0 30px 34px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { top: -4px; left: -17px; }

  .voices { display: flex; overflow-x: auto; gap: 14px; margin: 0 -20px; padding: 2px 20px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .voices::-webkit-scrollbar { display: none; }
  .voice { flex: 0 0 84%; scroll-snap-align: center; padding: 24px; }
  .voice blockquote { font-size: 1.18rem; }

  .phones .sep { display: none; }
  .hours-row { padding: 16px 0; align-items: flex-start; }
  .hours-time { font-size: .95rem; }
  .visit-actions .btn { flex: 1 1 100%; }

  .reasons { grid-template-columns: 1fr; gap: 12px; }
  .reason { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 22px; }
  .reason .service-ico { grid-row: span 2; }
  .reason h3 { margin-top: 2px; }
  .assoc { flex-direction: column; align-items: stretch; }
  .assoc .btn { width: 100%; }
  .faq-item summary { font-size: 1.15rem; padding: 20px 0; }
  .faq-item p { padding-right: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 6px; }

  .wa-float { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 14px; color: #7a8698; font-size: .7rem; font-weight: 500; }
  .tab .ico { width: 23px; height: 23px; }
  .tab[aria-current="page"] { color: var(--navy); }
  .tab[aria-current="page"] .ico { stroke-width: 2; }
  .tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--brass); }
  .tab { position: relative; }
  .tab-wa { color: #1b9a4d; }
}

@media (max-width: 380px) {
  .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .hero-facts div:nth-child(2) { border-right: 0; }
  .hero-facts div:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* When launched as an installed app, hide web-only chrome. */
@media (display-mode: standalone) {
  .footer-base p:last-child { display: none; }
}
