/* ============================================================
   Highland Park Hospital EMS System — shared stylesheet
   Linked by index.html and all program subpages.
   MUST be uploaded alongside the HTML files (a missing style.css
   leaves every page unstyled).
   ============================================================ */

/* ---- Design tokens (change a value here, every page updates) ---- */
:root {
  --navy:   #16263d;   /* primary, trustworthy dark blue */
  --navy2:  #1f3957;   /* slightly lighter navy for bands */
  --sky:    #2f7fd1;   /* Star-of-Life blue accent */
  --gold:   #e3a72f;   /* gold accent, echoing the emblem ring */
  --red:    #c0392b;   /* used ONLY for the 911 emergency bar */
  --paper:  #f7f9fb;
  --line:   #dce3ea;
  --muted:  #5d6b7a;
  --head:   "Spectral", Georgia, serif;
  --body:   "Libre Franklin", system-ui, sans-serif;
  --measure: 100%;     /* description paragraph width */
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--navy); background: var(--paper); line-height: 1.65; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
a { color: var(--sky); }
section { padding: 64px 0; scroll-margin-top: 72px; }
h2 { font-family: var(--head); font-size: 30px; font-weight: 600; margin-bottom: 28px; }
h1 { font-family: var(--head); font-weight: 600; line-height: 1.08; }

