/* HEC stylesheet - version 13 */
/* ==========================================================================
   HealthEase Care Laboratory (HEC) - main stylesheet
   Mobile-first. Palette derived from the logo. Edit variables below.
   ========================================================================== */
:root{
  --hec-navy:#0B2B5B; --hec-green:#00A651; --hec-red:#E31E24; --hec-orange:#F7931E;
  --hec-white:#fff; --hec-ice:#F4F7FB; --hec-text:#1b2a41; --hec-muted:#55657f;
  --font-en:'Inter','Poppins',system-ui,sans-serif; --font-head:'Poppins','Inter',sans-serif;
  --font-ur:'Noto Nastaliq Urdu',serif;
  --radius:16px; --shadow:0 10px 30px rgba(11,43,91,.10);
  --header-h:76px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font-en);color:var(--hec-text);background:var(--hec-white);padding-bottom:64px}
h1,h2,h3,h4,h5,h6,.brand-text strong{font-family:var(--font-head);color:var(--hec-navy)}
a{color:var(--hec-green)}
.skip-link{position:absolute;left:8px;top:8px;z-index:3000;background:#fff;padding:8px 12px;border-radius:8px}
.urdu,[lang=ur]{font-family:var(--font-ur);line-height:2.2}
.text-accent{color:var(--hec-green)}

/* Buttons */
.btn-hec{background:var(--hec-green);border:0;color:#fff;font-weight:600;border-radius:999px;padding:.6rem 1.3rem;transition:transform .2s,box-shadow .2s,background .2s}
.btn-hec:hover,.btn-hec:focus{background:#008d44;color:#fff;transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,166,81,.3)}
.btn-wa{background:#25D366;color:#fff;border-radius:999px;font-weight:600;padding:.6rem 1.2rem}
.btn-wa:hover{background:#1fb457;color:#fff}
.btn-outline-hec{border:2px solid var(--hec-navy);color:var(--hec-navy);border-radius:999px;font-weight:600}
.btn-outline-hec:hover{background:var(--hec-navy);color:#fff}

/* Top bar & header */
.topbar{background:var(--hec-navy);color:#dbe6f7;font-size:.8rem}
.topbar a{color:#dbe6f7;text-decoration:none}.topbar a:hover{color:#fff}
.hec-header{position:sticky;top:0;z-index:1030;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid rgba(11,43,91,.08)}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-size:1.15rem}.brand-text small{color:var(--hec-green);font-weight:600;font-size:.72rem;letter-spacing:.04em}
.hec-nav .nav-link{color:var(--hec-navy);font-weight:500;font-size:.92rem;padding:.6rem .7rem;position:relative}
.hec-nav .nav-link::after{content:"";position:absolute;left:.7rem;right:.7rem;bottom:.2rem;height:2px;background:var(--hec-green);transform:scaleX(0);transition:transform .25s}
.hec-nav .nav-link:hover::after,.hec-nav .nav-link.active::after{transform:scaleX(1)}
.hec-nav .nav-link.active{color:var(--hec-green)}

/* Hero slider */
.hero{position:relative;overflow:hidden;background:var(--hec-navy);color:#fff}
.hero-slides{display:flex;transition:transform .8s cubic-bezier(.65,0,.35,1);will-change:transform;touch-action:pan-y}
.hero-slide{flex:0 0 100%;min-height:440px;padding:72px 0;display:flex;align-items:center;position:relative;background:linear-gradient(120deg,var(--c1),var(--c2))}
.hero-slide::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 20%,rgba(255,255,255,.16),transparent 45%)}
.hero-slide h1,.hero-slide h2{color:#fff;font-size:clamp(1.9rem,5vw,3.2rem);font-weight:700}
.hero-slide p{font-size:1.1rem;max-width:560px;opacity:.92}
.hero-slide .big-icon{font-size:clamp(5rem,14vw,10rem);opacity:.9;filter:drop-shadow(0 12px 24px rgba(0,0,0,.25))}
.hero-dots{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);display:flex;gap:8px;z-index:3}
.hero-dots button{width:10px;height:10px;border-radius:50%;border:0;background:rgba(255,255,255,.45);padding:0}
.hero-dots button.on{background:var(--hec-green);width:28px;border-radius:6px}
.hero-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;background:rgba(255,255,255,.18);border:0;color:#fff;width:42px;height:42px;border-radius:50%;font-size:1.3rem;display:none}
.hero-nav.prev{left:14px}.hero-nav.next{right:14px}
@media(min-width:992px){.hero-nav{display:block}}

/* Floating quick actions */
.quick-actions{position:fixed;right:14px;top:50%;transform:translateY(-50%);z-index:1040;display:none;flex-direction:column;gap:10px;padding:10px;border-radius:22px;background:rgba(255,255,255,.55);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.7);box-shadow:var(--shadow)}
.quick-actions>*{display:flex;flex-direction:column;align-items:center;gap:2px;width:64px;padding:8px 4px;border:0;border-radius:14px;background:rgba(11,43,91,.06);color:var(--hec-navy);text-decoration:none;font-size:.68rem;font-weight:600;transition:background .2s,transform .2s}
.quick-actions>*:hover{background:var(--hec-green);color:#fff;transform:translateX(-3px)}
.quick-actions span{font-size:1.4rem}.quick-actions em{font-style:normal}
@media(min-width:992px){.quick-actions{display:flex}body{padding-bottom:0}}

/* Mobile sticky bar */
.mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:1040;display:flex;background:var(--hec-navy);box-shadow:0 -6px 20px rgba(0,0,0,.2)}
.mobile-bar>*{flex:1;border:0;background:transparent;color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:center;padding:8px 0;font-size:1.1rem}
.mobile-bar span{font-size:.7rem;font-weight:600}
.mobile-bar>*:nth-child(2){background:#25D366}.mobile-bar>*:nth-child(3){background:var(--hec-green)}
@media(min-width:992px){.mobile-bar{display:none}}

/* ECG heartbeat divider */
.ecg-divider{position:relative;height:60px;overflow:hidden;background:var(--hec-white);border-bottom:1px solid #e8eef6}
.ecg-track{display:flex;width:max-content;animation:ecg-scroll 6s linear infinite}
.ecg-tile{flex:0 0 600px;width:600px;height:60px}
.ecg-heart{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:1.5rem;background:#fff;border-radius:50%;padding:0 6px;animation:beat 1.2s ease-in-out infinite}
@keyframes ecg-scroll{to{transform:translateX(-600px)}}
@keyframes beat{0%,100%{transform:translate(-50%,-50%) scale(1)}15%{transform:translate(-50%,-50%) scale(1.25)}30%{transform:translate(-50%,-50%) scale(1)}45%{transform:translate(-50%,-50%) scale(1.15)}}

/* Sections */
.section{padding:64px 0}
.section-alt{background:var(--hec-ice)}
.section-title{font-weight:700;margin-bottom:.4rem}
.section-sub{color:var(--hec-muted);max-width:640px;margin:0 auto 2rem}
.page-hero{background:linear-gradient(120deg,var(--hec-navy),#14478f);color:#fff;padding:56px 0 48px}
.page-hero h1{color:#fff;font-weight:700}.page-hero p{opacity:.9;max-width:680px;margin:0}
.page-hero.has-banner{background-size:cover;background-position:center}

/* Cards */
.svc-card,.info-card,.test-card,.doc-card{background:#fff;border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);height:100%;border:1px solid rgba(11,43,91,.06);transform-style:preserve-3d}
.svc-card .ico{font-size:2rem;width:60px;height:60px;display:grid;place-items:center;border-radius:16px;background:var(--hec-ice);margin-bottom:12px}
.svc-card h3{font-size:1.1rem}
.svc-card a.stretched{text-decoration:none}
.badge-hec{background:var(--hec-red);color:#fff;font-weight:600}
.badge-green{background:rgba(0,166,81,.12);color:#00793b;font-weight:600}
.price{font-family:var(--font-head);font-weight:700;color:var(--hec-navy)}
.notice-box{background:#fff7ec;border-left:4px solid var(--hec-orange);padding:12px 16px;border-radius:8px;font-size:.92rem}

/* Steps */
.step{text-align:center;padding:12px}
.step .num{width:56px;height:56px;border-radius:50%;background:var(--hec-green);color:#fff;font-weight:700;font-family:var(--font-head);display:grid;place-items:center;margin:0 auto 12px;font-size:1.3rem;box-shadow:0 8px 18px rgba(0,166,81,.3)}

/* Scroll reveal */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease;transition-delay:calc(var(--i,0) * 90ms)}
.reveal.in{opacity:1;transform:none}

/* Forms */
.hec-form .form-control,.hec-form .form-select{border-radius:12px;border-color:#d4deec;padding:.65rem .9rem}
.hec-form .form-control:focus,.hec-form .form-select:focus{border-color:var(--hec-green);box-shadow:0 0 0 .2rem rgba(0,166,81,.18)}
.hec-form .form-label{font-weight:600;font-size:.86rem;color:var(--hec-navy)}
.hp-field{position:absolute;left:-9999px;height:0;overflow:hidden}
.form-result .ok{color:#00793b;font-weight:600}.form-result .err{color:var(--hec-red);font-weight:600}

/* Footer */
.hec-footer{background:var(--hec-navy);color:#dbe6f7}
.hec-footer h6{color:#fff;font-weight:600;margin-bottom:1rem;border-bottom:2px solid var(--hec-green);display:inline-block;padding-bottom:4px}
.hec-footer a{color:#dbe6f7;text-decoration:none}.hec-footer a:hover{color:var(--hec-green)}
.footer-links li{margin-bottom:.45rem}
.footer-bottom{background:#072147;color:#9fb3d1}
.map-box{border-radius:12px;overflow:hidden}

/* Lab search */
.search-bar{position:sticky;top:calc(var(--header-h) + 8px);z-index:20}
.tab-pills .btn{border-radius:999px;margin:0 4px 8px 0}
.tab-pills .btn.active{background:var(--hec-navy);color:#fff}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .ecg-track{animation:none}
  .reveal{opacity:1;transform:none}
}

/* Logo */
.brand-logo{width:auto;height:52px;object-fit:contain}
.footer-logo{width:auto;height:60px;background:#fff;border-radius:10px;padding:4px 6px;object-fit:contain}

/* Services block details */
.svc-details{color:var(--hec-muted);margin-bottom:.5rem}
.svc-toggle{color:var(--hec-green);font-weight:600;text-decoration:none}
.svc-toggle:hover{text-decoration:underline}

/* Reviews slider */
.review-wrap{position:relative;padding:0 8px}
.review-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px 4px 16px;-webkit-overflow-scrolling:touch}
.review-track::-webkit-scrollbar{display:none}
.review-card{flex:0 0 100%;scroll-snap-align:start;margin:0;background:#fff;border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);border:1px solid rgba(11,43,91,.06);display:flex;flex-direction:column;gap:10px}
@media(min-width:768px){.review-card{flex-basis:calc(50% - 8px)}}
@media(min-width:1100px){.review-card{flex-basis:calc(33.333% - 11px)}}
.review-card .stars{color:var(--hec-orange);letter-spacing:2px;font-size:1.1rem}
.review-card blockquote{margin:0;color:var(--hec-text);font-size:.97rem;flex:1}
.review-card figcaption strong{display:block;color:var(--hec-navy)}
.review-card figcaption span{font-size:.82rem;color:var(--hec-muted)}
.review-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:var(--hec-navy);color:#fff;font-size:1.4rem;line-height:1;display:none;box-shadow:var(--shadow)}
.review-nav.prev{left:-14px}.review-nav.next{right:-14px}
@media(min-width:768px){.review-nav{display:block}}

/* Online reports banner (laboratory page) */
.reports-banner{background:linear-gradient(120deg,#fff7ec,#eefaf3);border-bottom:1px solid #e8eef6;padding:22px 0}
.reports-banner h2{color:var(--hec-navy);margin:0}

/* Header: one-line brand, one-line nav items, icon buttons */
.brand-text strong{white-space:nowrap}
.brand-text small{color:var(--hec-red);font-weight:600;font-size:.78rem;letter-spacing:.08em}
.hec-nav .nav-link{white-space:nowrap}
@media(min-width:1200px){
  .hec-nav .nav-link{padding:.6rem .5rem;font-size:.88rem}
  .hec-nav .nav-link::after{left:.5rem;right:.5rem}
}
@media(min-width:1400px){
  .hec-nav .nav-link{padding:.6rem .7rem;font-size:.92rem}
  .hec-nav .nav-link::after{left:.7rem;right:.7rem}
}
.icon-btn{width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
.icon-btn svg{display:block}

/* Service page details */
.page-details{padding-bottom:24px}
.page-details h2:first-child{margin-top:0}
.page-details h2{margin-top:1.6rem}
.page-details ul{padding-left:1.2rem}
.page-details li{margin-bottom:.4rem}

/* MOU partners */
.mou-card{background:#fff;border:1px solid rgba(11,43,91,.08);border-radius:var(--radius);padding:18px 12px;text-align:center;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--hec-text);transition:transform .2s}
a:hover>.mou-card{transform:translateY(-3px)}
.mou-logo{height:64px;width:auto;max-width:100%;object-fit:contain}
.mou-ico{font-size:2.2rem;line-height:64px;height:64px}

/* FAQ accordion */
.faq-acc .accordion-item{border:1px solid rgba(11,43,91,.08);border-radius:12px!important;margin-bottom:10px;overflow:hidden;background:#fff}
.faq-acc .accordion-button{font-weight:600;color:var(--hec-navy);padding:1rem 1.1rem;min-height:56px;font-size:1rem}
.faq-acc .accordion-button:not(.collapsed){background:rgba(0,166,81,.08);color:var(--hec-navy);box-shadow:none}
.faq-acc .accordion-button:focus{box-shadow:0 0 0 .2rem rgba(0,166,81,.18)}

/* How we deliver */
.deliver-list{list-style:none;padding:0;margin:0 0 1rem}
.deliver-list li{padding-left:1.5rem;position:relative;margin-bottom:.45rem;color:var(--hec-muted);font-size:.93rem}
.deliver-list li::before{content:"✓";position:absolute;left:0;color:var(--hec-green);font-weight:700}
.section-alt+.section-alt{padding-top:0}

/* Mobile-friendly tuning */
@media(max-width:575.98px){
  .section{padding:44px 0}
  .section-title{font-size:1.5rem}
  .hero-slide{min-height:380px;padding:56px 0}
  .hero-slide p{font-size:1rem}
  .page-hero{padding:40px 0 32px}
  .btn-lg{padding:.7rem 1.4rem;font-size:1rem}
  .info-card,.svc-card,.test-card,.doc-card{padding:18px}
  .urdu{line-height:2}
}

/* Eyebrow label above section titles */
.eyebrow{color:var(--hec-green);font-weight:600;letter-spacing:.06em;margin-bottom:.2rem}

/* Stats band */
.stats-band{background:linear-gradient(120deg,var(--hec-navy),#14478f);padding:40px 0;color:#fff}
.stat-card{text-align:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius);padding:20px 10px;height:100%}
.stat-ico{font-size:1.8rem;margin-bottom:4px}
.stat-num{font-family:var(--font-head);font-weight:700;font-size:clamp(1.5rem,5vw,2.3rem);line-height:1.15}
.stat-label{font-size:.9rem;opacity:.9;margin-top:4px}

/* Certifications */
.cert-card{background:#fff;border:1px solid rgba(11,43,91,.08);border-radius:var(--radius);height:110px;display:flex;align-items:center;justify-content:center;padding:12px;text-align:center}
.cert-logo{max-height:84px;max-width:100%;width:auto;object-fit:contain}
.cert-name{font-weight:600;color:var(--hec-navy);font-size:.9rem}

/* Lab departments carousel (uses the slider script of the reviews block) */
.dept-card{flex:0 0 72%;scroll-snap-align:start;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid rgba(11,43,91,.06)}
@media(min-width:576px){.dept-card{flex-basis:calc(50% - 8px)}}
@media(min-width:768px){.dept-card{flex-basis:calc(33.333% - 11px)}}
@media(min-width:1100px){.dept-card{flex-basis:calc(25% - 12px)}}
.dept-link{display:block;color:inherit;text-decoration:none}
.dept-img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.dept-ph{display:grid;place-items:center;font-size:3.4rem;background:linear-gradient(135deg,#eaf3ff,#e6f8ee)}
.dept-name{background:var(--hec-navy);color:#fff;text-align:center;font-weight:600;padding:10px 8px}
.dept-desc{margin:0;padding:10px 12px;font-size:.85rem;color:var(--hec-muted);text-align:center}

/* Promo popup */
.promo-modal .modal-dialog{max-width:min(92vw,520px)}
.promo-modal .modal-content{background:transparent;border:0;position:relative}
.promo-img{display:block;width:100%;height:auto;max-height:84vh;object-fit:contain;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.promo-close{position:absolute;top:8px;right:8px;z-index:5;width:40px;height:40px;padding:0;border-radius:50%;background-color:#fff;background-size:12px;opacity:1;box-shadow:0 2px 10px rgba(0,0,0,.3)}

/* ECG divider: red line, heart travelling along it */
.ecg-divider{height:66px}
.ecg-divider::before{content:"";position:absolute;left:0;right:0;top:34px;height:2px;background:rgba(227,30,36,.25)}
.ecg-svg{position:absolute;left:0;top:0;display:block}
.ecg-line{stroke:var(--hec-red);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ecg-h{position:absolute;left:0;top:0;width:24px;height:24px;fill:var(--hec-red);filter:drop-shadow(0 2px 3px rgba(227,30,36,.45));will-change:transform}

/* Animated X-ray film (Diagnostics slide) */
.hero-slide .big-icon .xray{width:min(210px,100%);height:auto;filter:drop-shadow(0 12px 24px rgba(0,0,0,.3))}
.xray .xr-scan{animation:xr-scan 3.2s ease-in-out infinite alternate}
.xray .xr-ribs{animation:xr-glow 3.2s ease-in-out infinite alternate}
@keyframes xr-scan{from{transform:translateY(0)}to{transform:translateY(198px)}}
@keyframes xr-glow{from{opacity:.55}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.xray .xr-scan,.xray .xr-ribs{animation:none}}

/* ---- Update 7: stats grid, ECG fallback, compact mobile header ---- */
.stats-band{padding:36px 0}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.stat-card{padding:22px 14px}
.stat-svg{width:34px;height:34px;color:#7fe3a6;margin-bottom:6px}
.stat-num{font-size:clamp(1.35rem,4.6vw,2.2rem);word-break:keep-all}
.ecg-static{position:absolute;left:0;top:0;width:100%;height:66px;display:block}
.ecg-js .ecg-static{display:none}
@media(max-width:575.98px){
  .stat-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .stat-grid .stat-card:last-child:nth-child(odd){grid-column:1/-1}
  .stat-card{padding:16px 8px}
  .stat-label{font-size:.82rem}
  .brand-logo{height:38px}
  .navbar-brand{gap:.4rem!important;margin-right:0}
  .brand-text strong{font-size:1rem}
  .brand-text small{font-size:.66rem}
  .topbar{font-size:.72rem}
  .topbar a[href^="mailto:"]{display:none}
  .footer-logo{height:46px}
}

/* ---- Update 8: promo popup fits phones, call/WhatsApp buttons, reopen tab ---- */
.promo-modal .modal-dialog{max-width:min(94vw,480px);margin-left:auto;margin-right:auto}
.promo-img{max-height:max(180px,calc(100vh - 210px));max-height:max(180px,calc(100dvh - 210px))}
.promo-actions{display:flex;gap:10px;margin-top:10px}
.promo-actions .btn{flex:1;padding:.8rem .5rem;font-size:1rem;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.promo-tab{position:fixed;left:0;bottom:76px;z-index:1035;display:flex;align-items:center;gap:6px;border:0;background:var(--hec-green);color:#fff;font-weight:600;font-size:.82rem;padding:9px 14px 9px 10px;border-radius:0 999px 999px 0;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.promo-tab:hover{background:#008d44}
@media(min-width:992px){.promo-tab{left:12px;bottom:24px;border-radius:999px}}

/* ---- Update 9: department names written on top of the picture ---- */
.dept-media{position:relative;display:block}
.dept-ph{color:var(--hec-navy);background:linear-gradient(135deg,#eaf3ff,#e6f8ee)}
.dept-title{position:absolute;left:0;right:0;bottom:0;margin:0;padding:34px 12px 12px;text-align:center;color:#fff;font-family:var(--font-head);font-weight:700;font-size:1.15rem;line-height:1.2;background:linear-gradient(to top,rgba(11,43,91,.95) 0%,rgba(11,43,91,.7) 55%,rgba(11,43,91,0) 100%);text-shadow:0 1px 3px rgba(0,0,0,.45)}

/* ---- Update 10: phone drawer menu, Services dropdown, breadcrumbs, quick tiles, mobile polish ---- */
/* Services dropdown (link + chevron) */
.hec-nav .has-sub{display:flex;flex-wrap:wrap;align-items:center;position:relative}
.hec-nav .has-sub>.nav-link{flex:1 1 auto}
.hec-nav .sub-toggle{flex:0 0 auto;background:none;border:0;padding:.6rem .45rem;color:var(--hec-navy);min-width:40px;min-height:44px}
.hec-nav .dropdown-menu{flex-basis:100%}
.hec-nav .dropdown-item.active,.hec-nav .dropdown-item:active{background:var(--hec-green);color:#fff}
.navbar-toggler{padding:.6rem .75rem}
.act-label{display:none}
@media(min-width:992px){
  .hec-nav .has-sub{flex-wrap:nowrap}
  .hec-nav .has-sub>.dropdown-menu{top:100%;left:0;min-width:250px;padding:8px;border-radius:14px;border:1px solid rgba(11,43,91,.08);box-shadow:var(--shadow)}
  .hec-nav .has-sub:hover>.dropdown-menu{display:block}
  .hec-nav .dropdown-item{border-radius:8px;padding:.55rem .8rem}
  .hec-drawer .offcanvas-body{flex-grow:1;align-items:center}
}
/* Phone drawer, like the reference sites */
@media(max-width:991.98px){
  .hec-drawer{background:#0a1226;color:#fff;max-width:86vw}
  .hec-drawer .offcanvas-header{padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.12)}
  .hec-drawer .offcanvas-title{font-family:var(--font-head);font-weight:600}
  .hec-drawer .offcanvas-body{padding:8px 20px 28px}
  .hec-drawer .hec-nav{width:100%;margin:0!important}
  .hec-drawer .hec-nav .nav-link{color:#fff;font-size:1.05rem;padding:1rem .25rem;border-bottom:1px solid rgba(255,255,255,.12)}
  .hec-drawer .hec-nav .nav-link::after{display:none}
  .hec-drawer .hec-nav .nav-link.active{color:#37d67a}
  .hec-drawer .sub-toggle{color:#fff;border-left:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12);padding:1rem 1.1rem;align-self:stretch}
  .hec-drawer .dropdown-menu{position:static;background:rgba(255,255,255,.06);border:0;border-radius:10px;margin:6px 0 10px;padding:4px 0}
  .hec-drawer .dropdown-item{color:#dbe6f7;padding:.8rem 1rem;font-size:.98rem}
  .hec-drawer .dropdown-item:hover{background:rgba(0,166,81,.22);color:#fff}
  .hec-drawer .header-actions{margin-top:22px}
  .hec-drawer .icon-btn{width:100%;height:50px;border-radius:999px;gap:10px;font-weight:600}
  .hec-drawer .act-label{display:inline}
}

/* Breadcrumbs */
.crumbs ol{list-style:none;margin:0 0 .6rem;padding:0;display:flex;flex-wrap:wrap;gap:.35rem;font-size:.85rem}
.crumbs li+li::before{content:"›";margin-right:.35rem;opacity:.6}
.crumbs a{color:#cfe0f7;text-decoration:none}
.crumbs a:hover{color:#fff;text-decoration:underline}
.crumbs [aria-current]{color:#fff;opacity:.9}

/* Quick action tiles under the hero */
.quick-book{padding:22px 0 8px}
.qb-tile{display:flex;flex-direction:column;justify-content:space-between;gap:14px;width:100%;min-height:150px;padding:18px;border:0;border-radius:20px;background:linear-gradient(145deg,var(--hec-navy),#1b3d86);color:#fff;text-align:left;text-decoration:none;font-weight:600;font-size:1rem;line-height:1.3;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.qb-tile:hover,.qb-tile:focus{color:#fff;transform:translateY(-3px);box-shadow:0 14px 30px rgba(11,43,91,.25)}
.qb-tile svg{width:44px;height:44px;fill:none;stroke:#7fe3a6;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Contact form card */
.contact-gradient{background:linear-gradient(145deg,var(--hec-navy),#0f6b55);color:#fff;border:0}
.contact-gradient h2,.contact-gradient .form-label{color:#fff}
.contact-gradient .form-control,.contact-gradient .form-select{border:0}
.contact-gradient .form-result .ok{color:#7fe3a6}.contact-gradient .form-result .err{color:#ffb3b5}

/* Mobile polish: readable text, big tap targets, no iOS zoom on inputs */
@media(max-width:575.98px){
  body{font-size:1.02rem;line-height:1.65}
  .form-control,.form-select{font-size:16px;min-height:48px}
  textarea.form-control{min-height:110px}
  .btn{min-height:46px}
  .hero-slide .btn{display:block;width:100%;padding:.85rem 1rem;font-size:1.05rem}
  .hero-slide h1,.hero-slide h2{font-size:1.9rem}
  .qb-tile{min-height:140px;padding:16px;font-size:.95rem}
  .page-hero h1{font-size:1.7rem}
  .page-details h2{font-size:1.3rem}
  .accordion-button{font-size:.98rem}
}
button.qb-tile{font-family:inherit}

/* ---- Update 11: lab test search ---- */
#catalogue .search-bar{max-width:720px;margin-left:auto;margin-right:auto}
#catalogue .tab-pills{text-align:center}
#catalogue #labStatus{text-align:center;min-height:1.4em}
.test-card .btn{min-height:40px}

/* ---- Update 12: phone layout fixes ----
   The blur on the sticky header made the header the containing block of the fixed phone menu.
   That pushed the page wider than the screen (zoomed-out, odd look) and squeezed the menu into the header bar.
   The blur is now used on large screens only. */
.hec-header{z-index:1046}
@media(max-width:991.98px){
  .hec-header{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}
}
html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img,iframe,video{max-width:100%}
[id]{scroll-margin-top:84px}
#catalogue .search-bar{background:#fff;padding:8px 0}
@media(max-width:575.98px){
  .container{padding-left:16px;padding-right:16px}
  .hero-slide{padding:44px 0 56px}
  .hero-dots{bottom:14px}
  .section-sub{font-size:.98rem}
  .promo-tab span{display:none}
  .promo-tab{padding:10px 12px;bottom:78px}
}
