/* ============================================================
   Hulks flyt og montage — global stylesheet
   Plain CSS, no framework. Built from the "Seidr" Figma design.
   Palette + type sampled directly from the design frames.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand greens */
  --green-900: #003d11;   /* darkest — hero base, dark sections, footer */
  --green-800: #0f4a1f;
  --green-700: #147930;   /* mid green — secondary buttons / accents */
  --green-500: #48ac64;   /* primary CTA pill */
  --green-400: #5cb979;

  /* Neutrals / surfaces */
  --cream: #f8f7f2;       /* services section background */
  --mint: #eef7f1;        /* process section background */
  --white: #ffffff;
  --ink: #1c2b20;         /* near-black green for headings on light */
  --body: #4a544c;        /* body text on light surfaces */
  --muted: #6b756d;
  --line: #e4e7e3;        /* hairline dividers */
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Feedback. --green-400 is only 2.44:1 on white, so success uses --green-700
     (5.56:1) wherever it carries meaning rather than decoration. */
  --error: #b3261e;
  --error-bg: #fdecea;
  --success: var(--green-700);

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1400px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-pad: clamp(56px, 8vw, 108px);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-card: 0 18px 40px -24px rgba(0, 40, 15, 0.28);
  --shadow-soft: 0 24px 60px -30px rgba(0, 40, 15, 0.45);

  --header-h: 92px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.section { padding-block: var(--section-pad); }
.section--cream { background: var(--cream); }
.section--mint { background: var(--mint); }
.section--white { background: var(--white); }
.section--green {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.82);
}
.section--green h1,
.section--green h2,
.section--green h3 { color: #fff; }

.section__head { max-width: 760px; margin-inline: auto; text-align: center; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 19px; }
.section--green .section__head p { color: rgba(255, 255, 255, 0.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
}
.section--green .eyebrow,
.hero .eyebrow { color: var(--green-400); }

h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--body); }
.section--green .lead { color: rgba(255, 255, 255, 0.8); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-500);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 30px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease;
  white-space: nowrap;
}
/* The only hover a button gets, anywhere on the site: it lifts. No colour,
   background, border or shadow change on any variant — see the header CTA. */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--green-500); }

.btn--dark { --btn-bg: var(--green-900); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--green-900);
}
.section--green .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline { color: #fff; }
/* keep outline buttons legible over hero photography */
.hero .btn--outline,
.page-hero .btn--outline { background: rgba(0, 30, 12, 0.30); backdrop-filter: blur(2px); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green-700);
  font-size: 16px;
}
.link-arrow svg { transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
/* Logo is green; recolor to white while transparent over the dark hero */
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--green-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 700; }
/* the in-nav CTA is only for the mobile drawer; header-actions holds the desktop CTA */
.nav > a.btn { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.site-header.scrolled {
  background: var(--green-900);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
/* Single column over the crew photo. The photo is the social proof, so the
   overlay is a directional scrim — heavy behind the copy, light on the right
   where the team and the fleet are — rather than a flat wash over everything. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 780px);
  color: #fff;
  background: url("../assets/img/photo-aerial-1.jpg") 50% 62% / cover no-repeat;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* keeps the transparent header legible over the bright right-hand side */
    linear-gradient(180deg, rgba(0, 30, 12, 0.60) 0%, transparent 24%),
    linear-gradient(96deg,
      rgba(0, 34, 13, 0.94) 0%,
      rgba(0, 34, 13, 0.86) 32%,
      rgba(0, 34, 13, 0.52) 60%,
      rgba(0, 34, 13, 0.26) 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__inner { max-width: 620px; }
.hero h1 { color: #fff; margin-top: 14px; max-width: 15ch; }
.hero__inner > p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.5vw, 19px);
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { color: var(--green-400); flex-shrink: 0; }

/* ============================================================
   Split section (text + media)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__body h2 { margin-bottom: 16px; }
.split__body p { margin-top: 16px; }
.split__body .lead { margin-top: 16px; }
.split__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1d5f33, #0a3d18);
  box-shadow: var(--shadow-card);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 3 / 4; }
/* placeholder label shown when no image present */
.media[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
}
.media:has(img)::after { content: none; }

/* Checklist */
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; color: inherit; }
.checklist .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--green-500);
  margin-top: 1px;
}
.section--green .checklist .check { color: var(--green-400); }

/* ============================================================
   Service / feature cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
  margin-top: clamp(36px, 5vw, 56px);
}
/* Sets of three or six: a fixed 4-column grid leaves orphans. */
.cards--three { grid-template-columns: repeat(3, 1fr); }
/* Sets that should simply fill the row, however many there are. */
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green-700);
  margin-bottom: 22px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--body); flex: 1; }
