/* ==========================================================================
   ModoReady
   Design system: sage green primary (shield-and-leaf mark), terracotta
   accent, high contrast, senior-friendly (large type, generous spacing,
   plain-language UI).
   ========================================================================== */

:root {
  /* Color palette */
  --color-primary: #5B6E52;        /* sage green — 5.5:1 on white, safe for text either direction */
  --color-primary-dark: #3D4A38;   /* deep sage — max-contrast fills (9.4:1), footer background */
  --color-primary-light: #8FA88B;  /* shield sage — badges/icon chips/section fills, not text-on-white */
  --color-primary-pale: #E8EDE4;

  --color-accent: #B85430;         /* terracotta — CTAs, highlights. White text on this passes WCAG AA (4.5:1) at any size */
  --color-accent-dark: #9C4523;    /* for max-contrast fills (6.4:1) — testimonial band, badges */
  --color-accent-pale: #FBEAE2;
  --color-cream: #F6EBE2;          /* warm beige — softens large backgrounds without competing with terracotta */
  --color-cream-deep: #EEDECF;

  --color-text: #232B1F;
  --color-text-muted: #6B7864;     /* sage-tinted muted text — 4.7:1 on white */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0EBE0;
  --color-border: #DCD5C4;
  --color-success: #2F7A4F;
  --color-success-pale: #E6F4EB;

  /* Type scale — senior-friendly, larger base size */
  --font-base: 18px;
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Comfortaa', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --line-height: 1.65;

  /* Layout */
  --max-width: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(35, 43, 31, 0.08);
  --shadow-lg: 0 8px 28px rgba(35, 43, 31, 0.14);

  --focus-ring: 3px solid var(--color-accent-dark);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration-thickness: 2px; }
a:hover { color: var(--color-accent-dark); }
ul, ol { padding-left: 1.4em; }
h1, h2, h3, h4 { color: var(--color-primary-dark); line-height: 1.25; margin-top: 0; font-family: var(--font-display); }
h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 500; }
h3 { font-size: 1.375rem; font-weight: 500; }
h4 { font-size: 1.125rem; font-weight: 500; }
p { margin-top: 0; }
em { font-family: var(--font-display); font-style: italic; color: var(--color-accent-dark); }

/* ---- Hand-drawn accent marks ---- */
.accent-word {
  position: relative;
  display: inline-block;
}
.accent-word .squiggle {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.28em;
  color: var(--color-accent);
  overflow: visible;
}
.accent-word .circle-mark {
  position: absolute;
  left: -0.22em;
  right: -0.22em;
  top: -0.22em;
  bottom: -0.22em;
  width: auto;
  height: auto;
  color: var(--color-accent);
  overflow: visible;
  pointer-events: none;
}

