/* ==========================================================================
   Durus — styles
   Brand system: Modular D
   Colour:  Electric Blue #2F6BFF (CTAs, active states, highlights — max 10%)
            Deep Charcoal #0F1115 (headers, dark sections, structure — ~20%)
            White #F7F8FA (backgrounds, reading areas — ~70%)
            Mint #2EE6A6 (success/completion states ONLY)
   Type:    Inter (H1 bold, H2/H3 medium, UI) + Source Sans 3 (body)
            IBM Plex Serif italic (rare emphasis: testimonial quotes)
   Layout:  card-based modules, 8pt spacing, generous whitespace
   Pattern: blueprint grid at 5–8% opacity, background texture only
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colour system */
  --blue: #2F6BFF;
  --blue-hover: #2458E0;        /* functional hover state of system blue */
  --charcoal: #0F1115;
  --charcoal-soft: #1A1E26;     /* raised surfaces on charcoal sections */
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --mint: #2EE6A6;              /* success states only */
  --text: #0F1115;
  --text-secondary: #4B5563;
  --text-on-dark: #C9CFDA;
  --line: #E4E7EE;
  --line-dark: #262B35;

  /* Type system */
  --font-head: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-emphasis: "IBM Plex Serif", Georgia, serif;

  /* Layout system (8pt scale) */
  --container: 1152px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 500; letter-spacing: -0.005em; }
h3 { font-size: 1.2rem; font-weight: 500; }

/* Headings carry one weight — no decorative mixed-weight styling */
h1 strong, h2 strong { font-weight: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-color: color-mix(in srgb, var(--blue) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); text-decoration-color: var(--blue-hover); }

ul { padding-left: 1.2em; }

