/* ==========================================================================
   Hereford Fencing & Landscaping — shared stylesheet
   Design system: colour, type, spacing, header, footer, shared components.
   Loaded by every page so the whole site stays fluent.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #042170;
  --navy-90: #0a2c82;
  --green: #4caf50;
  --green-dark: #3d9140;

  /* Neutrals */
  --ink: #16203a;          /* body text — softened navy-black */
  --muted: #5a6478;        /* secondary text */
  --line: #e3e6ee;         /* hairlines / borders */
  --paper: #ffffff;        /* page ground */
  --paper-2: #f6f7fb;      /* alternate section ground */
  --placeholder: #d9dce4;  /* grey photo placeholders */
  --placeholder-2: #cfd3dd;

  /* Type */
  --f-display: "Archivo", system-ui, sans-serif;   /* headlines, headings, buttons, header, footer */
  --f-read: "Cormorant Garamond", Georgia, serif;  /* long-form reading text */
  --f-ui: "Inter", system-ui, sans-serif;          /* small functional UI */

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;

  --maxw: 1200px;
  --radius: 4px;
  --shadow: 0 18px 50px -28px rgba(4, 33, 112, 0.45);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-3); }
.section { padding-block: var(--s-7); }
.section--tight { padding-block: var(--s-6); }
.section--alt { background: var(--paper-2); }

