/* ==========================================================================
   Aastha Eye Care — shared stylesheet
   Palette : warm paper ground, teal clinical primary, amber warmth accent
   Type    : Fraunces (display serif) + Figtree (body / UI sans)
   ========================================================================== */

:root {
  --paper:        #f3f6f2;
  --surface:      #ffffff;
  --surface-2:    #eaf1e4;
  --ink:          #1a2830;
  --muted:        #58595b;
  --line:         #dbe4d6;
  --primary:      #1b9dd9;
  --primary-deep: #0e6f9e;
  --primary-soft: #e2f1fb;
  --accent:       #6cb52d;
  --accent-soft:  #e9f3d9;
  --focus:        #1b9dd9;

  /* fixed brand marks — never re-themed */
  --brand-green:      #7ab52e;
  --brand-green-deep: #5b9f2d;
  --brand-blue:       #1b9dd9;
  --brand-blue-deep:  #0e6f9e;
  --brand-navy:       #17242c;

  --container: 1120px;
  --radius:    14px;
  --radius-sm: 9px;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(1.95rem, 1.7rem + 1.25vw, 2.85rem);
  --step-4:  clamp(2.5rem, 2.0rem + 2.5vw, 4rem);

  --shadow-sm: 0 1px 2px rgba(15, 37, 35, 0.06), 0 2px 8px rgba(15, 37, 35, 0.05);
  --shadow-md: 0 12px 40px rgba(10, 77, 84, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #0c1820;
    --surface:      #122631;
    --surface-2:    #17303b;
    --ink:          #e9f1f2;
    --muted:        #9fb2b0;
    --line:         #22414c;
    --primary:      #3fb5e6;
    --primary-deep: #86d3f3;
    --primary-soft: #123243;
    --accent:       #8bc53f;
    --accent-soft:  #20301a;
    --focus:        #3fb5e6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 44px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --paper:        #0c1a19;
  --surface:      #122827;
  --surface-2:    #17302e;
  --ink:          #eaf1ee;
  --muted:        #9db4b0;
  --line:         #244543;
  --primary:      #3fb8c2;
  --primary-deep: #7fd6dd;
  --primary-soft: #163b3d;
  --accent:       #e7ab55;
  --accent-soft:  #33291a;
  --focus:        #3fb8c2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 44px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: var(--primary-deep); }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--primary-deep);
  margin: 0;
}

.prose { max-width: 63ch; }
.prose p + p { margin-top: 1rem; }

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--primary-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand svg { width: 40px; height: 40px; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { flex: none; }
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-name span { display: block; font-family: "Figtree", sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--primary-deep); background: var(--primary-soft); }

.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--primary-deep);
  border-color: var(--line);
}
.btn--accent { --btn-bg: var(--accent); --btn-fg: #10240b; }
.btn--lg { padding: 0.85rem 1.6rem; font-size: 1rem; }

.nav-toggle { display: none; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--step-4);
  margin-top: 0.6rem;
}
.hero .lede {
  font-size: var(--step-1);
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.hero-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero-figure svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow-md)); }
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* ---- Photo frames -------------------------------------------------- */
figure { margin: 0; }
.media-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame.ratio-4-3 { aspect-ratio: 4 / 3; }
.media-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.media-frame.ratio-3-2 { aspect-ratio: 3 / 2; }
figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.photo-band {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.team-photo {
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 560px;
}
.team-photo .media-frame { aspect-ratio: 3 / 2; }
.team-photo .media-frame img { object-position: center top; }

.trust-row {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-row div {
  background: var(--surface);
  padding: 1.3rem 1.1rem;
}
.trust-row .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--step-2);
  color: var(--primary-deep);
  display: block;
}
.trust-row .lbl { font-size: var(--step--1); color: var(--muted); }

/* ---- Sections -------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.5rem; }
.section-head p { color: var(--muted); margin-top: 0.9rem; font-size: var(--step-1); }

/* ---- Feature grid --------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  margin-bottom: 0.3rem;
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); font-size: 0.96rem; }

/* value list */
.values {
  display: grid;
  gap: 1.4rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: v;
}
.values li { list-style: none; }
.values h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.values p { color: var(--muted); font-size: 0.96rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ---- Doctor profiles ------------------------------------------------- */
.team {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.profile-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.profile-head h3 { font-size: var(--step-1); }
.profile .role { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.profile-body h4 {
  font-family: "Figtree", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-deep);
  margin: 1.1rem 0 0.45rem;
}
.profile-body ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.profile-body .note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.figure-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ---- Contact ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.info-list { display: grid; gap: 1.1rem; }
.info-list .row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.info-list .row:last-child { border-bottom: 0; }
.info-list .ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.info-list .k { font-weight: 600; font-size: 0.95rem; }
.info-list .v { color: var(--muted); font-size: 0.95rem; }
.info-list .v a { color: var(--primary-deep); }

.hours {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours h3 { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
.hours dl { margin: 0; padding: 0.6rem 1.3rem 1.1rem; }
.hours dl > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.hours dl > div:last-child { border-bottom: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 11;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  background: var(--accent-soft);
  color: var(--brand-green-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---- Google reviews badge ------------------------------------------ */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.rating-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.rating-badge .g-logo { width: 20px; height: 20px; flex: none; }
.rating-badge .stars { color: #f9ab00; letter-spacing: 1.5px; font-size: 0.8rem; }
.rating-badge .arrow { color: var(--muted); font-weight: 400; }

.map-card {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, var(--primary-soft), transparent 55%),
    repeating-linear-gradient(45deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  padding: 1.6rem;
  display: flex;
  align-items: flex-end;
  min-height: 190px;
}

/* ---- Placeholder token ------------------------------------------------ */
.ph {
  background: var(--accent-soft);
  border-bottom: 2px dashed var(--accent);
  padding: 0 0.28em;
  border-radius: 3px;
  font-style: normal;
  white-space: nowrap;
}

.callout {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--primary-deep);
}

/* ---- CTA band ------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, #3f7d1e 0%, #1a7fae 55%, #0c6591 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { color: #fff; font-size: var(--step-2); }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 0.4rem; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn--accent { --btn-bg: #fff; --btn-fg: #0e6f9e; }

/* ---- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #cdddd9;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
:root[data-theme="dark"] .site-footer,
:root:not([data-theme="light"]) .site-footer { background: #08131a; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  font-family: "Figtree", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #7fa8a3;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #8fb3af;
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { max-width: 340px; margin-inline: auto; order: -1; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    gap: 0.4rem;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem clamp(1.1rem, 4vw, 2.5rem) 1.2rem;
    gap: 0.2rem;
  }
  .nav.open { display: flex; }
  .nav .btn { justify-content: center; margin-top: 0.4rem; }
}

@media (max-width: 460px) {
  .trust-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