::selection { background: var(--blue); color: #fff; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-head);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}

.eyebrow-center { text-align: center; }

/* Legacy hook from the previous design system — intentionally neutral now */
.margin-rule { border-left: 0; padding-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out),
              border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--blue);
  color: #fff;
}
.btn-solid:hover { background: var(--blue-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: #fff; }

.btn-block { width: 100%; }

.text-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark { width: 34px; height: 40px; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2vw, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.65rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-menu a:not(.btn):hover { color: var(--blue); background: var(--bg); }

.btn-nav { min-height: 44px; padding-block: 0.5rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Blueprint grid pattern (background texture only, 5–8%) ---------- */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background-image:
    linear-gradient(to right, rgba(15, 17, 21, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 17, 21, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 34em;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-phone {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.hero-phone a { font-weight: 600; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

/* ---------- Photography ---------- */
.photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.photo-tall { aspect-ratio: 4 / 4.6; }
.photo-square { aspect-ratio: 1; }
.photo-wide { aspect-ratio: 16 / 9; border-radius: var(--radius-md) var(--radius-md) 0 0; }

.hero-media { margin: 0; }
.hero-media .photo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* Placeholder blocks (none currently in use; kept for future sections) */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-align: center;
  padding: 1.5rem;
}
.ph-icon { width: 44px; height: 44px; opacity: 0.6; }
.ph-caption {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.ph-tall { aspect-ratio: 4 / 4.6; }
.ph-square { aspect-ratio: 1; }
.ph-wide { aspect-ratio: 16 / 9; border-radius: var(--radius-md) var(--radius-md) 0 0; }

/* ---------- Section scaffolding ---------- */
.canvas-section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.sheet-section { padding: clamp(1rem, 3vw, 2rem) 0; }

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}

.sheet-narrow { max-width: 880px; }

.section-head { max-width: 46em; margin-bottom: clamp(2rem, 4.5vw, 3rem); }

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-intro { color: var(--text-secondary); font-size: 1.05rem; }

section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Visibility features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.45em; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.prose { max-width: 38em; }
.prose p { color: var(--text); }
.prose em { font-family: var(--font-emphasis); font-style: italic; }

.about-side { display: grid; gap: 1rem; }

.about-side .photo { border: 1px solid var(--line); }

/* Charcoal authority module */
.method-card {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}
.method-card h3 { color: #fff; font-size: 1.02rem; font-weight: 600; margin-bottom: 0.6em; }
.method-card p { color: var(--text-on-dark); font-size: 0.97rem; }

.lifeskills { margin-top: clamp(3rem, 7vw, 5rem); }
.lifeskills-head { max-width: 46em; margin-bottom: 2rem; }

.lifeskills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem 2rem;
}

.lifeskills-list li {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--text-secondary);
}
/* Modular square markers, system blue */
.lifeskills-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--blue);
}
.lifeskills-list strong {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}

/* ---------- Programmes ---------- */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.programme-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.programme-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.programme-tag {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.programme-card h3 { font-size: 1.25rem; font-weight: 600; }
.programme-card p { font-size: 0.96rem; color: var(--text-secondary); }

.programme-meta {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}

.programme-card-soon {
  border-style: dashed;
  background: var(--bg);
}
.programme-card-soon .text-link { margin-top: auto; padding-top: 1rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 860px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), border-color 0.2s var(--ease-out);
}
.pricing-card:hover { transform: translateY(-3px); }

.pricing-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card-premium {
  position: relative;
  border: 2px solid var(--blue);
}

.pricing-badge {
  position: absolute;
  top: -0.85rem;
  left: 2rem;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin: 0;
}

.price { margin: 0.5rem 0 0.25rem; }
.price-amount {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.price-per {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.price-note {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.pricing-features li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg) scale(0.85);
}

.pricing-card .btn { margin-top: auto; }

.pricing-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.97rem;
  color: var(--text-secondary);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.testimonial {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.testimonial:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

/* Rare-use emphasis face, reserved for quoted voices */
.testimonial p {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-size: 0.99rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.testimonial footer { display: grid; gap: 0.15rem; }

.testimonial cite {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.testimonial-detail {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---------- Articles ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.article-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.article-body { padding: 1.25rem 1.5rem 1.5rem; }

.article-meta {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.article-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }

.article-link { color: var(--text); text-decoration: none; }
.article-link:hover { color: var(--blue); text-decoration: underline; }

.article-card .article-body p { font-size: 0.93rem; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.5rem; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color 0.2s var(--ease-out);
}
.faq-item[open] { border-color: var(--blue); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out), border-color 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(225deg);
  border-color: var(--blue);
}

.faq-answer {
  margin: 0 1.25rem 1.15rem;
  padding: 0;
}
.faq-answer p { font-size: 0.97rem; color: var(--text-secondary); }

/* ---------- Contact (charcoal authority section) ---------- */
.contact-section {
  background-color: var(--charcoal);
  background-image:
    linear-gradient(to right, rgba(247, 248, 250, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 248, 250, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy .eyebrow { color: #7FA4FF; }
.contact-copy h2 { color: #fff; }
.contact-copy .prose p { color: var(--text-on-dark); }

.contact-details { margin: 1.5rem 0; display: grid; gap: 0.5rem; }
.contact-details p { margin: 0; color: var(--text-on-dark); font-size: 1rem; }
.contact-details a { color: #fff; font-weight: 600; text-decoration-color: color-mix(in srgb, var(--blue) 60%, transparent); }
.contact-details a:hover { color: #fff; text-decoration-color: var(--blue); }

.contact-label {
  display: inline-block;
  min-width: 4.2em;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A93A8;
}

.contact-direct { color: var(--text-on-dark); font-size: 0.97rem; }
.contact-direct .text-link { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); }
.contact-direct .text-link:hover { color: #fff; }

.contact-form-wrap { position: relative; }

.contact-form,
.form-success {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field { margin-bottom: 1rem; }

.form-field label,
.form-fieldset legend {
  display: block;
  font-family: var(--font-head);
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.label-optional { font-weight: 400; color: var(--text-secondary); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.form-field textarea { min-height: 110px; resize: vertical; }

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--text-secondary); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] { border-color: #D64545; }

.form-fieldset { border: none; padding: 0; margin: 0 0 1rem; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}
.checkbox:hover { border-color: var(--blue); }
.checkbox:has(input:checked) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.checkbox input { accent-color: var(--blue); width: 1rem; height: 1rem; }
.checkbox:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.form-privacy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Success state — the one place mint is allowed */
.form-success { text-align: center; }
.form-success:focus { outline: none; }

.success-icon {
  width: 52px;
  height: 52px;
  color: var(--mint);
  margin: 0 auto 1rem;
}

.form-success h3 { font-size: 1.25rem; font-weight: 600; }
.form-success p { color: var(--text-secondary); max-width: 28em; margin-inline: auto; }
.form-success .btn { margin-top: 1.25rem; }

.form-success-alt { margin-top: 1rem; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.footer-mark { width: 27px; height: 32px; }

.brand-name-footer { font-size: 1.05rem; color: #fff; }

.footer-tagline { font-size: 0.95rem; }

.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-on-dark);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.92rem;
}
.footer-nav a:hover,
.footer-contact a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); }

.footer-contact p { margin: 0; }
.footer-phone { font-size: 1.2rem !important; font-weight: 700; color: #fff !important; }
.footer-hours { font-size: 0.88rem; margin-top: 0.4rem !important; }

.footer-legal { padding-top: 1.5rem; }
.footer-legal p { font-size: 0.85rem; margin: 0; color: #79808F; }

/* ---------- Scroll reveal (gated by prefers-reduced-motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-delay-1.is-visible { transition-delay: 0.07s; }
.reveal-delay-2.is-visible { transition-delay: 0.14s; }
.reveal-delay-3.is-visible { transition-delay: 0.21s; }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card, .programme-card, .pricing-card, .testimonial, .article-card {
    transition: none;
  }
  .feature-card:hover, .programme-card:hover, .pricing-card:hover,
  .testimonial:hover, .article-card:hover {
    transform: none;
  }
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media { max-width: 480px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .site-nav { position: static; }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;

    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }

  .nav-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-menu a:not(.btn) {
    min-height: 48px;
    padding: 0 0.75rem;
    font-size: 1.02rem;
  }

  .nav-cta-item { margin-top: 0.5rem; }
  .btn-nav { width: 100%; min-height: 48px; }

  @media (prefers-reduced-motion: reduce) {
    .nav-menu { transition: none; transform: none; }
  }
}

/* ---------- Responsive: small phones ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }

  .form-row { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; }

  .sheet { padding-inline: 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .trust-strip { font-size: 0.8rem; }
}
