/* Fonts: Poppins (headings) and Open Sans (body), from Google Fonts.
   To change them, edit this line and --font-heading / --font-body below. */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@500;600;700&display=swap");

/* =========================================================================
   BRAND SETTINGS — change these to rebrand the whole site.
   The look is clean and spacious: white and soft mint backgrounds,
   emerald green for the brand, and a warm orange for the main buttons.
   ========================================================================= */
:root {
  /* Colors */
  --color-primary: #047857;        /* links, icons, highlights */
  --color-primary-dark: #065f46;   /* hover state for links */
  --color-primary-light: #ecfdf5;  /* soft mint: hero, page titles, icon tiles */
  --color-primary-soft: #a7f3d0;   /* light green accents */
  --color-heading: #064e3b;        /* headings */
  --color-accent: #c2410c;         /* orange: main buttons ("call to action") */
  --color-accent-dark: #9a3412;    /* hover state for orange buttons */
  --color-text: #1e293b;           /* main text */
  --color-muted: #475569;          /* secondary text */
  --color-bg: #ffffff;             /* page background */
  --color-bg-alt: #f6faf8;         /* alternate section background */
  --color-border: #dbe7e1;         /* lines and card borders */
  --color-dark: #064e3b;           /* dark green band behind the closing call to action */
  --color-footer: #022c22;         /* footer background */
  --color-on-dark: #d1fae5;        /* secondary text on dark green */
  --color-warning-bg: #fff7ed;     /* draft notice background */
  --color-warning-border: #fdba74;

  /* Fonts */
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing and shape */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(6, 78, 59, 0.06), 0 4px 16px rgba(6, 78, 59, 0.06);
  --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-heading);
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(2.1rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 var(--space-sm); }

a { color: var(--color-primary); text-underline-offset: 0.2em; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
@media (min-width: 640px) { .container { padding: 0 var(--space-md); } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  background: var(--color-heading);
  color: #fff;
  font-weight: 700;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-small);
  z-index: 100;
}
.skip-link:focus { top: var(--space-xs); color: #fff; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.25);
}
.btn-secondary { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.btn-small { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* =========================================================================
   Header and navigation
   ========================================================================= */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 72px;
}
.brand { text-decoration: none; color: var(--color-heading); }
.brand:hover { color: var(--color-heading); }
.brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-logo { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 var(--space-sm); }
.site-nav li + li { border-top: 1px solid var(--color-border); }
.site-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; align-items: center; gap: 0.25rem; padding: 0; }
  .site-nav li + li { border-top: 0; }
  .site-nav a {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.97rem;
    transition: background-color 0.2s, color 0.2s;
  }
  .site-nav a:hover { background: var(--color-primary-light); }
  .site-nav a[aria-current="page"] { background: var(--color-primary-light); color: var(--color-primary-dark); }
}

/* =========================================================================
   Hero (home page) and page titles (every other page)
   ========================================================================= */
.hero,
.page-header {
  background:
    radial-gradient(circle at 1px 1px, rgba(4, 120, 87, 0.13) 1px, transparent 0) 0 0 / 22px 22px,
    var(--color-primary-light);
  border-bottom: 1px solid var(--color-border);
}

.hero { padding: var(--space-xl) 0; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: var(--space-md);
}
.hero .lead { max-width: 620px; font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero .btn-secondary { background: var(--color-bg); }
.hero .btn-secondary:hover { background: var(--color-bg); border-color: var(--color-primary-dark); }

.page-header { padding: var(--space-lg) 0; }
.page-header h1 { margin-bottom: var(--space-xs); }
.page-header .lead { max-width: 660px; margin: 0; }

/* =========================================================================
   Sections and layout
   ========================================================================= */
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-intro { max-width: 680px; margin-bottom: var(--space-lg); }
.section-intro:last-child { margin-bottom: 0; }
.section > .container > h2 { margin-bottom: var(--space-lg); }
.lead { font-size: 1.17rem; color: var(--color-muted); }
.section-note { margin-top: var(--space-lg); }

.grid { display: grid; gap: var(--space-md); }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Closing call to action: a dark green band */
.cta { background: var(--color-dark); color: #fff; }
.cta .container { max-width: 760px; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.cta .lead { color: var(--color-on-dark); margin-bottom: var(--space-md); }
.cta a:not(.btn) { color: #fff; }
.cta :focus-visible { outline-color: #fff; }

/* =========================================================================
   Cards and icons
   ========================================================================= */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}
.card p { color: var(--color-muted); }
.card p:last-child { margin-bottom: 0; }
.card h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }
.card-link { margin-top: auto; font-weight: 700; }

.icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: var(--radius-small);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Services page */
.service {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  scroll-margin-top: 96px;
}
.service:first-child { padding-top: 0; }
.service[data-number]:first-child::before { top: 0; }
.service:last-child { border-bottom: 0; padding-bottom: 0; }
.service-head { display: flex; align-items: center; gap: var(--space-sm); }
.service-head .icon { margin: 0; }
.service-head h2 { margin: 0; }
.service .lead { margin-top: var(--space-sm); max-width: 680px; }
.service-body { display: grid; gap: var(--space-md); }
@media (min-width: 760px) { .service-body { grid-template-columns: 1fr 1.4fr; gap: var(--space-lg); } }
.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-sm); }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.48em;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--color-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* How we work */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: 760px; }
.step {
  position: relative;
  padding: 0 0 var(--space-lg) 4.5rem;
  counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px var(--color-primary-light);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--color-border);
}
.step h2, .step h3 { margin-bottom: 0.25rem; padding-top: 0.55rem; font-size: 1.3rem; }
.step-time { color: var(--color-primary); font-weight: 600; font-size: 0.95rem; }