/* Visible, generous focus states for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--color-text-muted);
  font-size: 1.15rem;
}
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 44px 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary-pale); color: var(--color-primary); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-primary-pale); }
.btn-lg { font-size: 1.25rem; padding: 1.05em 2.2em; }
.btn-block { width: 100%; }
.btn-arrow-icon { transition: transform 0.15s ease; flex-shrink: 0; }
.btn:hover .btn-arrow-icon { transform: translateX(3px); }
.btn-outline-accent {
  background: transparent;
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
}
.btn-outline-accent:hover { background: var(--color-accent-pale); color: var(--color-accent-dark); }

/* ---- Header / Nav ---- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner .btn-primary {
  font-size: 1rem;
  padding: 0.7em 1.5em;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary-dark);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark.brand-mark-photo {
  width: 60px;
  height: 60px;
  border-radius: 0;
  background: none;
  overflow: hidden;
}
.brand-mark-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text { line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.25rem; display: block; }
.brand-tagline { font-size: 0.85rem; color: var(--color-text-muted); display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
}
.main-nav a:hover { background: var(--color-primary-pale); color: var(--color-primary-dark); }
.main-nav a[aria-current="page"] {
  color: var(--color-primary-dark);
  background: var(--color-primary-pale);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 8px;
}
.header-contact:hover,
.header-contact[aria-current="page"] { background: var(--color-primary-pale); color: var(--color-primary-dark); }
.header-contact svg { width: 20px; height: 20px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 8px 16px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 10px; font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; }
  .header-contact { display: none; }
  .header-inner { gap: 10px; flex-wrap: wrap; row-gap: 8px; }
  .header-inner .btn-primary {
    font-size: 0.9rem;
    padding: 0.55em 1.1em;
    white-space: normal;
    text-align: center;
  }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
}
@media (min-width: 941px) {
  .site-header { position: sticky; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--color-cream) 0%, #fff 65%);
  padding: 24px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-pale);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .hero-ctas { gap: 12px; flex-wrap: nowrap; }
.hero .hero-ctas .btn-lg { padding: 1.05em 1.5em; white-space: nowrap; }
@media (max-width: 480px) {
  .hero .hero-ctas { flex-wrap: wrap; }
  .hero .hero-ctas .btn-lg { white-space: normal; }
}
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: var(--color-success); flex-shrink: 0; }

/* ---- Placeholder media block ---- */
.placeholder-media {
  background: var(--color-primary-pale);
  border: 2px dashed var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  min-height: 260px;
  text-align: center;
  padding: 24px;
  gap: 10px;
}
.placeholder-media svg { width: 48px; height: 48px; opacity: 0.7; }
.placeholder-media .label { font-weight: 700; }
.placeholder-media .sub { font-size: 0.9rem; color: var(--color-text-muted); }
.placeholder-media.warm {
  background: var(--color-cream-deep);
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}
.placeholder-media.circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

/* ---- Real photos (replace placeholder-media once media is supplied) ---- */
.photo-frame {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.photo-frame.circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
.photo-frame.wide {
  aspect-ratio: 1408 / 768;
}

/* ---- Trust badges (bridges warmth + credibility) ---- */
.trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow);
}
.trust-badge svg { width: 20px; height: 20px; color: var(--color-accent-dark); flex-shrink: 0; }
.trust-badge.on-dark {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.trust-badge.on-dark svg { color: #F6C9AE; }

/* ---- Star rating ---- */
.star-row { display: flex; gap: 3px; color: var(--color-accent); }
.star-row svg { width: 18px; height: 18px; }

/* ---- Reviews ---- */
.review-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.review-quote { color: var(--color-text); flex: 1; }
.review-quote::before { content: "\201C"; }
.review-quote::after { content: "\201D"; }
.review-person { display: flex; align-items: center; gap: 12px; }
.avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
  background: var(--color-primary);
}
.avatar-initials.alt-accent { background: var(--color-accent-dark); }
.avatar-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-name { font-weight: 800; font-size: 0.98rem; }
.review-meta { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---- Cards ---- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 30px; height: 30px; }
.card-icon.alt-accent { background: var(--color-accent-pale); color: var(--color-accent-dark); }
.card-icon.round { border-radius: 50%; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-muted); }
.card.text-center .card-icon { margin-left: auto; margin-right: auto; }

/* ---- Tier / pricing cards ---- */
.tier-card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tier-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.tier-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--color-accent-dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.tier-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tier-name { font-size: 1.3rem; font-weight: 800; color: var(--color-primary-dark); }
.btn-sm { font-size: 0.85rem; padding: 0.5em 1.1em; }
.dual-pricing { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.dual-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.dual-price-row .price-label { font-weight: 700; color: var(--color-primary-dark); }
.dual-price-row .price-value { font-weight: 800; color: var(--color-accent-dark); margin-left: auto; }
.dual-price-row[data-book-link] { cursor: pointer; transition: background 0.15s ease; }
.dual-price-row[data-book-link]:hover,
.dual-price-row[data-book-link]:focus-visible {
  background: var(--color-primary-pale);
  outline: 2px solid var(--color-primary-light);
  outline-offset: -2px;
}
.tier-price { font-size: 1.6rem; font-weight: 800; color: var(--color-accent-dark); }
.tier-price .unit { font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted); }
.tier-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.mode-badge:hover { border-color: var(--color-primary-light); color: var(--color-primary-dark); }
.mode-badge:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tier-features li { display: flex; gap: 10px; align-items: flex-start; }
.tier-features svg { width: 20px; height: 20px; color: var(--color-success); flex-shrink: 0; margin-top: 2px; }

