/* ==========================================================================
   Dr. Neha Pawaskar — Consultant Ophthalmologist & Cataract (Phaco) Surgeon
   Stylesheet map:
   1. Design tokens      7. Mobile nav drawer    13. Testimonials
   2. Reset / base        8. Hero                 14. FAQ
   3. Layout helpers     9. About                 15. Contact / footer
   4. Skip link          10. Services / Trust     16. Mobile sticky bar
   5. Header / nav       11. Gallery              17. Responsive tweaks
   6. Buttons            12. Locations
   ========================================================================== */

/* -------------------- 1. Design tokens -------------------- */
:root {
  /* Color */
  --brand-900: #0c2a4a;
  --brand-700: #145a8c;
  --brand-500: #2b7fc4;
  --brand-100: #e7f1fa;
  --accent-600: #e8623f;
  --accent-700: #c94f30;
  --whatsapp-green: #25d366;
  --whatsapp-green-dark: #1da851;
  --color-bg: #ffffff;
  --color-surface: #f6f9fc;
  --color-text: #1a2433;
  --color-text-muted: #5b6472;
  --color-border: #e1e6ed;

  /* Type */
  --font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radius / shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(11, 32, 56, 0.08), 0 1px 2px rgba(11, 32, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 32, 56, 0.12);
  --shadow-header: 0 2px 12px rgba(11, 32, 56, 0.08);

  /* Layout */
  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2.5rem);
  --header-height: 72px;
}

/* -------------------- 2. Reset / base -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-600);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  color: var(--brand-900);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-4); }

ul { margin: 0; padding: 0; }
li { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-600);
  outline-offset: 2px;
}

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

/* -------------------- 3. Layout helpers -------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-9);
}

.section--alt {
  background: var(--color-surface);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-weight: var(--fw-semibold);
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: var(--space-2);
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* -------------------- 4. Skip link -------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--brand-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* -------------------- 5. Header / nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  box-shadow: var(--shadow-header);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.25;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.15rem;
  color: var(--brand-900);
}

.brand__credentials {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  display: flex;
  gap: var(--space-6);
}

.primary-nav a {
  color: var(--brand-900);
  text-decoration: none;
  font-weight: var(--fw-medium);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  border-bottom-color: var(--accent-600);
}

.header-ctas {
  display: none;
  gap: var(--space-3);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--brand-900);
}

.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle:not([aria-expanded="true"]) .icon-close { display: none; }

/* -------------------- 6. Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85em 1.5em;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn .icon { width: 1.15em; height: 1.15em; }

.btn:hover { transform: translateY(-2px); }

.btn-call {
  background: var(--brand-700);
  color: #fff;
}
.btn-call:hover { background: var(--brand-900); box-shadow: var(--shadow-md); }

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #06301b;
}
.btn-whatsapp:hover { background: var(--whatsapp-green-dark); box-shadow: var(--shadow-md); color: #06301b; }

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--brand-900);
}
.btn-outline:hover { border-color: var(--brand-700); background: var(--brand-100); }

.btn-sm {
  padding: 0.6em 1.1em;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* -------------------- 7. Mobile nav drawer -------------------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--color-border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a:not(.btn) {
  padding: var(--space-3) var(--space-2);
  color: var(--brand-900);
  text-decoration: none;
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
}

.mobile-nav a:not(.btn):hover {
  background: var(--brand-100);
}

.mobile-nav__ctas {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* -------------------- 8. Hero -------------------- */
.hero {
  padding-block: var(--space-8) var(--space-9);
  background: linear-gradient(180deg, var(--brand-100) 0%, var(--color-bg) 100%);
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__tagline {
  color: var(--accent-600);
  font-weight: var(--fw-semibold);
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.hero__h1-sub {
  display: block;
  font-size: 1.05rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.hero__credentials {
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-4);
}

.hero__bio {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block: var(--space-6);
}

.hero__ctas .btn {
  font-size: 1.05rem;
  padding: 0.95em 1.75em;
}

.hero__portrait-wrap {
  position: relative;
  justify-self: center;
  width: min(340px, 80vw);
}

.hero__portrait {
  width: 100%;
  height: auto; /* without this, the HTML height="1000" attribute wins over
                   aspect-ratio below and stretches the image */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero__portrait-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2) var(--space-5);
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--brand-900);
  white-space: nowrap;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-border);
}

.credibility-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--brand-900);
  font-weight: var(--fw-semibold);
}

.credibility-strip__item .icon {
  width: 28px;
  height: 28px;
  color: var(--accent-600);
  flex-shrink: 0;
}

/* -------------------- 9. About -------------------- */
.about__grid {
  display: grid;
  gap: var(--space-8);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.timeline__step {
  display: flex;
  gap: var(--space-4);
}

.timeline__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--accent-600);
  flex-shrink: 0;
}

.timeline__marker .icon { width: 20px; height: 20px; }

.timeline__title {
  font-weight: var(--fw-semibold);
  color: var(--brand-900);
}

.timeline__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.chip {
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.approach-intro {
  margin-top: var(--space-6);
  font-weight: var(--fw-medium);
  color: var(--brand-900);
}

.approach-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.approach-list .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* -------------------- 10. Services / Trust -------------------- */
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--brand-100);
  color: var(--accent-600);
  margin-bottom: var(--space-4);
}

.service-card__icon .icon { width: 28px; height: 28px; }

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.trust-strip {
  background: var(--brand-700);
  color: #fff;
}

