/* ==========================================================================
   WINSFORD SOLUTIONS — MAIN STYLESHEET
   --------------------------------------------------------------------------
   One stylesheet for every page. It is organised top to bottom:

     1.  Fonts
     2.  Design tokens (colours, type, spacing)  ← change the look here
     3.  Reset and base elements
     4.  Layout helpers (container, sections)
     5.  Buttons and links
     6.  Site header and navigation
     7.  Hero
     8.  Commitments banner
     9.  Sound familiar and who we serve
     10. What's included
     11. Comparison table
     12. Plans
     13. How it works
     14. FAQ
     15. Contact and form
     16. Site footer
     17. Mobile action bar
     18. Legal, thank-you and 404 pages
     19. Motion and accessibility preferences

   Class names describe what an element IS (e.g. .plan-card, .care-log-item).
   Variants use a double dash (e.g. .button--primary, .plan-card--featured).
   ========================================================================== */


/* ==========================================================================
   1. FONTS (self-hosted, licence files are in assets/fonts/)
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Century Schoolbook (TeX Gyre Schola Bold, letters only): used for the
   company name next to the logo, so the name matches the W in the mark. */
@font-face {
  font-family: "Winsford Serif";
  src: url("../fonts/schola-bold-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   2. DESIGN TOKENS
   Change a value here and it updates everywhere on the site.
   ========================================================================== */

:root {
  /* Brand colours */
  --color-ivory: #FAF7F2;          /* main page background */
  --color-surface: #FFFDF9;        /* cards and form fields on ivory */
  --color-forest: #1F3D35;         /* primary brand colour */
  --color-forest-deep: #173029;    /* hero, contact and footer backgrounds */
  --color-forest-soft: #2C5247;    /* hover state for forest */
  --color-brass: #B8873B;          /* decorative accent (lines, icons) */
  --color-brass-deep: #8A6223;     /* brass for small text on light backgrounds */
  --color-brass-light: #D9B77A;    /* brass for text and buttons on dark backgrounds */
  --color-sage: #E3E9E1;           /* soft tinted sections */
  --color-sage-deep: #C9D5CB;      /* borders on sage */

  /* Text colours */
  --color-ink: #1A2621;            /* main text */
  --color-ink-soft: #4A5A53;       /* secondary text */
  --color-on-dark: #FAF7F2;        /* main text on forest */
  --color-on-dark-soft: #B8C7BE;   /* secondary text on forest */

  /* Lines */
  --color-line: #E4DED3;
  --color-line-dark: rgba(250, 247, 242, 0.14);

  /* Status */
  --color-success: #2F6B4F;
  --color-error: #A3392B;

  /* Typefaces */
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale */
  --text-sm: 0.9375rem;    /* 15px */
  --text-base: 1.0625rem;  /* 17px */
  --text-lg: 1.1875rem;    /* 19px */
  --text-xl: 1.375rem;     /* 22px */
  --text-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-padding: clamp(4.5rem, 3rem + 5vw, 7.5rem);

  /* Shape and depth */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(23, 48, 41, 0.06), 0 12px 32px -16px rgba(23, 48, 41, 0.18);

  /* Layout */
  --container-width: 1180px;
  --container-padding: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --header-height: 72px;
}


/* ==========================================================================
   3. RESET AND BASE ELEMENTS
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-brass);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-sage-deep);
  color: var(--color-ink);
}

/* Visually hidden but still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to content" link for keyboard users, visible only when focused */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-forest);
  color: var(--color-on-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

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


/* ==========================================================================
   4. LAYOUT HELPERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-padding);
}

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

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

/* Heading block at the top of most sections */
.section-intro {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--color-forest);
}

/* Call to action repeated after major sections */
.section-cta {
  margin-top: var(--space-7);
}

.section-lead {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  max-width: 38rem;
}


/* ==========================================================================
   5. BUTTONS AND LINKS
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-6);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Forest button, for light backgrounds */
.button--primary {
  background: var(--color-forest);
  color: var(--color-on-dark);
}

.button--primary:hover {
  background: var(--color-forest-soft);
}

/* Brass button, for dark backgrounds */
.button--accent {
  background: var(--color-brass-light);
  color: var(--color-forest-deep);
}

.button--accent:hover {
  background: #E6C894;
}

/* Outline button, for light backgrounds */
.button--outline {
  border-color: var(--color-forest);
  color: var(--color-forest);
  background: transparent;
}

.button--outline:hover {
  background: var(--color-forest);
  color: var(--color-on-dark);
}

/* Outline button, for dark backgrounds */
.button--outline-light {
  border-color: rgba(250, 247, 242, 0.45);
  color: var(--color-on-dark);
  background: transparent;
}

.button--outline-light:hover {
  border-color: var(--color-on-dark);
  background: rgba(250, 247, 242, 0.08);
}

.button--full {
  width: 100%;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.text-link {
  color: var(--color-forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--color-brass-deep);
}


/* ==========================================================================
   6. SITE HEADER AND NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}

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

/* Logo: mark + name */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-forest);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Winsford Serif", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand--light {
  color: var(--color-on-dark);
}

