/* ==========================================================================
   ORCHID ROAD GENERAL HOSPITAL — Lekki, Lagos
   Built on the shared Lagos State health-family design system (same tokens,
   type, buttons, header/nav, footer as LASAEC and other Lagos State
   government health facility sites).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;700&display=swap');

:root{
  --blue-deep:   #0A3D62;
  --blue-bright: #1B6CA8;
  --red:         #C8102E;
  --red-deep:    #9E0D25;
  --yellow:      #F5B700;
  --green:       #157A47;
  --ink:         #10233B;
  --ink-soft:    #4A5B72;
  --bg:          #F5F8FA;
  --surface:     #FFFFFF;
  --border:      #DDE5EC;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(10,61,98,0.08);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ max-width: 100%; overflow-x: hidden; }
body{
  margin:0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
svg, img, video{ max-width: 100%; height: auto; }
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--blue-deep); line-height: 1.15; margin: 0 0 .5em; }
h1{ font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3{ font-size: 1.2rem; font-weight: 700; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: var(--blue-bright); text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ list-style:none; padding:0; margin:0; }
:focus-visible{ outline: 3px solid var(--yellow); outline-offset: 2px; }

.container{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section{ padding: 72px 0; }
.section--tight{ padding: 48px 0; }
.section--alt{ background: var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color: var(--blue-bright); font-weight:600; margin-bottom: 14px;
}
.eyebrow::before{ content:""; width:18px; height:2px; background: var(--red); display:inline-block; }
.eyebrow--light{ color: var(--yellow); }
.eyebrow--light::before{ background: var(--yellow); }
.lead{ font-size:1.1rem; max-width: 62ch; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body); font-weight:700; font-size:.98rem;
  padding: 13px 26px; border-radius: 8px; border:2px solid transparent;
  cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); text-decoration:none; }
.btn--primary{ background: var(--red); color:#fff; box-shadow: 0 6px 18px rgba(200,16,46,0.25); }
.btn--primary:hover{ background: var(--red-deep); }
.btn--outline{ background:transparent; border-color: var(--blue-deep); color: var(--blue-deep); }
.btn--outline:hover{ background: var(--blue-deep); color:#fff; }
.btn--ghost-light{ background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.5); color:#fff; }
.btn--ghost-light:hover{ background:rgba(255,255,255,0.22); }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; }

/* ---- Header / nav ---- */
.site-header{ position: sticky; top:0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar{ background: var(--blue-deep); color:#EAF2F8; font-family: var(--font-mono); font-size:.76rem; }
.topbar .container{ display:flex; justify-content:space-between; align-items:center; padding-top:6px; padding-bottom:6px; flex-wrap:wrap; gap:6px; }
.topbar strong{ color: var(--yellow); }
.navbar{ display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:14px; gap:20px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text .name{ font-family: var(--font-display); font-weight:800; font-size:1.05rem; color: var(--blue-deep); }
.brand-text .tag{ font-size:.68rem; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing:.04em; }
.logo-slot{ width:52px; height:52px; border-radius:10px; display:flex; align-items:center; justify-content:center; background: var(--red); }

.nav-links{ display:flex; align-items:center; gap:26px; }
.nav-links a{ color: var(--ink); font-weight:600; font-size:.95rem; position:relative; padding: 6px 0; }
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:3px;
  background: linear-gradient(90deg, var(--red), var(--blue-bright), var(--yellow), var(--green));
  transform: scaleX(0); transform-origin:left; transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--blue-deep); }
.nav-cta{ display:flex; align-items:center; gap:12px; }

.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle svg{ width:26px; height:26px; stroke: var(--blue-deep); }

@media (max-width: 900px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background: var(--surface);
    border-top:1px solid var(--border); border-bottom:1px solid var(--border); display:none;
    flex-direction:column; align-items:stretch; padding:8px 24px 20px; gap:4px;
    box-shadow:0 12px 20px rgba(10,61,98,.1);
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ border-bottom:1px solid var(--border); width:100%; }
  .nav-links a{ display:block; padding:14px 4px; }
  .nav-links a::after{ display:none; }
  .nav-cta{
    flex-direction:column; align-items:stretch; width:100%; gap:10px;
    margin-top:4px; padding:0 4px 4px; box-sizing:border-box;
  }
  .nav-cta .btn{ width:100%; text-align:center; }
}

