/* ==========================================================================
   NEO HOSPITAL — HEADER & FOOTER
   header-footer.css — matches real site branding from provided screenshots
   Palette here is intentionally the hospital's actual brand (teal/mint),
   distinct from the body's cardiology-specialist palette in style.css.
   ========================================================================== */

:root{
  --hf-teal:        #0E7C74;
  --hf-teal-dark:   #095752;
  --hf-teal-light:  #E7F7F4;
  --hf-mint-bg:     #E3F6F1;
  --hf-text:        #14514D;
  --hf-white:       #FFFFFF;
  --hf-border:      #CFEAE4;
  --hf-radius:      12px;
}

/* ---------- TOP UTILITY BAR ---------- */
.topbar{
  background:linear-gradient(90deg, #E8F5F9 0%, #D3ECF2 100%);
  border-bottom:1px solid #CFE4EA;
  font-size:0.82rem;
}
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; padding:9px 24px; flex-wrap:wrap; gap:10px; }
.topbar__contact{ display:flex; align-items:center; gap:26px; list-style:none; margin:0; padding:0; flex-wrap:wrap; }
.topbar__contact li{ display:flex; align-items:center; gap:7px; color:var(--hf-text); font-weight:500; }
.topbar__contact a{ color:var(--hf-text); text-decoration:none; display:inline-flex; align-items:center; gap:7px; transition:color .2s; }
.topbar__contact a:hover{ color:var(--hf-teal); }
.topbar__contact i{ color:var(--hf-teal); font-size:0.85rem; }

