/* Labcrest Medical Diagnostics & Clinic — site styles
   Brand: green #0A7D35 (main), light green #8CC63F, yellow #F2D20F (accent, sparingly), red #C8102E (accent, sparingly) */
:root {
  --green: #0A7D35; --green-dark: #0B3D1F; --green-deep: #0F2A1A; --green-soft: #EAF5EC;
  --lime: #8CC63F; --yellow: #F2D20F; --red: #B3121B; --red-logo: #C8102E;
  --ink: #1C2B22; --muted: #55665B; --line: #E4ECE6; --bg-soft: #F5F8F5;
  --radius: 18px; --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: Outfit, Inter, sans-serif; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #086A2D; box-shadow: 0 8px 20px rgba(10,125,53,.25); }
.btn-light { background: var(--green-soft); color: #0E5E33; }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-red { background: var(--red); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; }
.topbar { background: var(--green-dark); color: #DCEBE0; font-size: 12.5px; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #DCEBE0; text-decoration: none; }
.topbar-r { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.topbar-social { display: flex; gap: 6px; padding-left: 14px; border-left: 1px solid #2D5A3C; }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.topbar-social a:hover { background: rgba(255,255,255,.25); }
.navbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.navbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 11px; padding-bottom: 11px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: Outfit, sans-serif; font-weight: 700; font-size: 19px; color: var(--red-logo); letter-spacing: .03em; }
.brand-sub { font-size: 10px; color: var(--green); font-weight: 600; letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; flex: 1; justify-content: flex-end; }
.main-nav > a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav > a:hover { color: var(--green); }
.main-nav > a.is-active { color: var(--green); border-bottom-color: var(--lime); }
.main-nav .nav-contact { margin-left: 18px; color: var(--green); font-weight: 600; border: 0; }
.main-nav .nav-book { color: #fff; border: 0; padding: 11px 18px; font-size: 14px; }
.main-nav .nav-book:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11,61,31,.1); display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav > a.is-active { border-bottom-color: var(--line); }
  .main-nav .nav-contact { margin: 0; }
  .main-nav .nav-book { margin-top: 14px; padding: 14px; font-size: 15px; }
  .navbar { position: relative; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .brand img { height: 40px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #C9DBCE; position: relative; }
.footer-bar { height: 4px; background: linear-gradient(90deg, #0A7D35 0 70%, #8CC63F 70% 92%, #F2D20F 92% 97%, #C8102E 97% 100%); }
.footer-in { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col p { margin: 0; line-height: 1.6; }
.footer-col a { color: #C9DBCE; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-h, .footer-col a.footer-h { color: #fff; font-weight: 600; font-size: 14px; margin-top: 4px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-family: Outfit, sans-serif; font-weight: 700; font-size: 19px; color: #fff; letter-spacing: .03em; }
.social-row { display: flex; gap: 8px; }
.social-btn { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.social-btn:hover { transform: translateY(-2px); }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; font-size: 14px; padding: 11px; border-radius: 10px; border: 1px solid #2D5A3C; background: #0F4A27; color: #fff; }
.nl-row input::placeholder { color: #9CB7A6; }
.nl-row button { font-weight: 600; font-size: 14px; padding: 11px 14px; border-radius: 10px; border: 0; background: #fff; color: var(--green-dark); cursor: pointer; }
.footer-bottom { border-top: 1px solid #1F5634; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; padding-right: 70px; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: #C9DBCE; text-decoration: none; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 60; }
.wa-panel { background: #fff; border-radius: 14px; box-shadow: 0 16px 36px rgba(11,61,31,.22); padding: 12px; width: 230px; display: flex; flex-direction: column; gap: 6px; }
.wa-panel[hidden] { display: none; }
.wa-title { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0 4px 2px; }
.wa-panel a { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #0A6B2E; background: var(--green-soft); padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.wa-panel a:hover { background: #D8EEDD; }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(18,140,74,.35); cursor: pointer; animation: wa-pulse 2.6s ease-out 1.5s 3; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }

/* ---------- Forms ---------- */
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 14px; }
.form-msg.ok { background: var(--green-soft); color: #0E5E33; border: 1px solid #CBE6D2; }
.form-msg.err { background: #FDECEE; color: #8E1018; border: 1px solid #F5C9CE; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { font-size: 15px; font-weight: 400; color: var(--ink); padding: 12px; border: 1px solid #D5E2D9; border-radius: 10px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(10,125,53,.15); }
input[type="date"], input[type="time"] { min-height: 46px; }

/* ---------- Content helpers ---------- */
img[loading="lazy"] { background: #EEF3EF; }
.gal-item { cursor: zoom-in; }
.gal-item[hidden] { display: none !important; }
.chip-btn { cursor: pointer; }
.lightbox { position: fixed; inset: 0; background: rgba(6,24,13,.92); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 12px; margin: 0 auto; display: block; }
.lightbox figcaption { color: #E4F0E7; text-align: center; font-size: 15px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }
.lc-map { width: 100%; height: 100%; min-height: 380px; border-radius: 24px; overflow: hidden; z-index: 0; }
.lc-pin { width: 38px; height: 44px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.leaflet-popup-content { font-family: Inter, sans-serif; font-size: 13.5px; line-height: 1.5; }
.leaflet-popup-content b { font-family: Outfit, sans-serif; font-size: 15px; }
.leaflet-popup-content a { font-weight: 600; }

/* Blog article */
.prose { font-size: 17px; line-height: 1.8; color: #2A3A30; }
.prose h2 { font-size: 28px; line-height: 1.25; margin: 1.6em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 22px; margin: 1.4em 0 .4em; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose img { border-radius: 14px; margin: 1em 0; }
.prose a { color: var(--green); font-weight: 500; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--lime); color: var(--muted); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose figure { margin: 1em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; }

/* Service detail hero icon hides on small screens */
.lc-hero-ic { display: block; }
@media (max-width: 900px) { .lc-hero-ic { display: none; } }

/* Hover polish */
a[href] > img, .card-lift { transition: transform .25s ease; }
.card-lift:hover { transform: translateY(-3px); }

/* Small-screen fixes for design sections */
@media (max-width: 640px) {
  .stack-sm { flex-direction: column !important; }
  .grid-1-sm { grid-template-columns: 1fr !important; }
  .span-1-sm { grid-column: auto !important; }
  .wa-panel { width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.wa-row { display: flex; align-items: center; gap: 10px; }
.wa-hint { background: #fff; color: var(--green-dark); font-weight: 600; font-size: 13.5px; padding: 8px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(11,61,31,.18); }
.wa-btn[aria-expanded="true"] ~ .wa-hint, .wa-float:has(.wa-btn[aria-expanded="true"]) .wa-hint { display: none; }
@media (max-width: 640px) { .wa-hint { display: none; } }
/* Gallery: every photo in the same frame, whatever size was uploaded */
.gal-frame { width: 100%; aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; display: block; }
.author-box { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--bg-soft); border-radius: 16px; margin-top: 28px; }
.author-box img { width: 44px; height: 52px; }
.author-box b { font-family: Outfit, sans-serif; }
