/* Ables Home Healthcare — editorial healthcare identity v2 (free stack only)
   Warm ivory + trustworthy logo blue + restrained muted gold.
   Fonts: Fraunces (display serif, free) + Inter (body, free). Bootstrap 5.3 CDN kept
   for grid/utilities only; all components are custom so pages do not look generic.
   Every public template inherits this file via base.html. Legacy class names are
   all styled so admin/portal pages keep working. */
:root {
  --pine: #0f5dab;
  --pine-deep: #0c4474;
  --pine-ink: #10294a;
  --gold: #a8842c;
  --gold-soft: #e9dcc0;
  --ivory: #faf6ee;
  --paper: #fffdf8;
  --sand: #f1eadd;
  --line: #e2d9c6;
  --ink: #232f3e;
  --muted: #54616e;
  --success: #1e6b41;
  --warning: #8a5a00;
  --danger: #a4261c;
  --radius: 10px;
  --shadow: 0 14px 34px rgba(16, 41, 74, 0.10);
  --shadow-sm: 0 5px 16px rgba(16, 41, 74, 0.08);
  --max-w: 1140px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--pine-ink); font-weight: 600; line-height: 1.22; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); margin: 0.4em 0 0.35em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0.6em 0 0.4em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 0.9em; }
.lead { font-size: 1.08rem; }
.text-muted, .form-text { color: var(--muted) !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--pine-ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.site-container { max-width: var(--max-w); margin-inline: auto; padding-inline: 22px; }

/* Quiet editorial kicker (replaces pill eyebrows) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine);
  padding: 0 0 8px; margin-bottom: 6px; border-bottom: 2px solid var(--gold-soft);
}
.card-kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ---------- Utility bar (slim, single line) ---------- */
.top-utility { background: var(--pine-ink); color: #e9e4d5; font-size: 0.78rem; }
.utility-inner { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding-block: 5px; }
.utility-right { margin-left: auto; opacity: 0.9; }

/* ---------- Header (compact, one row) ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(250, 246, 238, 0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 60px; padding-block: 8px; }
.header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.header-brand-mark { width: 40px; height: 40px; flex-shrink: 0; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.header-brand-text { display: grid; line-height: 1.2; min-width: 0; }
.header-brand-text strong { font-family: var(--font-display); color: var(--pine-ink); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.header-brand-text small { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 2px; order: 3; flex-basis: 100%; overflow-x: auto; border-top: 1px solid var(--line); padding-top: 6px; scrollbar-width: thin; }
@media (min-width: 1080px) { .header-nav { order: 0; flex-basis: auto; border-top: none; padding-top: 0; } }
.header-nav a { padding: 10px 13px; border-radius: 8px; text-decoration: none; color: var(--pine-ink); font-weight: 600; font-size: 0.93rem; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.header-nav a:hover { background: var(--sand); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.header-phone { font-weight: 700; color: var(--pine-ink); text-decoration: none; padding: 10px 4px; white-space: nowrap; font-size: 0.95rem; }
.header-phone:hover { text-decoration: underline; }
/* ---------- Shell ---------- */
.page-shell { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- Two-page condensation: home sections ---------- */
.services-overview { margin-top: 30px; }
.services-groups { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .services-groups { grid-template-columns: 1fr 1.4fr 1fr; } }
.service-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service-group h3 { margin-top: 0; }
.service-group p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }
.service-index { list-style: none; padding: 0; margin: 0; display: grid; }
.service-index li { padding: 10px 0; border-bottom: 1px solid var(--sand); font-size: 0.93rem; color: var(--muted); }
.service-index li:last-child { border-bottom: none; }
.service-index a { font-family: var(--font-display); color: var(--pine-ink); font-size: 1.02rem; text-decoration: none; }
.service-index a:hover { text-decoration: underline; }

/* Postcard gallery (original artwork preserved) */
.postcards { margin-top: 30px; }
.postcard-grid { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 860px) { .postcard-grid { grid-template-columns: 1fr 1fr; } }
.postcard-frame { display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; }
.postcard-frame:hover { border-color: var(--pine); box-shadow: var(--shadow-sm); }
.postcard-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--sand); border-radius: 6px; display: block; }
.postcard-frame span { font-size: 0.86rem; font-weight: 700; color: var(--pine); }