/* Desktop navigation */
.main-nav {
  display: none;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.main-nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav-link:hover {
  color: var(--color-forest);
  border-bottom-color: var(--color-brass);
}

.header-cta {
  display: none;
  min-height: 44px;
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
}

/* Mobile menu button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-forest);
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-nav {
  border-top: 1px solid var(--color-line);
  background: var(--color-ivory);
  padding: var(--space-3) var(--container-padding) var(--space-6);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  list-style: none;
  margin-bottom: var(--space-5);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-forest);
  text-decoration: none;
}

@media (min-width: 960px) {
  .main-nav,
  .header-cta {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .mobile-nav[hidden] {
    display: none;
  }
}


/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-forest-deep);
  color: var(--color-on-dark);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem);
}

/* Soft light in the top corner, purely decorative */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(217, 183, 122, 0.12) 0%, rgba(217, 183, 122, 0) 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-brass-light);
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--color-brass-light);
}

.hero-title {
  font-size: calc(var(--text-hero) * 0.84);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--color-on-dark);
}

.hero-title-line {
  display: block;
}

.hero-text {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-on-dark-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-dark);
  font-size: var(--text-sm);
  color: var(--color-on-dark-soft);
}

.hero-meta strong {
  color: var(--color-on-dark);
  font-weight: 600;
}

/* "Care log" panel: shows what happens every month after launch */
.care-log {
  position: relative;
  background: var(--color-ivory);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.care-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.care-log-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-forest);
}

.care-log-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--color-sage);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-success);
  white-space: nowrap;
}

.care-log-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.18);
}

.care-log-list {
  list-style: none;
}

.care-log-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.care-log-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.care-log-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-brass-light);
}

.care-log-icon svg {
  width: 16px;
  height: 16px;
}

.care-log-label {
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}

.care-log-detail {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
  }

}


/* ==========================================================================
   8. COMMITMENTS BANNER
   ========================================================================== */

.commitments {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.commitments-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.commitment {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.commitment:nth-child(odd) {
  border-right: 1px solid var(--color-line);
}

.commitment:last-child {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.commitment-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-forest);
}

.commitment-label {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

@media (min-width: 960px) {
  .commitments-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .commitment,
  .commitment:nth-child(odd),
  .commitment:last-child {
    grid-column: auto;
    padding: var(--space-6) var(--space-5);
    border-bottom: 0;
    border-right: 1px solid var(--color-line);
  }

  .commitment:first-child {
    padding-left: 0;
  }

  .commitment:last-child {
    border-right: 0;
  }
}


/* ==========================================================================
   9. WHO WE SERVE
   ========================================================================== */

/* Trade feature card (tree care) */
.trade-features {
  display: grid;
  gap: var(--space-5);
}

.trade-feature {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-sage-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trade-feature-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-sage);
}

.trade-feature-body {
  padding: var(--space-6);
}

.trade-feature-name {
  font-size: var(--text-2xl);
  color: var(--color-forest);
}

.trade-feature-text {
  margin-top: var(--space-2);
  color: var(--color-ink-soft);
}

.trade-feature-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.trade-feature-list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
}

/* Small brass dash before each item */
.trade-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 1.5px;
  background: var(--color-brass);
}


/* ==========================================================================
   12. PLANS
   Two cards built the same way (head, summary, price, 4 features, button),
   so names, prices, lists and buttons line up across both. Everything both
   plans share sits once, in the "Every plan includes" strip below them.
   ========================================================================== */

.plan-grid {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(23, 48, 41, 0.04);
}

.plan-card--featured {
  border-color: var(--color-brass-light);
  box-shadow: var(--shadow-card);
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2rem;
}

.plan-name {
  font-size: var(--text-xl);
  color: var(--color-forest);
}

.plan-badge {
  flex: none;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--color-brass-light);
  color: var(--color-forest-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.plan-badge--quiet {
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-ink-soft);
}

.plan-summary {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.plan-pricing {
  margin-top: var(--space-5);
  padding: var(--space-5) 0;
  border-block: 1px solid var(--color-line);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.plan-price-amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-forest);
}