/* Pricing */
.price-card { position: relative; }
.price-card.is-featured { border: 2px solid var(--color-primary); box-shadow: 0 8px 30px rgba(4, 120, 87, 0.14); }
.price-card .btn { margin-top: auto; }
.price-card .checklist { margin-bottom: var(--space-md); }
.price-card .checklist li { color: var(--color-text); }
.price {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}
.badge,
.card .badge {
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

/* Team */
.team-card { text-align: center; align-items: center; }
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-sm);
  border: 4px solid var(--color-primary-light);
}
.team-photo-placeholder {
  background: var(--color-primary-light);
  display: grid;
  place-items: center;
}
.team-photo-placeholder svg {
  width: 55%;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
}
.team-role { color: var(--color-primary); font-weight: 600; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  min-height: 56px;
  padding: var(--space-sm) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
}
.faq-item summary:hover { color: var(--color-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.25s, background-color 0.2s, color 0.2s;
}
.section-alt .faq-item summary::after { background: var(--color-bg); border: 1px solid var(--color-primary-soft); }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--color-primary); color: #fff; }
.faq-item p { margin: 0 0 var(--space-md); color: var(--color-muted); max-width: 660px; }

/* =========================================================================
   Forms
   ========================================================================= */
.form { display: grid; gap: var(--space-md); }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-field .optional { font-weight: 400; color: var(--color-muted); }
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid #8a9a93;
  border-radius: var(--radius-small);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:hover,
.form select:hover,
.form textarea:hover { border-color: var(--color-primary); }
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.22);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { display: none; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-success { color: #15803d; }
.form-status.is-error { color: #b91c1c; }

.contact-layout { display: grid; gap: var(--space-lg); }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1.5fr 1fr; gap: var(--space-xl); } }
.contact-details { list-style: none; padding: 0; margin: 0; }
.contact-details li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-details li:first-child { padding-top: 0; }

/* =========================================================================
   Client questionnaire (questionnaire.html)
   ========================================================================= */
.questionnaire { max-width: 820px; }
.q-note {
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary-soft);
  border-radius: var(--radius-small);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}
.q-note p { margin: 0; }
.required { font-weight: 400; color: var(--color-muted); }

[data-render="questionnaire"] { display: grid; gap: var(--space-lg); }
.q-section {
  display: grid;
  gap: var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
}
@media (min-width: 640px) { .q-section { padding: var(--space-lg); } }
.q-section h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; margin: 0; }
.q-section h3 { font-size: 1.1rem; margin-bottom: var(--space-xs); }
.q-step {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
}
.q-intro { margin: 0; color: var(--color-muted); }

.choice-group, .q-type-block { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-type-block { display: grid; gap: var(--space-md); }
.q-type-block[hidden] { display: none; }
.q-type-title {
  padding: 0;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-heading);
}
.q-type-empty {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-muted);
}
.field-label { display: block; padding: 0; font-weight: 600; margin-bottom: 0.35rem; }
.field-hint { margin: -0.15rem 0 0.5rem; font-size: 0.95rem; color: var(--color-muted); }
.questionnaire textarea { min-height: 110px; }

/* Tick boxes and round "pick one" buttons */
.options { display: grid; gap: 0 var(--space-md); }
@media (min-width: 640px) { .options:not(.options-single) { grid-template-columns: repeat(2, 1fr); } }
.form-field .option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 0;
  font-weight: 400;
  cursor: pointer;
}
.form .option input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--color-primary);
}