/* ---- Type styles --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; color: var(--navy); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }

/* Long-form reading paragraph — the considered, premium voice */
.prose {
  font-family: var(--f-read);
  font-weight: 500;
  font-size: clamp(1.18rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
}
.prose--muted { color: var(--muted); }

.lede {
  font-family: var(--f-read);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  color: var(--ink);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--on-navy { background: var(--green); color: #fff; }
.btn--on-navy:hover { background: var(--green-dark); }
.btn .ico { width: 1.15em; height: 1.15em; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 76px;
}
.header-sep {
  width: 2px;
  height: 34px;
  background: #042170;
  flex-shrink: 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { height: 46px; width: auto; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand__name span { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav a {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-block: 0.3em;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--green);
  transition: width 0.2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--navy); }

/* Header CTA buttons — identical box model; only colour differs */
.nav__review,
.nav__quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.6rem 1.1rem;
  min-width: 11.5rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__review::after, .nav__quote::after { display: none !important; }

/* "Leave us a review" — navy outlined (secondary) */
.nav__review {
  color: var(--navy) !important;
  border-color: var(--navy);
  background: transparent;
}
.nav__review:hover { background: rgba(4, 33, 112, 0.07); }
.nav__review .google-g { flex: none; width: 16px; height: 16px; }

/* "Get a free quote" — green filled (primary) */
.nav__quote {
  background: var(--green);
  color: #fff !important;
  border-color: var(--green);
}
.nav__quote:hover { background: var(--green-dark); border-color: var(--green-dark); }
.nav .nav__quote[aria-current="page"] { color: #fff; }

.header-cta { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; color: var(--navy); }
.nav-toggle .ico { width: 28px; height: 28px; }

/* ---- Trust strip --------------------------------------------------------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  align-items: center;
  justify-content: space-between;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}
.trust__item .ico { width: 22px; height: 22px; color: var(--green-dark); flex: none; }
.trust__item strong { font-weight: 700; color: var(--navy); }

/* ---- Trust bar (sticky, sits just below the header) ---------------------- */
.trust-bar {
  position: sticky;
  top: 77px; /* header min-height (76px) + 1px border-bottom */
  z-index: 49;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.55rem;
  padding-inline: var(--s-3);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.trust-bar__inner::-webkit-scrollbar { display: none; }
.trust-bar .trust__item { flex-shrink: 0; white-space: nowrap; }

/* ---- Testimonial (woven through) ---------------------------------------- */
.quote { max-width: 880px; }
.quote__text {
  font-family: var(--f-read);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 var(--s-3);
}
.quote__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-ui);
  font-size: 0.9rem;
  color: var(--muted);
}
.stars { color: var(--green); letter-spacing: 0.1em; font-size: 0.95rem; }

/* ---- Service cards ------------------------------------------------------- */
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card__body { padding: var(--s-3) var(--s-3) var(--s-4); }
.feature-card .prose { font-size: 1.15rem; margin: 0.4rem 0 0; }
.feature-card__link {
  margin-top: var(--s-2);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem; color: var(--green-dark);
}
.feature-card__link .ico { width: 1.1em; height: 1.1em; transition: transform 0.18s ease; }
.feature-card:hover .feature-card__link .ico { transform: translateX(3px); }

/* Supporting services — simple list, not a flat grid of identical cards */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.svc-list li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.svc-list .ico { width: 26px; height: 26px; color: var(--navy); flex: none; margin-top: 2px; }
.svc-list h4 { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 0 0 0.15rem; }
.svc-list p { font-family: var(--f-ui); font-size: 0.9rem; color: var(--muted); margin: 0; }
.svc-list .tag { display: inline-block; margin-top: 0.35rem; font-size: 0.74rem; font-weight: 600; color: var(--green-dark); }

/* ---- Image placeholders -------------------------------------------------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--placeholder) 0 14px, var(--placeholder-2) 14px 28px);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ui); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em;
  color: #6b7186;
  background: rgba(246, 247, 251, 0.55);
}
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--3x4 { aspect-ratio: 3 / 4; }
.ph--16x9 { aspect-ratio: 16 / 9; }

/* ---- Areas covered ------------------------------------------------------- */
.areas { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.areas span {
  font-family: var(--f-ui); font-weight: 500; font-size: 0.95rem;
  color: var(--navy);
  padding: 0.5em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .prose { color: rgba(255, 255, 255, 0.82); }

/* ---- Footer (light — NOT navy; full-colour logo) ------------------------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-5);
  padding-block: var(--s-6) var(--s-5);
}
.site-footer .brand img { height: 52px; }
.footer-about { font-family: var(--f-read); font-weight: 500; font-size: 1.1rem; color: var(--muted); margin: var(--s-2) 0 var(--s-3); max-width: 34ch; }
.footer-col h4 { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: var(--s-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a, .footer-col li { font-family: var(--f-ui); font-size: 0.92rem; color: var(--ink); }
.footer-col a:hover { color: var(--green-dark); }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--green-dark); flex: none; }
.social { display: flex; gap: 0.6rem; margin-top: var(--s-2); }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy); background: var(--paper);
}
.social a:hover { border-color: var(--green); color: var(--green-dark); }
.social .ico { width: 20px; height: 20px; }
.footer-bar {
  border-top: 1px solid var(--line);
  padding-block: var(--s-3);
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; text-align: center;
  font-family: var(--f-ui); font-size: 0.82rem; color: var(--muted);
}

/* ==========================================================================
   Homepage-specific
   ========================================================================== */

/* Hero — text on its own ground, photo on its own. No overlay, no parallax. */
.hero { padding-top: var(--s-6); padding-bottom: 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.02;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
}
.hero__title em { font-style: normal; color: var(--green-dark); }
.hero__lede { margin: 0 0 var(--s-4); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.hero__note { font-family: var(--f-ui); font-size: 0.85rem; color: var(--muted); margin-top: var(--s-3); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: clamp(360px, 52vw, 620px);
  object-fit: cover;
  border-radius: var(--radius);
}
/* Small floating rating chip beside (not over text content) the hero photo */
.hero__chip {
  position: absolute;
  left: var(--s-3); bottom: var(--s-3);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero__chip .num { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.hero__chip .sub { font-family: var(--f-ui); font-size: 0.74rem; color: var(--muted); line-height: 1.2; }

/* Services overview — featured pair sits asymmetric to the supporting list */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: end; margin-bottom: var(--s-5); }
.featured-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-6); }

/* Gallery teaser — deliberate, uneven arrangement */
.gallery-teaser { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-3); }
.gallery-teaser .ph:nth-child(1) { grid-row: 1 / 3; }
.gallery-teaser .ph { height: 100%; min-height: 180px; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }

/* ---- Responsive ---------------------------------------------------------- */
@media (min-width: 901px) {
  /* Header: brand | nav links (left-aligned) | buttons pushed far right.
     Nav contains both links and buttons; on desktop hide the nav-side buttons
     and show only the header-cta versions on the right. */
  .nav .nav__review, .nav .nav__quote { display: none; }
  /* Tighten section vertical spacing on desktop. */
  .section { padding-block: 4.5rem; }
  .section--tight { padding-block: 3.5rem; }
}
@media (max-width: 900px) {
  /* Revert header to simple flex so brand/toggle sit left/right. */
  .site-header__inner { display: flex; justify-content: space-between; }
  .header-sep { display: none; }
  .nav, .header-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Hide desktop-zone buttons; nav-side versions appear in the hamburger dropdown. */
  .header-cta .nav__review, .header-cta .nav__quote { display: none; }
  .hero__grid, .split, .services-head, .featured-pair, .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s-4); }
  .gallery-teaser { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-teaser .ph:nth-child(1) { grid-row: auto; grid-column: 1 / 3; }
  .section { padding-block: var(--s-6); }
}
/* Phone: logo + hamburger only; "Get a quote" lives in the nav dropdown */
@media (max-width: 700px) {
  .nav__quote { align-self: stretch; justify-content: center; margin-top: var(--s-1); }
  .nav__review { align-self: stretch; justify-content: center; margin-top: var(--s-1); }
  /* Trust bar: wrap vertically rather than scroll horizontally */
  .trust-bar__inner { flex-wrap: wrap; overflow-x: hidden; justify-content: flex-start; gap: 0.35rem 1rem; }
  .trust-bar .trust__item { flex-shrink: 1; white-space: normal; font-size: 0.78rem; }
  .trust-bar .trust__item .ico { width: 18px; height: 18px; }
}
@media (max-width: 560px) {
  .svc-list { grid-template-columns: 1fr; }
  .featured-pair { gap: var(--s-3); }
  .brand__name { font-size: 0.95rem; }
}

/* ==========================================================================
   Services page
   ========================================================================== */

/* Small page hero — deliberately modest next to the homepage hero */
.page-hero { padding-block: var(--s-6) var(--s-5); }
.page-hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.04; color: var(--navy); letter-spacing: -0.02em;
  margin: 0 0 var(--s-3); max-width: 20ch;
}
.page-hero .lede { max-width: 56ch; }

/* Featured services (Fencing, Paving) — wide alternating image/text rows.
   Text on its own ground, photo on its own. No overlay. */
.svc-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-6); align-items: center;
  padding-block: var(--s-5);
}
.svc-feature + .svc-feature { border-top: 1px solid var(--line); }
.svc-feature__media img {
  width: 100%; height: clamp(300px, 40vw, 460px);
  object-fit: cover; border-radius: var(--radius);
}
.svc-feature--flip .svc-feature__media { order: 2; }
.svc-feature__body h2 { margin-bottom: var(--s-3); }
.svc-feature__body .prose + .prose { margin-top: var(--s-2); }
.svc-feature__tag {
  display: inline-block; margin-top: var(--s-3);
  font-family: var(--f-ui); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.04em; color: var(--green-dark);
}

/* Supporting services — cards with photo, heading and reading copy */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.svc-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card__media { position: relative; }
.svc-card__media img { width: 100%; height: 220px; object-fit: cover; }
.svc-card__media .ph { height: 220px; border-radius: 0; }
.svc-card__body { padding: var(--s-3); }
.svc-card__body h3 { margin-bottom: 0.5rem; }
.svc-card__body .prose { font-size: 1.12rem; line-height: 1.45; }
.svc-card__tag {
  display: inline-block; margin-top: var(--s-2);
  font-family: var(--f-ui); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.04em; color: var(--green-dark);
}

@media (max-width: 900px) {
  .svc-feature, .svc-feature--flip { grid-template-columns: 1fr; gap: var(--s-4); }
  .svc-feature--flip .svc-feature__media { order: 0; }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gallery page
   ========================================================================== */

/* Masonry-style columns: photos sit at their natural aspect ratio,
   never cropped or distorted. Tidy on desktop, fewer columns on mobile. */
.gallery-grid {
  column-count: 3;
  column-gap: var(--s-3);
}
.gallery-grid figure {
  margin: 0 0 var(--s-3);
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-grid figure:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gallery-grid img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
}
@media (max-width: 520px) {
  .gallery-grid { column-count: 1; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

/* WhatsApp leads — text/options on the left, the quote form on the right */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}

/* Large primary action, sits above the other ways to reach us */
.btn--lg { font-size: 1.1rem; padding: 1.05em 1.8em; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.contact-note { font-family: var(--f-ui); font-size: 0.85rem; color: var(--muted); margin: var(--s-2) 0 0; }

/* Secondary ways to reach us — quiet list beneath the WhatsApp button */
.contact-methods { list-style: none; margin: var(--s-4) 0 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.contact-methods li { display: flex; align-items: flex-start; gap: 0.85rem; }
.contact-methods .ico { width: 24px; height: 24px; color: var(--green-dark); flex: none; margin-top: 2px; }
.contact-methods .label { font-family: var(--f-ui); font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.contact-methods a, .contact-methods .value { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.contact-methods a:hover { color: var(--green-dark); }
.contact-methods .value { font-weight: 700; }
.contact-area { margin-top: var(--s-4); }
.contact-area h4 { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--navy); margin: 0 0 var(--s-2); }

/* Quote form — secondary option, set on its own panel */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--s-2); }
.quote-form { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--f-ui); font-weight: 600; font-size: 0.82rem; color: var(--navy); }
.field input, .field textarea {
  font-family: var(--f-ui); font-size: 0.95rem; color: var(--ink);
  padding: 0.75em 0.9em; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); width: 100%;
  transition: border-color 0.18s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field__opt { font-weight: 500; color: var(--muted); }
.quote-form button { margin-top: var(--s-1); justify-self: start; }

/* Service checkboxes — a calm two-column group, not a wall of inputs */
.field--checks { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--checks legend {
  font-family: var(--f-ui); font-weight: 600; font-size: 0.82rem; color: var(--navy);
  padding: 0; margin-bottom: 0.55rem;
}
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; }
.check {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-ui); font-size: 0.92rem; color: var(--ink); cursor: pointer;
}
.check input { width: 1.05em; height: 1.05em; accent-color: var(--green); flex: none; margin: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}

/* Mobile nav open state (toggled by inline script) */
.site-header.nav-open .nav {
  display: flex;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: flex-start; gap: var(--s-3);
  background: #fff; border-bottom: 1px solid var(--line);
  padding: var(--s-3) var(--s-3) var(--s-4);
}
