/* ============================================
   JAAMA HOME HEALTHCARE — CORE STYLESHEET
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Art-directed media frames: never stretch, always crop cleanly --- */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-cream-100); }
.media-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--landscape { aspect-ratio: 3 / 2; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 16 / 9; }
@media (max-width: 860px) {
  .media-frame--portrait { aspect-ratio: 4 / 3; }
}
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-3);
  color: var(--color-primary-strong);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.75rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, var(--text-3xl)); }
h3 { font-size: clamp(1.375rem, 2.5vw, var(--text-xl)); }
h4 { font-size: var(--text-md); font-weight: 700; }
p { margin: 0 0 var(--space-3); color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

/* Skip link for keyboard/screen reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-strong);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-8) 0;
}
@media (max-width: 720px) {
  .section { padding: var(--space-7) 0; }
}
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-primary-strong);
  color: var(--color-cream-200);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: var(--color-cream-200); opacity: 0.85; }

.section-head {
  max-width: 640px;
  margin: 0 0 var(--space-6);
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-clay-500);
  margin-bottom: var(--space-2);
}
.section--dark .eyebrow { color: var(--color-gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--color-green-700); }

.btn--gold {
  background: var(--color-gold-500);
  color: var(--color-green-950);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { background: var(--color-gold-400); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary);
}
.section--dark .btn--ghost, .hero .btn--ghost { color: var(--color-white); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

.btn--sm { padding: 0.6rem 1.25rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  background: transparent;
}
.nav.is-scrolled, .nav.is-solid {
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-line-200);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav-inner > * { flex-shrink: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-primary-strong);
}
.nav:not(.is-scrolled):not(.is-solid) .brand { color: var(--color-white); }
.brand-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-primary-strong);
  position: relative;
  padding: 4px 0;
}
.nav:not(.is-scrolled):not(.is-solid) .nav-links a { color: var(--color-white); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-gold-500);
  transition: width var(--duration-base) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-call {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; color: var(--color-primary-strong);
}
.nav:not(.is-scrolled):not(.is-solid) .nav-call { color: var(--color-white); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 101; /* above the mobile menu overlay */
  background: none; border: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--color-primary-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav:not(.is-scrolled):not(.is-solid) .nav-toggle { color: var(--color-white); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Only show the focus ring for keyboard users, not after a tap */
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-gold-400);
  outline-offset: 2px;
}

/* Swap burger <-> X */
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
/* While the menu is open the header sits on the dark panel, so force light icon */
.nav-toggle[aria-expanded="true"] { color: var(--color-white); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-primary-strong);
  color: var(--color-white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--nav-height) + var(--space-4)) var(--space-5) var(--space-5);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--duration-base) var(--ease-out), visibility var(--duration-base);
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  padding: var(--space-3) 0;
  text-decoration: none;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-height: 700px) {
  .mobile-menu a { font-size: var(--text-lg); padding: var(--space-2) 0; }
}
.mobile-menu .btn {
  display: inline-flex;
  margin-top: var(--space-5);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-call span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--color-primary-strong);
  color: var(--color-white);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-media {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--color-primary-strong);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Portrait phone footage: bias the crop toward the upper-middle so faces stay in frame */
  object-position: center 32%;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
  pointer-events: none;
}
.hero-video.is-active { opacity: 1; }

/* Mobile: portrait footage fills naturally, so centre the crop */
@media (max-width: 760px) {
  .hero-video { object-position: center center; }
}

/* No-JS / reduced-motion fallback: poster frame still shows */
@media (prefers-reduced-motion: reduce) {
  .hero-video { transition: none; }
}

.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,31,22,0.95) 0%, rgba(12,31,22,0.86) 42%, rgba(12,31,22,0.55) 72%, rgba(12,31,22,0.68) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: var(--space-7) 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: riseIn 0.8s var(--ease-out) 0.3s forwards;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: riseIn 0.8s var(--ease-out) 0.45s forwards;
}
.hero .lede {
  font-size: var(--text-md);
  color: var(--color-cream-200);
  max-width: 520px;
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: riseIn 0.8s var(--ease-out) 0.6s forwards;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: riseIn 0.8s var(--ease-out) 0.75s forwards;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  animation: riseIn 0.8s var(--ease-out) 0.9s forwards;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-white);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--color-gold-400); flex-shrink: 0; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scrolldown {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
}
.hero-scrolldown .line {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
  position: relative;
}
.hero-scrolldown .line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--color-gold-400);
  animation: scrollLine 1.8s var(--ease-out) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--stagger-i, 0) * 90ms); }

