@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0f2744;
  --teal: #1a6b72;
  --teal-light: #2a8f99;
  --cream: #f8f4ef;
  --warm-white: #fdfbf8;
  --gold: #c9a84c;
  --text: #1c1c1c;
  --muted: #1a1a1a;
  --border: #e8e0d5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--warm-white); color: var(--text); overflow-x: hidden; }

/* ── Global heading font — Cormorant Garamond on all h1–h4 ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 60px; display: flex; align-items: center; justify-content: space-between;
  height: 72px; transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(15,39,68,0.08); }
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 52px; width: auto; display: block; flex-shrink: 0; }
.nav-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.nav-logo-text span { font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.84rem; font-weight: 500; color: var(--navy); text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { background: var(--teal) !important; color: white !important; padding: 9px 20px; border-radius: 4px; font-size: 0.81rem !important; font-weight: 600 !important; letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--navy) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; display: block; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--warm-white); border-bottom: 1px solid var(--border); padding: 24px 32px; z-index: 150; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px rgba(15,39,68,0.1); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--navy); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: none; }

/* PAGE HERO */
.page-hero { background: var(--navy); padding: 140px 80px 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 50%, rgba(26,107,114,0.25) 0%, transparent 60%), radial-gradient(circle at 20% 80%, rgba(201,168,76,0.1) 0%, transparent 40%); }
.page-hero-content { position: relative; z-index: 1; max-width: 640px; }
.page-hero .section-tag { color: #6dd8e0; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; color: white; line-height: 1.1; margin-top: 12px; }
.page-hero h1 em { font-style: italic; color: #6dd8e0; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.75; margin-top: 16px; font-weight: 300; max-width: 520px; }

/* TYPOGRAPHY UTILS */
.section-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.section-tag::before { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 400; color: var(--navy); line-height: 1.15; }
.section-title em { font-style: italic; color: var(--teal); }

/* BUTTONS */
.btn-primary { background: var(--teal); color: white; padding: 13px 30px; border-radius: 4px; text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.25s; border: 2px solid var(--teal); display: inline-block; }
.btn-primary:hover { background: transparent; color: var(--teal); }
.btn-navy { background: var(--navy); color: white; padding: 13px 30px; border-radius: 4px; text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.25s; border: 2px solid var(--navy); display: inline-block; }
.btn-navy:hover { background: transparent; color: var(--navy); }

/* CTA BANNER */
.cta-banner { padding: 72px 80px; background: var(--teal); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 400; color: white; line-height: 1.2; }
.cta-banner p { font-size: 0.95rem; color: rgba(255,255,255,0.75); margin-top: 8px; font-weight: 300; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-white { background: white; color: var(--teal); padding: 13px 32px; border-radius: 4px; text-decoration: none; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.25s;  }
.btn-white:hover { background: var(--navy); color: white; }
.btn-outline-white { background: transparent; color: white; padding: 13px 32px; border-radius: 4px; text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; border: 2px solid rgba(255,255,255,0.5); transition: all 0.25s;  }
.btn-outline-white:hover { border-color: white; }

/* FOOTER */
footer { background: var(--navy); padding: 64px 80px 40px; color: rgba(255,255,255,0.85); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 14px; }
.footer-desc { font-size: 0.84rem; line-height: 1.7; }
.footer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.footer-contact a:hover { color: white; }
.footer-col h3, .footer-col h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: #6dd8e0; line-height: 1.2; text-transform: none; letter-spacing: normal; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(109,216,224,0.15); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.footer-links a { color: rgba(255,255,255,0.85); font-size: 0.84rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.7s ease both; }

/* RESPONSIVE */

/* ═══════════════════════════════════════════════════
   GLOBAL TOUCH & MOBILE BASE
   ═══════════════════════════════════════════════════ */
a, button, [role="button"] { touch-action: manipulation; }
input, select, textarea { touch-action: manipulation; font-size: max(16px, 1em); }
* { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════
   TABLET  ≤ 1024px
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .page-hero { padding: 120px 40px 64px; }
  .cta-banner { padding: 60px 40px; }
  footer { padding: 56px 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════════════
   MOBILE  ≤ 768px
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .page-hero { padding: 96px 24px 48px; }
  .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.2; }
  .page-hero-content p { font-size: 0.95rem; }

  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .section-tag { font-size: 0.68rem; }

  footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-social { justify-content: center; }

  .cta-banner { padding: 44px 24px; flex-direction: column; text-align: center; gap: 20px; }
  .cta-banner h2 { font-size: 1.65rem; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions a { width: 100%; max-width: 280px; text-align: center; }

  .float-contact { bottom: 14px; right: 14px; gap: 8px; }
  .float-btn { padding: 10px 14px; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════
   SMALL MOBILE  ≤ 480px
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  nav { padding: 0 16px; }
  .page-hero { padding: 86px 16px 40px; }
  .page-hero h1 { font-size: 1.65rem; }
  .page-hero-content p { font-size: 0.88rem; }

  footer { padding: 40px 16px 28px; }
  .cta-banner { padding: 36px 16px; }
  .cta-banner h2 { font-size: 1.4rem; }

  .btn-primary, .btn-navy, .btn-white { padding: 11px 22px; font-size: 0.82rem; width: 100%; text-align: center; display: block; }
  .cta-actions a { max-width: none; }

  .float-btn span:not(.float-icon) { display: none; }
  .float-btn { border-radius: 50%; width: 48px; height: 48px; padding: 0; justify-content: center; }
  .float-contact { bottom: 12px; right: 12px; }
}

/* ── FLOATING CONTACT BUTTONS ── */
.float-contact { position:fixed; bottom:28px; right:28px; display:flex; flex-direction:column; gap:10px; z-index:997; }
.float-btn { display:flex; align-items:center; gap:10px; padding:13px 20px; border-radius:50px; text-decoration:none; font-family:'DM Sans',sans-serif; font-size:0.88rem; font-weight:700; box-shadow:0 6px 24px rgba(15,39,68,0.22); transition:transform 0.2s,box-shadow 0.2s;  }
.float-btn:hover { transform:translateY(-2px); box-shadow:0 10px 32px rgba(15,39,68,0.3); }
.float-btn-call { background:var(--navy); color:white; }
.float-btn-text { background:var(--teal); color:white; }
.float-btn svg { flex-shrink:0; }

/* Style the Google Translate dropdown */

/* ── Footer Cities ── */
.footer-cities { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; margin-bottom: 24px; }
.footer-cities-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.footer-cities-list { display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer-cities-list a { font-size: 0.78rem; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; padding-right: 10px; }
.footer-cities-list a::after { content: "·"; margin-left: 10px; color: rgba(255,255,255,0.15); }
.footer-cities-list a:last-child::after { display: none; }
.footer-cities-list a:hover { color: white; }
/* ── Footer Social ── */
.footer-social { display: flex; gap: 6px; align-items: center; }
.social-icon { color: rgba(255,255,255,0.45); transition: color 0.2s; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); }
.social-icon:hover { color: white; border-color: rgba(255,255,255,0.4); }

@media(max-width:640px){}

@media(max-width:640px){}

.lang-widget{position:fixed;bottom:28px;left:28px;z-index:998;}
.lang-toggle-btn{background:white;border:1.5px solid var(--border);border-radius:50px;padding:9px 16px;font-size:0.78rem;font-weight:600;color:var(--navy);cursor:pointer;display:flex;align-items:center;gap:7px;box-shadow:0 3px 14px rgba(15,39,68,0.13);transition:all 0.2s;font-family:'DM Sans',sans-serif;}
.lang-toggle-btn:hover{border-color:var(--teal);color:var(--teal);}
.lang-dropdown{position:absolute;bottom:calc(100% + 8px);left:0;background:white;border:1.5px solid var(--border);border-radius:12px;padding:14px;box-shadow:0 8px 28px rgba(15,39,68,0.15);min-width:180px;display:none;}
.lang-dropdown.open{display:block;}
.lang-dropdown-title{font-size:0.7rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--teal);margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--border);}
/* Style the Google Translate dropdown */
.lang-dropdown .goog-te-gadget-simple{border:1px solid var(--border)!important;border-radius:6px!important;padding:4px 8px!important;font-size:0.84rem!important;}
.goog-te-banner-frame{display:none!important;}
body{top:0!important;}
@media(max-width:640px){.lang-widget{bottom:14px;left:14px;}.lang-toggle-btn{padding:8px 13px;font-size:0.73rem;}}


/* ═══════════════════════════════════════════════════
   TABLET (768px - 1024px) ENHANCEMENTS
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 60px; }
  .hero-content { padding: 100px 40px 60px; }
  .hero-h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem);  }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { border-radius: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr; gap: 24px; }
  .ins-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════
   MOBILE (max 768px) ENHANCEMENTS
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #hero { grid-template-columns: 1fr; padding-bottom: 48px; }
  .hero-content { padding: 90px 24px 48px; text-align: left; }
  .hero-h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.1; }
  .hero-sub { font-size: 0.9rem; max-width: 100%; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns a { width: 100%; text-align: center; }
  .hero-visual { display: none; }
  
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-points { gap: 28px; }
  .why-point { gap: 12px; }
  .why-point-icon { width: 44px; height: 44px; font-size: 1.3rem; flex-shrink: 0; }
  
  .services-grid, .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-big-grid { grid-template-columns: 1fr; }
  
  .doc-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  
  .ins-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  
  .quick-links { flex-wrap: wrap; gap: 8px; padding: 16px 20px; overflow-x: auto; }
  .quick-chip { font-size: 0.75rem; padding: 6px 12px;  }
  
  .articles-grid { grid-template-columns: 1fr !important; }
  .section-header { flex-direction: column; gap: 4px; }
  .section-count { display: none; }
  
  .article-layout { grid-template-columns: 1fr !important; padding: 24px !important; }
  .article-title { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
  
  .loc-grid { grid-template-columns: 1fr; }
  
  .float-contact { bottom: 16px; right: 16px; gap: 8px; }
  
  .edu-search { padding: 24px 20px; }
  .search-wrap { max-width: 100%; }
  
  .news-marquee-content { font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════════
   SMALL MOBILE (max 480px) ENHANCEMENTS
═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-content { padding: 80px 16px 40px; }
  .hero-h1 { font-size: 1.8rem; }
  .hero-badge { font-size: 0.65rem; padding: 5px 10px; }
  
  .why-visual { padding: 28px 20px; }
  .why-visual h3 { font-size: 1.1rem; }
  
  .ins-grid { grid-template-columns: repeat(2, 1fr); }
  
  .article-layout { padding: 16px !important; }
  .article-body h2 { font-size: 1.3rem !important; }
  .article-body p, .article-body li { font-size: 0.9rem !important; }
  
  .quick-links { padding: 12px 16px; }
  
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-cities-list { font-size: 0.75rem; }
  
  .cta-banner h2 { font-size: 1.3rem; }
}


/* ═══════════════════════════════════════════════════
   WCAG 2.1/2.2 AA — FOCUS, CONTRAST, ACCESSIBILITY
═══════════════════════════════════════════════════ */

/* 2.4.7 Focus Visible — minimum 3px contrast focus ring */
*:focus-visible {
  outline: 3px solid #1a6b72;
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid #1a6b72;
  outline-offset: 3px;
}
/* High-contrast focus for dark backgrounds */
.hero-content a:focus-visible,
footer a:focus-visible,
.float-btn:focus-visible {
  outline-color: #6dd8e0;
}

/* 2.5.3 Touch target minimum 44×44px */
.float-btn { min-width: 44px; min-height: 44px; }
.hamburger { min-width: 44px; min-height: 44px; }
.quick-chip { min-height: 44px; display: inline-flex; align-items: center; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* 1.4.4 Text resize — no fixed pixel font sizes that break at 200% zoom */
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

/* SC 1.4.12 — Text spacing: inherited from original typography */

/* 1.4.3 Contrast — muted text minimum 4.5:1 */
.card-excerpt, .article-body p, .article-body li { color: #111111; }
.hero-sub { color: rgba(255,255,255,0.80); }

/* 2.4.11 Focus not obscured — ensure focus ring not hidden by sticky nav */
:target { scroll-margin-top: 80px; }

/* Screen reader only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0);  border: 0;
}


/* ═══════════════════════════════════════════════════
   WCAG 2.1 AA — COMPLETE ACCESSIBILITY STYLES
   SC 2.4.1 Bypass Blocks | 2.4.7 Focus Visible
   2.5.5 Target Size | 1.4.13 Content on Hover
   2.3.3 Animation from Interactions
═══════════════════════════════════════════════════ */

/* SC 2.4.1 — Skip Navigation (visible on focus) */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-nav:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 14px 28px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  outline: 3px solid #6dd8e0;
  outline-offset: 2px;
}

/* SC 2.4.7 — Focus Visible (3px high-contrast ring) */
*:focus-visible {
  outline: 3px solid #1a6b72;
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1a6b72;
  outline-offset: 3px;
}
/* High-contrast focus for dark backgrounds */
nav a:focus-visible,
footer a:focus-visible,
.float-btn:focus-visible,
.hero-content a:focus-visible {
  outline-color: #6dd8e0;
}
/* Never remove focus for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

/* SC 2.5.5 — Minimum Touch Target 44×44px */
.hamburger,
.mobile-close,
.float-btn,
.social-icon,
.lang-toggle-btn,
.btn-primary,
.btn-navy,
.btn-white,
.btn-outline-white,
.quick-chip,
.dropdown-toggle,
.nav-cta {
  min-height: 44px;
  min-width: 44px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

/* SC 2.3.3 — Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-badge::before { animation: none !important; }
}

/* SC 1.4.4 — Text resize up to 200% without loss */
html { font-size: 100%; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

/* 1.4.12 Text spacing */
p, li, h1, h2, h3, h4 { 
  line-height: max(1.5, 1.5em); 
  letter-spacing: normal; 
  word-spacing: normal; 
}


/* SC 1.3.4 — Orientation (don't lock to portrait) */
@media screen and (orientation: landscape) {
  .page-hero { min-height: auto; }
}

/* SC 2.4.11 — Focus not obscured by sticky header */
:target { scroll-margin-top: 80px; }
[id] { scroll-margin-top: 80px; }

/* SC 1.4.3 — Contrast handled by original design tokens */

/* SC 1.4.12 — Text spacing */
p, li, h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Accessible table styles */
table { border-collapse: collapse; }
th { font-weight: 700; text-align: left; }
td, th { padding: 8px 12px; }
table caption { font-weight: 600; margin-bottom: 8px; text-align: left; }

/* SR-only utility (screen reader only) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sr-only-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/* SC 1.4.11 — Windows High Contrast Mode (forced-colors) */
@media (forced-colors: active) {
  .btn-primary, .btn-navy, .btn-white, .nav-cta {
    border: 2px solid ButtonText;
  }
  .skip-nav:focus {
    background: Highlight;
    color: HighlightText;
    outline: 3px solid ButtonText;
  }
  .svc-card, .why-point, .key-points {
    border: 1px solid ButtonText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
  }
}

/* SC 1.4.3 — Contrast colors preserved from original design */

/* WCAG 2.4.11 — Focus not obscured (sticky header offset) */
html { scroll-padding-top: 80px; }

/* ═══════════════════════════════════════════════════
   MOBILE — Pure white backgrounds + black text for readability
   Teal, navy, and dark-background sections preserved as-is.
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Override background colour variables to pure white ── */
  :root {
    --warm-white: #ffffff;
    --cream:      #f0f0f0;
    --muted:      #111111;
    --text:       #111111;
    --border:     #d0d0d0;
  }

  /* ── Body & generic containers ── */
  body,
  main, article, section,
  .content-main, .content-section,
  .svc-main, .svc-body, .svc-body-inner,
  .legal-main, .legal-body,
  .bio-main, .docs-main,
  .labs-main, .article-main,
  .article-layout,
  .ins-body, .ins-body-inner { background: #ffffff; }

  /* ── ALL text defaults to black ── */
  p, li, span, div, h1, h2, h3, h4, h5, label,
  .svc-desc, .svc-intro, .svc-section p, .svc-section li,
  .content-section p, .content-section li,
  .legal-section p, .legal-section li,
  .bio-section p, .bio-section li,
  .article-body p, .article-body li,
  .faq-item p, .faq-item h3,
  .edu-link-card span,
  .doc-info, .doc-title, .doc-name, .doc-cred,
  .doc-mini-name, .doc-mini-cred,
  .loc-detail, .loc-detail div,
  .bio-aside p, .bio-aside li,
  .ins-why p, .ins-conditions p,
  .card-excerpt, .handout-sub,
  .process-step p, .symptom-item,
  .svc-stat-label { color: #111111; }

  /* ── Headings stay navy on white background ── */
  h1, h2, h3, h4,
  .svc-name, .doc-name, .doc-mini-name,
  .faq-item h3,
  .legal-section h2,
  .bio-section h2 { color: #0f2744; }

  /* ── Cards & boxes → white bg with light border ── */
  .doc-card, .doc-card-full,
  .doc-mini-card,
  .faq-item,
  .edu-link-card,
  .bio-aside,
  .legal-toc,
  .legal-callout,
  .process-step,
  .symptom-item,
  .svc-big,
  .handout-item,
  .loc-card { background: #ffffff; border-color: #d0d0d0; }

  /* ── Section backgrounds that used cream → light grey ── */
  .legal-toc,
  .bio-aside,
  .info-box,
  .warning-box,
  .notice-box { background: #f5f5f5; }

  /* ══════════════════════════════════════════════════════
     PRESERVE dark-background sections — do NOT touch these
     ══════════════════════════════════════════════════════ */

  /* Page heroes, CTA banners, footer — keep navy/dark */
  .page-hero,
  .page-hero *,
  .cta-banner,
  .cta-banner *,
  footer, footer *,
  .float-contact,
  .float-btn,
  .ins-hero, .ins-hero *,
  .ins-cta-box, .ins-cta-box *,
  .ins-locs, .ins-locs *,
  .loc-box, .loc-box *,
  .svc-hero, .svc-hero *,
  .svc-cta-banner, .svc-cta-banner *,
  .doc-photo, .doc-photo-full,
  .doc-mini-photo,
  nav#navbar { color: inherit; background: inherit; }

  /* Mobile nav menu → white bg, dark text */
  .mobile-menu { background: #ffffff; }
  .mobile-menu a { color: #0f2744; }

  /* Keep teal links as teal */
  a[href], .svc-mobile-item .svc-m-arrow { color: var(--teal); }
  .doc-mini-card a, .edu-link-card .arrow { color: var(--teal); }

  /* Section tags stay teal */
  .section-tag, .svc-section-label,
  .lab-loc-badge { color: var(--teal); }

  /* Footer visibility handled by dedicated #footer-mobile element */
}

/* ═══════════════════════════════════════════════════
   MOBILE FIXES — comprehensive
   ═══════════════════════════════════════════════════ */

/* 1. Teal buttons: always show white text */
.btn-primary,
a.btn-primary,
button.btn-primary {
  color: white !important;
}
.btn-primary:hover {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: white !important;
}

@media (max-width: 768px) {

  /* 3. Why-points: single column, full width on mobile */
  #why > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .why-points {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .why-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .why-point:last-child { border-bottom: none; }
  .why-point-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
  .why-point-text h3 { font-size: 0.95rem; margin-bottom: 4px; }
  .why-point-text p { font-size: 0.85rem; line-height: 1.6; }

  /* 4. About page: logo full-width at top, text below */
  .about-story-grid,
  .story-grid,
  [class*="story"] > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
  .about-logo-img { width: 100% !important; max-width: 100% !important; }

  /* 5. Provider bio: stack photo above text on mobile */
  .bio-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .bio-photo {
    max-width: 200px !important;
    margin: 0 auto !important;
  }
  .bio-main { padding: 40px 20px !important; }

  /* 6. Doc mini-cards: teal bg, white text (team section on provider pages) */
  .doc-mini-card,
  .team-also-card,
  .also-card {
    background: var(--teal) !important;
    color: white !important;
  }
  .doc-mini-card *, .team-also-card *, .also-card * {
    color: white !important;
  }

  /* 7. Provider doc-cards grid → single column on mobile (non-index pages) */
  .doc-cards {
    grid-template-columns: 1fr !important;
  }

  /* 8. Hide Education from mobile nav (handled in HTML) */

  /* Mobile footer redesign */
  footer {
    padding: 36px 20px 24px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .footer-grid > div {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
  }
  .footer-grid > div:last-child { border-bottom: none; }
  .footer-logo {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .footer-logo img { height: 50px !important; }
  .footer-col h3 {
    font-size: 0.9rem !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #6dd8e0 !important;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 600 !important;
    cursor: default;
  }
  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 14px !important;
    flex-direction: row !important;
  }
  .footer-links li { width: auto !important; }
  .footer-links a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.83rem !important;
  }
  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer-contact a { font-size: 0.85rem; }
  .footer-social { justify-content: flex-start !important; margin-top: 14px !important; }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
    padding-top: 20px !important;
    font-size: 0.75rem !important;
  }
  .footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }
  .footer-bottom a { font-size: 0.75rem !important; }
}

/* About story section: side-by-side on desktop, stacked on mobile */
@media (min-width: 769px) {
  .content-section [style*="flex-wrap:wrap"] > div[style*="min-width:100%"] {
    min-width: unset !important;
  }
  .content-section [style*="flex-wrap:wrap"] > div:first-child {
    min-width: unset !important;
    width: 220px !important;
  }
  .content-section [style*="flex-wrap:wrap"] > div:last-child {
    min-width: unset !important;
    flex: 1 !important;
  }
}

/* 6 & 7. doc-mini-cards on mobile: teal bg white text, single column */
@media (max-width: 768px) {
  .doc-cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .doc-mini-card {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
  }
  .doc-mini-name { color: white !important; }
  .doc-mini-cred { color: rgba(255,255,255,0.85) !important; }
  .doc-mini-card a { color: rgba(255,255,255,0.9) !important; }
  .doc-mini-photo {
    width: 90px !important;
    height: 90px !important;
    margin: 14px auto 0 !important;
  }
  .doc-mini-info { padding: 12px !important; }
  .doc-mini-name { font-size: 0.88rem !important; }
  .doc-mini-cred { font-size: 0.72rem !important; margin-bottom: 8px !important; }
}

@media (max-width: 480px) {
  .doc-cards {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* About story: logo left + text right on desktop, stacked on mobile */
@media (max-width: 768px) {
  .about-story-row {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .about-story-logo {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
}