.plan-price-period {
  font-size: var(--text-base);
  color: var(--color-ink-soft);
}

.plan-setup {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brass-deep);
}

.plan-features {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin-block: var(--space-5) var(--space-6);
  flex-grow: 1;
  align-content: start;
}

.plan-feature {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.plan-feature svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-brass);
}

/* "Every plan includes": the shared promises, once */
.plan-includes {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.plan-includes-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
}

.plan-include-list {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
  list-style: none;
}

.plan-include {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: var(--space-3);
  row-gap: 2px;
  align-items: start;
  align-content: start;
}

.plan-include-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-forest);
}

.plan-include-icon svg {
  width: 20px;
  height: 20px;
}

.plan-include-title {
  font-weight: 600;
  color: var(--color-forest);
  line-height: 1.35;
}

.plan-include-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

.plans-other {
  margin-top: var(--space-7);
  font-size: var(--text-lg);
  color: var(--color-ink);
  text-align: center;
}

.plans-footnote {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  text-align: center;
}

@media (min-width: 640px) {
  .plan-include-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
}

@media (min-width: 960px) {
  .plan-grid,
  .plan-includes {
    max-width: 58rem;
    margin-inline: auto;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .plan-card {
    padding: var(--space-7) var(--space-6) var(--space-6);
  }

  .plan-include-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .plan-include {
    grid-template-columns: 1fr;
    row-gap: var(--space-2);
  }

  .plan-include-icon {
    grid-row: auto;
    margin-bottom: var(--space-1);
  }

  /* Two plans, centered: the heading sits above them */
  #plans .section-intro {
    margin-inline: auto;
    text-align: center;
  }
}


/* ==========================================================================
   13. HOW IT WORKS
   ========================================================================== */

.step-list {
  display: grid;
  gap: var(--space-6);
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-5);
  border-top: 1.5px solid var(--color-forest);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-brass-light);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.step-title {
  font-size: var(--text-xl);
  color: var(--color-forest);
}

.step-text {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

@media (min-width: 640px) {
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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


/* ==========================================================================
   14. FAQ
   Uses the browser's built-in <details> element: works without JavaScript.
   With script.js, answers open and close smoothly, one at a time
   (see "FAQ" in script.js).
   ========================================================================== */

.faq-layout {
  display: grid;
  gap: var(--space-6);
}

.faq-aside-text {
  margin-top: var(--space-4);
  color: var(--color-ink-soft);
}

.faq-list {
  border-top: 1px solid var(--color-line);
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-forest);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

/* Plus sign that turns into a minus when open: the vertical bar shrinks
   away while the icon turns */
.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background-image:
    linear-gradient(var(--color-forest), var(--color-forest)),
    linear-gradient(var(--color-forest), var(--color-forest));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 1.5px, 1.5px 11px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), background-size 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-question::after {
  background-size: 11px 1.5px, 1.5px 0;
  transform: rotate(180deg);
}

/* With script.js running, the icon follows .is-open so it turns the moment
   a question is clicked, not when the closing animation ends */
.faq-list.is-enhanced .faq-item .faq-question::after {
  background-size: 11px 1.5px, 1.5px 11px;
  transform: none;
}

.faq-list.is-enhanced .faq-item.is-open .faq-question::after {
  background-size: 11px 1.5px, 1.5px 0;
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: var(--space-5);
  color: var(--color-ink-soft);
  max-width: 40rem;
}

.faq-answer p + p {
  margin-top: var(--space-3);
}

/* Clips the answer while it slides open or closed */
.faq-answer.is-animating {
  overflow: hidden;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: 0.75fr 1.25fr;
    gap: var(--space-8);
  }

  .faq-aside {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    align-self: start;
  }
}


/* ==========================================================================
   15. CONTACT AND FORM
   ========================================================================== */

.contact {
  background: var(--color-forest-deep);
  color: var(--color-on-dark);
}

.contact-layout {
  display: grid;
  gap: var(--space-7);
}

.contact-title {
  font-size: var(--text-3xl);
  color: var(--color-on-dark);
}

.contact-lead {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-on-dark-soft);
  max-width: 30rem;
}

/* WhatsApp and US phone stay hidden until switched on (CONTACT in assets/js/script.js) */
[data-contact][hidden] {
  display: none;
}

.contact-direct {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  list-style: none;
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-on-dark);
  font-weight: 500;
  text-decoration: none;
}

.contact-direct-link:hover {
  color: var(--color-brass-light);
}

