/* =========================================================
   Hope Integrated Clinic — overrides.css (CLEAN)
   File: /assets/css/overrides.css
   Purpose:
   - LAST-loaded safe overrides only
   - Remove conflicts, fix layout bugs, improve polish
   - Do not duplicate entire component systems here
========================================================= */

/* ------------------------------
   0) Global safety: no horizontal scroll
------------------------------ */
html{ overflow-x: clip; }
body{ overflow-x: clip; }
img, svg{ max-width:100%; height:auto; }

/* ------------------------------
   1) Sticky footer (eliminate gaps)
   If your style.css already sets flex layout, this is harmless.
------------------------------ */
html, body{ margin:0; padding:0; height:auto; }
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main{
  flex:1 0 auto;
}

/* ------------------------------
   2) Scroll-lock for mobile menu
   (JS should toggle .no-scroll on html/body)
------------------------------ */
html.no-scroll,
body.no-scroll{
  overflow:hidden !important;
}

/* ------------------------------
   3) Section spacing consistency (premium rhythm)
   Keeps Hero untouched.
------------------------------ */
:root{
  --section-pad-y: 72px;
  --section-pad-y-sm: 48px;
}

main#main-content > section{
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

main#main-content > section.hero{
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 720px){
  main#main-content > section{
    padding-top: var(--section-pad-y-sm);
    padding-bottom: var(--section-pad-y-sm);
  }
}

/* ------------------------------
   4) Hero height polish
   Avoids "too short" on large monitors
------------------------------ */
.hero{
  min-height: 80vh;
}
.hero-image-section{
  min-height: 80vh;
}

/* ------------------------------
   5) Lists: prevent global resets from breaking program detail lists
   (If style.css/modern-ui reset UL padding, this restores readability.)
------------------------------ */
main#main-content ul{
  padding-left: 18px;
}
main#main-content ul.features,
main#main-content ul.nav-list,
main#main-content ul.site-footer__list{
  padding-left: 0;
}

/* ------------------------------
   6) Services / Programs: remove accidental background tints
   Keep content sections white (not the hero)
------------------------------ */
html, body{ background:#ffffff; }
main#main-content{ background:#ffffff; }

.about,
.services,
.programs,
.program-detail,
.locations,
.cta{
  background:#ffffff;
}

/* If any theme adds inner tint banners, neutralize them safely */
.services .services-banner,
.programs .section-header,
.program-detail .section-header{
  background: transparent;
}

/* ------------------------------
   7) Google Maps links: button-like anchors should not wrap badly
------------------------------ */
a.btn,
a.btn-outline,
a.btn-primary,
a.btn-green,
a.btn-contact{
  white-space: nowrap;
}

/* ------------------------------
   8) Footer: force ALL text white (your requirement)
   Applies to .site-footer (your current HTML uses site-footer)
------------------------------ */
.site-footer,
.site-footer *{
  color:#ffffff !important;
}

.site-footer a{
  color:#ffffff !important;
  text-decoration:none;
}
.site-footer a:hover,
.site-footer a:focus-visible{
  color:#ffffff !important;
  text-decoration:underline;
  text-underline-offset:3px;
}

.site-footer i{
  color:#ffffff !important;
  opacity:1 !important;
}

/* Keep footer borders subtle but visible */
.site-footer__bottom{
  border-top: 1px solid rgba(255,255,255,0.14) !important;
}

/* Social buttons: consistent */
.site-footer__social-link{
  border-color: rgba(255,255,255,0.22) !important;
  background: rgba(255,255,255,0.08) !important;
}
.site-footer__social-link:hover{
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.30) !important;
}

/* ------------------------------
   9) Mobile nav overlay stacking sanity
   Helps if overlay/menu appear behind header content
------------------------------ */
.mobile-menu-overlay{ z-index: 999; }
@media (max-width: 780px){
  .main-nav{ z-index: 1000; }
  .site-header{ z-index: 1001; } /* keep header above content */
}

/* ------------------------------
   10) Reduced motion safety
------------------------------ */
@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}
/* Consistent section breathing room */
section {
  padding: 80px 0 !important;
  border-bottom: 1px solid #f0f0f0;
}

.hero {
  padding: 0 !important; /* Keep hero full-screen if designed that way */
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Prevent large empty gaps above footer */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto; /* This pushes the footer down only as far as needed */
}

footer {
  flex-shrink: 0;
}
/* =========================================================
   Home premium fixes — overrides.css (append at end)
========================================================= */