.trust-strip .section-head p { color: rgba(255,255,255,0.75); }
.trust-strip h2 { color: #fff; }

.trust-strip__grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.trust-badge {
  text-align: center;
  padding: var(--space-5);
}

.trust-badge .icon {
  width: 32px;
  height: 32px;
  color: var(--accent-600);
  margin-bottom: var(--space-3);
}

.trust-badge__label {
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
}

.trust-badge__note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-1);
}

/* -------------------- 11. Gallery -------------------- */
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(12,42,74,0) 0%, rgba(12,42,74,0.75) 100%);
  color: #fff;
  padding: var(--space-6) var(--space-4) var(--space-3);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
}

/* -------------------- 12. Locations -------------------- */
.location-card {
  padding: 0;
  overflow: hidden;
}

.location-card__map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}

.location-card__body {
  padding: var(--space-6);
}

.location-card__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.location-card__row .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-600);
  margin-top: 2px;
  flex-shrink: 0;
}

.location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* -------------------- 13. Testimonials -------------------- */
.testimonial-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-8);
}

.testimonial-card .icon-quote-mark {
  width: 36px;
  height: 36px;
  color: var(--brand-100);
  margin: 0 auto var(--space-4);
}

.testimonial-card p {
  font-size: 1.15rem;
  color: var(--brand-900);
  font-style: italic;
}

.testimonial-card p.testimonial-card__author {
  font-style: normal;
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.testimonial-more {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

/* -------------------- 14. FAQ -------------------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-weight: var(--fw-semibold);
  color: var(--brand-900);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .icon { color: var(--accent-600); transition: transform 0.2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }

.faq-item p {
  color: var(--color-text-muted);
  padding-bottom: var(--space-4);
  margin: 0;
}

/* -------------------- 15. Contact / footer -------------------- */
.site-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,0.85);
  padding-block: var(--space-8) var(--space-6);
}

.footer__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: var(--space-7);
}

.footer__heading {
  color: #fff;
  font-size: 1rem;
  margin-bottom: var(--space-4);
}

.footer__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 0.92rem;
}

.footer__row .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-600);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__row a { color: rgba(255,255,255,0.85); }

.footer__socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.social-icon:hover { background: var(--accent-600); }
.social-icon .icon { width: 20px; height: 20px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* -------------------- 16. Mobile sticky bar -------------------- */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  box-shadow: 0 -4px 16px rgba(11,32,56,0.15);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-sticky-bar .btn {
  border-radius: 0;
  padding-block: var(--space-4);
}

/* -------------------- 17. Responsive -------------------- */
@media (min-width: 640px) {
  .hero__ctas .btn,
  .location-card__actions .btn { width: auto; }
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

/* The full inline header (brand + 4 nav links + 2 CTA buttons) needs more
   room than a 768px tablet gives it — at that width it wraps awkwardly.
   Keep the hamburger + mobile-sticky-bar pattern through tablet widths and
   only switch to the full desktop header at 1024px, where it's been
   verified to fit comfortably. */
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .header-ctas { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .mobile-sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 1023.98px) {
  body { padding-bottom: 64px; } /* room for sticky CTA bar */
}

/* Mobile hero order: small photo first (visual anchor), then name/credentials,
   then the description, then the Call/WhatsApp CTAs + phone number below it —
   tightened spacing throughout so this whole sequence still lands within the
   first screen on short phones, with the persistent mobile sticky bar as a
   fallback for anything that doesn't quite fit above the fold. */
@media (max-width: 767.98px) {
  :root { --header-height: 60px; }

  .brand__name { font-size: 1rem; }
  .brand__credentials { font-size: 0.66rem; }

  /* --space-9 (96px) top+bottom on every section is sized for desktop and
     leaves a large dead gap between sections on mobile screens. */
  .section { padding-block: var(--space-6); }

  .hero { padding-block: var(--space-4) var(--space-5); }

  /* .hero__grid's gap (var(--space-8), 64px) is sized for the desktop
     side-by-side layout. On mobile the grid collapses to a single stacked
     column, so that same gap shows up as a large vertical gap between the
     photo and the content block below it — zero it out and let
     .hero__portrait-wrap's own margin-bottom control the spacing instead. */
  .hero__grid { gap: 0; }

  .hero__portrait-wrap {
    order: 1;
    width: min(96px, 26vw);
    margin: 0 auto var(--space-3);
  }

  .hero__portrait-badge { display: none; } /* redundant with the tagline text right below on mobile */

  .hero__content { order: 2; }

  .hero__tagline { order: 1; text-align: center; font-size: 1rem; margin-bottom: 0; }
  h1#hero-heading { order: 2; text-align: center; margin-bottom: var(--space-2); }
  .hero__credentials { order: 3; margin-bottom: 0; text-align: center; font-size: 0.9rem; }
  .hero__bio { order: 4; margin-top: var(--space-3); margin-bottom: var(--space-2); }
  .hero__ctas {
    order: 5;
    margin-block: var(--space-3);
    justify-content: center;
    flex-wrap: nowrap;
    gap: var(--space-2);
  }
  .hero__ctas .btn {
    font-size: 0.92rem;
    padding: 0.7em 1em;
    flex: 1 1 0;
  }
  .credibility-strip {
    order: 6;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
  }

  /* Force a 2x2 grid instead of 4 stacked rows, to cut scroll length. */
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2) var(--space-3);
  }

  .trust-badge {
    padding: var(--space-4) var(--space-2);
  }
}