.card .link-arrow { margin-top: 22px; }

/* ============================================================
   Process steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
  counter-reset: step;
}
.step { position: relative; padding-left: 8px; }
.step__num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--green-500);
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 16px; color: var(--body); }

/* ============================================================
   FAQ — native <details>, so it works with JS off
   ============================================================ */
.faq {
  max-width: 860px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item[open] { border-color: transparent; box-shadow: var(--shadow-card); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
/* Chevron, drawn in CSS so the sprite isn't needed inside every summary. */
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.2px solid var(--green-700);
  border-bottom: 2.2px solid var(--green-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 4px;
}
.faq__item p {
  padding: 0 0 20px;
  margin: 0;
  font-size: 16px;
  color: var(--body);
  max-width: 68ch;
}
.faq__item p + p { padding-top: 0; margin-top: -8px; }

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  position: relative;
  background:
    linear-gradient(120deg, rgba(20, 121, 48, 0.90), rgba(0, 40, 15, 0.93)),
    url("../assets/img/photo-dsc95.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -10%, rgba(92, 185, 121, 0.30), transparent 60%);
}
.cta-banner .container { position: relative; }
.cta-banner h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-banner p { margin-top: 16px; color: rgba(255, 255, 255, 0.85); max-width: 60ch; margin-inline: auto; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }

/* ============================================================
   Forms
   ============================================================ */
.form { display: grid; gap: 12px; }
.form .field { display: grid; gap: 6px; }
.form label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form input,
.form textarea,
.form select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  /* The reset makes fields inherit colour, which is white on green sections. */
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(72, 172, 100, 0.18);
}
.form .form-note { font-size: 13px; color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(48px, 6vw, 72px) 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-top .brand img { height: 56px; filter: brightness(0) invert(1); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-contact .item h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.footer-contact .item a { color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.footer-contact .item a:hover { color: var(--green-400); }

.footer-divider { height: 1px; background: var(--line-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr;
  gap: 32px;
  padding-block: 48px;
  align-items: start;
}
.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
}

/* CTA column. The gap plus the 4px h4 margin adds up to the 18px the other
   columns use, so every heading sits on the same baseline as its content. */
.footer-col--cta { display: grid; gap: 14px; }
.footer-col--cta h4 { margin-bottom: 4px; }
.footer-col--cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.6;
}
.footer-col--cta .btn { width: 100%; }
.footer-col ul { display: grid; gap: 12px; }
/* :not(.btn) matters — these outrank .btn on specificity, so without it the
   footer CTA pills take the link colour and go green-on-green on hover. */
.footer-col a:not(.btn) { color: rgba(255, 255, 255, 0.72); font-size: 16px; transition: color 0.16s ease; }
.footer-col a:not(.btn):hover { color: var(--green-400); }
.footer-col address { font-style: normal; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 22px;
  text-align: right;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Page hero (inner pages) — compact dark header band
   ============================================================ */
.page-hero {
  background:
    linear-gradient(180deg, rgba(6, 48, 26, 0.86), rgba(0, 40, 15, 0.93)),
    url("../assets/img/photo-aerial-1.jpg") center 30% / cover no-repeat;
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 85% 0%, rgba(72,172,100,0.20), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { margin-top: 16px; color: rgba(255, 255, 255, 0.82); max-width: 56ch; font-size: 19px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   Panels & contact list (Kontakt page)
   ============================================================ */
.card-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}
.card-panel > h3 { font-size: 22px; }
.card-panel > p { color: var(--body); font-size: 15px; margin-top: 6px; }
.card-panel .form { margin-top: 22px; }

/* Entry point to the quote flow. The flow itself lives on tilbud.html. */
.quote-cta {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-card);
}
.quote-cta h2 { margin-top: 14px; }
.quote-cta .lead { margin-top: 14px; }
.quote-cta__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 24px;
}
.quote-cta__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  color: var(--body);
}
.quote-cta__points svg { color: var(--green-500); flex-shrink: 0; }
.quote-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.contact-list { display: grid; gap: 20px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list h4 { font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.contact-list a,
.contact-list p { color: var(--body); font-size: 16px; }
.contact-list a:hover { color: var(--green-700); }

/* ============================================================
   Legal prose — privatlivspolitik.html
   ============================================================ */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 44px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: clamp(18px, 2vw, 21px); margin-top: 30px; }
.legal p { margin-top: 14px; color: var(--body); }
.legal a { color: var(--green-700); text-decoration: underline; }
.legal address {
  font-style: normal;
  margin-top: 16px;
  line-height: 1.9;
  color: var(--body);
}

/* ============================================================
   Quote form — this build's replacement for the tilbud.html flow.
   Sits on a --green section, so the white card has to opt its own
   headings out of the white heading colour that section sets.
   ============================================================ */
/* The 1400px container is too wide for a two-column pair this light: at full
   width the copy column runs to ~800px for 330px of content and the card gets
   stranded on the right edge. Narrow the pair, hold the card at a comfortable
   reading width, and centre the copy against it. */
.quote-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  max-width: 1120px;
}
.quote-form__intro h2 { margin-top: 14px; }
.quote-form__intro .lead { margin-top: 14px; max-width: 34ch; }
.quote-form__intro .quote-cta__points {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.section--green .quote-cta__points li { color: rgba(255, 255, 255, 0.86); }
.quote-form__intro .btn { margin-top: 30px; }

.quote-form__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-soft);
}
.section--green .quote-form__card h3 { color: var(--ink); }
.quote-form__sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.quote-form__card .form { margin-top: 22px; gap: 16px; }
.quote-form__card .form button { margin-top: 8px; }

/* The pair needs about 1000px to hold up — below that the copy column starts
   squeezing the heading, so stack it into one centred column before it gets
   there rather than at the site-wide 860px. */
@media (max-width: 1000px) {
  .quote-form__grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 36px;
  }
  .quote-form__intro .lead { max-width: none; }
}