/* 1) Sticky footer (gap killer) */
html, body{ margin:0; padding:0; height:auto; }
body.page-home{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main#main-content{ flex:1 0 auto; }

/* 1b) No horizontal scrolling on mobile */
html{ overflow-x: clip; }
body{ overflow-x: clip; }
img, svg{ max-width:100%; height:auto; }

/* Scroll lock for mobile menu */
html.no-scroll, body.no-scroll{ overflow:hidden !important; }

/* 3) Dual-header stability (utility + header pinned together) */
.top-shell{
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Prevent jitter on sticky transitions */
.utility-bar,
.site-header{
  transform: translateZ(0);
  will-change: transform;
}

/* 3b) Ensure overlay + drawer layering */
.mobile-menu-overlay{ z-index: 1100; }
@media (max-width: 780px){
  .main-nav{ z-index: 1200; }
}

/* 3c) CTA consistency: padding/radius alignment (non-destructive) */
.btn,
.btn-contact,
.btn-green{
  border-radius: 999px;
  padding: 12px 16px;
  min-height: 44px;
}
.btn.btn-primary{
  background: linear-gradient(135deg, #0b5cab, #083f79);
}
.btn.btn-primary:hover{
  background: linear-gradient(135deg, #0b5cab, #062e5a);
}
.btn.btn-outline{
  border: 1px solid rgba(11,44,69,0.20);
}

/* Hero buttons: ensure outline is visible on hero background */
.btn-hero.btn-outline{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
  color: #ffffff;
}
.btn-hero.btn-outline:hover{
  background: rgba(255,255,255,0.18);
}

/* 2) Our Commitment to Care (new section) */
.commitment{
  background: #f9fafb;
  border-top: 1px solid rgba(16,24,40,0.06);
  border-bottom: 1px solid rgba(16,24,40,0.06);
}
.section-header--center{
  text-align:center;
  max-width: 900px;
  margin: 0 auto 22px;
}
.commitment-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.commitment-card{
  background:#ffffff;
  border: 1px solid rgba(16,24,40,0.10);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(16,24,40,0.06);
  padding: 18px 18px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.commitment-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16,24,40,0.10);
  border-color: rgba(11,92,171,0.22);
}
.commitment-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(11,92,171,0.10);
  border: 1px solid rgba(11,92,171,0.18);
  margin-bottom: 12px;
}
.commitment-icon i{
  color:#0b5cab;
  font-size: 18px;
}
.commitment-card h3{
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.commitment-card p{
  margin: 0;
  color: #475467;
  line-height: 1.65;
}

/* Responsive for commitment grid */
@media (max-width: 980px){
  .commitment-grid{ grid-template-columns: 1fr; }
}

/* 4) Footer: force all text white (your requirement) */
.site-footer,
.site-footer *{
  color:#ffffff !important;
}
.site-footer a{
  color:#ffffff !important;
  text-decoration:none;
}
.site-footer a:hover,
.site-footer a:focus-visible{
  color:#ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer i{
  color:#ffffff !important;
  opacity:1 !important;
}
/* =========================================================
   ABOUT HERO — FIX DULL/DARK TEXT + CLEAN WHITE HERO
   Put at END of about.php <style> (or END of overrides.css)
========================================================= */

/* Ensure the hero itself isn't inheriting opacity or filters */
.about-hero,
.about-hero *{
  opacity: 1 !important;
  filter: none !important;
}

/* Strong, guaranteed white headline/subtitle */
.about-title{
  color:#ffffff !important;
  opacity:1 !important;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.about-subtitle{
  color: rgba(255,255,255,.96) !important;
  opacity:1 !important;
  text-shadow: 0 8px 22px rgba(0,0,0,.35);
}

/* Make the contact meta line white (phone/email/address) */
.about-meta,
.about-meta span,
.about-meta a,
.about-meta i{
  color: rgba(255,255,255,.95) !important;
  opacity:1 !important;
}

/* Make links look consistent on dark hero */
.about-meta a{
  text-decoration-color: rgba(255,255,255,.35) !important;
}
.about-meta a:hover{
  text-decoration-color: rgba(255,255,255,.60) !important;
}

/* Adjust overlay to be less muddy (more “premium glass” look) */
.about-hero__overlay{
  background:
    linear-gradient(90deg,
      rgba(6,24,36,.72) 0%,
      rgba(6,24,36,.42) 55%,
      rgba(6,24,36,.22) 100%
    ),
    linear-gradient(180deg,
      rgba(6,24,36,.20) 0%,
      rgba(6,24,36,.55) 100%
    ) !important;
}
/* =========================================================
   FOOTER — FINAL OVERRIDE (WHITE TEXT + NO GAPS)
   Put at the VERY END of overrides.css
========================================================= */

/* Safety: remove margin-collapsing surprises around footer */
footer.footer,
footer.site-footer{
  margin-top: 0 !important;
}

/* Force dark professional background (matches your screenshot tone) */
footer.footer,
footer.site-footer{
  background: #071a27 !important; /* deep medical navy */
  border-top: 1px solid rgba(255,255,255,.10) !important;
}

/* Force ALL footer text white (including icons, spans, small tags) */
footer.footer,
footer.footer * ,
footer.site-footer,
footer.site-footer *{
  color: rgba(255,255,255,.92) !important;
}

/* Headings slightly brighter */
footer.footer h3,
footer.footer h4,
footer.site-footer h3,
footer.site-footer h4{
  color: #ffffff !important;
}

/* Links: white with subtle hover */
footer.footer a,
footer.footer a:visited,
footer.site-footer a,
footer.site-footer a:visited{
  color: rgba(255,255,255,.92) !important;
  text-decoration: none;
}

footer.footer a:hover,
footer.site-footer a:hover{
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Icons always white */
footer.footer i,
footer.site-footer i{
  color: rgba(255,255,255,.92) !important;
}

/* Social buttons: clean, consistent */
footer.footer .social-links a,
footer.site-footer .site-footer__social-link{
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.06) !important;
}

/* Footer bottom divider */
footer.footer .footer-bottom,
footer.site-footer .site-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.12) !important;
}
/* =========================================================
   FOOTER — PREMIUM HORIZONTAL (DESKTOP → TABLET → MOBILE)
   Drop-in override. Keep this LAST in overrides.css.
========================================================= */

/* 1) Footer base */
footer.footer{
  background:#071a27 !important;
  color:#ffffff !important;
  padding:56px 0 20px !important;
  border-top:1px solid rgba(255,255,255,.10);
}

/* Prevent weird spacing from preceding sections */
main > footer.footer{ margin-top:0 !important; }

/* 2) Grid layout (horizontal on desktop) */
footer.footer .footer-content{
  display:grid !important;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr; /* brand | links | contact | hours */
  gap:36px;
  align-items:start;
}

/* 3) Normalize blocks */
footer.footer .footer-section{
  margin:0 !important;
  padding:0 !important;
  min-width:0; /* prevents overflow in grid */
}

/* 4) Logo row */
footer.footer .footer-logo{
  display:flex;
  gap:14px;
  align-items:center;
  margin:0 0 14px !important;
}

footer.footer .logo-image{
  width:56px;
  height:56px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  flex:0 0 auto;
}

footer.footer .logo-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 5) Typography hierarchy */
footer.footer h3,
footer.footer h4{
  color:#ffffff !important;
  margin:0 0 12px !important;
  font-family:"Inter Tight","Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-weight:900;
  letter-spacing:-0.01em;
  line-height:1.2;
}

footer.footer p{
  margin:0 0 10px !important;
  color:rgba(255,255,255,.90) !important;
  line-height:1.7;
}

footer.footer .footer-mission{
  max-width:46ch;
}

/* 6) Links + focus states */
footer.footer a{
  color:rgba(255,255,255,.92) !important;
  text-decoration:none;
  text-underline-offset:3px;
}

footer.footer a:hover{
  color:#ffffff !important;
  text-decoration:underline;
  text-decoration-color: rgba(255,255,255,.45);
}

footer.footer a:focus-visible{
  outline:3px solid rgba(255,255,255,.35);
  outline-offset:3px;
  border-radius:10px;
}

/* 7) Lists (no bullets, clean) */
footer.footer ul{
  list-style:none;
  margin:0 !important;
  padding:0 !important;
}

footer.footer li{
  margin:0 0 10px !important;
}

/* 8) Contact lines (icon + text aligned) */
footer.footer .contact-info p,
footer.footer .hours p{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

footer.footer .contact-info i,
footer.footer .hours i{
  margin-top:3px;
  opacity:.95;
}

/* 9) Social buttons (premium pills) */
footer.footer .social-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px !important;
}

footer.footer .social-links a{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

footer.footer .social-links a:hover{
  transform: translateY(-2px);
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.28);
}

footer.footer .social-links i{
  color:#ffffff !important;
}

/* 10) Bottom bar */
footer.footer .footer-bottom{
  margin-top:30px !important;
  padding-top:16px !important;
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
}

footer.footer .footer-bottom p{
  margin:0 !important;
  color:rgba(255,255,255,.72) !important;
  font-size:.95rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Large screens: tighten column widths a bit */
@media (min-width: 1280px){
  footer.footer .footer-content{
    gap:44px;
  }
}

/* Tablet: 2 columns */
@media (max-width: 1024px){
  footer.footer{
    padding:46px 0 18px !important;
  }

  footer.footer .footer-content{
    grid-template-columns: 1fr 1fr;
    gap:28px;
  }
}

/* Mobile: stack */
@media (max-width: 640px){
  footer.footer{
    padding:38px 0 16px !important;
  }

  footer.footer .footer-content{
    grid-template-columns: 1fr;
    gap:22px;
  }

  footer.footer .footer-mission{
    max-width: 60ch;
  }
}