/* ---------- Cards & Grids ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line-200);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: var(--space-2); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
}
.card-link svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ---------- Two-column media block ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-5); }
  .split--reverse .split-media { order: 0; }
}
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}
.split-media .media-frame { box-shadow: var(--shadow-lg); }
.split-media { position: relative; }
.split-media-tag {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
@media (max-width: 640px) {
  .split-media-tag { position: static; margin-top: var(--space-3); }
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: var(--space-5); border-left: 2px solid var(--color-line-200); }
.step-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold-500);
  display: block;
  margin-bottom: var(--space-2);
}

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--color-line-200); }
.faq-item { border-bottom: 1px solid var(--color-line-200); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--color-primary-strong);
}
.faq-q .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration-base) var(--ease-out);
}
.faq-item[data-open="true"] .faq-q .icon { transform: rotate(45deg); background: var(--color-gold-500); color: var(--color-white); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
}
.faq-a-inner { padding-bottom: var(--space-4); max-width: 640px; }
.faq-item[data-open="true"] .faq-a { max-height: 400px; }

/* ---------- Testimonials ---------- */
.testi-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  scrollbar-width: thin;
}
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 85vw);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-line-200);
}
.testi-stars { color: var(--color-gold-500); margin-bottom: var(--space-3); letter-spacing: 2px; }
.testi-quote { font-family: var(--font-display); font-size: var(--text-md); color: var(--color-primary-strong); margin-bottom: var(--space-4); }
.testi-name { font-weight: 700; font-size: var(--text-sm); color: var(--color-text); }
.testi-role { font-size: var(--text-xs); color: var(--color-text-muted); }
.testi-placeholder {
  border: 1.5px dashed var(--color-line-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  background: var(--color-bg-alt);
}

/* ---------- Social gallery ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 720px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
.social-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: block;
}
.social-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.social-item:hover img { transform: scale(1.06); }
.social-item .overlay {
  position: absolute; inset: 0;
  background: rgba(12,31,22,0.35);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
}
.social-item:hover .overlay { opacity: 1; }
.social-item .overlay svg { width: 28px; height: 28px; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: var(--space-4); }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row--2 { grid-template-columns: 1fr; } }
label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 6px;
  color: var(--color-text);
}
.required-mark { color: var(--color-danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-line-200);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(29, 92, 60, 0.12);
}
.field-hint { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 4px; }
.field-error { font-size: var(--text-xs); color: var(--color-danger); margin-top: 4px; display: none; }
.form-row.has-error input, .form-row.has-error textarea, .form-row.has-error select {
  border-color: var(--color-danger);
}
.form-row.has-error .field-error { display: block; }

.file-drop {
  border: 1.5px dashed var(--color-line-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--color-primary); background: var(--color-cream-100); }
.file-drop input { display: none; }
.file-drop svg { width: 32px; height: 32px; color: var(--color-primary); margin-bottom: var(--space-2); }
.file-list { margin-top: var(--space-3); }
.file-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: 6px;
}
.file-list button { background: none; border: none; color: var(--color-danger); font-weight: 700; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.checkbox-row label { font-weight: 400; margin: 0; }

.form-success {
  text-align: center;
  padding: var(--space-7) var(--space-4);
}
.form-success .icon-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
}
.form-success .icon-circle svg { width: 34px; height: 34px; }

/* ---------- Careers wizard ---------- */
.wizard-head {
  margin-bottom: var(--space-6);
}
.wizard-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.wizard-count {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.wizard-current {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wizard-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-line-200);
  overflow: hidden;
}
.wizard-fill {
  height: 100%;
  width: 16.6667%;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  transition: width var(--duration-base) var(--ease-out);
}

/* Desktop: full labelled step rail */
.wizard-labels {
  display: none;
  margin-top: var(--space-3);
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  list-style: none;
  padding: 0;
}
.wizard-labels li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding-top: var(--space-2);
  border-top: 2px solid var(--color-line-200);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.wizard-labels li.is-done { border-top-color: var(--color-primary); color: var(--color-text-body); }
.wizard-labels li.is-active { border-top-color: var(--color-primary); color: var(--color-primary); font-weight: 700; }

@media (min-width: 700px) {
  .wizard-labels { display: flex; }
  .wizard-current { display: none; }
  .wizard-track { display: none; }
  .wizard-meta { margin-bottom: 0; }
}

.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; animation: riseIn 0.5s var(--ease-out); }
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-200);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary-strong);
  color: var(--color-cream-200);
  padding: var(--space-8) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--color-white); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-3); }
.footer a { text-decoration: none; color: var(--color-cream-200); opacity: 0.85; font-size: var(--text-sm); }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer li { margin-bottom: 10px; }
.footer-brand p { color: var(--color-cream-200); opacity: 0.8; font-size: var(--text-sm); }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  opacity: 0.7;
}
.footer-legal { display: flex; gap: var(--space-4); }
.footer-credit { opacity: 0.65; }
.footer-credit a { color: var(--color-gold-400); opacity: 1; }