.contact-direct-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line-dark);
  border-radius: 50%;
  color: var(--color-brass-light);
}

.contact-direct-icon svg {
  width: 18px;
  height: 18px;
}

/* Form card */
.contact-form {
  padding: var(--space-6);
  background: var(--color-ivory);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  gap: 0 var(--space-4);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.form-optional {
  font-weight: 400;
  color: var(--color-ink-soft);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--text-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(184, 135, 59, 0.35);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-select {
  appearance: none;
  padding-right: var(--space-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F3D35' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
}

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

/* Hidden spam trap: real visitors never see or fill it */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.form-privacy a {
  color: var(--color-forest);
}

/* Help text under a field (e.g. phone) */
.form-hint {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-ink-soft);
}

/* Shows which plan the visitor picked */
.form-plan-note {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-sage);
  font-size: var(--text-sm);
  color: var(--color-forest);
}

.form-plan-note[hidden] {
  display: none;
}

/* "What happens next" steps under the form */
.form-next {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.form-next-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-ink);
}

.form-next-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  list-style: none;
  counter-reset: next-step;
}

.form-next-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  counter-increment: next-step;
}

.form-next-list li::before {
  content: counter(next-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-brass-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-status[hidden] {
  display: none;
}

.form-status--success {
  background: var(--color-sage);
  color: var(--color-success);
}

.form-status--error {
  background: #F6E3DF;
  color: var(--color-error);
}

.form-status--sending {
  background: var(--color-sage);
  color: var(--color-ink-soft);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    padding: var(--space-7);
  }
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-8);
    align-items: start;
  }
}


/* ==========================================================================
   16. SITE FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-forest-deep);
  color: var(--color-on-dark-soft);
  padding-block: var(--space-7) var(--space-6);
  border-top: 1px solid var(--color-line-dark);
  font-size: var(--text-sm);
}

.footer-top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-line-dark);
}

.footer-tagline {
  margin-top: var(--space-4);
  max-width: 22rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.footer-heading {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-on-dark);
}

.footer-list {
  display: grid;
  gap: var(--space-2);
  list-style: none;
}

.footer-link {
  color: var(--color-on-dark-soft);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
}

/* On phones the contact column (long email address) spans the full width */
.footer-column--contact {
  grid-column: 1 / -1;
}

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1.8fr;
  }

  .footer-columns {
    grid-template-columns: 0.8fr 1.4fr 0.8fr;
  }

  .footer-column--contact {
    grid-column: auto;
  }
}


/* ==========================================================================
   17. MOBILE ACTION BAR
   Fixed to the bottom of phone screens on the main page. script.js hides it
   while the contact form is on screen. Never shown on desktop.
   ========================================================================== */

.mobile-action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--container-padding) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--color-forest-deep);
  border-top: 1px solid var(--color-line-dark);
  box-shadow: 0 -12px 28px -18px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.mobile-action-bar.is-hidden {
  transform: translateY(110%);
}

.mobile-action-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid rgba(250, 247, 242, 0.35);
  border-radius: 999px;
  color: var(--color-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.mobile-action-email svg {
  width: 18px;
  height: 18px;
  color: var(--color-brass-light);
}

.mobile-action-cta {
  flex: 1;
  min-height: 48px;
  padding: 0 var(--space-4);
}

/* Room at the bottom of the page so the bar never covers the footer */
.has-action-bar .site-footer {
  padding-bottom: calc(var(--space-6) + 80px);
}

@media (min-width: 960px) {
  .mobile-action-bar {
    display: none;
  }

  .has-action-bar .site-footer {
    padding-bottom: var(--space-6);
  }
}


/* ==========================================================================
   18. LEGAL, THANK-YOU AND 404 PAGES
   ========================================================================== */

.legal {
  padding-block: var(--space-8) var(--section-padding);
}

.legal-inner {
  max-width: 46rem;
}

.legal-title {
  font-size: var(--text-3xl);
  color: var(--color-forest);
}

.legal-updated {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.legal-summary {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-sage);
  border-radius: var(--radius-md);
}

.legal-content h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  color: var(--color-forest);
}

.legal-content h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0;
}

.legal-content p,
.legal-content ul {
  margin-bottom: var(--space-4);
  color: var(--color-ink-soft);
}

.legal-content ul {
  padding-left: var(--space-5);
}

.legal-content li + li {
  margin-top: var(--space-2);
}

/* Text links only: buttons keep their own colours */
.legal-content a:not(.button) {
  color: var(--color-forest);
}

.legal-content strong {
  color: var(--color-ink);
}