/* About facts */
.about-facts { margin-top: 30px; }
.about-lead { font-size: 1.06rem; max-width: 68ch; }
.facts-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--gold-soft); }
.fact h3 { margin-top: 0; font-size: 1.08rem; }
.fact p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Care page (three sections) ---------- */
.care-hero { border-top: 3px solid var(--pine); }
.care-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.care-jump a { border: 1px solid var(--pine); border-radius: 8px; padding: 10px 18px; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.care-jump a:hover { background: var(--pine); color: #fff; }
.care-section { margin-top: 34px; padding-top: 26px; border-top: 2px solid var(--line); scroll-margin-top: 90px; }
.care-split { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
@media (min-width: 1020px) { .care-split { grid-template-columns: 1.5fr 1fr; } }
.care-aside { display: grid; gap: 16px; }
.care-section .contact-form { margin-top: 0; }

/* ---------- Page heroes (distinct per page via extra class) ---------- */
.page-hero, .simple-hero {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px); margin-block: 20px;
}
.page-hero h1 { margin-top: 10px; }
.page-hero p { color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.section-heading { max-width: 720px; margin: 36px 0 18px; }
.section-heading h2 { margin: 10px 0 8px; }
.section-heading p { color: var(--muted); margin: 0; }
.content-band { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-top: 24px; }

/* ---------- Buttons (custom, not Bootstrap-looking) ---------- */
.btn { border-radius: 8px; font-weight: 600; padding: 12px 22px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.98rem; }
.btn-primary { background: var(--pine); border: 1px solid var(--pine); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }
.btn-outline-primary { color: var(--pine); border: 1px solid var(--pine); background: transparent; }
.btn-outline-primary:hover { background: var(--pine); color: #fff; }
.btn-light { background: var(--paper); border: 1px solid var(--pine); color: var(--pine-ink); }
.btn-light:hover { background: var(--sand); color: var(--pine-ink); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--pine-ink); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { padding: 9px 15px; font-size: 0.88rem; min-height: 40px; }

/* ---------- Home hero (compact editorial split, single headline) ---------- */
.home-hero { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; overflow: hidden; }
.home-hero-grid { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 960px) { .home-hero-grid { grid-template-columns: 1fr 1fr; } }
.home-hero-copy { padding: clamp(22px, 3.4vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.home-hero-copy h1 { margin: 10px 0; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.home-hero-lead { font-size: 1.04rem; color: var(--pine-ink); margin: 0 0 4px; max-width: 46ch; }
.home-hero-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.home-hero-trust { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }
.home-hero-media { background: var(--sand); min-height: 240px; }
.home-hero-media img { width: 100%; height: 100%; min-height: 240px; max-height: 380px; object-fit: cover; display: block; }
/* Slim path bar: three quiet links, not a card strip */
.path-bar { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); background: var(--sand); }
.path-bar a { flex: 1 1 auto; text-align: center; padding: 12px 16px; font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--pine-ink); min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.path-bar a + a { border-left: 1px solid var(--line); }
.path-bar a:hover { background: var(--paper); }
.path-bar a::after { content: " →"; color: var(--gold); }

/* Legacy carousel classes kept (unused after redesign, harmless) */
.hero-carousel, .hero-slides, .hero-slide { display: none; }

/* ---------- Home sections: distinct compositions ---------- */
.quick-actions { display: grid; gap: 0; margin-top: 20px; background: var(--pine-ink); color: #efe9d8; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .quick-actions { grid-template-columns: repeat(3, 1fr); } }
.quick-actions .action-card { background: transparent; border: none; border-top: 1px solid rgba(255,255,255,0.16); border-radius: 0; box-shadow: none; padding: 24px; color: #efe9d8; }
@media (min-width: 900px) { .quick-actions .action-card { border-top: none; border-left: 1px solid rgba(255,255,255,0.16); } .quick-actions .action-card:first-child { border-left: none; } }
.quick-actions h2 { color: #fff; font-size: 1.25rem; }
.quick-actions a { color: #fff; font-weight: 700; }
.quick-actions p, .quick-actions li { color: #d8d2c0; }
.simple-benefit-list { padding-left: 20px; margin: 10px 0; display: grid; gap: 4px; }
.quick-contact-lines { display: grid; gap: 2px; }
.quick-contact-lines a { color: #fff; }

/* Values: numbered editorial rows, not identical cards */
.care-values { margin-top: 30px; }
.care-values-grid { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.care-values-grid .value-card { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px 4px; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.care-values-grid .value-card::before { content: counter(value-num, decimal-leading-zero); counter-increment: value-num; font-family: var(--font-display); color: var(--gold); font-size: 1.3rem; }
.care-values-grid { counter-reset: value-num; }
.care-values-grid .value-card strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--pine-ink); display: block; margin-bottom: 4px; }
.care-values-grid .value-card p { margin: 0; color: var(--muted); }

/* Proof strip: quiet facts, no invented stats */
.company-proof { display: grid; gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
@media (min-width: 860px) { .company-proof { grid-template-columns: repeat(3, 1fr); } }
.proof-card { background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 24px; }
.proof-card + .proof-card { border-top: 1px solid var(--line); }
@media (min-width: 860px) { .proof-card + .proof-card { border-top: none; border-left: 1px solid var(--line); } }
.proof-card strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--pine); display: block; }
.proof-card span { font-weight: 700; color: var(--pine-ink); display: block; margin: 4px 0; }
.proof-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* Audience paths: three distinct rows with arrow */
.audience-paths { margin-top: 30px; }
.audience-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; display: grid; gap: 8px; }
.audience-card:hover { border-color: var(--pine); box-shadow: var(--shadow-sm); }
.audience-card h3 { margin: 0; }
.audience-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.audience-card span { font-weight: 700; color: var(--pine); }
.audience-card span::after { content: " →"; }

/* Photo story */
.home-image-story { margin-top: 30px; }
.home-image-grid { display: grid; gap: 12px; }
@media (min-width: 860px) { .home-image-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.home-image-grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.home-image-grid img { width: 100%; height: 190px; object-fit: cover; display: block; }
.home-image-grid figcaption { padding: 10px 14px; font-size: 0.87rem; color: var(--muted); }

/* Trust facts: quiet inline list */
.trust-badge-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-badge-row div { font-size: 0.88rem; font-weight: 600; color: var(--pine-ink); background: none; padding: 0; }

/* Process: timeline */
.process-feature { margin-top: 30px; }
.process-grid { display: grid; gap: 0; margin-top: 16px; border-left: 2px solid var(--gold-soft); padding-left: 24px; }
@media (min-width: 900px) { .process-grid { grid-template-columns: repeat(4, 1fr); border-left: none; padding-left: 0; gap: 20px; } }
.process-step { padding: 6px 0 18px; }
.process-step span { font-family: var(--font-display); color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: 6px; }
.process-step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.process-step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Care plan preview: two-column checklist */
.care-plan-preview { margin-top: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.care-plan-list { display: grid; gap: 10px 28px; margin-top: 14px; }
@media (min-width: 760px) { .care-plan-list { grid-template-columns: 1fr 1fr; } }
.care-plan-list div { background: none; border: none; border-bottom: 1px solid var(--sand); border-radius: 0; padding: 8px 0 8px 24px; position: relative; box-shadow: none; }
.care-plan-list div::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 2px; background: var(--pine); }

/* Story split */
.home-story { display: grid; gap: 20px; margin-top: 30px; }
@media (min-width: 960px) { .home-story { grid-template-columns: 0.9fr 1.1fr; } }
.story-photo-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.story-photo { border-radius: var(--radius); min-height: 190px; background: linear-gradient(135deg, var(--sand), var(--gold-soft)); border: 1px solid var(--line); }
.story-note { grid-column: 1 / -1; background: var(--pine-ink); color: #efe9d8; border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.story-note strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.signature-line span { display: block; height: 2px; width: 56px; background: var(--gold); margin-bottom: 10px; }
.signature-line p { color: var(--muted); font-size: 0.88rem; }

/* Expectation rows */
.real-care-section { margin-top: 30px; }
.real-care-grid { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .real-care-grid { grid-template-columns: repeat(3, 1fr); } }
.real-care-card { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px 4px; }
@media (min-width: 860px) { .real-care-card { padding: 20px 22px 20px 4px; } .real-care-card + .real-care-card { border-left: 1px solid var(--line); padding-left: 22px; } }
.real-care-card span { font-family: var(--font-display); color: var(--gold); }
.real-care-card h3 { margin: 4px 0 6px; }
.real-care-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Family experience: quotes with rules */
.family-experience { margin-top: 30px; }
.experience-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--gold-soft); box-shadow: none; }
.experience-card h3 { margin-top: 0; font-size: 1.05rem; }
.experience-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Programs */
.guided-care { margin-top: 30px; }
.program-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: none; }
.program-card h3 { margin-top: 0; }
.program-card p { color: var(--muted); font-size: 0.94rem; }

/* Services preview: editorial index, not pills */
.services-preview { margin-top: 30px; }
.services-preview .row { display: grid; gap: 0; border-top: 1px solid var(--line); }
.services-preview .col-md-6, .services-preview .col-lg-4 { width: 100%; max-width: 100%; padding: 0; }
.service-pill { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 4px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--pine-ink); text-decoration: none; text-align: left; }
.service-pill-sub { flex-basis: 100%; }
.service-pill::after { content: "→"; color: var(--gold); flex-shrink: 0; }
.service-pill-sub { display: block; font-family: var(--font-body); font-size: 0.88rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.service-pill:hover { color: var(--pine); background: none; box-shadow: none; padding-left: 10px; }

/* Services page: alternating feature rows */
.service-intro-band { display: grid; gap: 8px; margin: 18px 0 8px; max-width: 680px; }
.service-card, .premium-service-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: none; }
.service-card h2, .premium-service-card h2 { margin-top: 8px; }
.mini-list, .check-list, .clean-list { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.trust-mini-grid { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .trust-mini-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-mini-grid div { padding: 16px 4px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.trust-mini-grid strong { font-family: var(--font-display); color: var(--pine-ink); }
.trust-mini-grid span { color: var(--muted); font-size: 0.9rem; }

/* Trust section */
.trust-section { margin-top: 30px; }
.trust-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: none; }
.trust-card h3 { margin-top: 0; font-size: 1.05rem; }

/* Areas */
.service-area-home { margin-top: 32px; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; }
.area-list span { background: var(--sand); border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--pine-ink); }
.service-area-map { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Testimonials */
.testimonial-band { margin-top: 30px; }
.testimonial-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: none; }
.testimonial-card p { font-family: var(--font-display); font-size: 1.06rem; color: var(--pine-ink); }
.testimonial-card strong { display: block; margin-top: 12px; color: var(--pine-ink); }
.testimonial-card span { color: var(--muted); font-size: 0.87rem; }

/* Closing CTA band */
.mission-card { background: var(--pine-ink); color: #efe9d8; border: none; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); margin-top: 36px; }
.mission-card h2, .mission-card p { color: #efe9d8; }
.mission-card .eyebrow { color: var(--gold-soft); border-color: rgba(255,255,255,0.25); }
.mission-card .btn-light { border: none; }

/* Generic cards shared with portal/admin */
.action-card, .value-item, .content-card, .info-box, .contact-panel, .contact-form,
.premium-form, .auth-form, .stat-card, .report-card, .readiness-card, .launch-status-card,
.portal-task-card, .visit-card, .availability-card, .company-page-card, .resource-card,
.match-card, .standard-card, .career-standard, .portal-priority-card, .contact-route-card,
.contact-mini-card, .article-body, .featured-resource, .brochure-hero, .brochure-services,
.brochure-areas, .brochure-contact, .brochure-footer {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.accent-box { border-top: 3px solid var(--pine); }
.featured-resource { border-left: 3px solid var(--gold); }
.contact-mini-card, .contact-route-card { display: grid; gap: 6px; margin-top: 12px; }
.compact-steps { display: grid; gap: 14px; }
.info-box h2, .contact-panel h2 { margin-top: 0; }

/* Family guide + service detail companions */
.company-page-grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 900px) { .company-page-grid { grid-template-columns: repeat(3, 1fr); } }
.company-page-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.company-page-card > span:first-child { font-family: var(--font-display); color: var(--gold); font-size: 1.4rem; display: block; }
.company-page-card h2 { font-size: 1.2rem; margin: 6px 0 8px; }
.company-page-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.side-link { display: block; padding: 11px 4px; border-bottom: 1px solid var(--sand); text-decoration: none; color: var(--pine-ink); font-weight: 600; }
.side-link:last-child { border-bottom: none; }
.side-link:hover { color: var(--pine); padding-left: 8px; }
.compact-care-plan div { font-size: 0.9rem; }

/* ---------- Forms ---------- */
.form-label, label { font-weight: 600; color: var(--pine-ink); font-size: 0.92rem; margin-bottom: 6px; display: inline-block; }
.form-control, .form-select { border-radius: 8px; border: 1px solid #c9c2ae; background: #fff; padding: 12px 14px; font-size: 1rem; min-height: 48px; width: 100%; }
.form-control:focus, .form-select:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(15, 93, 171, 0.18); outline: none; }
.form-control[aria-invalid="true"], .form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(164, 38, 28, 0.14); }
.invalid-feedback, .field-error { color: var(--danger); font-size: 0.87rem; font-weight: 600; margin-top: 6px; display: block; }
.form-text { font-size: 0.85rem; }
.form-optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.consent-check { background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
textarea.form-control { min-height: 120px; }
button, .btn { min-height: 44px; }

/* ---------- Tables / admin / portal ---------- */
.table-responsive, .admin-table-card, .table-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.table { margin: 0; }
.table th { background: var(--pine-ink); color: #fff; font-size: 0.84rem; white-space: nowrap; }
.table td { vertical-align: middle; }
.status-pill, .status-pending, .status-approved, .status-assigned, .status-completed,
.status-rejected, .status-cancelled, .status-role-admin, .status-role-caregiver, .status-role-client {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--sand); color: var(--pine-ink); border: 1px solid var(--line); white-space: nowrap;
}
.status-approved, .status-completed { background: #e2f0e6; border-color: #b9d9c4; color: #17452c; }
.status-rejected, .status-cancelled { background: #f9e7e4; border-color: #e3b8b2; color: #7a1f1a; }
.dashboard-stats, .report-grid, .queue-grid, .portal-feature-grid, .schedule-board-grid,
.availability-grid, .search-result-grid, .launch-status-grid, .readiness-grid, .standards-grid,
.career-standards-grid, .company-page-grid, .values-grid, .requirement-check-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .dashboard-stats, .report-grid { grid-template-columns: repeat(3, 1fr); } .queue-grid, .portal-feature-grid { grid-template-columns: repeat(2, 1fr); } }
.values-grid { gap: 0; border-top: 1px solid var(--line); margin-top: 16px; }
.values-grid .value-item { border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 4px; }
.career-standards-grid .career-standard strong { font-family: var(--font-display); color: var(--pine-ink); display: block; margin-bottom: 4px; }
.career-standards-grid .career-standard span { color: var(--muted); font-size: 0.92rem; }
.portal-checklist span { display: inline-block; background: var(--sand); border-radius: 6px; padding: 4px 10px; margin: 2px; font-size: 0.85rem; }
.schedule-day-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.schedule-day-card.is-drop-target { outline: 3px dashed var(--pine); }
.visit-card-list, .schedule-visit-list, .queue-list, .timeline-list, .task-checklist { display: grid; gap: 10px; }
.alert { border-radius: 8px; }
.brand-print-grid { display: grid; gap: 12px; }
@media (min-width: 860px) { .brand-print-grid { grid-template-columns: 1fr 1fr; } }
.brand-print-grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 10px; }
.image-panel { min-height: 220px; border-radius: var(--radius); background: linear-gradient(135deg, var(--sand), var(--gold-soft)); border: 1px solid var(--line); }
.password-meter { height: 8px; background: #e6e0d0; border-radius: 99px; overflow: hidden; }
.password-meter span { display: block; height: 100%; background: var(--pine); }
.log-viewer, .compact-pre { background: var(--pine-ink); color: #e9e4d5; border-radius: 8px; padding: 14px; overflow: auto; font-size: 0.85rem; }
.empty-state { text-align: center; padding: 30px; color: var(--muted); }
.promo-video-section, .video-placeholder, .realistic-video-preview { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-ink); color: #d9d4c2; margin-top: 48px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-link { display: block; color: #cfc9b2; text-decoration: none; padding: 5px 0; font-size: 0.93rem; min-height: 32px; }
.footer-link:hover { color: #fff; text-decoration: underline; }
.footer-compliance { font-size: 0.88rem; opacity: 0.9; }
.footer-tagline { font-family: var(--font-display); font-size: 0.95rem; color: #fff; opacity: 0.9; }
.footer-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-license-line { display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 16px; font-weight: 600; font-size: 0.88rem; }
.site-footer a { color: #fff; }
.language-bar { display: grid; gap: 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; padding: 16px; }
@media (min-width: 800px) { .language-bar { grid-template-columns: 1fr 220px; align-items: center; } }
.language-select { max-width: 220px; }
.language-message { display: block; font-size: 0.85rem; opacity: 0.9; }
.translation-engine { min-height: 0; }

/* ---------- Floating widgets ---------- */
.quick-chat-widget { position: fixed; right: 16px; bottom: 16px; z-index: 960; display: grid; gap: 8px; justify-items: end; }
.quick-chat-toggle { background: var(--pine-ink); color: #fff; border: none; border-radius: 8px; padding: 13px 22px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); min-height: 48px; }
.quick-chat-panel { width: min(330px, 90vw); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.quick-chat-panel label { display: grid; gap: 4px; font-size: 0.88rem; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 970; max-width: 720px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.cookie-banner p { margin: 6px 0 0; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .utility-right { display: none; } }
@media (min-width: 1080px) { .header-nav { display: flex; } }
@media (max-width: 640px) {
  .header-phone { display: none; }
  .header-brand-text small { display: none; }
  h1 { font-size: 1.8rem; }
  .path-bar a + a { border-left: none; }
  .path-bar a { flex-basis: 100%; border-top: 1px solid var(--line); }
  .path-bar a:first-child { border-top: none; }
}
@media (min-width: 992px) { .header-nav { order: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .quick-chat-widget, .cookie-banner, .top-utility { display: none !important; }
  body { background: #fff; }
}
