:root {
  --ink: #102326;
  --muted: #647175;
  --teal: #0b6b6f;
  --teal-2: #118a8b;
  --mint: #dff6f2;
  --amber: #f2b84b;
  --rose: #f7e5df;
  --paper: #fbfdfd;
  --line: #dbe5e5;
  --shadow: 0 22px 50px rgba(13, 55, 61, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 253, 253, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 8px 24px;
  color: white;
  background: var(--teal);
  font-size: 13px;
}

.topbar a,
.topbar span,
.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar svg,
.contact-list svg,
.button svg,
.check-grid svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

i[data-lucide] {
  width: 1.1em;
  height: 1.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.1em;
  font-style: normal;
  line-height: 1;
}

i[data-lucide]::before {
  content: "•";
  font-size: 1em;
}

i[data-lucide="phone"]::before,
i[data-lucide="phone-call"]::before {
  content: "☎";
}

i[data-lucide="mail"]::before {
  content: "✉";
}

i[data-lucide="clock-3"]::before,
i[data-lucide="calendar-clock"]::before,
i[data-lucide="timer"]::before {
  content: "◷";
}

i[data-lucide="menu"]::before {
  content: "☰";
}

i[data-lucide="check"]::before {
  content: "✓";
}

i[data-lucide="arrow-down"]::before {
  content: "↓";
}

i[data-lucide="message-circle"]::before {
  content: "○";
}

i[data-lucide="map-pin"]::before {
  content: "⌖";
}

i[data-lucide="send"]::before,
i[data-lucide="calendar-plus"]::before {
  content: "+";
}

.navbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
}

.brand img {
  width: 172px;
  height: auto;
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  color: #253d41;
  font-size: 14px;
  font-weight: 700;
}

.nav-menu a {
  padding: 8px 0;
}

.nav-menu a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
}

.nav-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta,
.button.primary {
  color: white;
  background: var(--teal);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11, 107, 111, 0.18);
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding: 90px 24px 42px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 641px) {
  .hero-media {
    background: url("assets/hero.webp") center / cover no-repeat;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 29, 33, 0.86) 0%, rgba(4, 29, 33, 0.58) 47%, rgba(4, 29, 33, 0.12) 100%);
}

.hero-content {
  width: min(680px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-2);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 900;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.hero-stats span {
  min-height: 92px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  font-size: 27px;
  line-height: 1.1;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 24px;
}

@supports (content-visibility: auto) {
  .section,
  .eye-lab,
  .footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

.eye-lab {
  display: grid;
  grid-template-columns: minmax(320px, 0.52fr) minmax(0, 1fr);
  min-height: 720px;
  scroll-margin-top: 122px;
  background: #071d22;
  color: white;
  overflow: hidden;
}

.eye-lab-copy {
  display: grid;
  align-content: center;
  padding: 70px max(24px, calc((100vw - 1180px) / 2)) 70px 24px;
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eye-lab-copy h2 {
  max-width: 520px;
  color: white;
}

.eye-lab-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.eye-facts {
  width: min(100%, 520px);
  min-height: 160px;
  margin: 28px 0 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.part-kicker {
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eye-facts h3 {
  color: white;
  font-size: 28px;
}

.eye-facts p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.eye-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 540px);
}

.eye-chip {
  min-height: 40px;
  padding: 9px 13px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.eye-chip.is-active,
.eye-chip:hover {
  color: #071d22;
  background: var(--amber);
  border-color: var(--amber);
}

.eye-scene-wrap {
  position: relative;
  min-height: 720px;
}

.sketchfab-eye {
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: block;
  border: 0;
  background:
    radial-gradient(circle at 56% 46%, rgba(47, 206, 190, 0.2), transparent 32%),
    linear-gradient(135deg, #0c3238, #041116);
}

.sketchfab-eye:not([src]) {
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 45%, rgba(255, 245, 214, 0.18), transparent 11%),
    radial-gradient(circle at 62% 45%, rgba(211, 93, 89, 0.22), transparent 21%),
    radial-gradient(circle at 48% 52%, rgba(255, 145, 54, 0.3), transparent 35%),
    linear-gradient(135deg, #0c3238, #041116);
}

.eye-model-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  min-height: 48px;
  padding: 13px 18px;
  color: #071d22;
  background: white;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.eye-model-loader:hover {
  background: var(--amber);
}

.eye-model-link {
  width: fit-content;
}

.eye-hint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.eye-hint svg {
  width: 18px;
  height: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.intro,
.split-panel,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.section-text p,
.section-heading p,
.split-panel p,
.contact p {
  color: var(--muted);
  font-size: 17px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.check-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 750;
}

.check-grid svg {
  color: var(--teal);
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: end;
  gap: 16px;
}

.image-stack img,
.split-panel img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
}

.image-stack img:last-child {
  aspect-ratio: 4 / 4.8;
  margin-bottom: 42px;
}

.services,
.why,
.cataract {
  max-width: none;
  background: #f0f8f7;
}

.services > *,
.why > *,
.cataract > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.service-grid,
.why-grid,
.process-grid,
.doctor-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article,
.why-grid article,
.process-grid div,
.doctor-card,
.contact-form,
.location-map,
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 66, 0.07);
}

.service-grid article {
  min-height: 220px;
  padding: 24px;
}

.service-grid svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--teal);
}

.service-grid p,
.why-grid p,
.process-grid p,
.doctor-card p,
.faq p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 900;
}