/* ---- Price checker (postal code -> price) ---- */
.price-checker[hidden] { display: none; }
.price-checker {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-checker .form-group { margin-bottom: 0; }
.price-result-headline { font-weight: 700; color: var(--color-primary-dark); }
.zone-day-options { display: flex; flex-direction: column; gap: 10px; }
.zone-day-option {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.zone-day-option.is-disabled { opacity: 0.6; }
.zone-day-date { font-weight: 700; color: var(--color-primary-dark); min-width: 110px; }
.zone-day-price { font-weight: 800; color: var(--color-accent-dark); }
.zone-day-badge { font-size: 0.88rem; color: var(--color-text-muted); flex-basis: 100%; }
.zone-day-option.is-selectable { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.zone-day-option.is-selectable:hover { border-color: var(--color-primary-light); }
.zone-day-option.is-selectable:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.zone-day-option.is-selected { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-pale); background: var(--color-cream); }
.zone-day-option.is-disabled .btn { flex-basis: 100%; opacity: 1; }

/* ---- Booking calendar (Book a Session date/time picker) ---- */
.calendar-selection-summary {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 0;
}
.booking-calendar { display: flex; flex-direction: column; gap: 12px; }
.booking-calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.booking-calendar-month { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); text-align: center; flex: 1; }
.booking-calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.booking-calendar-grid th {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 2px 8px;
}
.booking-calendar-grid td { padding: 3px; vertical-align: top; }
.calendar-day-blank { padding: 3px; }
.calendar-day {
  width: 100%;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.calendar-day:hover:not(:disabled) { border-color: var(--color-primary-light); }
.calendar-day:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.calendar-day.is-today { border-color: var(--color-primary); border-width: 2px; }
.calendar-day.is-selected-day { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-pale); background: var(--color-cream); }
.calendar-day.is-unavailable, .calendar-day:disabled { cursor: default; opacity: 0.4; background: var(--color-bg-alt); }
.calendar-day-num { font-weight: 700; color: var(--color-primary-dark); font-size: 0.95rem; }
.calendar-day-price { font-size: 0.8rem; font-weight: 800; color: var(--color-accent-dark); }
.calendar-day-price.is-full { color: var(--color-text-muted); font-weight: 600; text-decoration: line-through; }
.calendar-day-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-pale);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.4;
}
.booking-calendar-slots { margin-top: 4px; }
@media (max-width: 480px) {
  .calendar-day { min-height: 48px; padding: 4px 1px; }
  .calendar-day-num { font-size: 0.85rem; }
  .calendar-day-price { font-size: 0.72rem; }
  .booking-calendar-grid th { font-size: 0.68rem; padding: 2px 1px 6px; }
  .booking-calendar-month { font-size: 0.95rem; }
}