/* ============================================================
   Form states — validation, loading, status
   ============================================================ */

/* Honeypot. Off-screen rather than display:none, which the better bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline field errors */
.form .field__error {
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
  min-height: 0;
}
.form [aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg);
}
.form [aria-invalid="true"]:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16);
}

/* Status line under a form. Replaces the old inline colour from main.js. */
.form-status {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.form-status:empty { display: none; }
.form-status--success { color: var(--success); font-weight: 600; }
.form-status--error { color: var(--error); }

/* Privacy notice under every form (GDPR art. 13) */
.form-note a { color: var(--green-700); text-decoration: underline; }

/* Disabled / sending button. Neither state existed before. */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.is-sending { position: relative; color: transparent; }
.btn.is-sending::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--green-900);
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Fallback panel shown when the send itself fails, so a lead is never lost. */
.form-fallback {
  border: 1px solid var(--error);
  background: var(--error-bg);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.form-fallback a { color: var(--green-700); font-weight: 600; text-decoration: underline; }

/* ============================================================
   Hero form — the same five fields, in the hero, beside the copy.
   This is where the live site puts it, and it is the reason the hero
   container is a two-column grid rather than a single block of copy.
   The card carries its own colour, so everything inside it that was
   written for a light surface (notes, errors, status) is re-stated here.
   ============================================================ */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-form {
  background: var(--green-700);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow-soft);
}
.hero-form h2 { font-size: clamp(21px, 2vw, 27px); color: #fff; max-width: none; }
.hero-form__sub { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.hero-form .form { margin-top: 20px; }
/* The labels are read out, not drawn — the placeholder is the visible one. */
.hero-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-form textarea { min-height: 96px; }
.hero-form .btn { margin-top: 4px; }
/* 13-15px text on --green-700 needs to be this light to clear 4.5:1. */
.hero-form .form-note { color: rgba(255, 255, 255, 0.82); }
.hero-form .form-note a { color: #fff; }
.hero-form .field__error { color: #ffe4e1; }
.hero-form .form-status--success { color: #e4faea; }
.hero-form .form-status--error { color: #ffe4e1; }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 22px; }
.no-scroll { overflow: hidden; }

.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;
}

/* Keyboard focus ring. The site had none — only the input :focus styles. */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: block; z-index: 70; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--header-h) + 16px) 24px 32px;
    background: var(--green-900);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav > a.btn { display: inline-flex; margin-top: 16px; border-bottom: none; }
  .site-header.scrolled { background: var(--green-900); }
  /* keep logo white once menu pattern is in use */
  /* The crop is too narrow for a sideways scrim to work — the copy would sit on
     top of the crew — so darken bottom-up instead and pull the crew into view. */
  .hero { min-height: 0; background-position: 58% 56%; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(0, 30, 12, 0.70) 0%,
      rgba(0, 34, 13, 0.88) 45%,
      rgba(0, 34, 13, 0.94) 100%);
  }
  .hero__inner { max-width: none; }
  /* The card stops fitting beside the copy — it goes under it, still in the hero. */
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .quote-form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { text-align: left; }
  .hero__actions .btn,
  .page-hero__actions .btn,
  .cta-banner__actions .btn { width: 100%; }
  .hero-form .form-row { grid-template-columns: 1fr; }
}
