/* ========== Aadityaa Hospital — Core Styles ========== */

:root{
  --royal-950:#0a0524;
  --royal-900:#120a3b;
  --royal-800:#1d1156;
  --royal-700:#291970;
  --gold-300:#ecc744;
  --gold-400:#e0b53d;
  --gold-500:#c9a227;
  --cream:#FAF6EE;
}

html,body{ background:#0a0524; }
body{ font-feature-settings:"ss01","cv11"; font-family:'Inter',sans-serif; }

.font-display,.font-serif,h1,h2,h3,h4,h5{ font-family:'Libre Baskerville',serif; letter-spacing:-0.01em;}
.font-serif{ font-family:'Libre Baskerville',serif; }

/* ===== NAV ===== */
#nav{ 
  background:linear-gradient(180deg, rgba(10,5,36,.85), rgba(10,5,36,0)); 
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#nav.scrolled{ 
  background:rgba(10,5,36,.92); 
  backdrop-filter:blur(24px) saturate(1.2); 
  border-bottom:1px solid rgba(224,181,61,.2); 
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.4);
}
.nav-link{ 
  position:relative; 
  padding:6px 0; 
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.nav-link:hover{ color: #ffffff; }
.nav-link::after{ 
  content:""; 
  position:absolute; 
  left:0; 
  bottom:0; 
  height:2px; 
  width:0; 
  background:linear-gradient(90deg,#ecc744,#e0b53d); 
  transition:width 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
  border-radius: 2px;
}
.nav-link:hover::after{ width:100%; }
.drawer-link{ padding:14px 4px; border-bottom:1px solid rgba(255,255,255,.06); color:#e9e3ff; }

/* ===== CTA pill ===== */
.cta-pill{
  position:relative;
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px;
  border-radius:999px;
  font-weight:600; font-size:14px;
  letter-spacing: 0.01em;
  color:#0a0524;
  background:linear-gradient(135deg,#f4dc7c 0%,#e0b53d 50%,#c9a227 100%);
  box-shadow:0 12px 35px -8px rgba(224,181,61,.45), inset 0 1px 0 rgba(255,255,255,.6);
  transition:transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.cta-pill:hover{ 
  transform:translateY(-3px); 
  box-shadow:0 20px 45px -8px rgba(224,181,61,.6), inset 0 1px 0 rgba(255,255,255,.7); 
}
.cta-pill svg {
  transition: transform 0.3s ease;
}
.cta-pill:hover svg {
  transform: translateX(3px);
}

/* ===== Float buttons ===== */
.float-btn{
  width:52px; height:52px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  color:white; 
  box-shadow:0 12px 28px -6px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.float-btn:hover{ 
  transform:scale(1.1) translateY(-2px); 
  box-shadow:0 16px 36px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,0.2);
}
.float-btn svg {
  transition: transform 0.3s ease;
}
.float-btn:hover svg {
  transform: scale(1.1);
}

/* ===== Glass card ===== */
.glass{
  background:linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(20px) saturate(1.2);
  border-radius:20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}
.glass:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4), 0 0 0 1px rgba(224,181,61,0.15);
  border-color: rgba(224,181,61,0.25);
}
.glass-gold{
  background:linear-gradient(145deg, rgba(224,181,61,.12), rgba(224,181,61,.02));
  border:1px solid rgba(224,181,61,.25);
  backdrop-filter:blur(20px);
  border-radius:20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.glass-gold:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(224,181,61,0.15);
}

/* ===== Decorative type ===== */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:11px; letter-spacing:.32em; text-transform:uppercase;
  color:#ecc744;
}
.eyebrow::before{ content:""; width:24px; height:1px; background:linear-gradient(90deg,transparent,#e0b53d); }

.h-display{
  font-family:'Libre Baskerville',serif;
  font-weight:500;
  line-height:1.05;
  letter-spacing:-0.02em;
}
.h-display em{ 
  font-style:italic; 
  font-weight:400; 
  color:#ecc744; 
}

/* Premium paragraph styling */
p {
  line-height: 1.7;
}

/* gold text gradient */
.text-gold-grad{
  background:linear-gradient(180deg,#f8e795 0%, #e0b53d 55%, #a1801e 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ===== Section bg with light grain + glow ===== */
.bg-noise::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.045; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}

/* ===== Hero background orbs ===== */
.orb{ position:absolute; border-radius:50%; filter:blur(80px); opacity:.55; pointer-events:none; }
.orb-purple{ background:radial-gradient(circle, #6f4ec9 0%, transparent 70%); }
.orb-gold{ background:radial-gradient(circle, #e0b53d 0%, transparent 70%); opacity:.35; }

/* ============================================================
   HERO CONTENT (left column) — single-line headlines at every
   breakpoint. Font-size scales so each phrase always fits its
   column without wrapping or overflowing into the slider.
   ============================================================ */
.hero-content{
  max-width:100%;
  z-index:2;
  position:relative;
}
.hero-title{
  font-family:'Libre Baskerville', serif;
  font-size:clamp(40px, 3.6vw, 72px);
  line-height:1.05;
  letter-spacing:-0.5px;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
  max-width:100%;
}
.hero-title > span{
  display:block;
  white-space:nowrap;
}

/* ===== Side-by-side hero on tablet & desktop (≥ 769px) ===== */
@media (min-width:769px){
  #hero .grid{
    display:flex !important;
    flex-direction:row !important;
    align-items:center;
    justify-content:space-between;
    gap:32px;
  }
  #hero .grid > .hero-content{
    flex:1 1 50%;
    max-width:50%;
    width:50%;
  }
  #hero .grid > .hero-slider-col{
    flex:1 1 50%;
    max-width:50%;
    width:50%;
    display:block !important;
  }
  .hero-title{
    font-size:min(4vw, 56px);
  }
  /* Tablet slider — image-only, height driven by image */
  .hero-carousel{ height:auto; background:transparent; border-radius:0; }
}

/* ===== True desktop (≥ 1025px) ===== */
@media (min-width:1025px){
  #hero .grid{ gap:40px; }
  #hero .grid > .hero-content{
    flex:0 0 48%;
    max-width:48%;
    width:48%;
  }
  #hero .grid > .hero-slider-col{
    flex:0 0 52%;
    max-width:52%;
    width:52%;
  }
  .hero-title{
    font-size:clamp(36px, 3.7vw, 72px);
  }
  .hero-carousel{ height:auto; background:transparent; border-radius:0; }
}

/* ===== Wide desktop (≥ 1280px) — honour the spec ===== */
@media (min-width:1280px){
  .hero-title{
    font-size:clamp(52px, 4vw, 72px);
  }
  .hero-carousel{ height:auto; background:transparent; border-radius:0; }
}

/* ============================================================
   HERO IMAGE CAROUSEL — image-only, no card chrome.
   No purple panel, no border-radius, no fixed-height container,
   no left/right strips. Images render at their natural aspect
   and the carousel sizes itself to the active slide.
   ============================================================ */
.hero-carousel{
  position:relative;
  width:100%;
  border-radius:0;
  background:transparent;
  overflow:visible;
  isolation:isolate;
  /* Reserve vertical room driven by the building (first) slide so the
     stacked absolute siblings don't collapse. The first slide stays in
     flow (position:relative) to dictate height. */
}
.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border:none;
  border-radius:0;
  box-shadow:none;
  margin:0;
  padding:0;
  opacity:0;
  transition:opacity 1s ease-in-out;
  will-change:opacity;
}
/* The first slide stays in flow so the carousel has a natural height
   matching the building image's aspect ratio. */
.hero-slide:first-of-type{
  position:relative;
}
.hero-slide.is-active{ opacity:1; }
.hero-slide img{
  width:100%;
  height:auto;
  max-height:none;
  display:block;
  object-fit:contain;
  background:none;
  border:none;
  box-shadow:none;
  margin:0;
  padding:0;
}
.hero-slide:not(:first-of-type) img{
  /* Stacked slides match the container's height set by the first slide */
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

/* navigation dots */
.hero-dots{
  position:absolute;
  left:0; right:0; bottom:14px;
  z-index:3;
  display:flex;
  justify-content:center;
  gap:9px;
  pointer-events:none;
}
.hero-dot{
  pointer-events:auto;
  width:9px; height:9px;
  padding:0;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.45);
  box-shadow:0 1px 3px rgba(0,0,0,.4);
  cursor:pointer;
  transition:all .35s ease;
}
.hero-dot:hover{ background:rgba(255,255,255,.8); }
.hero-dot.is-active{
  width:26px;
  border-radius:6px;
  background:linear-gradient(90deg,#ecc744,#c9a227);
}

@media (prefers-reduced-motion:reduce){
  .hero-slide{ transition:opacity .2s linear; }
}

/* ============================================================
   DOCTORS ON DUTY — collapsible panel (closed by default)
   Uses grid-rows 0fr→1fr for a smooth slide with no fixed height.
   ============================================================ */
.avail-body{
  display:grid;
  grid-template-rows:0fr;                 /* collapsed by default */
  transition:grid-template-rows .4s cubic-bezier(.4,0,.2,1);
}
.avail-body.open{ grid-template-rows:1fr; }
.avail-body-inner{
  overflow:hidden;
  min-height:0;
  max-height:280px;
  overflow-y:auto;
  border-top:1px solid rgba(255,255,255,.1);
}
.avail-body:not(.open) .avail-body-inner{
  border-top-color:transparent;          /* hide divider while closed */
}
#avail-chev.open{ transform:rotate(180deg); }
@media (prefers-reduced-motion:reduce){
  .avail-body{ transition:none; }
}

/* Floating stat card */
.stat-float{
  position:absolute;
  padding:14px 18px;
  border-radius:18px;
  background:linear-gradient(145deg, rgba(18,10,59,.85), rgba(29,17,86,.6));
  border:1px solid rgba(224,181,61,.25);
  backdrop-filter:blur(20px);
  box-shadow:0 25px 60px -20px rgba(0,0,0,.6);
}

/* counter animation */
.counter{ font-variant-numeric:tabular-nums; }

/* Marquee */
.marquee{ overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); }
.marquee-track{ display:flex; gap:64px; width:max-content; animation:scrollLeft 38s linear infinite; }
@keyframes scrollLeft{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* Doctor card — premium hospital styling */
.doctor-card{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(29,17,86,0.95) 0%, rgba(18,10,59,0.98) 100%);
  border:1px solid rgba(255,255,255,.06);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}
.doctor-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 32px 64px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(224,181,61,0.15);
  border-color: rgba(224,181,61,0.2);
}
.doctor-card .photo{
  aspect-ratio: 4/5;
  background-size:cover; background-position:center 20%;
  filter:saturate(1.05) contrast(1.05);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.doctor-card:hover .photo{
  transform: scale(1.04);
}
/* Initial-based avatar for doctors without an uploaded photo */
.doctor-card .photo.avatar{
  display:grid; place-items:center;
  background:
    radial-gradient(circle at 50% 30%, rgba(224,181,61,.18), transparent 60%),
    linear-gradient(160deg,#291970 0%, #1d1156 55%, #120a3b 100%);
  filter:none;
}
.doctor-card .photo.avatar .initials{
  font-family:'Cormorant Garamond',serif;
  font-weight:600;
  font-size:clamp(48px,7vw,72px);
  letter-spacing:.04em;
  background:linear-gradient(120deg,#f4dc7c,#c9a227);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  line-height:1; user-select:none;
}
.doctor-card:hover .photo.avatar{ transform:scale(1.03); }
.doctor-card:hover .photo{ transform:scale(1.06); }
.doctor-card::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 30%, rgba(10,5,36,.92) 95%);
  z-index:1; pointer-events:none;
}
.doctor-card .meta{ position:absolute; left:0; right:0; bottom:0; padding:22px; z-index:2; }
.doctor-card .availability{
  position:absolute; top:16px; left:16px; z-index:3;
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(10,5,36,.55); backdrop-filter:blur(10px);
  border:1px solid rgba(224,181,61,.25);
  padding:6px 10px; border-radius:999px;
  font-size:10.5px; letter-spacing:.18em; text-transform:uppercase;
}
.doctor-card .availability .dot{ width:6px; height:6px; border-radius:50%; background:#34d399; box-shadow:0 0 10px #34d399; }
.doctor-card .qr{
  position:absolute; top:16px; right:16px; z-index:3;
  width:42px; height:42px; border-radius:14px;
  background:rgba(224,181,61,.15); border:1px solid rgba(224,181,61,.35);
  display:grid; place-items:center; color:#ecc744;
  transition:transform .5s, background .3s;
}
.doctor-card:hover .qr{ transform:rotate(8deg); background:rgba(224,181,61,.3); }
.doctor-card:hover{ transform:translateY(-6px); box-shadow:0 50px 90px -40px rgba(0,0,0,.7); }

/* Specialty tile — premium hospital styling */
.specialty{
  position:relative;
  border-radius:20px;
  padding:32px 28px;
  background:linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.01) 100%);
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              background 0.4s ease,
              box-shadow 0.4s ease;
}
.specialty::before{
  content:""; position:absolute; inset:auto -40% -60% auto; width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle, rgba(224,181,61,.15), transparent 65%);
  opacity:0; transition:opacity 0.5s ease;
}
.specialty:hover::before{ opacity:1; }
.specialty:hover{ 
  transform:translateY(-6px); 
  border-color:rgba(224,181,61,.3); 
  background:linear-gradient(160deg, rgba(224,181,61,.06), rgba(255,255,255,.02));
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.3);
}
.specialty .icon{
  width:56px; height:56px; border-radius:16px;
  background:linear-gradient(135deg, rgba(224,181,61,.15), rgba(224,181,61,.03));
  border:1px solid rgba(224,181,61,.25);
  display:grid; place-items:center; color:#ecc744;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}
.specialty:hover .icon{
  transform: scale(1.05);
  background:linear-gradient(135deg, rgba(224,181,61,.25), rgba(224,181,61,.08));
}
.specialty .group svg {
  transition: transform 0.3s ease;
}
.specialty .group:hover svg {
  transform: translateX(4px);
}

/* Offer cards */
.offer-card{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  padding:26px;
  min-height:260px;
  display:flex; flex-direction:column; justify-content:space-between;
  border:1px solid rgba(255,255,255,.07);
  transition:transform .5s;
}
.offer-card:hover{ transform:translateY(-6px); }
.offer-card .tag{
  display:inline-flex; align-items:center; padding:5px 10px; border-radius:999px;
  font-size:10px; letter-spacing:.25em; text-transform:uppercase;
}
.offer-card .price{ font-family:'Cormorant Garamond',serif; font-size:38px; line-height:1; }

/* Pregnancy package */
.pkg-card{
  position:relative;
  border-radius:36px;
  overflow:hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(224,181,61,.25), transparent 55%),
    linear-gradient(135deg, #1d1156 0%, #0a0524 100%);
  border:1px solid rgba(224,181,61,.25);
  box-shadow:0 60px 120px -40px rgba(0,0,0,.7);
}
.pkg-feature{
  display:flex; align-items:center; gap:14px;
  padding:14px 18px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.pkg-feature .num{
  width:34px; height:34px; border-radius:50%;
  background:linear-gradient(135deg,#f4dc7c,#c9a227); color:#0a0524;
  display:grid; place-items:center; font-weight:700; font-family:'Cormorant Garamond',serif;
}

/* Testimonial cards */
.testi-card{
  border-radius:24px; padding:28px;
  background:linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
}
.stars{ color:#ecc744; letter-spacing:2px; }

/* Booking steps */
.step{ display:flex; align-items:center; gap:10px; }
.step .bullet{
  width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center; font-weight:600; font-size:12px;
  background:rgba(255,255,255,.08); color:white; border:1px solid rgba(255,255,255,.12);
}
.step.active .bullet{ background:linear-gradient(135deg,#f4dc7c,#c9a227); color:#0a0524; border-color:transparent; box-shadow:0 0 0 4px rgba(224,181,61,.15); }
.step.done .bullet{ background:#34d399; color:#0a0524; }

.field-label{ font-size:11px; letter-spacing:.25em; text-transform:uppercase; color:rgba(255,255,255,.55); }
.field{
  width:100%; padding:14px 16px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
  border-radius:14px; color:white; font-size:14px;
  transition:border-color .25s, background .25s;
}
.field:focus{ outline:none; border-color:rgba(224,181,61,.55); background:rgba(255,255,255,.06); }

.chip{
  padding:9px 14px; border-radius:999px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
  font-size:13px; transition:all .25s; cursor:pointer;
}
.chip:hover{ border-color:rgba(224,181,61,.4); }
.chip.selected{ background:linear-gradient(135deg, rgba(224,181,61,.22), rgba(224,181,61,.08)); border-color:rgba(224,181,61,.55); color:#fff5cc; }

/* Sticky CTA bar (desktop) */
.sticky-cta{ position:fixed; right:24px; top:50%; transform:translateY(-50%); z-index:30; }

/* Section divider line */
.divider-gold{
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(224,181,61,.5), transparent);
}

/* Reveal animation default — premium smooth fade + slide up */
.reveal{ 
  opacity:0; 
  transform:translateY(32px); 
  transition:opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
}
.reveal.in{ opacity:1; transform:translateY(0); }

/* Staggered reveal delays for grids */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* Tilt utility */
.tilt{ transition:transform .5s cubic-bezier(.2,.8,.2,1); will-change:transform; }

/* Custom scrollbar */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,#c9a227,#7a6018); border-radius:10px; }
::-webkit-scrollbar-track{ background:#120a3b; }

/* Marquee badge style */
.badge-pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 18px; border-radius:999px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  font-size:13px; color:rgba(255,255,255,.85); white-space:nowrap;
}
.badge-pill .dot{ width:6px; height:6px; border-radius:50%; background:#ecc744; }

/* Map frame */
.map-frame{
  border-radius:28px; overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 40px 80px -40px rgba(0,0,0,.7);
}

/* Loader fade + CSS-only failsafe (auto hides after 2.5s even with no JS) */
#loader{ animation: loaderAutoHide 0s 2.5s forwards; }
@keyframes loaderAutoHide{ to { opacity:0; pointer-events:none; visibility:hidden; } }
#loader.hidden{ opacity:0; pointer-events:none; transition:opacity .8s ease; }

/* small responsive type */
@media (max-width:640px){
  .h-display.text-7xl{ font-size:50px; }
  .h-display.text-6xl{ font-size:42px; }
}

/* ============================================================
   LOGO — wide rectangular banner, shown in full, never cropped
   (logo aspect ratio ≈ 1.93:1)
   ============================================================ */
.brand-logo{
  display:block;
  height:auto;
  width:auto;
  max-width:100%;
  object-fit:contain;
  object-position:left center;
  background:transparent;   /* transparent PNG — blends into the header/hero */
  flex-shrink:0;
}

/* Navbar / loader — wide enough to read the wordmark, balanced with nav */
.brand-logo--nav{
  width:clamp(200px, 42vw, 280px);
  height:auto;
}
@media (min-width:768px){
  .brand-logo--nav{ width:clamp(220px, 22vw, 280px); }
}
@media (min-width:1024px){
  .brand-logo--nav{ width:clamp(240px, 18vw, 280px); }
}

/* Glass card overlay on building image — subtle secondary branding */
.brand-logo--card{
  width:clamp(120px, 30vw, 150px);
  height:auto;
}
@media (min-width:768px){
  .brand-logo--card{ width:clamp(140px, 14vw, 170px); }
}
@media (min-width:1024px){
  .brand-logo--card{ width:clamp(150px, 12vw, 180px); }
}

/* Footer — elegant, secondary to content */
.brand-logo--footer{
  width:clamp(170px, 26vw, 220px);
  height:auto;
}

/* Legacy alias — maps to card size for any remaining references */
.brand-logo--sm{ width:clamp(120px, 30vw, 150px); height:auto; }
@media (min-width:1024px){
  .brand-logo--sm{ width:clamp(150px, 12vw, 180px); }
}


/* ============================================================
   DOCTOR PHOTOS — reduce zoom, show full face/shoulders
   ============================================================ */
.doctor-card .photo{ background-position:center 18%; }      /* sensible default */
.doctor-card .photo[data-pos]{ background-position:var(--pos); }


/* Final visual tuning */
.doctor-card .photo{background-position:center center !important;}

/* Global typography — Libre Baskerville for all headings/display copy */
h1, h2, h3, h4, h5, h6,
.font-display, .font-serif, .h-display{
  font-family:'Libre Baskerville', serif !important;
  letter-spacing:-0.01em;
}
.h-display em, em{
  font-family:'Libre Baskerville', serif;
  font-style:italic;
  font-weight:400;
  color:#ecc744;
}

/* ============================================================
   GLOBAL OVERFLOW GUARD — kills any horizontal scroll
   ============================================================ */
*{ box-sizing:border-box; }
html, body{
  overflow-x:hidden;
  max-width:100%;
}

/* ============================================================
   MOBILE FIX (≤ 768px) — single source of truth for the
   responsive hero, slider, CTAs and floating buttons.
   ============================================================ */
@media (max-width:768px){
  /* Hero section — tighter vertical rhythm, no clipped art */
  #hero{
    padding-top:104px;
    padding-bottom:48px;
  }
  /* Tame the giant decorative orbs that were inflating the page */
  #hero .orb{
    width:280px !important;
    height:280px !important;
    opacity:.35;
    filter:blur(60px);
  }

  /* Force the hero into a clean single column */
  #hero .grid{
    display:flex !important;
    flex-direction:column;
    gap:30px;
  }
  /* Guarantee both stacked items render at full width */
  #hero .grid > *{
    width:100% !important;
    max-width:100% !important;
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
  }

  /* Hero text column — full width, never overflows */
  .hero-content{
    width:100%;
    max-width:100%;
    padding:0;
  }
  /* Each phrase MUST stay on a single line on phones. */
  .hero-title{
    font-size:min(8vw, 32px) !important;
    line-height:1.1 !important;
    letter-spacing:-0.5px !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    max-width:100%;
  }
  .hero-title > span{
    display:block;
    white-space:nowrap !important;
  }

  /* CTA buttons — full width, stacked */
  #hero .mt-10.flex{
    flex-direction:column;
    gap:12px;
    align-items:stretch;
  }
  #hero .mt-10.flex > a,
  #hero .mt-10.flex .cta-pill{
    width:100%;
    justify-content:center;
    padding:14px 20px;
  }

  /* Slider — guaranteed visible, image is the visual element */
  .hero-carousel{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    background:transparent !important;
    border-radius:0 !important;
    margin-top:10px;
  }
  .hero-slide{
    display:block !important;
    visibility:visible !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    border:none !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  .hero-slide img{
    width:100% !important;
    height:auto !important;
    display:block !important;
    object-fit:contain !important;
    background:none !important;
    border:none !important;
    box-shadow:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* Floating social buttons — smaller and tucked above the bottom bar */
  .float-btn{
    width:48px !important;
    height:48px !important;
  }
  body > .fixed.right-4.bottom-24,
  .fixed.right-4.bottom-24.md\:bottom-8{
    bottom:96px !important;
    right:10px !important;
    gap:10px !important;
  }
}

/* Extra-narrow phones (≤ 400px) — final safety net */
@media (max-width:400px){
  .hero-title{
    font-size:min(7vw, 32px) !important;
    letter-spacing:-0.5px !important;
    white-space:nowrap !important;
  }
  .hero-title > span{ white-space:nowrap !important; }
  .hero-carousel{ max-height:none; background:transparent !important; border-radius:0 !important; }
  .float-btn{ width:44px !important; height:44px !important; }
}

/* Very small phones (≤ 360px) */
@media (max-width:360px){
  .hero-title{ font-size:min(6.8vw, 26px) !important; }
}

/* ============================================================
   LEFT-SIDE FLOATING WIDGETS
   Doctors on Duty (top) + Emergency Helpline (bottom)
   Independent fixed panels — do not affect page layout.
   ============================================================ */
.doctors-duty-widget{
  position:fixed;
  left:20px;
  bottom:140px;
  z-index:9999;
  width:320px;
  max-width:calc(100vw - 30px);
  pointer-events:auto;
}
.emergency-widget{
  position:fixed;
  left:20px;
  bottom:20px;
  z-index:9999;
  width:320px;
  max-width:calc(100vw - 30px);
  pointer-events:auto;
}

/* Mobile — keep on left, lift above sticky CTA bar */
@media (max-width:768px){
  .doctors-duty-widget{
    left:12px;
    bottom:170px;
    width:280px;
    max-width:calc(100vw - 30px);
  }
  .emergency-widget{
    left:12px;
    bottom:90px;
    width:280px;
    max-width:calc(100vw - 30px);
  }
}