/* Thank-you page */
.thank-you-steps {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  list-style: none;
  counter-reset: thanks-step;
}

.thank-you-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  align-items: start;
  counter-increment: thanks-step;
}

.thank-you-step::before {
  content: counter(thanks-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-brass-light);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.thank-you-step-title {
  padding-top: var(--space-2);
  font-weight: 600;
  color: var(--color-ink);
}

.thank-you-step-text {
  margin-top: var(--space-1);
  color: var(--color-ink-soft);
}

.thank-you-step p {
  margin-bottom: 0;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding-block: var(--space-8);
  text-align: center;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-brass-deep);
}

.not-found-title {
  margin-top: var(--space-4);
  font-size: var(--text-2xl);
  color: var(--color-forest);
}

.not-found-text {
  margin: var(--space-4) auto var(--space-6);
  max-width: 28rem;
  color: var(--color-ink-soft);
}


/* ==========================================================================
   19. MOTION AND ACCESSIBILITY PREFERENCES
   One entrance moment only: the care log items arrive one by one on load.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .care-log-item {
    animation: care-log-arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .care-log-item:nth-child(1) { animation-delay: 0.35s; }
  .care-log-item:nth-child(2) { animation-delay: 0.6s; }
  .care-log-item:nth-child(3) { animation-delay: 0.85s; }
  .care-log-item:nth-child(4) { animation-delay: 1.1s; }

  @keyframes care-log-arrive {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   November 2026: tree care only, About
   ========================================================================== */
/* One trade card, laid out wide: photo beside the list on larger screens */
@media (min-width: 860px) {
  .trade-features--single {
    grid-template-columns: 1fr;
  }
  .trade-feature--wide {
    flex-direction: row;
  }
  .trade-feature--wide .trade-feature-photo {
    width: 46%;
    aspect-ratio: auto;
    min-height: 100%;
  }
  .trade-feature--wide .trade-feature-body {
    flex: 1;
    align-self: center;
    padding: var(--space-8);
  }
}
.about-inner {
  max-width: 46rem;
}
.about-text {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-ink-soft);
}
.about-signature {
  margin-top: var(--space-5);
  font-family: var(--font-display, inherit);
  font-weight: 600;
  color: var(--color-forest);
}

/* ==========================================================================
   Payment successful page (payment-successful.html)
   ========================================================================== */
.payment-done {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-block: var(--space-7) var(--space-8);
  text-align: center;
  background:
    radial-gradient(60rem 28rem at 50% -8rem, rgba(184, 135, 59, 0.1), transparent 70%),
    var(--color-ivory);
}

.payment-done-inner {
  max-width: 40rem;
}

/* Check badge: forest circle, brass ring, ivory tick */
.payment-badge {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  background: var(--color-forest);
  box-shadow: 0 0 0 8px var(--color-ivory), 0 0 0 9.5px var(--color-brass-light),
    0 18px 40px -18px rgba(23, 48, 41, 0.55);
}

.payment-badge svg {
  width: 40px;
  height: 40px;
}

.payment-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
}

.payment-kicker::before,
.payment-kicker::after {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--color-brass);
}

.payment-title {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.5rem);
  line-height: 1.08;
  color: var(--color-forest);
}

.payment-lead {
  margin: var(--space-5) auto 0;
  max-width: 32rem;
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
}

/* "What happens next" card */
.payment-card {
  margin: var(--space-7) auto 0;
  padding: var(--space-6);
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.payment-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-forest);
}

.payment-card-text {
  margin-top: var(--space-3);
  color: var(--color-ink-soft);
}

.payment-card-text + .payment-card-text {
  margin-top: var(--space-3);
}

.payment-card a {
  color: var(--color-forest);
  font-weight: 600;
}

.payment-actions {
  margin-top: var(--space-6);
}

.payment-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .payment-badge {
    animation: payment-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .payment-tick {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: payment-draw 0.5s 0.35s ease-out forwards;
  }

  .payment-kicker,
  .payment-title,
  .payment-lead,
  .payment-card,
  .payment-actions,
  .payment-note {
    animation: payment-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .payment-kicker { animation-delay: 0.25s; }
  .payment-title { animation-delay: 0.32s; }
  .payment-lead { animation-delay: 0.42s; }
  .payment-card { animation-delay: 0.55s; }
  .payment-actions { animation-delay: 0.65s; }
  .payment-note { animation-delay: 0.7s; }

  @keyframes payment-pop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes payment-draw {
    to { stroke-dashoffset: 0; }
  }

  @keyframes payment-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 480px) {
  .payment-card {
    padding: var(--space-5);
  }
}