/* Business type cards */
.type-cards { display: grid; gap: var(--space-sm); }
@media (min-width: 640px) { .type-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .type-cards { grid-template-columns: repeat(3, 1fr); } }
.form-field .type-card { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.form .type-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.type-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.type-card-body .icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.5rem; }
.type-card-body strong { font-family: var(--font-heading); font-weight: 600; color: var(--color-heading); }
.type-card-body span:last-child { font-size: 0.95rem; color: var(--color-muted); }
.type-card:hover .type-card-body { border-color: var(--color-primary); }
.type-card input:checked + .type-card-body {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.type-card input:checked + .type-card-body::after {
  content: "✓";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.type-card input:focus-visible + .type-card-body { box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.22); }

/* Photos */
.q-photo-tips, .q-upload {
  background: var(--color-bg-alt);
  border-radius: var(--radius-small);
  padding: var(--space-sm) var(--space-md);
}
.q-photo-tips ul { margin: 0; padding-left: 1.25rem; }
.q-photo-tips li { margin-bottom: 0.35rem; }
.q-upload p:last-child { margin-bottom: 0; }

.q-submit { display: grid; gap: var(--space-sm); justify-items: start; }

/* =========================================================================
   Policy pages
   ========================================================================= */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--space-lg); font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

.draft-notice {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-left-width: 6px;
  border-radius: var(--radius-small);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}
.draft-notice p { margin: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--color-footer);
  color: #b7d3c7;
  padding-top: var(--space-xl);
}
.site-footer a { color: #ecfdf5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: var(--color-primary-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 var(--space-sm); }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer .brand-text { color: #fff; font-size: 1.4rem; }
.footer-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-primary-soft);
  margin-bottom: var(--space-sm);
}
.footer-bottom {
  border-top: 1px solid #0f4a3a;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* =========================================================================
   Cookie notice
   ========================================================================= */
.cookie-notice {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(2, 44, 34, 0.18);
  font-size: 0.9rem;
  z-index: 60;
}
.cookie-notice p { margin: 0; }

/* =========================================================================
   Effects and animations
   Turn them all off with  effects: false  in site-config.js.
   Everything here only runs when main.js adds "js-effects" to <html>,
   which it skips for people who ask their device to reduce motion.
   So without JavaScript (or with reduced motion) all content simply shows.
   ========================================================================= */

/* Frosted-glass header */
@supports (backdrop-filter: blur(12px)) {
  .site-header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px) saturate(1.4); }
}

/* Thin bar at the very top that fills up as you scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 70;
  pointer-events: none;
}

/* Soft mint glow that follows the mouse (computers only) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.22), rgba(253, 186, 116, 0.07) 40%, transparent 68%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.4s;
}
.cursor-glow.is-active { opacity: 1; }

/* Home page: glowing color blobs drifting slowly behind the headline */
.js-effects .hero { position: relative; overflow: hidden; isolation: isolate; }
.js-effects .hero:not(.mt-hero)::before,
.js-effects .hero:not(.mt-hero)::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.js-effects .hero:not(.mt-hero)::before { background: var(--color-primary-soft); top: -180px; right: -120px; animation: drift 16s ease-in-out infinite alternate; }
.js-effects .hero:not(.mt-hero)::after { background: #fed7aa; bottom: -260px; right: 18%; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-90px, 60px) scale(1.15); }
}