.inline-links {
  margin: 18px 0 22px;
  color: var(--muted);
  font-weight: 750;
}

.inline-links a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.centered-links {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.split-panel {
  max-width: 1180px;
}

.split-panel img {
  aspect-ratio: 5 / 4;
}

.feature-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 22px 0 28px;
  color: #33484c;
  font-weight: 650;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid div {
  min-height: 230px;
  padding: 22px;
}

.process-grid span,
.why-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.doctor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doctor-card {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 22px;
  padding: 18px;
  align-items: center;
}

.doctor-card img {
  width: 156px;
  height: 156px;
  object-fit: cover;
  border-radius: var(--radius);
}

.role {
  color: var(--teal);
  font-weight: 800;
}

.why-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-grid article {
  min-height: 238px;
  padding: 22px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 20px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
}

.faq p {
  margin: 14px 0 0;
}

.not-found {
  max-width: 980px;
  margin: 0 auto;
  padding: 110px 24px;
  text-align: center;
}

.not-found h1 {
  max-width: 720px;
  margin: 0 auto 16px;
}

.not-found > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 18px;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.seo-link-grid a {
  padding: 16px;
  color: #254447;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 66, 0.07);
  font-weight: 850;
}

.contact {
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  color: #284246;
  font-weight: 700;
}

.contact-list svg {
  color: var(--teal);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.instagram-section {
  max-width: none;
  background: #f0f8f7;
}

.instagram-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.instagram-feed {
  min-height: 360px;
  padding: 10px 0;
}

.location-map {
  overflow: hidden;
  min-height: 360px;
}

.location-map iframe {
  width: 100%;
  height: 450px;
  display: block;
}

label {
  display: grid;
  gap: 7px;
  color: #29464a;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #f8fbfb;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(17, 138, 139, 0.18);
  border-color: var(--teal);
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 28px 42px;
  align-items: center;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  color: white;
  background: #102326;
}

.service-hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding: 110px 24px 70px;
  color: white;
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero.jpg") center / cover no-repeat;
}

.diabetic-hero::before {
  background-image: url("assets/diabetic-eyecare.webp");
}

.doctor-hero::before {
  background-image: url("assets/exam.jpg");
}

.blog-hero::before {
  background-image: url("assets/patient.jpg");
}

.faq-hero::before {
  background-image: url("assets/hero.jpg");
}

.cataract-hero::before {
  background-image: url("assets/surgery.jpg");
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 34, 38, 0.9), rgba(5, 34, 38, 0.62), rgba(5, 34, 38, 0.18));
}

.service-hero-content {
  width: min(860px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.service-hero h1 {
  max-width: 940px;
  font-size: clamp(42px, 6vw, 74px);
}

.service-hero-content p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.proof-strip,
.risk-grid,
.condition-section,
.treatment-list {
  display: grid;
  gap: 18px;
}

.proof-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-strip article,
.risk-grid article,
.treatment-list article,
.appointment-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 66, 0.07);
}

.proof-strip article {
  min-height: 240px;
  padding: 24px;
}

.proof-strip svg,
.appointment-card svg {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--teal);
}

.proof-strip h2 {
  font-size: 24px;
}

