/* ==========================================================================
   LASAEC — Lagos State Accident & Emergency Centre
   Built on the shared Lagos State health-family design system (same tokens,
   type, buttons, header/nav, footer, and Bridge Bar motif as the LSHSC and
   General Hospital sites). LASAEC's own signature addition: a cardiac-
   monitor-style vitals readout in the hero — because a real visitor here
   may be searching this site in genuine distress, so everything outside
   that one signature moment stays calm and highly legible.
   ========================================================================== */

@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{
  /* ---- Colour tokens (Lagos State colours — shared across all family sites) ---- */
  --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;

  /* ---- Type (shared across all family sites) ---- */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* ---- Layout ---- */
  --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; }

/* ---- Bridge Bar (shared signature motif — red / blue / yellow / green) ---- */
.bridge-bar{ display:flex; height:5px; width:100%; border-radius:3px; overflow:hidden; }
.bridge-bar span{ flex:1; }
.bridge-bar .r{ background: var(--red); }
.bridge-bar .b{ background: var(--blue-bright); }
.bridge-bar .y{ background: var(--yellow); }
.bridge-bar .g{ background: var(--green); }
.bridge-bar--sm{ height:3px; max-width:120px; }

/* ---- Buttons ---- */
.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--secondary{ background: var(--blue-deep); color:#fff; }
.btn--secondary:hover{ background:#082F4D; }
.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 (shared pattern across family sites) ---- */
.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 a{ color:#EAF2F8; }
.topbar strong{ color: var(--yellow); }
.navbar{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; gap:20px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ flex-shrink:0; }
.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 .btn--outline{ display:none; }
}

/* ---- Emergency callout button (LASAEC-specific: always-visible in nav) ---- */
.nav-emergency{ background: var(--red); color:#fff !important; padding:9px 18px; border-radius: 8px; font-weight:700; font-size:.9rem !important; }
.nav-emergency:hover{ background: var(--red-deep); }

/* ---- Forms ---- */
.form-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-weight:600; font-size:.88rem; color: var(--blue-deep); }
.field .hint{ font-size:.78rem; color: var(--ink-soft); }
input, select, textarea{
  font-family: var(--font-body); font-size:.96rem; padding: 12px 14px;
  border:1.5px solid var(--border); border-radius: 8px; background:#fff; color: var(--ink);
  width:100%; max-width:100%; box-sizing:border-box;
}
input:focus, select:focus, textarea:focus{ border-color: var(--blue-bright); outline:none; }
textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size:.85rem; padding:12px 14px; border-radius:8px; background: rgba(21,122,71,0.08); color: var(--green); border:1px solid rgba(21,122,71,0.2); margin-top:16px; }
.required{ color: var(--red); }

/* ---- Star rating (feedback) ---- */
.rating-row{ display:flex; gap:8px; }
.rating-row button{
  background:none; border:1.5px solid var(--border); border-radius:8px; width:48px; height:48px;
  font-size:1.3rem; cursor:pointer; color: var(--border); transition: all .15s ease;
}
.rating-row button.selected, .rating-row button:hover{ color: var(--yellow); border-color: var(--yellow); background: rgba(245,183,0,.08); }

/* ---- Badges (projects / news status tags) ---- */
.badge{ display:inline-block; font-family: var(--font-mono); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; padding: 4px 10px; border-radius: 100px; font-weight:600; }
.badge--ongoing{ background: rgba(27,108,168,0.12); color: var(--blue-bright); }
.badge--completed{ background: rgba(21,122,71,0.12); color: var(--green); }
.badge--seeking{ background: rgba(200,16,46,0.1); color: var(--red); }

/* ---- Hero: cardiac-monitor signature (LASAEC-specific) ---- */
.hero-monitor{ background: var(--blue-deep); position:relative; overflow:hidden; padding: 64px 0 0; }
.hero-monitor::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-monitor-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-monitor .btn-row{ margin-top:28px; margin-bottom:48px; }
.hero-monitor .eyebrow{ color: var(--yellow); }
.hero-monitor .eyebrow::before{ background: var(--yellow); }

.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); }

/* ---- Stat strip ---- */
.stat-strip{ display:grid; grid-template-columns: repeat(4,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: repeat(2,1fr); } .stat{ border-bottom:1px solid var(--border); } }

/* ---- Dark stat band (LASAEC: golden-hour statistic) ---- */
.stat-band{ background: var(--blue-deep); color:#fff; }
.stat-band h2{ color:#fff; }

/* ---- 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); }

/* ---- Curriculum list (LASAEC: MTEC training) ---- */
.curriculum{ display:grid; grid-template-columns: 1fr 1fr; gap:12px 32px; }
@media (max-width:700px){ .curriculum{ grid-template-columns:1fr; } }
.curriculum li{ display:flex; align-items:baseline; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); font-size:.98rem; color: var(--ink); }
.curriculum li .num{ font-family: var(--font-mono); font-weight:700; color: var(--red); font-size:.85rem; flex-shrink:0; }

/* ---- Timeline (leadership / about) ---- */
.timeline{ border-left: 3px solid var(--border); padding-left: 28px; display:flex; flex-direction:column; gap: 28px; }
.timeline-item{ position:relative; }
.timeline-item::before{
  content:""; position:absolute; left:-35px; top:4px; width:12px; height:12px; border-radius:50%;
  background: var(--red); box-shadow: 0 0 0 4px rgba(200,16,46,0.15);
}
.timeline-item:nth-child(4n+2)::before{ background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(27,108,168,0.15); }
.timeline-item:nth-child(4n+3)::before{ background: var(--yellow); box-shadow: 0 0 0 4px rgba(245,183,0,0.2); }
.timeline-item:nth-child(4n)::before{ background: var(--green); box-shadow: 0 0 0 4px rgba(21,122,71,0.15); }
.timeline-dates{ font-family: var(--font-mono); font-size:.8rem; color: var(--blue-bright); font-weight:600; margin-bottom:6px; }
.timeline-item h3{ margin-bottom:6px; }

/* ---- 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; }

/* ---- News list ---- */
.news-item{ padding:26px 0; border-bottom:1px solid var(--border); }
.news-item:first-child{ padding-top:0; }
.news-date{ font-family: var(--font-mono); font-size:.75rem; color: var(--red); letter-spacing:.05em; margin-bottom:8px; display:block; }
.news-item h3{ margin-bottom:8px; }
.news-item p{ margin-bottom:0; }

/* ---- Footer (shared pattern) ---- */
.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; } }
.footer-brand .name{ color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.15rem; }
.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; }

/* ---- Page header (non-home pages) ---- */
.page-header{ background: var(--blue-deep); padding: 52px 0 0; }
.page-header h1{ color:#fff; }
.page-header p{ color:#CBD9E6; margin-top:10px; margin-bottom:44px; max-width:640px; }

/* ---- Misc ---- */
.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; } }