/* ---- Emergency bar ---- */
.emergency { background: var(--red); color: #fff; text-align: center; padding: 11px 16px; font-weight: 600; font-size: 16px; }
.emergency strong { font-size: 18px; }

/* ---- Sticky nav ---- */
nav { position: sticky; top: 0; z-index: 50; background: rgba(22,38,61,.96); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.08); }
nav .bar { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
nav .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 16px; }
nav .brand img { height: 36px; width: auto; }
nav .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
nav .links a { color: #cdd9e6; text-decoration: none; font-size: 14px; font-weight: 500; }
nav .links a:hover { color: #fff; }

/* Hover dropdown (the System menu) */
.dropdown { position: relative; display: inline-flex; align-items: center; }
.dropbtn { display: inline-flex; align-items: center; gap: 5px; }
.dropbtn .caret { font-size: 10px; opacity: .8; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 12px; min-width: 195px; background: var(--navy); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 8px; display: none; flex-direction: column; gap: 2px; box-shadow: 0 14px 34px rgba(0,0,0,.38); z-index: 60; }
.dropdown-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }  /* bridges the gap so hover holds */
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a { padding: 9px 12px; border-radius: 7px; font-size: 14px; color: #cdd9e6; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(255,255,255,.09); color: #fff; }

/* ---- Header / hero ----
   Default rules style the program subpages.
   The #top overrides apply to the home hero (its <header id="top">). */
header { background: var(--navy); color: #fff; padding: 44px 0 60px; }
#top { padding: 56px 0 64px; }
header h1 { font-size: clamp(30px, 5vw, 46px); }
#top h1 { font-size: clamp(34px, 6vw, 58px); }
h1 .dot { color: var(--gold); }

/* Home hero pieces */
.brandrow { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.brandrow .logo { height: 88px; width: auto; flex-shrink: 0; }
.brandrow .name { font-family: var(--head); font-size: 23px; font-weight: 600; }
.brandrow .name small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: #9fb4cc; letter-spacing: .04em; margin-top: 2px; }
.hero-about { display: flex; flex-direction: column; gap: 26px; margin-top: 30px; }
.hero-about > div { max-width: var(--measure); }
.hero-about h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9fb4cc; font-weight: 600; margin-bottom: 8px; }
.hero-about p { color: #c2d0df; font-size: 16px; line-height: 1.6; }
.hero-about ul { list-style: none; display: grid; gap: 10px; }
.hero-about li { color: #c2d0df; font-size: 16px; line-height: 1.5; padding-left: 22px; position: relative; }
.hero-about li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
/* Subpage hero pieces */
.backlink { display: inline-block; color: #9fb4cc; text-decoration: none; font-size: 14px; margin-bottom: 24px; }
.backlink:hover { color: #fff; }
.prog-desc { color: #c2d0df; font-size: 18px; max-width: var(--measure); margin-top: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-row.btn-stack { flex-direction: column; align-items: flex-start; }
.btn-row.btn-stack .btn { width: 260px; text-align: center; }
.btn-outline { display: inline-block; border: 1px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.btn-outline:hover { background: rgba(255,255,255,.08); }

/* ---- Buttons (shared) ---- */
.btn { display: inline-block; background: var(--gold); color: #16263d; font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: 8px; font-size: 15px; }
.btn:hover { filter: brightness(1.06); }

/* ---- RHCC breakout (home, light with gold accent) ---- */
.rhcc { background: var(--paper); border-top: 4px solid var(--gold); }
/* Two columns on wide screens: content beside the map. Stacks on phones. */
.rhcc .rhcc-grid { display: flex; gap: 44px; align-items: flex-start; }
.rhcc .rhcc-content { flex: 1.4; min-width: 0; }
.rhcc .rhcc-map { flex: 1; min-width: 0; }
.rhcc h2 { font-size: clamp(26px, 4vw, 38px); max-width: 22ch; margin-bottom: 16px; }
.rhcc .rhcc-lead { color: var(--muted); font-size: 18px; max-width: var(--measure); }
.rhcc .points { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
.rhcc .points div { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; border-top: 3px solid var(--sky); }
.rhcc .points b { display: block; color: var(--navy); margin-bottom: 6px; font-size: 15px; }
.rhcc .points span { color: var(--muted); font-size: 14px; }
/* The Region map */
.rhcc .rhcc-map { margin: 0; position: sticky; top: 84px; }
.rhcc .rhcc-map img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.rhcc .rhcc-map figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) {
  .rhcc .rhcc-grid { flex-direction: column; gap: 32px; }
  .rhcc .rhcc-content, .rhcc .rhcc-map { flex: none; width: 100%; }
  .rhcc .rhcc-map { position: static; max-width: 460px; }
}

/* ---- Education cards (home, light) — whole card links to a program page ---- */
.edu { background: #fff; color: var(--navy); }
.edu h2 { color: var(--navy); margin-bottom: 24px; }
.edu-cards { display: flex; flex-wrap: wrap; gap: 18px; }
.edu-card { flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sky); border-radius: 12px; text-decoration: none; scroll-margin-top: 80px; transition: background .15s, border-color .15s; }
.edu-card:hover { background: var(--paper); border-color: var(--sky); }
.edu-card h3 { font-family: var(--head); font-size: 19px; color: var(--navy); }
.edu-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.edu-card .go { color: var(--sky); font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ---- Nav card (System Licensure, on the dark System section) ---- */
.navcard { display: inline-flex; flex-direction: column; gap: 8px; max-width: 360px; margin-top: 28px; padding: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--sky); border-radius: 12px; text-decoration: none; transition: background .15s; }
.navcard:hover { background: rgba(255,255,255,.10); }
.navcard h3 { font-family: var(--head); font-size: 19px; color: #fff; }
.navcard p { color: #c2d0df; font-size: 14.5px; line-height: 1.5; }
.navcard .go { color: #9fc3ec; font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ---- Partner Agencies / System Hospitals (home, dark) ---- */
.agencies { background: var(--navy2); color: #fff; }
.agencies h2 { color: #fff; }
.agencies ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: 4px; }
.agencies li { display: flex; align-items: center; gap: 16px; padding: 18px 2px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 17px; font-weight: 500; color: #fff; }
.agencies li::before { content: ""; width: 3px; height: 20px; border-radius: 2px; background: #9fc3ec; flex-shrink: 0; }
@media (max-width: 600px) { .agencies ul { grid-template-columns: 1fr; column-gap: 0; } }
.agencies .subhead { margin-top: 56px; scroll-margin-top: 84px; }

/* ---- Administration (home, dark) ---- */
.meddir { background: var(--navy2); color: #fff; }
.meddir h2 { color: #fff; }
.meddir h3 { font-family: var(--head); font-size: 22px; color: #fff; margin-bottom: 10px; }
.meddir p { color: #c2d0df; font-size: 17px; line-height: 1.7; max-width: var(--measure); }
.meddir .who { margin-top: 12px; font-size: 15px; color: #9fb4cc; }
.meddir .who b { color: #fff; }
.meddir .admin-block + .admin-block { margin-top: 36px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---- About section (subpages, light) ---- */
.about { background: #fff; }
.about p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: var(--measure); margin-bottom: 16px; }
.about p:last-child { margin-bottom: 0; }

/* ---- Outcome summary table (Paramedic page, light) ---- */
.outcomes-sec { background: #fff; }
.outcomes-title { font-family: var(--head); font-size: 16px; color: var(--navy); font-weight: 600; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.outcomes table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.outcomes th, .outcomes td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid #edf1f5; }
.outcomes th:last-child, .outcomes td:last-child { border-right: none; }
.outcomes thead th { background: var(--paper); color: var(--navy); font-weight: 600; font-size: 13px; }
.outcomes tbody td { color: #44505d; }
.outcomes tbody td:first-child { color: var(--navy); font-weight: 600; }
.outcomes tbody tr:nth-child(even) td { background: #fafbfc; }
.outcomes tbody tr:last-child td { border-bottom: none; }
.outcomes .table-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ---- Light link list (light sections, e.g. System Licensure) ---- */
.linklist-sec { background: #fff; }
.linklist { list-style: none; display: grid; gap: 12px; max-width: var(--measure); }
.linklist a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 500; }
.linklist a:hover { border-color: var(--sky); background: var(--paper); }
.linklist a::before { content: ""; width: 16px; height: 18px; border: 2px solid var(--sky); border-radius: 3px; flex-shrink: 0; }
.linklist .meta { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 400; }

/* ---- Documents / resources (subpages, dark) ---- */
.docs { background: var(--navy2); color: #fff; }
.docs h2 { color: #fff; }
.docs-list { list-style: none; display: grid; gap: 12px; max-width: var(--measure); }
.docs-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; text-decoration: none; font-weight: 500; }
.docs-list a:hover { background: rgba(255,255,255,.09); }
.docs-list a::before { content: ""; width: 16px; height: 18px; border: 2px solid #9fc3ec; border-radius: 3px; flex-shrink: 0; }
.docs-list .meta { margin-left: auto; color: #9fb4cc; font-size: 13px; font-weight: 400; }

/* ---- Footer (light) ---- */
footer { background: #fff; color: var(--muted); padding: 48px 0; font-size: 15px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 28px; }
footer h4 { color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
footer a { color: var(--sky); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: #97a3b0; }