.proof-strip p,
.condition-section p,
.treatment-list p,
.appointment-card p {
  color: var(--muted);
}

.condition-section {
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
}

.condition-points {
  display: grid;
  gap: 14px;
}

.condition-visual {
  display: grid;
  gap: 16px;
}

.condition-visual img,
.retina-stages img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.condition-points span {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: #f0f8f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
}

.condition-points svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex: 0 0 22px;
}

.risk-section,
.ai-section,
.diabetic-doctors,
.retina-stages {
  max-width: none;
  background: #f0f8f7;
}

.risk-section > *,
.ai-section > *,
.diabetic-doctors > *,
.retina-stages > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.retina-stages img {
  display: block;
  max-width: 920px;
  background: white;
}

.risk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.risk-grid article {
  min-height: 190px;
  padding: 22px;
}

.risk-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.diabetic-theme {
  --ink: #313c76;
  --muted: #5f587b;
  --teal: #4a3e7c;
  --teal-2: #5a3069;
  --mint: #f7e8f3;
  --amber: #d87baa;
  --rose: #f5dcdf;
  --paper: #fbf8fc;
  --line: rgba(74, 62, 124, 0.18);
  --shadow: 0 22px 50px rgba(49, 60, 118, 0.14);
}

.diabetic-theme .topbar {
  background: #313c76;
}

.diabetic-theme .nav-cta,
.diabetic-theme .button.primary {
  background: linear-gradient(135deg, #4a3e7c, #5a3069);
  box-shadow: 0 14px 30px rgba(74, 62, 124, 0.18);
}

.diabetic-theme .button.secondary {
  color: #313c76;
  border-color: rgba(216, 123, 170, 0.36);
}

.diabetic-theme .service-hero::after {
  background:
    linear-gradient(90deg, rgba(49, 60, 118, 0.94), rgba(90, 48, 105, 0.72), rgba(162, 45, 40, 0.22)),
    radial-gradient(circle at 72% 35%, rgba(216, 123, 170, 0.34), transparent 38%);
}

.diabetic-theme .eyebrow {
  color: #d87baa;
}

.diabetic-theme .proof-strip article,
.diabetic-theme .risk-grid article,
.diabetic-theme .treatment-list article,
.diabetic-theme .appointment-card,
.diabetic-theme .doctor-card {
  border-color: rgba(74, 62, 124, 0.16);
  box-shadow: 0 16px 42px rgba(49, 60, 118, 0.1);
}

.diabetic-theme .proof-strip article:nth-child(1),
.diabetic-theme .risk-grid article:nth-child(1),
.diabetic-theme .treatment-list article:nth-child(1) {
  border-top: 5px solid #4a3e7c;
}

.diabetic-theme .proof-strip article:nth-child(2),
.diabetic-theme .risk-grid article:nth-child(2),
.diabetic-theme .treatment-list article:nth-child(2) {
  border-top: 5px solid #a22d28;
}

.diabetic-theme .proof-strip article:nth-child(3),
.diabetic-theme .risk-grid article:nth-child(3),
.diabetic-theme .treatment-list article:nth-child(3) {
  border-top: 5px solid #d87baa;
}

.diabetic-theme .risk-grid article:nth-child(4),
.diabetic-theme .treatment-list article:nth-child(4) {
  border-top: 5px solid #5a3069;
}

.diabetic-theme .treatment-list article:nth-child(5),
.diabetic-theme .treatment-list article:nth-child(6) {
  border-top: 5px solid #313c76;
}

.diabetic-theme .proof-strip svg,
.diabetic-theme .appointment-card svg,
.diabetic-theme .condition-points svg {
  color: #a22d28;
}

.diabetic-theme .condition-points span {
  background: linear-gradient(135deg, rgba(216, 123, 170, 0.12), rgba(74, 62, 124, 0.07));
  border-color: rgba(216, 123, 170, 0.28);
}

.diabetic-theme .risk-section,
.diabetic-theme .ai-section,
.diabetic-theme .diabetic-doctors,
.diabetic-theme .retina-stages {
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 123, 170, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(49, 60, 118, 0.08), rgba(162, 45, 40, 0.07));
}