/* ---------- Sticky call button (mobile) ---------- */
.sticky-call {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 90;
  display: none;
}
@media (max-width: 720px) {
  .sticky-call { display: block; }
}
.sticky-call a {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-gold-500);
  color: var(--color-green-950);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.sticky-call svg { width: 26px; height: 26px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-6)) 0 var(--space-6);
  background: var(--color-primary-strong);
  color: var(--color-white);
  overflow: hidden;
}
/* Photo layer — set per page via a modifier class below */
.page-hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  animation: phFade 1.2s var(--ease-out) 0.1s forwards;
}
@keyframes phFade { to { opacity: 1; } }
/* Scrim keeps headline contrast well above WCAG AA over any photo */
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(12,31,22,0.93) 0%,
    rgba(12,31,22,0.84) 42%,
    rgba(12,31,22,0.48) 76%,
    rgba(12,31,22,0.62) 100%);
}
.page-hero > .container,
.page-hero > .container-narrow { position: relative; z-index: 2; }
.page-hero .shape-field { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .page-hero-media { animation: none; opacity: 1; }
}

.page-hero--about    .page-hero-media { background-image: url('../images/ph-about.jpg'); }
.page-hero--services .page-hero-media { background-image: url('../images/ph-services.jpg'); }
.page-hero--careers  .page-hero-media { background-image: url('../images/ph-careers.jpg'); }
.page-hero--contact  .page-hero-media { background-image: url('../images/ph-contact.jpg'); }
.page-hero--founder  .page-hero-media { background-image: url('../images/ph-founder.jpg'); }
.page-hero .eyebrow { color: var(--color-gold-400); }
.page-hero h1 { color: var(--color-white); max-width: 760px; }
.page-hero .lede { color: var(--color-cream-200); max-width: 620px; font-size: var(--text-md); }
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-cream-200);
  opacity: 0.8;
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* Stat counters */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-gold-400);
}
.stat-label { font-size: var(--text-sm); color: var(--color-cream-200); opacity: 0.85; }

/* ---------- Decorative shape field (Selar-inspired accents) ---------- */
/* Subtle background geometry for sections that want extra visual interest.
   Purely decorative: absolutely positioned, non-interactive, and clipped to
   the parent so it can never cause horizontal scroll or overlap content. */
.shape-host { position: relative; overflow: hidden; }
.shape-field { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape-field .sf-circle,
.shape-field .sf-ring,
.shape-field .sf-diamond { position: absolute; }
.shape-field .sf-circle {
  border-radius: 50%;
  background: var(--color-gold-500);
  opacity: 0.10;
}
.shape-field .sf-ring {
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.14;
}
.shape-field .sf-diamond {
  width: 14px; height: 14px;
  background: var(--color-gold-400);
  opacity: 0.16;
  transform: rotate(45deg);
}
/* Ensure section content sits above the shape field without every section
   needing an explicit z-index utility class. */
.shape-host > .container,
.shape-host > .container-narrow { position: relative; z-index: 1; }

/* ---------- Accent italic (Selar-style emphasized word in a headline) ---------- */
.accent {
  font-style: italic;
  color: var(--color-clay-500);
}
.section--dark .accent, .hero .accent, .statement .accent { color: var(--color-gold-400); }

/* ---------- Trust strip: overlapping real photos + honest rating line ---------- */
.trust-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
}
.trust-bar-avatars {
  display: flex;
  align-items: center;
}
.trust-bar-avatars img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg);
  margin-left: -12px;
}
.trust-bar-avatars img:first-child { margin-left: 0; }
.trust-bar-text { font-size: var(--text-sm); color: var(--color-text); }
.trust-bar-text strong { color: var(--color-primary-strong); }
.trust-bar-stars { color: var(--color-gold-500); letter-spacing: 1px; font-size: var(--text-sm); }

/* ---------- Big bold standalone statement section ---------- */
.statement {
  padding: var(--space-8) 0;
  text-align: center;
}
.statement p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  line-height: var(--leading-snug);
  color: var(--color-primary-strong);
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
.section--dark .statement p { color: var(--color-white); }

/* ---------- Color-blocked "at a glance" grid ---------- */
/* Echoes the bold color-block layout Jaama has already used in its own
   marketing materials, translated into the site's real palette. */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .glance-grid { grid-template-columns: repeat(2, 1fr); }
}
.glance-block {
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
}
.glance-block .glance-icon { width: 30px; height: 30px; margin-bottom: 6px; }
.glance-block strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.15;
}
.glance-block span { font-size: var(--text-xs); opacity: 0.85; }
.glance-block--cream { background: var(--color-cream-200); color: var(--color-primary-strong); }
.glance-block--green { background: var(--color-green-800); color: var(--color-white); }
.glance-block--gold { background: var(--color-gold-500); color: var(--color-green-950); }
.glance-block--deep { background: var(--color-green-950); color: var(--color-cream-200); }

