/* ═══════════════════════════════════════════════════════════════
   MADHAVI NETRALAYA — RESPONSIVE STYLESHEET
   responsive.css — Link this AFTER your main styles on every page

   Breakpoints:
   Mobile:  ≤ 767px
   Tablet:  768px – 1023px
   Desktop: 1024px – 1279px
   Wide:    ≥ 1280px  (base styles in HTML files)
═══════════════════════════════════════════════════════════════ */

/* ─── GLOBAL BASE (all screens) ──────────────────────────── */

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

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

/* Prevent horizontal scroll (avoid overflow:clip on body — breaks fixed mobile nav on some browsers) */
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Hindi UI (when /hi/… + translations.js applies lang-hi) */
body.lang-hi {
  font-family: "Hind", "Plus Jakarta Sans", system-ui, sans-serif;
}


/* ══════════════════════════════════════════════════════════════
   UTILITY BAR
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .util-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 14px;
    padding: 5px 12px;
    font-size: 10.5px;
    line-height: 1.35;
    text-align: center;
  }
  .util-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 14px;
    align-items: center;
  }
  /* Hide address on mobile to save space */
  .util-bar > span:first-child {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .util-bar { padding: 8px 24px; font-size: 12px; }
  .util-right { gap: 18px; }
}


/* ══════════════════════════════════════════════════════════════
   HEADER / NAVIGATION
══════════════════════════════════════════════════════════════ */

/* EN ↔ HI site switcher (injected before #hamburger) */
.lang-site-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-mid, #005f5f);
  background: var(--teal-pale, #e8f4f4);
  border: 1px solid rgba(0, 122, 122, 0.22);
  flex-shrink: 0;
  line-height: 1.2;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.lang-site-pill:hover {
  background: rgba(0, 122, 122, 0.12);
  border-color: rgba(0, 122, 122, 0.38);
  color: var(--teal-dark, #003d3d);
}

/* ENG | हिन्दी segmented control (components/header.html) */
.mn-lang-seg {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 122, 122, 0.08);
  border: 1px solid rgba(0, 122, 122, 0.2);
  flex-shrink: 0;
}
.mn-lang-opt {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--teal-mid, #005f5f);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  line-height: 1.2;
}
.mn-lang-opt:hover {
  color: var(--teal-dark, #003d3d);
  background: rgba(255, 255, 255, 0.35);
}
body.lang-hi .mn-lang-opt[data-lang-target='hi'],
body:not(.lang-hi) .mn-lang-opt[data-lang-target='en'] {
  background: #fff;
  color: var(--teal-dark, #003d3d);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.mn-lang-sep {
  color: rgba(0, 122, 122, 0.35);
  font-size: 11px;
  user-select: none;
  padding: 0 1px;
}
.mn-lang-seg--compact .mn-lang-opt {
  font-size: 11px;
  padding: 5px 8px;
}

/* Hidden on desktop; shown inside @media (max-width: 1023px) below */
.hamburger {
  display: none;
}

@media (max-width: 1023px) {

  .header-inner {
    padding: 0 20px;
    height: 64px;
    position: relative;
  }

  /* Hide desktop nav and action buttons */
  .main-nav,
  .header-actions {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 950;
    align-self: center;
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* Hamburger → X animation */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Cluster language pill + hamburger on the right */
  .lang-site-pill {
    margin-left: auto;
    margin-right: 10px;
  }
  .lang-site-pill + .hamburger {
    margin-left: 0 !important;
  }

  /* Mobile nav drawer */
  .mobile-nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: white;
    box-shadow: -4px 0 32px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 0;
  }

  .mobile-nav.open { right: 0; }

  /* Overlay backdrop */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.32s ease;
  }
  .nav-overlay.open {
    display: block;
    opacity: 1;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--teal-dark);
  }

  .mobile-nav-logo-img {
    height: 36px;
    max-width: min(200px, 72vw);
    width: auto;
    object-fit: contain;
    display: block;
  }

  .mobile-nav-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
  }
  .mobile-nav-close:hover { background: rgba(255,255,255,0.25); }

  .mobile-nav-links {
    flex: 1;
    padding: 12px 0;
  }

  .mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid rgba(0,122,122,0.08);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a.active {
    background: var(--teal-pale);
    color: var(--teal);
  }

  .mobile-nav-links .mobile-nav-section {
    margin: 16px 0 0;
    padding: 12px 24px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: none;
  }

  .mobile-nav-links .mobile-nav-section::after {
    display: none;
  }

  .mobile-nav-links a::after {
    content: '›';
    margin-left: auto;
    font-size: 18px;
    opacity: 0.4;
  }

  .mobile-nav-actions {
    padding: 20px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-actions .btn-book-mobile {
    display: block;
    text-align: center;
    background: var(--teal);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.18s;
    text-decoration: none;
  }

  .mobile-nav-actions .btn-wa-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--teal, #007a7a);
    color: var(--teal, #007a7a);
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.18s;
    text-decoration: none;
  }

  .mobile-nav-actions .btn-wa-mobile:hover {
    background: var(--teal, #007a7a);
    color: white;
  }

  .mobile-nav-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--teal-pale);
    border-radius: 8px;
    width: 100%;
    transition: background 0.18s;
  }
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
  .hamburger { display: none !important; }
  .mobile-nav { display: none !important; }
  .nav-overlay { display: none !important; }
}