.diabetic-theme .risk-grid span {
  background: linear-gradient(135deg, #a22d28, #5a3069);
}

.diabetic-theme .ai-grid article svg,
.diabetic-theme .service-grid article svg {
  color: #5a3069;
}

.diabetic-theme .section-cta {
  display: flex;
  width: fit-content;
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
}

.diabetic-theme .risk-section,
.diabetic-theme .ai-section,
.diabetic-theme .treatment-section {
  scroll-margin-top: 150px;
}

.diabetic-theme .risk-section .section-heading,
.diabetic-theme .ai-section .section-heading,
.diabetic-theme .treatment-section .section-heading {
  max-width: 860px;
}

.diabetic-theme .risk-section .section-heading h2,
.diabetic-theme .ai-section .section-heading h2,
.diabetic-theme .treatment-section .section-heading h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.08;
}

.screening-rule,
.final-authority {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 18px 20px;
  color: #313c76;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 123, 170, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(49, 60, 118, 0.08);
}

.screening-rule p,
.final-authority {
  font-weight: 800;
}

.screening-rule svg {
  flex: 0 0 auto;
  color: #a22d28;
}

.final-authority {
  display: block;
}

.diabetic-theme .contact.service-contact {
  background:
    linear-gradient(135deg, rgba(49, 60, 118, 0.96), rgba(90, 48, 105, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(216, 123, 170, 0.28), transparent 36%);
}

.diabetic-theme .service-contact h2,
.diabetic-theme .service-contact > div > p:not(.eyebrow) {
  color: #fff7fb;
}

.diabetic-theme .service-contact .eyebrow {
  color: #f2a8cc;
}

.diabetic-theme .service-contact .contact-list,
.diabetic-theme .service-contact .contact-list a,
.diabetic-theme .service-contact .contact-list span {
  color: rgba(255, 247, 251, 0.92);
}

.diabetic-theme .service-contact .contact-list svg {
  color: #d87baa;
}

.diabetic-theme .service-contact .appointment-card h3 {
  color: #313c76;
}

.treatment-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.treatment-list article {
  padding: 22px;
}

.appointment-card {
  padding: 28px;
}

.service-contact {
  align-items: center;
}

.doctor-intro {
  padding-bottom: 34px;
}

.doctor-profile-section {
  display: grid;
  gap: 34px;
}

.doctor-profile {
  display: grid;
  grid-template-columns: minmax(320px, 0.46fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 66, 0.07);
}

.doctor-profile.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
}

.doctor-profile.reverse .doctor-photo-panel {
  order: 2;
}

.doctor-photo-panel {
  align-self: start;
  min-height: 0;
  display: grid;
  align-items: center;
  background: #f0f8f7;
  border-radius: var(--radius);
  overflow: hidden;
}

.doctor-photo-panel img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.doctor-profile-copy {
  align-self: center;
  padding: 12px;
}

.doctor-profile-copy > p:not(.eyebrow):not(.role) {
  color: var(--muted);
  font-size: 17px;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.profile-columns h3 {
  margin-bottom: 12px;
}

.doctor-highlights {
  padding-top: 76px;
  padding-bottom: 86px;
}

.blog-section {
  max-width: 1180px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  display: grid;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 66, 0.07);
  overflow: hidden;
}

.blog-card.featured-post {
  grid-column: span 2;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
}

.blog-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.blog-card.featured-post img {
  height: 100%;
  min-height: 330px;
}

.blog-card > div {
  padding: 22px;
}

.post-meta {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card p:not(.post-meta),
.article-header p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.article-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 76px 24px 92px;
}

.article-header {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.article-header h1 {
  color: var(--ink);
  font-size: clamp(40px, 5vw, 68px);
}

.article-header > p:not(.post-meta) {
  font-size: 20px;
}

.article-header img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-body {
  display: grid;
  gap: 18px;
  font-size: 18px;
}

.article-body h2 {
  margin: 22px 0 0;
  font-size: 30px;
}

.article-body ul {
  margin: 0;
  padding-left: 22px;
}

.blog-gallery-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.gallery-copy {
  max-width: 820px;
}

.gallery-copy p:not(.eyebrow),
.camp-section .section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.help-card {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("assets/exam.jpg") center / cover;
  box-shadow: var(--shadow);
}

.help-card h3 {
  max-width: 260px;
  color: #173f70;
  font-size: 42px;
  line-height: 1.08;
}

.help-card p {
  color: #173f70;
  font-size: 24px;
  font-weight: 900;
}

.photo-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 66, 0.07);
}

