/* ==========================================================================
   CLEARMARK TUTORING — Master Stylesheet
   Version 1.0 · May 2026
   Brand Guidelines v3.0 compliant
   Mobile-first · WCAG AA · Performance-optimised
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette */
  --green: #1B4D3E;
  --copper: #C8956C;
  --off-white: #FAFAF7;
  --near-black: #1A1A1A;

  /* Extended palette */
  --green-light: #E8F0EC;
  --copper-light: #F5EDE4;
  --stone: #F5F0EB;
  --white: #FFFFFF;
  --text-secondary: #5C5C5C;
  --border: #E2DDD7;
  --border-strong: #C4BDB5;
  --success: #2D8659;
  --error: #C0392B;
  --warning: #D4A017;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', Calibri, 'Segoe UI', sans-serif;
  --font-accent: 'Libre Baskerville', Cambria, Georgia, serif;

  /* Type scale */
  --text-hero: clamp(2rem, 4vw, 3.5rem);
  --text-h2: clamp(1.5rem, 3vw, 2.5rem);
  --text-h3: 1.25rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-button: 1rem;
  --text-testimonial: 1.125rem;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.3s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 77, 62, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 77, 62, 0.08);
  --shadow-lg: 0 8px 30px rgba(27, 77, 62, 0.12);
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--near-black);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--copper);
}

/* Focus styles — WCAG AA */
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background-color: var(--green-light);
  color: var(--near-black);
}


/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--green);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: var(--space-sm);
}


/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--green);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.4;
  color: var(--near-black);
}

p {
  margin-bottom: 1em;
}

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

/* Stacked H1 — each clause on its own line */
.h1-stacked,
.h1-stacked > span {
  display: block;
}

/* Eyebrow text */
.eyebrow,
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-sm);
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-accent);
  font-size: var(--text-testimonial);
  font-style: italic;
  line-height: 1.6;
  color: var(--near-black);
  border-left: 4px solid var(--copper);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-style: normal;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}


/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-md) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

.section--stone {
  background-color: var(--stone);
}

.section--green {
  background-color: var(--green);
  color: var(--white);
}

.section--green h2,
.section--green h3,
.section--green .eyebrow {
  color: var(--white);
}

.section--green .eyebrow {
  color: var(--copper);
}

.section--copper-light {
  background-color: var(--copper-light);
}

.grid-2 {
  display: grid;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Trust strip */
.trust-strip {
  background: var(--green);
  color: var(--white);
  font-size: var(--text-small);
  text-align: center;
  padding: var(--space-xs) var(--gutter);
  line-height: 1.4;
}

.trust-strip span {
  display: inline;
}

.trust-strip .separator {
  margin: 0 0.5em;
  opacity: 0.5;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.footer-tagline span {
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green);
  line-height: 1.1;
  text-decoration: none;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.logo-dot {
  color: var(--copper);
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav-desktop a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-small);
  color: var(--green);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width var(--duration) var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-small);
  color: var(--green);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--duration) var(--ease);
}

.nav-dropdown[aria-expanded="true"] .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration) var(--ease);
}

.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-small);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--green-light);
}

/* Hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger-lines span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] .hamburger-lines span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-lines span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--duration) var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
}

.nav-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  min-height: 72px;
}

.nav-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green);
}

.nav-mobile-links {
  flex: 1;
  padding: var(--space-xs) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
}

.nav-mobile-links a,
.nav-mobile-links button {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.nav-mobile-links a:hover {
  color: var(--copper);
}

.nav-mobile-sub {
  padding-left: var(--space-md);
  display: none;
}

.nav-mobile-sub.open {
  display: block;
}

.nav-mobile-sub a {
  font-size: var(--text-body);
  font-weight: 400;
  min-height: 48px;
}

.nav-mobile-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.nav-mobile-footer a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  font-size: var(--text-small);
  color: var(--text-secondary);
  text-decoration: none;
  min-height: 44px;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn--primary:hover {
  background: #b5845f;
  border-color: #b5845f;
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn--secondary:hover {
  background: var(--green);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--off-white);
  border-color: var(--off-white);
}

.btn--text {
  background: none;
  border: none;
  color: var(--green);
  padding: 0;
  min-height: auto;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.btn--text:hover {
  color: var(--copper);
}

.btn--full {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* Header CTA */
.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}


/* ---------- Hero ---------- */
.hero {
  padding: var(--space-md) 0;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-2xl) 0;
  }
}

