/* ============================================================
   SHAL-CARE PHYSIO — SHARED STYLESHEET
   Outline / Wireframe Style  ·  v2.0 Multi-Page
   ============================================================

   COLOUR TOKENS
   Edit these variables to retheme the entire site instantly.
   ============================================================ */
:root {
  /* Brand colours */
  --orange:        #E8621A;   /* Primary CTA / accent */
  --orange-light:  #F47D35;   /* Hover states */
  --orange-pale:   #FFF0E6;   /* Tint backgrounds */

  /* Dark palette */
  --navy:          #0F1B2D;   /* Hero / dark sections */
  --navy-mid:      #1A2E45;   /* Strips, footer */
  --navy-light:    #243A54;   /* Subtle dark bg */

  /* Light palette */
  --cream:         #FAF8F5;   /* Page background */
  --warm-white:    #FFFDF9;   /* Alternate sections */

  /* Text */
  --text-dark:     #1A1410;
  --text-mid:      #4A3728;
  --text-light:    #8A7A6A;

  /* Outline system */
  --border:        rgba(15,27,45,0.15);     /* Borders on light bg */
  --border-w:      rgba(255,255,255,0.12);  /* Borders on dark bg */
  --border-w2:     rgba(255,255,255,0.06);  /* Subtle dark borders */

  /* Status */
  --green:         #2E7D5E;

  /* Typography */
  --font-display:  "Cormorant Garamond", Georgia, serif;
  --font-body:     "DM Sans", system-ui, sans-serif;

  /* Spacing scale */
  --gap-sm:        1rem;
  --gap-md:        2rem;
  --gap-lg:        4rem;
  --gap-xl:        7rem;

  /* Nav height — used for padding-top on all pages */
  --nav-h:         68px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────── */

/* Large serif display headline */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.display em { font-style: italic; color: var(--orange-light); }
.display.on-light { color: var(--navy); }

/* Medium section headline */
.heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}
.heading em { font-style: italic; color: var(--orange); }
.heading.on-dark { color: #fff; }

/* Small section headline */
.subheading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
.subheading.on-dark { color: #fff; }

/* ALL-CAPS label above headlines */
.eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}

/* Body copy */
.body-copy {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.body-copy.on-dark { color: rgba(255,255,255,0.5); }
.body-copy + .body-copy { margin-top: 0.9rem; }

/* Edit hint — italic note for site builder */
.edit-note {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--orange);
  opacity: 0.7;
  margin-top: 0.4rem;
  display: block;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
/* Fixed top bar — appears on every page */
nav#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: rgba(15, 27, 45, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-w);
}

/* Logo — edit text in each HTML file's <nav> */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--orange-light); }

/* Nav links list */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: rgba(255,255,255,0.9);
  border-color: var(--orange);
}

/* CTA button in nav */
.nav-cta {
  background: transparent;
  border: 1px solid var(--orange) !important;
  color: var(--orange-light) !important;
  font-weight: 500 !important;
  padding: 0.4rem 1.1rem;
  border-radius: 1px;
  border-bottom: none !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--orange) !important;
  color: #fff !important;
}

/* ── SECTION WRAPPER ─────────────────────────────────────── */
/* Standard section container. Add .dark / .mid / .white variants */
.section {
  padding: var(--gap-xl) 5rem;
  border-bottom: 1px solid var(--border);
}
.section.dark {
  background: var(--navy);
  border-bottom: 1px solid var(--border-w2);
}
.section.mid {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border-w2);
}
.section.white {
  background: var(--warm-white);
}
.section.tight { padding-top: 4rem; padding-bottom: 4rem; }
.section.flush-top { padding-top: 0; }

/* Section header bar — title + section number */
.sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  margin-bottom: 3rem;
  border-bottom: 1px dashed var(--border);
}
.dark .sec-header,
.mid .sec-header { border-color: var(--border-w); }

.sec-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}
.dark .sec-title,
.mid .sec-title { color: #fff; }

.sec-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── PAGE HERO (interior pages) ─────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 5rem 5rem 4rem;
  border-bottom: 2px solid var(--orange);
}
.page-hero .eyebrow { color: var(--orange-light); }
.page-hero .heading { color: #fff; }
.page-hero .heading em { color: var(--orange-light); }
.page-hero .body-copy { color: rgba(255,255,255,0.5); max-width: 560px; }

/* Breadcrumb inside page hero */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb span { color: rgba(255,255,255,0.15); }

/* ── OUTLINE BOX ─────────────────────────────────────────── */
/* Dashed container for placeholder content blocks */
.outline-box {
  border: 1.5px dashed var(--border);
  padding: 1.4rem 1.6rem;
  background: transparent;
}
.dark .outline-box,
.mid .outline-box { border-color: var(--border-w); }

/* Solid orange-bordered variant — for key/important content */
.outline-box.accent {
  border-style: solid;
  border-color: var(--orange);
  opacity: 0.7;
}

/* ── PLACEHOLDER ELEMENTS ────────────────────────────────── */
/* Grey bars representing placeholder text */
.ph-text {
  display: block;
  height: 10px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 6px;
}
.dark .ph-text,
.mid .ph-text { background: var(--border-w); }
.ph-text:last-child { width: 65%; }

.ph-title {
  display: block;
  height: 16px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 10px;
  width: 55%;
}

/* Image placeholder box */
.ph-img {
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  background: transparent;
}
.dark .ph-img,
.mid .ph-img {
  border-color: var(--border-w);
  color: rgba(255,255,255,0.2);
}

/* ── GRID LAYOUTS ────────────────────────────────────────── */
.grid-2   { display: grid; grid-template-columns: 1fr 1fr;          gap: var(--gap-md); }
.grid-3   { display: grid; grid-template-columns: repeat(3, 1fr);   gap: 1.5rem; }
.grid-4   { display: grid; grid-template-columns: repeat(4, 1fr);   gap: 1.2rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr;          gap: var(--gap-md); }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr;          gap: var(--gap-md); }
.grid-3-1 { display: grid; grid-template-columns: 3fr 1fr;          gap: var(--gap-md); }
.grid-align-start { align-items: start; }