.camp-section {
  max-width: none;
  background: #f0f8f7;
}

.camp-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.camp-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.camp-gallery img {
  height: 230px;
}

.faq-page-section {
  max-width: 1040px;
}

.faq-page-list {
  display: grid;
  gap: 14px;
}

.faq-page-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 63, 66, 0.07);
  overflow: hidden;
}

.faq-page-list summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.faq-page-list details[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f0f8f7;
}

.faq-page-list details > div {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
}

.faq-page-list p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.faq-more {
  margin-top: 26px;
  margin-bottom: 0;
}

.appointment-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #f0f8f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 86px;
}

.appointment-strip h2 {
  margin-bottom: 8px;
}

.appointment-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.cataract-process,
.surgery-options {
  max-width: none;
  background: #f0f8f7;
}

.cataract-process > *,
.surgery-options > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.surgery-options ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.doctor-spotlight {
  max-width: 1040px;
}

.spotlight-card {
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 26px;
}

.spotlight-card img {
  width: 220px;
  height: 220px;
}

.footer img {
  width: min(190px, 100%);
  height: auto !important;
  max-height: 82px;
  aspect-ratio: 934 / 381;
  object-fit: contain;
  margin-bottom: 12px;
  background: white;
  border-radius: 4px;
}

.footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 800;
}

.footer-links a,
.copyright a {
  color: white;
}

.footer-links a:hover,
.copyright a:hover {
  color: #9edbd9;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 13px;
}

.legal-page .article-body {
  max-width: 860px;
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .navbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-menu.is-open {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    justify-content: stretch;
    padding: 12px 0;
  }

  .nav-menu.is-open a {
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .hero {
    min-height: 760px;
  }

  .hero-stats,
  .eye-lab,
  .intro,
  .split-panel,
  .contact,
  .condition-section,
  .doctor-profile,
  .doctor-profile.reverse,
  .profile-columns,
  .blog-grid,
  .blog-card.featured-post,
  .blog-gallery-section,
  .photo-grid,
  .camp-gallery,
  .appointment-strip,
  .service-grid,
  .process-grid,
  .doctor-grid,
  .why-grid,
  .proof-strip,
  .risk-grid,
  .seo-link-grid,
  .treatment-list {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    grid-template-columns: 120px 1fr;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .doctor-profile.reverse .doctor-photo-panel {
    order: 0;
  }

  .blog-card.featured-post {
    grid-column: auto;
  }

  .blog-card.featured-post img {
    min-height: 0;
    height: 260px;
  }

  .help-card {
    min-height: 280px;
  }

  .doctor-card img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 640px) {
  .navbar {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand img {
    width: 136px;
  }

  .hero {
    min-height: 0;
    padding: 58px 18px 34px;
    background: #102326;
  }

  .hero-media,
  .intro .image-stack,
  #diabetic > img {
    display: none;
  }

  .eye-lab {
    min-height: 0;
  }

  .eye-lab-copy {
    margin-left: 0;
    padding: 58px 18px 24px;
  }

  .eye-scene-wrap,
  .sketchfab-eye {
    min-height: 520px;
  }

  .eye-hint {
    left: 18px;
    right: auto;
    bottom: 18px;
  }

  .service-hero {
    min-height: 660px;
    padding: 78px 18px 42px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(4, 29, 33, 0.22), rgba(4, 29, 33, 0.62));
  }

  .service-hero::after {
    background: linear-gradient(180deg, rgba(5, 34, 38, 0.54), rgba(5, 34, 38, 0.9));
  }

  .service-hero::before {
    background-image: none;
  }

  .hero-content {
    margin-left: 0;
  }

  .service-hero-content {
    margin-left: 0;
  }

  h1 {
    font-size: 46px;
  }

  .service-hero h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 64px 18px;
  }

  .check-grid,
  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:last-child {
    margin-bottom: 0;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .spotlight-card img {
    width: 100%;
    height: auto;
  }

  .doctor-profile {
    padding: 16px;
  }

  .photo-grid img,
  .camp-gallery img {
    height: 220px;
  }

  .help-card h3 {
    font-size: 32px;
  }

  .faq-page-list summary {
    padding: 18px;
    font-size: 18px;
  }

  .faq-page-list details > div {
    padding: 18px;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 36px 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