.hero--green {
  background: var(--green);
  color: var(--white);
}

.hero--green h1,
.hero--green .eyebrow {
  color: var(--white);
}

.hero--green .eyebrow {
  color: var(--copper);
}

.hero__content {
  max-width: 680px;
}

.hero__sub,
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero--green .hero__sub,
.hero--green .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.hero__trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--text-small);
  color: var(--text-secondary);
}

.hero--green .hero__trust-strip {
  color: rgba(255, 255, 255, 0.7);
}

.hero__trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.hero__trust-strip .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}


/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card--clickable {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.card--copper-accent {
  border-top: 3px solid var(--copper);
}

.card--green-accent {
  border-top: 3px solid var(--green);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-secondary);
}


/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  gap: var(--space-lg);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stats-strip .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-strip .stat-number,
.stats-strip .stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
}

.section--green .stat-number,
.section--green .stat__number {
  color: var(--copper);
}

.stats-strip .stat-label,
.stats-strip .stat__label {
  font-size: var(--text-small);
  margin-top: var(--space-xs);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.section--green .stat-label,
.section--green .stat__label {
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}


/* ---------- Process steps ---------- */
.process-step {
  padding: var(--space-lg);
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 1.5rem;
  padding-left: var(--space-xl);
}

.process-step__number {
  position: absolute;
  left: -1.5rem;
  top: var(--space-lg);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step:last-child {
  border-left-color: transparent;
}

.process-step h3 {
  margin-bottom: var(--space-xs);
}

.step-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.step-meta__divider {
  display: none;
}

@media (min-width: 768px) {
  .step-meta {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
  }

  .step-meta__divider {
    display: inline;
    color: var(--text-secondary);
  }
}


/* ---------- Pricing cards ---------- */
.pricing-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-block__header {
  background: var(--green);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-block__header h2,
.pricing-block__header h3 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.pricing-block__header p {
  font-size: var(--text-small);
  opacity: 0.85;
  margin-top: 4px;
}

.pricing-tier {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  min-height: 88px;
}

.pricing-block .btn {
  border-radius: 0;
}

.pricing-tier:last-child {
  border-bottom: none;
}

.pricing-tier--highlight {
  background: var(--copper-light);
  position: relative;
}

.pricing-tier--highlight::before {
  content: 'Most popular';
  position: absolute;
  top: 0;
  right: var(--space-md);
  background: var(--copper);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tier__name {
  font-weight: 500;
}

.pricing-tier__save {
  font-size: var(--text-small);
  color: var(--success);
  font-weight: 500;
}

.pricing-tier__price {
  text-align: right;
}

.pricing-tier__amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.pricing-tier__rate {
  font-size: var(--text-small);
  color: var(--text-secondary);
}


/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-lg);
}

.testimonial-card__stars {
  color: var(--copper);
  font-size: 1.125rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.testimonial-card__quote {
  font-family: var(--font-accent);
  font-size: var(--text-testimonial);
  font-style: italic;
  line-height: 1.6;
  color: var(--near-black);
  margin-bottom: var(--space-sm);
}

.testimonial-card__author {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-secondary);
  font-style: normal;
}


/* ---------- Accordion (FAQ) ---------- */
.accordion {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--near-black);
  text-align: left;
  min-height: 56px;
  gap: var(--space-sm);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--copper);
  transition: transform var(--duration) var(--ease);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ---------- Forms ---------- */
.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-weight: 500;
  font-size: var(--text-small);
  margin-bottom: var(--space-xs);
  color: var(--near-black);
}

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

.form__input {
  width: 100%;
  min-height: 56px;
  padding: 0.875rem var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--near-black);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  -webkit-appearance: none;
}

.form__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

.form__input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form__error {
  display: none;
  font-size: var(--text-small);
  color: var(--error);
  margin-top: 4px;
}

.form__input.error ~ .form__error {
  display: block;
}

textarea.form__input {
  min-height: 120px;
  resize: vertical;
}

select.form__input {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235C5C5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
}


/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0 0;
}

@media (min-width: 768px) {
  .site-footer {
    padding: var(--space-3xl) 0 0;
  }
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-small);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--copper);
}

.footer-brand p {
  font-size: var(--text-small);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background var(--duration) var(--ease);
}

.footer-social a:hover {
  background: var(--copper);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
}

.footer-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}


/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--copper);
  padding: var(--space-sm) var(--gutter);
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  min-height: 48px;
  font-size: var(--text-body);
}