/* ── CARD ────────────────────────────────────────────────── */
/* Standard content card — bordered, no fill */
.card {
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  background: transparent;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--orange); }
.dark .card,
.mid .card { border-color: var(--border-w); }
.dark .card:hover,
.mid .card:hover { border-color: var(--orange); }

.card-num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.dark .card-title,
.mid .card-title { color: #fff; }

.card-body {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-light);
}
.dark .card-body,
.mid .card-body { color: rgba(255,255,255,0.35); }

/* Icon card variant */
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  display: block;
}

/* ── STAT BOX ────────────────────────────────────────────── */
.stat-box {
  border-left: 2px solid var(--orange);
  padding: 0.7rem 1.1rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.stat-num span { color: var(--orange-light); }
.stat-lbl {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
/* Stat box on light background */
.stat-box.on-light .stat-num { color: var(--navy); }
.stat-box.on-light .stat-num span { color: var(--orange); }
.stat-box.on-light .stat-lbl { color: var(--text-light); }

/* ── CHECK LIST ──────────────────────────────────────────── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--border);
}
.dark .check-item,
.mid .check-item { border-color: var(--border-w); }
.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--green);
  margin-top: 1px;
}
.check-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.dark .check-text strong,
.mid .check-text strong { color: #fff; }
.check-text span {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}
.dark .check-text span,
.mid .check-text span { color: rgba(255,255,255,0.32); }

/* ── PROGRAM BADGE ───────────────────────────────────────── */
.prog-badge {
  border: 1px solid var(--border);
  border-left: 2px solid var(--orange);
  padding: 1.1rem 1.4rem;
}
.prog-badge-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.prog-badge-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  border-left: 1px dashed var(--border);
}
.dark .timeline::before { border-color: var(--border-w); }

.tl-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -1.1rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--cream);
}
.dark .tl-item::before { background: var(--navy); }

.tl-year {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.dark .tl-role { color: #fff; }
.tl-org {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}
.dark .tl-org { color: rgba(255,255,255,0.35); }
.tl-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.dark .tl-desc { color: rgba(255,255,255,0.3); }

/* ── FAQ / ACCORDION ─────────────────────────────────────── */
.faq-item {
  border-bottom: 1px dashed var(--border);
  padding: 1.2rem 0;
}
.dark .faq-item { border-color: var(--border-w); }
.faq-q {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dark .faq-q { color: #fff; }
.faq-q::after {
  content: '+';
  color: var(--orange);
  font-size: 1rem;
  font-weight: 300;
}
.faq-a {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}
.dark .faq-a { color: rgba(255,255,255,0.4); }

/* ── FORM OUTLINE ────────────────────────────────────────── */
/* Outline-style form inputs — not functional, structural only */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.dark .form-label { color: rgba(255,255,255,0.4); }
.form-input {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}
.dark .form-input {
  border-color: var(--border-w);
  color: rgba(255,255,255,0.7);
}
.form-input:focus { border-color: var(--orange); }
.form-input.textarea { min-height: 100px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: none;
}
.btn-solid {
  background: var(--orange);
  color: #fff;
  border: 1.5px solid var(--orange);
}
.btn-solid:hover { background: var(--orange-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--orange-light);
  border: 1.5px solid var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-light); }

.btn-white {
  background: #fff;
  color: var(--orange);
  border: 1.5px solid #fff;
}
.btn-white:hover { background: var(--orange-pale); }

/* ── BULK BILLING STRIP ──────────────────────────────────── */
.billing-strip {
  background: var(--navy-mid);
  border-top: 2px solid var(--orange);
  border-bottom: 1px solid var(--border-w2);
  padding: 1.2rem 5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.billing-tag {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  white-space: nowrap;
}
.billing-items {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.billing-item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.billing-item::before {
  content: '○';
  color: var(--green);
  font-size: 0.65rem;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  background: transparent;
  border: 2px dashed var(--orange);
  padding: 4.5rem;
  text-align: center;
  margin: 0;
}
.cta-section.solid-bg { background: var(--orange); border: none; }
.cta-section .heading { color: var(--navy); }
.cta-section.solid-bg .heading { color: #fff; }
.cta-section .body-copy { color: var(--text-mid); margin-bottom: 2rem; }
.cta-section.solid-bg .body-copy { color: rgba(255,255,255,0.8); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer#site-footer {
  background: var(--navy);
  padding: 4rem 5rem 2rem;
  border-top: 2px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dashed var(--border-w);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 0.8rem;
  text-decoration: none;
}
.footer-logo span { color: var(--orange-light); }
.footer-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li { font-size: 0.82rem; color: rgba(255,255,255,0.28); }
.footer-col li a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-col li a:hover { color: var(--orange-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}
.footer-badges {
  display: flex;
  gap: 0.6rem;
}
.footer-badge {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  nav#site-nav { padding: 0 1.5rem; }
  .nav-links { display: none; }  /* TODO: add mobile menu */
  .section { padding: 4rem 1.5rem; }
  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .billing-strip { padding: 1rem 1.5rem; }
  .grid-2, .grid-3, .grid-4,
  .grid-2-1, .grid-1-2, .grid-3-1 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer#site-footer { padding: 3rem 1.5rem 2rem; }
  .cta-section { padding: 2.5rem 1.5rem; }
}