/* Headline, text and buttons rise in one after another when the page opens */
.js-effects .hero:not(.mt-hero) .container > *,
.js-effects:not(.mt-on) .mt-hero .container > *,
.js-effects .page-header .container > * { animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js-effects .hero .container > :nth-child(2),
.js-effects .page-header .container > :nth-child(2) { animation-delay: 0.12s; }
.js-effects .hero .container > :nth-child(3) { animation-delay: 0.24s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Fade in while scrolling. main.js marks elements with data-reveal
   ("up", "left", "right" or "zoom") and adds .is-visible when they appear. */
/* Stop slide-ins from making the page scroll sideways */
.js-effects main { overflow-x: clip; }
.js-effects [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js-effects [data-reveal="left"] { translate: -44px 0; }
.js-effects [data-reveal="right"] { translate: 44px 0; }
.js-effects [data-reveal="zoom"] { translate: 0 20px; scale: 0.94; }
.js-effects [data-reveal].is-visible { opacity: 1; translate: 0 0; scale: 1; }

/* Cards tilt toward the mouse in 3D (main.js sets the angle) */
.js-effects .grid > .card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s,
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), translate 0.8s cubic-bezier(0.22, 1, 0.36, 1), scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s, 0s, 0s, var(--reveal-delay, 0s), var(--reveal-delay, 0s), var(--reveal-delay, 0s);
  will-change: transform;
}
.js-effects .grid > .card.is-tilting {
  transition-duration: 0.12s, 0.3s, 0.3s, 0.8s, 0.8s, 0.8s;
  border-color: var(--color-primary-soft);
  box-shadow: 0 18px 40px rgba(6, 78, 59, 0.14);
}

/* Little arrows that nudge right on hover */
.card-link::after,
.hero .btn-primary::after,
.cta .btn-primary::after {
  content: "→" / "";
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.25s;
}
.card-link:hover::after,
.hero .btn-primary:hover::after,
.cta .btn-primary:hover::after { transform: translateX(4px); }

/* Services page: giant faint number behind each service, drifting as you scroll */
.service[data-number] { position: relative; isolation: isolate; }
.service[data-number]::before {
  content: attr(data-number);
  position: absolute;
  z-index: -1;
  right: 0;
  top: var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(5.5rem, 13vw, 10rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(4, 120, 87, 0.07);
  transform: translateY(calc(-30% + var(--parallax, 0px)));
  pointer-events: none;
}

/* How we work: the line between steps draws itself as you scroll */
.js-effects .step:not(:last-child)::after { transform: scaleY(0); transform-origin: top; transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; }
.js-effects .step.is-visible::after { transform: scaleY(1); }
.js-effects .step::before { transition: box-shadow 0.6s 0.2s; box-shadow: 0 0 0 0 var(--color-primary-light); }
.js-effects .step.is-visible::before { box-shadow: 0 0 0 6px var(--color-primary-light); }

/* =========================================================================
   GSAP + Lenis animations (js/motion.js)
   "mt-" classes are the animated home page sections. Without the
   libraries (or with reduced motion) they show as normal sections; the
   animated layouts only apply once motion.js adds "mt-on" to <html>.
   ========================================================================= */

/* Lenis smooth scrolling (from Lenis's own stylesheet) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Hero ---------- */
.mt-hero { position: relative; overflow: hidden; isolation: isolate; }
.mt-blob {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  pointer-events: none;
}
.mt-blob-1 { background: var(--color-primary-soft); top: -200px; right: -120px; }
.mt-blob-2 { background: #fed7aa; bottom: -280px; right: 20%; }
.mt-headline .mt-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Statement text ---------- */
.mt-statement .container { max-width: 980px; }
.mt-eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}
.mt-fill {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}

/* ---------- How we work (pinned) ---------- */
.mt-process { padding: var(--space-xl) 0; background: var(--color-bg); }
.mt-process-inner { display: grid; gap: var(--space-lg); }
.mt-counter, .mt-progress { display: none; }

.mt-on .mt-process { min-height: 100vh; display: flex; align-items: center; }
.mt-on .mt-process-inner { width: 100%; }
@media (min-width: 860px) {
  .mt-on .mt-process-inner { grid-template-columns: 1fr 1.3fr; align-items: center; gap: var(--space-xl); }
}
.mt-on .mt-counter {
  display: block;
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary);
}
.mt-on .mt-counter-total { color: var(--color-primary-soft); }
.mt-on .mt-progress {
  display: block;
  height: 4px;
  max-width: 280px;
  border-radius: 999px;
  background: var(--color-primary-light);
  overflow: hidden;
}
.mt-on .mt-progress-fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
}
/* Steps sit on top of each other and take turns */
.mt-on .mt-steps { position: relative; min-height: 16rem; }
.mt-on .mt-steps .step { position: absolute; inset: 0 0 auto 0; padding-bottom: 0; }
.mt-on .mt-steps .step::after { display: none; }
.mt-on .mt-steps .step::before { box-shadow: 0 0 0 6px var(--color-primary-light); }
.mt-on .mt-steps .step h3 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.mt-on .mt-steps .step p:last-child { font-size: 1.15rem; }

/* ---------- Services (sideways) ---------- */
.mt-services { padding: var(--space-xl) 0; background: var(--color-bg-alt); overflow: hidden; }
.mt-services-head { margin-bottom: var(--space-lg); }
.mt-track {
  display: grid;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
@media (min-width: 640px) { .mt-track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mt-track { grid-template-columns: repeat(3, 1fr); } }

.mt-on .mt-services { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.mt-on .mt-track {
  display: flex;
  width: max-content;
  max-width: none;
  margin: 0;
  padding-left: max(var(--space-sm), calc((100vw - var(--max-width)) / 2 + var(--space-sm)));
  padding-right: var(--space-lg);
}
.mt-on .mt-track .card { width: min(80vw, 340px); flex-shrink: 0; }

/* ---------- Call to action ---------- */
.mt-on .mt-cta { will-change: clip-path; }