/* ---- Modal (shared: admin block-conflict confirm, Services page price
   checker calendar) -- gives content that needs more room than a narrow
   card column (or a native confirm()) its own centered, unconstrained
   space. ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 43, 31, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-card.modal-card-wide { max-width: 640px; }
.modal-card h3 { margin-top: 0; color: var(--color-primary-dark); }
.modal-conflict-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.modal-conflict-list li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
}
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--color-primary-pale); }

/* ---- Steps ---- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Testimonial / trust strip ---- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 32px 0;
  color: var(--color-text-muted);
  font-weight: 600;
}
.trust-strip span { display: flex; align-items: center; gap: 10px; }
.trust-strip svg { width: 24px; height: 24px; color: inherit; }

/* ---- Forms ---- */
.form-group { margin-bottom: 22px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  font-size: 1.05rem;
  font-family: inherit;
  padding: 0.85em 1em;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  background: #fff;
}
textarea { resize: vertical; min-height: 140px; }
.field-hint { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 6px; }
fieldset { border: none; padding: 0; margin: 0 0 22px; }
.field-invalid { border-color: var(--color-accent-dark) !important; box-shadow: 0 0 0 3px var(--color-accent-pale); }
.field-error-message {
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-error-message svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Color-block section bands ---- */
.band { padding: 64px 0; }
.band-primary.band-deco { padding: 32px 0; }
.band-primary.band-deco p { max-width: 560px; margin: 0 auto 28px; }
.band-primary { background: var(--color-primary); color: #E4EBDF; }
.band-primary h2, .band-primary h3, .band-primary h4 { color: #fff; }
.band-primary p { color: #D3DBC9; }
.band-primary a:not(.btn) { color: #fff; }

.band-primary-pale { background: var(--color-primary-pale); }

.band-accent { background: var(--color-accent); color: #FCEBE2; }
.band-accent h2, .band-accent h3, .band-accent h4 { color: #fff; }
.band-accent p { color: #FCEBE2; }

.band-accent-pale { background: var(--color-cream); }

.band-cream { background: var(--color-cream); }

.band-deco {
  position: relative;
  overflow: hidden;
}
.band-deco::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 8% 20%, rgba(255,255,255,0.10) 0, transparent 45%),
                     radial-gradient(circle at 92% 80%, rgba(255,255,255,0.10) 0, transparent 45%);
  pointer-events: none;
}
.band-deco > * { position: relative; }

@media (max-width: 860px) {
  .band { padding: 48px 0; }
}

/* ---- Testimonial ---- */
.testimonial-band {
  /* accent-dark, not accent, so white text clears WCAG AA (4.5:1) at normal size */
  background: var(--color-accent-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  max-width: 780px;
  margin: 0 auto;
}
.testimonial-quote {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-author { font-weight: 800; font-size: 1.05rem; }
.testimonial-location { color: #F6DACB; font-size: 0.95rem; }
@media (max-width: 700px) {
  .testimonial-band { padding: 40px 28px; }
  .testimonial-quote { font-size: 1.3rem; }
}

/* ---- Callout / notice boxes ---- */
.notice {
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.notice[hidden] { display: none; }
.notice svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.notice-info { background: var(--color-primary-pale); color: var(--color-primary-dark); }
.notice-success {
  background: var(--color-success-pale);
  color: #1E5236;
  font-size: 1.15rem;
  font-weight: 700;
}
.notice-accent { background: var(--color-accent-pale); color: var(--color-accent-dark); }

/* ---- Resource / blog cards ---- */
/* Each card is a link to article.html?id=N -- the whole square is
   clickable/keyboard-focusable, no separate "read more" control needed. */
.resource-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.resource-card:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow); }
.resource-card:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.resource-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.resource-body h3 {
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-meta { font-size: 0.85rem; color: var(--color-text-muted); }
.resource-body p {
  color: var(--color-text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-read-more { font-weight: 700; color: var(--color-primary); font-size: 0.92rem; }
@media (max-width: 860px) {
  /* A forced square stretched to the full width of a single narrow column
     is excessively tall -- let the card size to its content instead, same
     as every other card on the site, once it's not part of a 4-wide grid. */
  .resource-card { aspect-ratio: auto; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: #D3DBC9;
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #D3DBC9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand-desc { color: #B7C0AD; max-width: 32ch; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid #4A5744;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #B7C0AD;
}
.footer-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Page header (interior pages) ---- */
.page-header {
  background: var(--color-cream);
  padding: 24px 0;
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--color-text-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