/* ---- Page header (non-home pages) ---- */
.page-header{ background: var(--blue-deep); padding: 52px 0; }
.page-header h1{ color:#fff; }
.page-header p{ color:#CBD9E6; margin-top:10px; max-width:640px; }
.hero-bottom-bar{ height:8px; display:flex; }
.hero-bottom-bar span{ flex:1; }
.hero-bottom-bar .r{ background: var(--red); }
.hero-bottom-bar .b{ background: var(--blue-bright); }
.hero-bottom-bar .y{ background: var(--yellow); }
.hero-bottom-bar .g{ background: var(--green); }

/* ---- Homepage hero ---- */
.hero-home{ background: var(--blue-deep); position:relative; overflow:hidden; padding: 80px 0 64px; }
.hero-home::before{
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 15% 20%, rgba(200,16,46,.18), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(245,183,0,.12), transparent 45%);
  pointer-events:none;
}
.hero-home-inner{ position:relative; z-index:1; }
.hero-headline{ color:#fff; max-width:760px; }
.hero-headline h1{ color:#fff; }
.hero-headline .lead{ color: #CBD9E6; margin-top:16px; }
.hero-home .btn-row{ margin-top:28px; }

/* ---- Stat strip ---- */
.stat-strip{ display:grid; grid-template-columns: repeat(3,1fr); border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: var(--surface); }
.stat{ padding: 28px 20px; text-align:center; border-right:1px solid var(--border); }
.stat:last-child{ border-right:none; }
.stat .num{ font-family: var(--font-mono); font-size:1.9rem; font-weight:600; color: var(--blue-deep); }
.stat .label{ font-size:.85rem; color: var(--ink-soft); }
@media (max-width:760px){ .stat-strip{ grid-template-columns: 1fr; } .stat{ border-right:none; border-bottom:1px solid var(--border); } }

/* ---- Cards / grids ---- */
.grid{ display:grid; gap:24px; }
.grid--3{ grid-template-columns: repeat(3,1fr); }
.grid--2{ grid-template-columns: repeat(2,1fr); }
@media (max-width: 860px){ .grid--3, .grid--2{ grid-template-columns:1fr; } }

.card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover{ transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10,61,98,0.14); }
.card .icon-badge{ width:44px; height:44px; border-radius:9px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:#fff; }
.card .icon-badge svg{ width:22px; height:22px; }
.card h3{ margin-bottom:8px; }
.card p{ font-size:.95rem; margin-bottom:0; }

/* ---- Callout ---- */
.callout{ background:#fff; border-left:4px solid var(--yellow); border-radius: var(--radius); padding:26px 30px; box-shadow: var(--shadow); }
.callout p{ color: var(--ink); font-size:1.02rem; margin-bottom:0; }
.callout--red{ background: #FBEAEA; border-left-color: var(--red); }

/* ---- Info rows (contact page) ---- */
.info-row{ display:flex; gap:18px; padding:20px 0; border-bottom:1px solid var(--border); }
.info-row:last-child{ border-bottom:none; }
.info-icon{ width:38px; height:38px; border-radius:8px; background: var(--bg); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-icon svg{ width:20px; height:20px; stroke: var(--red); }
.info-row h4{ font-family: var(--font-body); font-size:1rem; font-weight:700; margin-bottom:3px; color: var(--ink); }
.info-row p{ font-size:.94rem; margin-bottom:0; }

/* ---- Footer ---- */
.site-footer{ background: #08192B; color:#B9C9DA; }
.footer-top{ padding: 56px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; } }
@media (max-width:540px){ .footer-grid{ grid-template-columns:1fr; gap:28px; } }
.footer-brand .name{ color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.15rem; }
.social-links{ display:flex; gap:12px; margin-top:16px; }
.social-icon{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; transition:background .15s ease; }
.social-icon:hover{ background:rgba(255,255,255,0.18); }
.footer-col h4{ color:#fff; font-size:.85rem; letter-spacing:.06em; text-transform:uppercase; font-family: var(--font-mono); font-weight:600; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:#B9C9DA; font-size:.92rem; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.1); padding: 20px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.82rem; }

.two-col{ display:grid; grid-template-columns: 1.1fr .9fr; gap:48px; align-items:start; }
@media (max-width:860px){ .two-col{ grid-template-columns:1fr; } }
.section-head{ margin-bottom:40px; max-width:680px; }
.mt-40{ margin-top:40px; }

@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

@media (max-width:600px){
  .hero-home{ padding: 48px 0 40px; }
  .page-header{ padding: 36px 0; }
  .section{ padding: 48px 0; }
  .card{ padding:20px; }
  .stat{ padding:20px 14px; }
}