/* Tablet: show header actions but compress nav */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner { padding: 0 24px; }
}


/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .breadcrumb { padding: 10px 16px; }
  .breadcrumb-inner { font-size: 12px; flex-wrap: wrap; gap: 5px; }
}


/* ══════════════════════════════════════════════════════════════
   PAGE HERO (split layout)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .page-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .hero-left {
    padding: 40px 20px 36px !important;
    order: 1;
  }

  .hero-right {
    height: 260px !important;
    order: 0; /* image above text on mobile */
  }

  .hero-right::after {
    display: none; /* remove left gradient fade on mobile */
  }

  .hero-eyebrow {
    font-size: 10px !important;
    padding: 5px 12px !important;
    margin-bottom: 16px !important;
  }

  .hero-headline {
    font-size: clamp(28px, 7vw, 38px) !important;
    margin-bottom: 14px !important;
  }

  .hero-headline em { font-size: 0.65em !important; }

  .hero-sub {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .btn-primary, .btn-ghost {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
  }

  .chips {
    gap: 7px !important;
    margin-top: 20px !important;
  }

  .chip { font-size: 11px !important; padding: 5px 12px !important; }

  .hero-caption {
    font-size: 10px !important;
    padding: 12px 16px !important;
  }

  .img-slot {
    font-size: 11px !important;
    gap: 6px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-hero {
    grid-template-columns: 1fr 1fr !important;
    min-height: 60vh !important;
  }

  .hero-left { padding: 48px 32px 48px 40px !important; }

  .hero-headline { font-size: clamp(30px, 4vw, 44px) !important; }

  .hero-ctas { flex-wrap: wrap; }

  .btn-primary, .btn-ghost { padding: 12px 22px !important; font-size: 13.5px !important; }
}

@media (max-width: 767px) {
  .explain-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-top: 32px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .explain-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   ABOUT HERO (full-width variant)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .about-hero { padding: 48px 20px !important; }

  .ah-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .ah-headline { font-size: clamp(32px, 8vw, 46px) !important; }
  .ah-sub { font-size: 14px !important; }

  .ah-stats {
    flex-direction: row !important;
    gap: 0 !important;
    overflow-x: auto;
  }

  .ah-stat { padding: 0 16px !important; }
  .stat-n { font-size: 32px !important; }

  .ah-visual { height: 200px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-hero { padding: 64px 32px !important; }
  .ah-inner { grid-template-columns: 1fr 1fr !important; gap: 48px !important; }
  .ah-headline { font-size: clamp(32px, 5vw, 50px) !important; }
  .ah-visual { height: 320px !important; }
}

/* Banner hero (dry eye / other pages) */
@media (max-width: 767px) {
  .page-banner { padding: 40px 20px !important; }
  .banner-inner { grid-template-columns: 1fr !important; gap: 28px !important; }
  .banner-headline { font-size: clamp(28px, 7vw, 38px) !important; }
  .banner-ctas { flex-direction: column !important; gap: 10px !important; }
  .banner-visual { display: none !important; } /* hide on mobile */
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-banner { padding: 56px 32px !important; }
  .banner-inner { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
}


/* ══════════════════════════════════════════════════════════════
   SECTIONS — padding
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  section { padding: 56px 20px !important; }
  .no-dil { padding: 56px 20px !important; }
  .slt-section { padding: 56px 20px !important; }
  .screen-section { padding: 56px 20px !important; }
  .cornea-strip { padding: 56px 20px !important; }
  .manifesto { padding: 56px 20px !important; }
  .cta-strip,
  .cta-section { padding: 56px 20px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  section { padding: 72px 32px !important; }
  .no-dil,
  .slt-section,
  .screen-section,
  .cornea-strip,
  .manifesto,
  .cta-strip { padding: 64px 32px !important; }
}


/* ══════════════════════════════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .st, .section-title { font-size: clamp(24px, 6vw, 32px) !important; }
  .sl, .section-lead { font-size: 14.5px !important; max-width: 100% !important; }
}


/* ══════════════════════════════════════════════════════════════
   UNDERSTANDING / TWO-COLUMN GRIDS  
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* All 2-col grids → 1 col on mobile */
  .understanding-grid,
  .silent-grid,
  .slt-inner,
  .no-dil-inner,
  .screen-inner,
  .story-grid,
  .op-grid,
  .de-grid,
  .ped-grid,
  .lens-intro,
  .tech-intro,
  .dr-card,
  .suit-card,
  .cta-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .dr-card { display: flex !important; flex-direction: column !important; }
  .dr-photo-panel, .dr-photo { border-right: none !important; border-bottom: 1px solid var(--border) !important; padding: 28px !important; }
  .dr-info-panel, .dr-body, .dc-body { padding: 24px 20px !important; }
  .dr-name, .dc-name { font-size: 24px !important; }

  /* Suit card featured (cataract page) */
  .suit-card.featured,
  .proc-card.featured {
    grid-column: span 1 !important;
    display: block !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .understanding-grid,
  .silent-grid,
  .slt-inner,
  .no-dil-inner,
  .screen-inner,
  .story-grid,
  .op-grid,
  .de-grid,
  .ped-grid,
  .lens-intro {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }

  .cta-inner { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cta-btns { flex-direction: row !important; flex-wrap: wrap !important; }

  .dr-card { grid-template-columns: 220px 1fr !important; }
  .dr-info-panel, .dr-body, .dc-body { padding: 32px 28px !important; }
}


/* ══════════════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .mi { padding: 12px 24px !important; font-size: 12px !important; }
}


/* ══════════════════════════════════════════════════════════════
   CARD GRIDS (3-col, 4-col, 5-col)
══════════════════════════════════════════════════════════════ */

/* 3-column → 1 col mobile, 2 col tablet */
@media (max-width: 767px) {
  .cond-grid,
  .treat-grid,
  .svc-grid,
  .cs-grid,
  .t-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cond-grid,
  .treat-grid,
  .svc-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }

  .cs-grid,
  .t-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}

/* 4-column grids */
@media (max-width: 767px) {
  .tech-cards,
  .mf-principles,
  .pp-pillars,
  .lens-grid { grid-template-columns: 1fr !important; gap: 14px !important; }

  .tech-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tech-cards,
  .mf-principles,
  .pp-pillars { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }

  .lens-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .tech-grid { grid-template-columns: 1fr 1fr !important; }
}

/* 5-column tech list (about page) */
@media (max-width: 767px) {
  .tech-list { grid-template-columns: 1fr !important; gap: 14px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tech-list { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Journey steps (cataract page) */
@media (max-width: 767px) {
  .journey-steps {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .journey-steps::before { display: none !important; } /* remove connector line */
  .step-card { flex-direction: row !important; text-align: left !important; align-items: flex-start !important; gap: 16px !important; }
  .step-num { width: 48px !important; height: 48px !important; flex-shrink: 0 !important; font-size: 20px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .journey-steps {
    grid-template-columns: repeat(3, 1fr) !important;
    row-gap: 40px !important;
  }
  .journey-steps::before { display: none !important; }
}


/* ══════════════════════════════════════════════════════════════
   PROCEDURE / SURGERY CARDS (cataract page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .procedure-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .proc-card.featured { grid-column: span 1 !important; display: block !important; }
  .proc-header { padding: 24px 20px 18px !important; }
  .proc-body { padding: 20px 20px !important; }
  .proc-title { font-size: 22px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .procedure-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .proc-card.featured { grid-column: span 2 !important; display: grid !important; }
}


/* ══════════════════════════════════════════════════════════════
   SUIT CARDS (refractive page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .suit-grid { grid-template-columns: 1fr !important; }
  .suit-card { grid-column: span 1 !important; }
  .suit-body { grid-template-columns: 1fr !important; }
  .suit-header { padding: 22px 20px !important; }
  .suit-body > div { padding: 20px 20px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .suit-grid { grid-template-columns: 1fr 1fr !important; }
  .suit-card[style*="grid-column:span 2"],
  .suit-card:first-child { grid-column: span 2 !important; }
}


/* ══════════════════════════════════════════════════════════════
   SLT FACTS GRID (glaucoma page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .slt-facts { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .sf-num { font-size: 28px !important; }
  .slt-visual { display: none !important; }
}


/* ══════════════════════════════════════════════════════════════
   NO-DILATION SECTION (retina page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .no-dil-visual { display: none !important; }
  .compare-row { grid-template-columns: 1fr !important; gap: 10px !important; }
  .compare-col { padding: 14px 16px !important; }
}


/* ══════════════════════════════════════════════════════════════
   SERVICE ITEMS (list with icon)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .svc-list { grid-template-columns: 1fr !important; gap: 14px !important; }
  .svc-item { padding: 18px !important; }
  .svc-icon { width: 44px !important; height: 44px !important; font-size: 20px !important; }
  .svc-title { font-size: 14px !important; }
  .svc-desc { font-size: 13px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .svc-list { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}


/* ══════════════════════════════════════════════════════════════
   FAQ GRID
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .faq-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .faq-item { padding: 20px !important; }
  .faq-q { font-size: 14px !important; }
  .faq-a { font-size: 13px !important; padding-left: 32px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .faq-grid { grid-template-columns: 1fr 1fr !important; }
}


/* ══════════════════════════════════════════════════════════════
   CTA STRIP
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .cta-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .cta-title { font-size: clamp(24px, 6vw, 32px) !important; }
  .cta-sub { font-size: 14px !important; }

  .cta-btns,
  .cta-actions {
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .btn-cta-w,
  .btn-cta-wa,
  .btn-cta-primary { width: 100% !important; text-align: center !important; padding: 15px 20px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cta-inner { grid-template-columns: 1fr !important; gap: 32px !important; text-align: left; }
  .cta-btns { flex-direction: row !important; flex-wrap: wrap !important; gap: 12px !important; }
  .btn-cta-w, .btn-cta-wa { min-width: 200px; }
}


/* ══════════════════════════════════════════════════════════════
   DOCTORS SECTION (about page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .doctors-section .dr-pair { gap: 20px !important; }
  .doctors-section .dr-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }
  .doctors-section .dc-photo-col {
    min-height: min(72vw, 320px) !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .doctors-section .dc-photo { min-height: min(72vw, 320px) !important; }
  .doctors-section .dc-body { padding: 22px 18px !important; }
  .doctors-section .dc-name { font-size: 24px !important; }
  .doctors-section .dc-bio { font-size: 13px !important; }
}

@media (min-width: 768px) {
  .doctors-section .dr-card {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    flex-direction: unset !important;
  }
}

@media (min-width: 1024px) {
  .doctors-section .dr-card {
    grid-template-columns: 260px 1fr !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   MANIFESTO PRINCIPLES (about page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .mf-principles { grid-template-columns: 1fr !important; gap: 14px !important; }
  .mf-card { padding: 22px !important; }
  .mf-title-area { text-align: left !important; }
  .mf-lead { margin: 0 0 32px !important; }
  .pricing-philosophy { padding: 28px 20px !important; }
  .pp-pillars { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .mf-principles { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .pp-pillars { grid-template-columns: 1fr 1fr !important; }
}


/* ══════════════════════════════════════════════════════════════
   TIMELINE (about page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .story-grid { grid-template-columns: 1fr !important; }
  .timeline {
    padding-left: 0 !important;
    margin-left: 10px !important;
    border-left: 2px solid var(--teal-pale, #e8f4f4) !important;
  }
  .timeline::before {
    display: none !important;
  }
  .tl-item {
    padding-left: 22px !important;
    margin-bottom: 28px !important;
  }
  .tl-item::before {
    left: -17px !important;
    top: 4px !important;
    width: 12px !important;
    height: 12px !important;
    border-width: 2px !important;
  }
  .tl-event { font-size: 14px !important; }
  .tl-detail { font-size: 13px !important; }
}


/* ══════════════════════════════════════════════════════════════
   CORNEA STRIP (dark section)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .cs-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .cs-card { padding: 18px !important; }
  .cs-title { font-size: 14px !important; }
  .cs-desc { font-size: 12px !important; }
}


/* ══════════════════════════════════════════════════════════════
   OCULOPLASTY (dry eye page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .op-visual { display: none !important; }
  .op-list { gap: 12px !important; }
  .op-item { padding: 14px !important; }
}


/* ══════════════════════════════════════════════════════════════
   SCREENING STEPS (refractive page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .screen-inner { grid-template-columns: 1fr !important; gap: 32px !important; }
  .screen-steps { padding: 24px !important; }
}


/* ══════════════════════════════════════════════════════════════
   SYMPTOM ROWS (dry eye page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .symptom-row { grid-template-columns: 1fr !important; gap: 10px !important; }
  .sym-item { padding: 13px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .symptom-row { grid-template-columns: 1fr 1fr !important; }
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  footer { padding: 48px 20px 32px !important; }

  .fg, .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .fn, .footer-logo-name { font-size: 18px !important; }
  .fa, .footer-about { font-size: 13px !important; }
  .fc, .footer-contact-row { font-size: 12.5px !important; }

  .fcol h5, .footer-col h5 { margin-bottom: 14px !important; }
  .fcol li a, .footer-col li a { font-size: 13px !important; }

  .fbook, .footer-book { padding: 20px !important; }

  .fb, .footer-bottom {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
    margin-top: 20px !important;
    font-size: 11px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  footer { padding: 56px 32px 32px !important; }

  .fg, .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }

  /* Make brand column span full width */
  .fg > div:first-child,
  .footer-grid > div:first-child {
    grid-column: span 2 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   CHAT FAB
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .wa-fab {
    width: 52px !important;
    height: 52px !important;
    bottom: 20px !important;
    right: 16px !important;
    font-size: 24px !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   LENS CARDS (cataract page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .lens-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .lens-body { padding: 16px 14px !important; }
  .lens-name { font-size: 16px !important; }
  .lens-note { font-size: 11px !important; }
}


/* ══════════════════════════════════════════════════════════════
   TECH CARDS (dark sections)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .tc-img, .t-img, .tl-img { height: 120px !important; font-size: 11px !important; }
  .tc-body, .t-body, .tl-body { padding: 16px 14px !important; }
  .tc-name, .t-name, .tl-name { font-size: 13.5px !important; }
  .tc-desc, .t-desc, .tl-desc { font-size: 11.5px !important; }
}


/* ══════════════════════════════════════════════════════════════
   CONDITION CARDS
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .cond-card { padding: 22px !important; }
  .cond-icon { font-size: 28px !important; }
  .cond-title { font-size: 18px !important; }
  .cond-body { font-size: 13px !important; }
}


/* ══════════════════════════════════════════════════════════════
   ZEISS WORKFLOW (cataract tech section)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .tech-section { padding: 56px 20px !important; }
  .tech-intro { grid-template-columns: 1fr !important; gap: 28px !important; }
  .zeiss-workflow { padding: 24px 18px !important; }
  .wf-machine { font-size: 12.5px !important; }
  .wf-role { font-size: 11.5px !important; }
}


/* ══════════════════════════════════════════════════════════════
   LOGO RESPONSIVE (mobile: smaller slot — logo box follows variables)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .site-header {
    --header-white-pad-y: 8px;
    --header-white-space-max: 48px;
  }
  .site-header a.logo,
  .site-header a.site-brand {
    min-width: 0 !important;
    max-width: min(220px, 72vw) !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   COMPARISON / CANDIDACY GRIDS (refractive page)
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  div[style*="grid-template-columns: 1fr 1fr"] {
    /* Can't override inline for all, but target known patterns */
  }

  /* Suitability yes/no cards on refractive page */
  .suit-checker {
    grid-template-columns: 1fr !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   UTILITY: HIDE/SHOW BY BREAKPOINT
══════════════════════════════════════════════════════════════ */

.hide-mobile { }
.show-mobile { display: none !important; }

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

.hide-tablet { }
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   TOUCH TARGETS — minimum 44px for tap areas
══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  .nav-link,
  .btn-book,
  .btn-wa,
  .fbtn,
  .fwa,
  .btn-primary,
  .btn-ghost,
  .btn-cta-w,
  .btn-cta-wa {
    min-height: 44px;
  }
}


/* ══════════════════════════════════════════════════════════════
   HOMEPAGE (index) — .hero, specialties, tech, doctors, manifesto
══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .hero .hero-left {
    padding: 36px 20px 32px !important;
    order: 2;
  }

  .hero .hero-right {
    order: 1;
    position: relative !important;
    min-height: 280px !important;
    height: min(42vh, 320px) !important;
  }

  .hero .hero-right::after {
    display: none !important;
  }

  .hero-headline {
    font-size: clamp(30px, 8vw, 44px) !important;
    margin-bottom: 16px !important;
  }

  .hero-sub {
    font-size: 15px !important;
    margin-bottom: 28px !important;
    max-width: 100% !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 14px 20px !important;
  }

  .hero-stats {
    flex-direction: column !important;
    margin-top: 28px !important;
    padding-top: 28px !important;
    gap: 0 !important;
  }

  .hero-stat {
    padding: 16px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .hero-stat:last-child {
    border-bottom: none !important;
    padding-left: 0 !important;
  }

  .hero-stat:nth-child(2) {
    padding-left: 0 !important;
  }

  .stat-number {
    font-size: 34px !important;
  }

  .hero-caption {
    padding: 14px 16px !important;
    font-size: 11px !important;
  }

  /* Why / index sections */
  .why-section {
    padding: 56px 20px !important;
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    margin-top: 36px !important;
  }

  .why-grid > *,
  .spec-grid > *,
  .tech-grid > *,
  .doctors-grid > * {
    min-width: 0;
  }

  .why-card {
    padding: 26px 22px !important;
  }

  /* Specialities */
  .spec-section {
    padding: 56px 20px !important;
  }

  .spec-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    margin-bottom: 36px !important;
  }

  .spec-header-right {
    width: 100% !important;
  }

  .spec-header-right a {
    width: 100% !important;
    justify-content: center !important;
  }

  .spec-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }

  .spec-body {
    padding: 22px 20px !important;
  }

  .spec-title {
    font-size: 19px !important;
  }

  /* Technology band */
  .tech-section {
    padding: 56px 20px !important;
  }

  .tech-header {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 40px !important;
  }

  .tech-header-visual {
    height: 200px !important;
  }

  .tech-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  /* Doctors */
  .doctors-section {
    padding: 56px 20px !important;
  }

  .doctors-intro {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 40px !important;
  }

  .doctors-intro-right {
    padding: 24px 20px !important;
  }

  .doctors-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .doctor-card {
    flex-direction: column !important;
  }

  .doctor-photo-col {
    width: 100% !important;
    min-height: 220px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .doctor-body {
    padding: 22px 20px !important;
  }

  /* Manifesto */
  .manifesto-section {
    padding: 56px 20px !important;
  }

  .manifesto-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .manifesto-pillars {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .pillar-card {
    padding: 22px 20px !important;
  }

  /* Promise strip */
  .promise-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .promise-item {
    padding: 20px 12px !important;
  }

  .promise-num {
    font-size: 36px !important;
  }

  /* DCR announcement (index) */
  .mn-dcr-shell {
    padding: 40px 20px !important;
  }

  .mn-dcr-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .mn-dcr-subgrid {
    grid-template-columns: 1fr !important;
  }

  .mn-dcr-card {
    padding: 24px 18px !important;
  }

  /* Oculoplasty / shared */
  .edcr-inner {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .edcr-left {
    padding: 40px 20px !important;
  }

  .edcr-right {
    padding: 24px 20px 40px !important;
  }

  .edcr-advantages {
    grid-template-columns: 1fr !important;
  }

  .dr-feature {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .dr-photo-panel {
    padding: 28px 20px !important;
  }

  /* Wide tables */
  .table-wrap,
  .table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .table-wrap table,
  .table-scroll table {
    min-width: min(520px, max-content);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr 1fr !important;
    min-height: 70vh !important;
  }

  .hero .hero-left {
    padding: 48px 28px 48px 36px !important;
  }

  .hero-headline {
    font-size: clamp(32px, 4vw, 52px) !important;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .spec-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
  }

  .tech-header {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }

  .doctors-intro {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .doctors-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .manifesto-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
  }

  .manifesto-pillars {
    grid-template-columns: 1fr 1fr !important;
  }

  .promise-inner {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }

  .mn-dcr-shell {
    padding: 56px 32px !important;
  }

  .mn-dcr-grid {
    gap: 40px !important;
  }

  .edcr-inner {
    min-height: auto !important;
  }

  .edcr-left {
    padding: 56px 36px !important;
  }

  .tech-grid.index-tech-five {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   PRINT (keep for good measure)
══════════════════════════════════════════════════════════════ */

@media print {
  .util-bar,
  .site-header,
  .wa-fab,
  .marquee-bar,
  .cta-strip,
  footer { display: none !important; }

  body { color: black !important; background: white !important; }
  .page-hero { background: white !important; color: black !important; }
  .hero-headline, .hero-sub { color: black !important; }
}

/* ══════════════════════════════════════════════════════════════
   Brand logo — /assets/Madhavi Netralaya Logo.webp (full wordmark aspect ratio)
══════════════════════════════════════════════════════════════ */
a.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo-img {
  height: auto;
  width: auto;
  max-height: 44px;
  max-width: min(260px, 68vw);
  object-fit: contain;
  display: block;
}
/*
 * White header strip: outer box height = --header-white-space-max − 4px
 * (img fills box with object-fit: contain — works even with HTML width/height on <img>)
 */
.site-header {
  /* Vertical strip for logo: logo image scales to fit this box (object-fit: contain) */
  --header-white-pad-y: 12px;
  --header-white-space-max: 64px;
  --header-logo-box-h: calc(var(--header-white-space-max) - 4px);
}

@media (min-width: 1024px) {
  .site-header {
    --header-white-pad-y: 12px;
    --header-white-space-max: 72px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header {
    --header-white-pad-y: 11px;
    --header-white-space-max: 60px;
  }
}

.site-header .header-inner {
  height: auto !important;
  min-height: calc(var(--header-white-space-max) + (2 * var(--header-white-pad-y))) !important;
  padding: var(--header-white-pad-y) clamp(16px, 4vw, 40px) !important;
  box-sizing: border-box !important;
  align-items: center !important;
}
.site-header a.logo,
.site-header a.site-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  /* default flex min-width:auto prevents max-width from shrinking — must allow shrink */
  flex: 0 1 auto !important;
  min-width: 0 !important;
  height: var(--header-logo-box-h) !important;
  max-width: min(340px, min(48vw, 100%)) !important;
  overflow: hidden !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}
.site-header a.logo .site-logo-img,
.site-header a.site-brand .site-logo-img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.site-header .site-nav {
  padding-top: var(--header-white-pad-y) !important;
  padding-bottom: var(--header-white-pad-y) !important;
  display: flex !important;
  align-items: center !important;
  min-height: calc(var(--header-white-space-max) + (2 * var(--header-white-pad-y))) !important;
  box-sizing: border-box !important;
}
.site-logo-img--footer {
  height: auto;
  max-height: 48px;
  max-width: min(280px, 85vw);
  width: auto;
  margin-bottom: 12px;
}
.site-logo-img--legal {
  height: auto;
  max-height: 44px;
  max-width: 220px;
}
.feedback-header .site-logo-img {
  height: auto;
  max-height: 64px;
  max-width: 100%;
  margin: 0 auto 12px;
}
.error-page-logo {
  height: auto;
  width: auto;
  max-width: min(320px, 88vw);
  max-height: 72px;
  object-fit: contain;
  margin-bottom: 24px;
}

/* Desktop mega-menu: dropdown must not clip under fixed header */
#header-placeholder {
  overflow: visible;
}

/* ══════════════════════════════════════════════════════════════
   ORIENTATION — portrait & landscape on phones / tablets
══════════════════════════════════════════════════════════════ */

/* Phone landscape: short viewport — compact heroes & vertical padding */
@media (orientation: landscape) and (max-height: 520px) {
  .home-hero,
  .page-hero,
  .about-hero,
  .doctor-profile-hero {
    min-height: auto !important;
    padding-top: clamp(24px, 6vh, 48px) !important;
    padding-bottom: clamp(24px, 6vh, 48px) !important;
  }
  .page-hero {
    grid-template-columns: 1fr 1fr !important;
    min-height: auto !important;
  }
  .hero-left,
  .ah-inner .ah-text-col {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .hero-right,
  .ah-visual {
    min-height: 200px !important;
    height: auto !important;
  }
  .announcement-hero {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .why-section,
  .spec-section,
  .tech-section,
  .doctors-section,
  .manifesto-section,
  .mn-media-hub,
  section {
    padding-top: clamp(32px, 8vh, 56px) !important;
    padding-bottom: clamp(32px, 8vh, 56px) !important;
  }
  #mn-chat-widget {
    max-height: min(420px, calc(100vh - var(--mn-header-offset, 120px) - 100px)) !important;
    bottom: 72px !important;
  }
  #mn-chat-toggle,
  .wa-fab {
    bottom: 12px !important;
  }
  .mn-to-top {
    bottom: 72px !important;
  }
}

/* Phone portrait: ensure no horizontal overflow */
@media (orientation: portrait) and (max-width: 767px) {
  .header-inner,
  .section-wrap,
  .sw,
  .home-hero-inner,
  .doctors-grid,
  .spec-grid,
  .why-grid,
  .tech-grid,
  .dr-pair,
  .doctor-profile-hero-inner,
  .doctor-profile-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .page-hero,
  .about-hero .ah-inner {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet landscape: balanced two-column heroes */
@media (orientation: landscape) and (min-width: 768px) and (max-width: 1023px) {
  .home-hero-inner,
  .ah-inner,
  .doctor-profile-hero-inner {
    gap: clamp(24px, 4vw, 48px) !important;
  }
  .doctors-grid,
  .dr-pair {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Wide landscape on small height (foldables, split screen) */
@media (orientation: landscape) and (max-height: 400px) {
  .util-bar {
    display: none !important;
  }
  .site-header .header-inner {
    min-height: 52px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .main-nav {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

/* Safe areas (notched phones) */
@supports (padding: max(0px)) {
  .util-bar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .site-header .header-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  #mn-chat-widget,
  #mn-chat-toggle,
  .wa-fab,
  .mn-to-top {
    right: max(16px, env(safe-area-inset-right));
  }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Header tools: language + hamburger on narrow screens */
@media (max-width: 1023px) {
  .mn-mobile-header-tools {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE UX — compact header, announcement slider, 3-col stacks
══════════════════════════════════════════════════════════════ */

.mn-photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .mn-photo-grid-3,
  .mn-trust-metrics {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 100% !important;
  }

  .mn-trust-metric-card {
    min-height: 0 !important;
  }
}

@media (max-width: 767px) {
  .site-header {
    --header-white-space-max: 42px;
    --header-white-pad-y: 5px;
  }

  .site-header .header-inner {
    min-height: 52px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 8px;
  }

  .site-header a.logo,
  .site-header a.site-brand {
    max-width: min(150px, 42vw) !important;
    height: 40px !important;
  }

  .mn-mobile-header-tools {
    gap: 6px !important;
    flex-shrink: 0;
  }

  .mn-lang-seg--compact {
    padding: 1px;
  }

  .mn-lang-seg--compact .mn-lang-opt {
    font-size: 9.5px !important;
    padding: 4px 5px !important;
    letter-spacing: 0.04em;
  }

  .hamburger {
    padding: 6px !important;
  }

  .hamburger span {
    width: 20px !important;
  }

  /* Announcement slider — prevent 100vw horizontal overflow */
  .announcement-hero-slider {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    margin-left: 0 !important;
    overflow: hidden !important;
  }

  .announcement-hero-slider__viewport,
  .announcement-hero-slider__track {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-slide {
    padding: 18px 14px 48px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .hero-slide__inner,
  .hero-slide__inner--rich,
  .hero-slide__inner--informative,
  .hero-slide__inner--split,
  .hero-slide__inner--split-rich {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-slide--layout-rich {
    min-height: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 44px !important;
  }

  .announcement-hero-slider--has-rich .announcement-hero-slider__viewport,
  .announcement-hero-slider--has-rich .announcement-hero-slider__track {
    min-height: 0 !important;
    height: auto !important;
  }

  .hero-slide__title {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem) !important;
    line-height: 1.2 !important;
    word-break: break-word;
  }

  .hero-slide__subtitle,
  .hero-slide__lead {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .hero-slide__feature-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-width: 100% !important;
  }

  .hero-slide__feature-card {
    min-width: 0 !important;
  }

  .hero-slide__profile-card {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hero-slide__cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .hero-slide__cta-row a,
  .hero-slide__cta-row button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .announcement-hero-slider__arrow {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
    opacity: 0.85;
  }

  .announcement-hero-slider__arrow--prev {
    left: 4px !important;
  }

  .announcement-hero-slider__arrow--next {
    right: 4px !important;
  }

  /* Stack all 3-column card grids on phones */
  .cond-grid,
  .treat-grid,
  .svc-grid,
  .cs-grid,
  .t-grid,
  .spec-grid,
  .tech-grid,
  .mn-photo-grid-3,
  .mn-trust-metrics {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tech-list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  section[style*="padding"] {
    padding: 56px 20px !important;
  }

  .sw {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