/* ---------- Refined logo/payment row (insurance section) ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.logo-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-white);
}
.logo-row-item svg { width: 22px; height: 22px; color: var(--color-gold-400); flex-shrink: 0; }

/* Anchor offset so sticky nav doesn't cover section headings */
section[id] { scroll-margin-top: calc(var(--nav-height) + 12px); }

/* ---------- Reviews (Google-ready) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.review-card-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.review-avatar {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-cream-100);
}
.review-avatar--initial {
  display: grid; place-items: center;
  font-weight: 700; color: var(--color-primary);
  background: var(--color-cream-100);
}
.review-name { font-weight: 700; font-size: var(--text-sm); }
.review-date { font-size: var(--text-xs); color: var(--color-text-muted); }
.review-stars { color: var(--color-gold-400); letter-spacing: 2px; margin-bottom: var(--space-2); }
.review-body { font-size: var(--text-sm); line-height: 1.65; }

.reviews-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-6) var(--space-5);
  border: 1px dashed var(--color-line-200);
  border-radius: var(--radius-lg);
  background: var(--color-cream-50, var(--color-cream-100));
}
.reviews-empty-icon { width: 40px; height: 40px; color: var(--color-primary); margin: 0 auto var(--space-3); opacity: 0.8; }
.reviews-empty p { margin: 0 0 var(--space-2); font-size: var(--text-base); }
.reviews-empty-sub { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4) !important; }

/* ---------- Service area counties ---------- */
.county-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
}
.county-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.county-card svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--color-primary); }
.county-card strong { font-size: var(--text-sm); }
.county-note {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- Stat sub-line (two-line stats) ---------- */
.stat-sub {
  font-family: var(--font-display, inherit);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
  margin-top: 2px;
}

/* ---------- Founder page ---------- */
.founder-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-7, var(--space-6));
  align-items: center;
  margin-top: var(--space-4);
}
@media (max-width: 860px) {
  .founder-hero { grid-template-columns: 1fr; gap: var(--space-5); }
}
.founder-portrait { position: relative; }
.founder-portrait .media-frame { box-shadow: var(--shadow-lg); }
.founder-portrait-tag {
  position: absolute;
  left: var(--space-4);
  bottom: -18px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
}
.founder-portrait-tag strong { display: block; font-size: var(--text-sm); }
.founder-portrait-tag span { font-size: var(--text-xs); color: var(--color-text-muted); }

.prose > p { margin-bottom: var(--space-4); }
.prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }

/* Placeholder + editor notes — visually obvious so nothing ships unfilled */
.editor-note {
  border-left: 4px solid var(--color-gold-400);
  background: var(--color-cream-100);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}
.placeholder-block {
  border: 1px dashed var(--color-gold-400);
  background: rgba(201, 161, 59, 0.07);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--color-line-200);
}
.timeline-item {
  position: relative;
  padding-left: var(--space-6);
  padding-bottom: var(--space-6);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-line-200);
}
.timeline-item.is-current::before { border-color: var(--color-primary); background: var(--color-primary); }
.timeline-year {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.timeline-body h4 { margin: 0 0 var(--space-2); }
.timeline-body p { margin: 0; font-size: var(--text-sm); }

/* ---------- Date pairs (must shrink on narrow phones) ---------- */
.date-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 420px) {
  .date-pair { grid-template-columns: minmax(0, 1fr); }
}
/* Date/number inputs must never force their intrinsic width */
input[type="date"], input[type="month"], input[type="time"], input[type="number"] {
  min-width: 0;
  max-width: 100%;
}
.form-row, .form-row > div { min-width: 0; }

/* ---------- Service block imagery ---------- */
.service-figure {
  margin: 0 0 var(--space-5);
}
.service-figure .media-frame {
  box-shadow: var(--shadow-md, var(--shadow-sm));
}
@media (min-width: 900px) {
  .service-figure .media-frame { aspect-ratio: 21 / 9; }
}


/* ---------- Dark CTA bands with photo backing ---------- */
.section--photo {
  position: relative;
  overflow: hidden;
}
.section--photo .photo-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 32%;
}
.section--photo .photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,31,22,0.86) 0%, rgba(12,31,22,0.80) 100%);
}
.section--photo > .container,
.section--photo > .container-narrow { position: relative; z-index: 2; }
.section--photo .shape-field { z-index: 1; }
.photo-layer--cta  { background-image: url('../images/cta-band.jpg'); }
.photo-layer--cta2 { background-image: url('../images/cta-band-2.jpg'); }