body.page-book .mobile-cta,
body.page-contact .mobile-cta {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}

/* Push body content up so sticky CTA doesn't overlap */
@media (max-width: 1023px) {
  body {
    padding-bottom: 72px;
  }
  body.page-book,
  body.page-contact {
    padding-bottom: 0;
  }
}


/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: var(--space-md) var(--gutter);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cookie-banner p {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner p a {
  color: var(--green);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-banner__actions {
    flex-shrink: 0;
  }
}


/* ---------- CTA strip ---------- */
.cta-strip {
  text-align: center;
  padding: var(--space-md) 0;
}

@media (min-width: 768px) {
  .cta-strip {
    padding: var(--space-2xl) 0;
  }
}

.cta-strip h2 {
  margin-bottom: var(--space-xs);
}

.cta-strip p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.section--green .cta-strip p {
  color: rgba(255, 255, 255, 0.85);
}


/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: var(--text-small);
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--green);
}

.breadcrumbs .separator {
  margin: 0 0.5em;
  opacity: 0.5;
}


/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card__image {
  aspect-ratio: 16/9;
  background: var(--stone);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__category {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.blog-card__meta {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* Article */
.article-body {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.article-body h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}


/* ---------- Credentials strip ---------- */
.credentials-strip {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 768px) {
  .credentials-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.credential {
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.credential__number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.credential__label {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-top: 4px;
}


/* ---------- What's included list ---------- */
.included-list {
  list-style: none;
  padding: 0;
}

.included-list li {
  padding: var(--space-xs) 0;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.included-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 18px;
  height: 18px;
  background: var(--success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}


/* ---------- Thank-you page ---------- */
.thank-you-blocks {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .thank-you-blocks {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------- Form success state ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.form-success.visible {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}


/* ---------- Utility pages ---------- */
.legal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding-bottom: var(--space-3xl);
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}


/* ---------- 404 page ---------- */
.page-404 {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.page-404 h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--border);
  line-height: 1;
}


/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-in-delay-1 { transition-delay: 0.1s; }
  .fade-in-delay-2 { transition-delay: 0.2s; }
  .fade-in-delay-3 { transition-delay: 0.3s; }
}


/* ---------- Pricing Grid & Rows ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-block__body { padding: var(--space-md) 0; }
.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}
.pricing-row:last-child { border-bottom: 0; }
.pricing-row__label { font-size: var(--text-base); }
.pricing-row__save { font-size: var(--text-small); color: var(--copper); font-style: normal; }
.pricing-row__price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--green); text-align: right; }
.pricing-row__per { font-size: var(--text-small); color: var(--text-light); text-align: right; white-space: nowrap; }
.pricing-row--highlight {
  position: relative;
  background: rgba(200, 149, 108, 0.08);
  border-radius: var(--radius);
  padding: var(--space-sm);
  margin: var(--space-xs) calc(-1 * var(--space-sm));
  border-bottom: 0;
}
.pricing-row__badge {
  position: absolute;
  top: -0.65rem;
  left: var(--space-sm);
  background: var(--copper);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.6rem;
  border-radius: 2rem;
}

/* ---------- Testimonial Grid ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Blog Extras ---------- */
.blog-featured { transition: box-shadow 0.2s; }
.blog-featured:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.blog-article { padding-top: var(--space-lg); }
.blog-body { font-size: var(--text-base); line-height: 1.75; }
.blog-body h2 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.blog-body p { margin-bottom: var(--space-md); }
.blog-body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.blog-author { margin-top: var(--space-xl); }
.blog-pullquote { border-left: 4px solid var(--green); padding-left: var(--space-md); margin: var(--space-lg) 0; font-family: var(--font-accent); font-style: italic; font-size: var(--text-large); color: var(--green); }
.blog-leadmagnet { background: var(--off-white); border-left: 4px solid var(--copper); padding: var(--space-md); border-radius: var(--radius); margin: var(--space-lg) 0; }

/* ---------- Form Inline ---------- */
.form--inline {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
  flex-wrap: wrap;
}
.form--inline .form__input { flex: 1 1 240px; }
.form--inline .btn { flex-shrink: 0; }

/* ---------- Button Variants ---------- */
.btn--small {
  padding: 0.4rem 0.9rem;
  font-size: var(--text-small);
  min-height: 36px;
}
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--near-black);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- SR-Only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .mobile-cta,
  .cookie-banner {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }

  .hero {
    background: none !important;
    color: #000 !important;
  }
}