.topbar__social{ display:flex; align-items:center; gap:8px; list-style:none; margin:0; padding:0; }
.topbar__social-icon{
  width:30px; height:30px; border-radius:7px; display:flex; align-items:center; justify-content:center;
  color:var(--hf-white); font-size:0.82rem; transition:transform .2s ease, opacity .2s ease;
}
.topbar__social-icon:hover{ transform:translateY(-2px); opacity:0.9; }
.topbar__social-icon--fb{ background:#1877F2; }
.topbar__social-icon--li{ background:#0A66C2; }
.topbar__social-icon--ig{ background:linear-gradient(135deg,#F58529,#DD2A7B,#8134AF,#515BD4); }
.topbar__social-icon--x{ background:#000000; }
.topbar__social-icon--yt{ background:#FF0000; }

/* ---------- MAIN NAVBAR ---------- */
.navbar{ background:var(--hf-white); border-bottom:1px solid var(--hf-border); position:sticky; top:0; z-index:600; transition:box-shadow .25s ease; }
.navbar.is-scrolled{ box-shadow:0 6px 24px rgba(14,124,116,0.12); }
.navbar__inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; gap:24px; }

.navbar__logo{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.navbar__logo-mark{ width:85px; height:85px; display:block; }
.navbar__logo-mark svg{ width:100%; height:100%; }
.navbar__logo-text{ display:flex; flex-direction:column; line-height:1.15; }
.navbar__logo-text strong{ font-size:1.35rem; font-weight:800; color:var(--hf-teal-dark); letter-spacing:0.01em; }
.navbar__logo-text small{ font-size:0.62rem; font-weight:600; letter-spacing:0.03em; color:var(--hf-teal); text-transform:uppercase; }

.navbar__nav ul{ display:flex; align-items:center; gap:26px; list-style:none; margin:0; padding:0; flex-wrap:wrap; }
.navbar__nav a{
  font-size:0.92rem; font-weight:500; color:var(--hf-text); text-decoration:none;
  position:relative; padding:6px 0; transition:color .2s ease;
}
.navbar__nav a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--hf-teal);
  transition:width .25s ease;
}
.navbar__nav a:hover, .navbar__nav a.active{ color:var(--hf-teal-dark); }
.navbar__nav a:hover::after, .navbar__nav a.active::after{ width:100%; }

.navbar__badges{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.cert-badge{ position:relative; width:52px; height:52px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cert-badge__ring{
  position:absolute; inset:0; border-radius:50%; border:2px solid var(--hf-teal);
  background:var(--hf-teal-light);
}
.cert-badge--nabh .cert-badge__ring{ border-color:#D2413B; background:#FDEBEA; }
.cert-badge__label{ position:relative; font-size:0.58rem; font-weight:800; letter-spacing:0.02em; color:var(--hf-teal-dark); }
.cert-badge--nabh .cert-badge__label{ color:#B7332D; }

.navbar__toggle{ display:none; flex-direction:column; gap:5px; width:32px; padding:6px; }
.navbar__toggle span{ display:block; width:100%; height:2.5px; background:var(--hf-teal-dark); border-radius:2px; transition:all .3s ease; }
.navbar__toggle.is-active span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.navbar__toggle.is-active span:nth-child(2){ opacity:0; }
.navbar__toggle.is-active span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ---------- LANDING PAGE NAV CTA (replaces exit-link menu / hamburger) ---------- */
.navbar__cta{ display:flex; align-items:center; gap:10px; flex-shrink:1; min-width:0; }
.navbar__cta .btn{ white-space:nowrap; }
.navbar__inner{ min-width:0; }
.navbar__logo{ min-width:0; }

@media (max-width:576px){
  .navbar__cta{ gap:8px; }
  /* Collapse the CTA buttons to icon-only circular pills so the row
     always fits. font-size:0 on the button hides the raw text node
     (no dependency on a <span> wrapper, which the markup doesn't have)
     while the icon's own font-size is set back explicitly. Text stays
     in the DOM for accessibility/SEO, just isn't rendered visually. */
  .navbar__cta .btn--sm{
    padding:0; width:38px; height:38px; border-radius:50%;
    overflow:hidden; white-space:nowrap; font-size:0; gap:0;
    flex-shrink:0;
  }
  .navbar__cta .btn--sm i{ font-size:14px; margin:0; }
}

@media (max-width:576px){
  .navbar__logo-mark{ width:56px; height:56px; }
}

@media (max-width:360px){
  .navbar__logo-mark{ width:46px; height:46px; }
  .navbar__cta{ gap:6px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background:var(--hf-mint-bg); color:var(--hf-text); }
.site-footer a{ color:inherit; text-decoration:none; }
.site-footer h3, .site-footer h4{ color:var(--hf-teal-dark); }

/* ---------- FIND US ---------- */
.footer-findus{ padding:48px 0 0; }
.footer-findus__grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.footer-findus__text{ display:flex; gap:18px; align-items:flex-start; }
.footer-findus__text > i{ font-size:1.7rem; color:var(--hf-teal); margin-top:4px; }
.footer-findus__text h3{ font-size:1.25rem; margin-bottom:10px; }
.footer-findus__text p{ font-size:0.94rem; color:var(--hf-text); opacity:0.9; max-width:480px; }

.footer-findus__map{ position:relative; height:230px; border-radius:var(--hf-radius); overflow:hidden; border:1px solid var(--hf-border); }
.footer-findus__map iframe{ width:100%; height:100%; display:block; filter:saturate(0.9); }
.footer-findus__map-link{
  position:absolute; top:14px; left:14px; z-index:2; background:var(--hf-white); color:var(--hf-teal-dark) !important;
  font-weight:700; font-size:0.85rem; padding:8px 16px; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.12);
  display:inline-flex; align-items:center; gap:8px;
}

/* ---------- SPECIALITY QUICK-JUMP ---------- */
.footer-speciality{ padding:36px 0; }
.footer-speciality__toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  background:var(--hf-white); border:1px solid var(--hf-border); border-radius:var(--hf-radius);
  padding:18px 24px; font-size:1.05rem; font-weight:600; color:var(--hf-teal-dark); cursor:pointer;
}
.footer-speciality__toggle i:first-child{ margin-right:10px; color:var(--hf-teal); }
.footer-speciality__toggle .fa-chevron-down{ transition:transform .3s ease; }
.footer-speciality__toggle[aria-expanded="true"] .fa-chevron-down{ transform:rotate(180deg); }
.footer-speciality__panel{
  max-height:0; overflow:hidden; transition:max-height .35s ease;
  display:flex; flex-wrap:wrap; gap:12px; background:var(--hf-white);
  border-radius:0 0 var(--hf-radius) var(--hf-radius);
}
.footer-speciality__panel.is-open{ max-height:220px; padding:18px 24px; border:1px solid var(--hf-border); border-top:none; }
.footer-speciality__panel a{
  background:var(--hf-teal-light); color:var(--hf-teal-dark); padding:9px 18px; border-radius:999px;
  font-size:0.85rem; font-weight:600; transition:background .2s ease, color .2s ease;
}
.footer-speciality__panel a:hover{ background:var(--hf-teal); color:var(--hf-white); }

/* ---------- MAIN FOOTER GRID ---------- */
.footer-main{ padding:20px 0 40px; }
.footer-main__grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:60px; }

.footer-logo{ display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.footer-logo-mark{ width:40px; height:40px; display:block; }
.footer-logo-mark svg{ width:100%; height:100%; }
.footer-logo-text{ display:flex; flex-direction:column; line-height:1.15; }
.footer-logo-text strong{ font-size:1.2rem; font-weight:800; color:var(--hf-teal-dark); }
.footer-logo-text small{ font-size:0.58rem; font-weight:600; letter-spacing:0.03em; color:var(--hf-teal); text-transform:uppercase; }

.footer-col--about p{ font-size:0.9rem; line-height:1.7; margin-bottom:22px; color:var(--hf-text); opacity:0.88; }
.footer-col h4{ font-size:1.05rem; margin-bottom:16px; position:relative; padding-bottom:10px; }
.footer-col h4::after{ content:''; position:absolute; left:0; bottom:0; width:34px; height:3px; background:var(--hf-teal); border-radius:2px; }

.footer-social{ display:flex; gap:10px; list-style:none; margin-top:14px; }
.footer-social a{
  width:36px; height:36px; border-radius:9px; background:var(--hf-white); border:1px solid var(--hf-border);
  display:flex; align-items:center; justify-content:center; color:var(--hf-teal-dark); transition:all .2s ease;
}
.footer-social a:hover{ background:var(--hf-teal); color:var(--hf-white); transform:translateY(-3px); }

.footer-links{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.footer-links a{ font-size:0.92rem; opacity:0.88; transition:opacity .2s ease, padding-left .2s ease; }
.footer-links a:hover{ opacity:1; color:var(--hf-teal-dark); padding-left:4px; }

.footer-col__note{ font-size:0.88rem; opacity:0.85; margin-bottom:18px; line-height:1.6; }
.footer-contact{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.footer-contact li{ display:flex; align-items:center; gap:10px; font-size:0.92rem; font-weight:600; }
.footer-contact i{ color:var(--hf-teal); }

.footer-form{ display:flex; flex-direction:column; gap:12px; }
.footer-form input, .footer-form textarea{
  width:100%; padding:12px 16px; border-radius:9px; border:1px solid var(--hf-border);
  background:var(--hf-white); font-family:inherit; font-size:0.88rem; color:var(--hf-text); resize:vertical;
}
.footer-form input:focus, .footer-form textarea:focus{ outline:none; border-color:var(--hf-teal); }
.footer-form button{
  background:var(--hf-teal); color:var(--hf-white); border:none; padding:12px 20px; border-radius:9px;
  font-weight:700; font-size:0.92rem; cursor:pointer; transition:background .2s ease;
}
.footer-form button:hover{ background:var(--hf-teal-dark); }

/* ---------- BOTTOM BAR ---------- */
.footer-bottom{ background:var(--hf-teal-dark); padding:18px 0; }
.footer-bottom__inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.footer-bottom__inner p{ color:rgba(255,255,255,0.8); font-size:0.82rem; margin:0; }
.footer-bottom__inner ul{ display:flex; gap:22px; list-style:none; margin:0; padding:0; }
.footer-bottom__inner a{ color:rgba(255,255,255,0.8); font-size:0.82rem; transition:color .2s ease; }
.footer-bottom__inner a:hover{ color:var(--hf-white); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1200px){
  .navbar__nav ul{ gap:18px; }
  .navbar__nav a{ font-size:0.86rem; }
  .footer-main__grid{ gap:36px; }
}

@media (max-width:992px){
  .topbar__contact{ gap:16px; font-size:0.78rem; }
  .navbar__badges{ display:none; }

  .navbar__toggle{ display:flex; }
  .navbar__nav{
    position:fixed; top:0; right:-100%; width:78%; max-width:340px; height:100vh;
    background:var(--hf-white); box-shadow:-8px 0 30px rgba(0,0,0,0.12);
    padding:100px 30px 30px; transition:right .35s ease; z-index:700; overflow-y:auto;
  }
  .navbar__nav.is-open{ right:0; }
  .navbar__nav ul{ flex-direction:column; align-items:flex-start; gap:22px; }
  .navbar__nav a::after{ display:none; }

  .footer-findus__grid{ grid-template-columns:1fr; }
}

@media (max-width:768px){
  .topbar__inner{ justify-content:center; text-align:center; }
  .topbar__contact{ justify-content:center; }
  .topbar__social{ display:none; }

  .navbar__logo-text strong{ font-size:1.1rem; }

  .footer-main__grid{ grid-template-columns:1fr; gap:34px; }
  .footer-speciality__panel a{ font-size:0.8rem; padding:8px 14px; }
  .footer-bottom__inner{ flex-direction:column; text-align:center; }
}

@media (max-width:576px){
  .navbar__inner{ padding:12px 16px; gap:12px; }
}

@media (max-width:480px){
  .topbar__contact{ flex-direction:column; align-items:flex-start; gap:8px; }
  .navbar__inner{ padding:12px 18px; }
}
