/* ==========================================================================
   Blue Oak Home Solutions — stylesheet
   Single file, no build step. Organised top-to-bottom:
   fonts → tokens → base → layout → components → sections → forms → utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted, no third-party requests
   --------------------------------------------------------------------------
   These are variable fonts: one file covers every weight from 100–900, which
   is why two files replace the seven static cuts we used to pull from Google.
   Both retain the `opsz` (optical size) axis, so letterforms still adapt to
   size exactly as before — that's what keeps large headings looking right.

   latin-ext is a separate file and is only fetched if a character in that
   range is actually rendered. It costs nothing on a normal English page but
   means an accented name typed into the estimate form still displays properly.

   Both faces are SIL Open Font License; self-hosting is expressly permitted.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourceserif4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourceserif4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the logo */
  --navy: #1b2a4a;
  --navy-deep: #121d34;
  --navy-soft: #2c3e63;
  --olive: #6b8236;
  --olive-dark: #55692a;
  --olive-light: #8aa24f;

  /* Neutrals */
  --cream: #f6f4ef;
  --cream-dark: #ece8df;
  --white: #ffffff;
  --ink: #1a1d23;
  --muted: #5a6472;
  --line: #e3e1da;

  /* Feedback */
  --danger: #b3261e;
  --success: #2e7d32;

  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Spacing / rhythm */
  --container: 1180px;
  --container-narrow: 820px;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(18, 29, 52, 0.06),
    0 2px 6px rgba(18, 29, 52, 0.06);
  --shadow: 0 4px 12px rgba(18, 29, 52, 0.08),
    0 12px 32px rgba(18, 29, 52, 0.08);
  --shadow-lg: 0 8px 24px rgba(18, 29, 52, 0.1),
    0 24px 64px rgba(18, 29, 52, 0.14);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Offset anchor targets so the sticky header doesn't cover them */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--olive-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover {
  color: var(--olive);
}

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

ul,
ol {
  padding-left: 1.25rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

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

::selection {
  background: var(--olive-light);
  color: var(--navy-deep);
}

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

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

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

.section--tight {
  padding-block: calc(var(--section-y) * 0.62);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* Section headers ---------------------------------------------------------- */
.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 0.75rem;
}
.section--navy .eyebrow {
  color: var(--olive-light);
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 0;
}
.section--navy .lede {
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 1rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

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

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn--lg {
  padding: 1.15rem 2.25rem;
  font-size: 1rem;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-block: 0.4rem;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar__item svg {
  width: 14px;
  height: 14px;
  color: var(--olive-light);
  flex: none;
}
.topbar a {
  color: inherit;
  text-decoration: none;
}
.topbar a:hover {
  color: var(--white);
  text-decoration: underline;
}
.topbar__group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .topbar__group--secondary {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}

/* backdrop-filter turns an element into a containing block for its
   position:fixed descendants — which would trap the mobile drawer inside the
   header's own box instead of letting it fill the viewport. Desktop only,
   where no drawer exists. */
@media (min-width: 961px) {
  .site-header {
    backdrop-filter: saturate(160%) blur(10px);
  }
}
.site-header.is-stuck {
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.brand img {
  height: 52px;
  width: auto;
}
/* Text fallback shown when no logo file is present */
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.brand__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-dark);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding-block: 0.5rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--navy);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    /* Sit above the open drawer so the hamburger-to-X animation stays visible
       and tappable — otherwise the drawer covers the only close affordance. */
    position: relative;
    z-index: 2;
  }
  /* Off-canvas drawer.
     It stays pinned inside the viewport (right: 0) even when closed, and hides
     via opacity/visibility rather than being translated off-screen — a panel
     parked outside the right edge adds to the document scroll width and gives
     the whole site a phantom horizontal scrollbar. */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    /* Top padding clears the header so the first link isn't under the X button.
       Sized in vh-free units to stay predictable on short phones. */
    padding: 5.25rem 1.5rem 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Scales in from the top-right corner rather than sliding in from off-screen,
       so no part of it ever sits past the viewport edge. */
    transform-origin: 100% 0;
    transform: scale(0.97);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 260ms;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li + li {
    border-top: 1px solid var(--line);
  }
  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.0625rem;
  }
  .nav__link::after {
    display: none;
  }
  .nav .btn {
    margin-top: 1.5rem;
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 29, 52, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 99;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  /* Photo layer — swap the url() for your own hero image */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center 60%;
  opacity: 0.42;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(18, 29, 52, 0.94) 0%,
      rgba(18, 29, 52, 0.82) 45%,
      rgba(18, 29, 52, 0.55) 100%
    );
  z-index: -1;
}
.hero__inner {
  padding-block: clamp(4rem, 10vw, 8rem);
  max-width: 46rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--olive-light);
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin-bottom: 2rem;
}
.hero .btn-row {
  margin-bottom: 2.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__badges svg {
  width: 18px;
  height: 18px;
  color: var(--olive-light);
  flex: none;
}

/* --------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
/* Four across is too cramped below desktop — drop to a clean 2×2 rather than
   letting auto-fit leave an empty cell. */
@media (max-width: 1020px) {
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }
}
.trust-item {
  background: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.5rem 1.25rem;
}
.trust-item svg {
  width: 30px;
  height: 30px;
  color: var(--olive);
  flex: none;
}
.trust-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--navy);
  line-height: 1.3;
}
.trust-item span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Cards & grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(107, 130, 54, 0.1);
  color: var(--olive-dark);
  margin-bottom: 1.125rem;
}
.card__icon svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   9. Steps (how it works)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  counter-increment: step;
  padding-top: 4.5rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
}
.section--navy .step::before {
  background: var(--olive);
}
.step h3 {
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted);
  margin-bottom: 0;
}
.section--navy .step p {
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   10. Services list (compact, alphabetical)
   -------------------------------------------------------------------------- */
.service-columns {
  columns: 3 220px;
  column-gap: 2.5rem;
}
.service-group {
  break-inside: avoid;
  margin-bottom: 2rem;
}
.service-group h3 {
  font-size: 1.0625rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--olive);
  margin-bottom: 0.75rem;
}
.service-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.service-group li {
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}
.service-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive-light);
}

/* --------------------------------------------------------------------------
   11. About / stats
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.75rem 0;
  border-block: 1px solid var(--line);
  list-style: none;
}
.section--navy .stats {
  border-color: rgba(255, 255, 255, 0.18);
}
.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1;
}
.section--navy .stat__value {
  color: var(--olive-light);
}
.stat__label {
  font-size: 0.875rem;
  color: var(--muted);
}
.section--navy .stat__label {
  color: rgba(255, 255, 255, 0.7);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.checklist svg {
  width: 22px;
  height: 22px;
  color: var(--olive);
  flex: none;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery figure:hover img {
  transform: scale(1.04);
}
.gallery figcaption {
  padding: 1rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.gallery figcaption strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* About panel — branded stand-in for the owner/team photo. Sized to the same
   4:3 box the photo will occupy, so swapping in an <img> changes nothing else. */
.about-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  aspect-ratio: 4 / 3;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow);
}
.about-card__mark {
  width: 54px;
  height: 54px;
  color: var(--olive-light);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-card__motto {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}
.about-card__meta {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Placeholder styling for images that haven't been added yet */
.img-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    45deg,
    var(--cream),
    var(--cream) 12px,
    var(--cream-dark) 12px,
    var(--cream-dark) 24px
  );
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: 1rem;
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars {
  display: flex;
  gap: 2px;
  color: #e2a231;
}
.stars svg {
  width: 18px;
  height: 18px;
}
.testimonial blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  flex: 1;
}
.testimonial figcaption {
  font-size: 0.875rem;
  color: var(--muted);
}
.testimonial figcaption strong {
  color: var(--navy);
  display: block;
}

/* --------------------------------------------------------------------------
   14. Service areas
   -------------------------------------------------------------------------- */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.areas li {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   15. FAQ accordion
   -------------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--transition);
}
.faq__item[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq__item > div {
  padding-bottom: 1.25rem;
  color: var(--muted);
  max-width: 60ch;
}
.faq__item > div p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta-band .btn-row {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
.footer__brand img {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
  /* Logo artwork is dark navy — invert-free approach: sit it on white */
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}
.footer__contact li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}
.footer__contact svg {
  width: 16px;
  height: 16px;
  color: var(--olive-light);
  flex: none;
  margin-top: 5px;
}
.footer__bottom {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.field .hint {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}
.req {
  color: var(--danger);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%235a6472' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 130, 54, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}

.error-msg {
  font-size: 0.8125rem;
  color: var(--danger);
  min-height: 0;
}

/* Checkbox / radio pills */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.625rem;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color var(--transition), background var(--transition);
}
.choice:hover {
  border-color: var(--olive-light);
}
.choice input {
  accent-color: var(--olive);
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
}
.choice:has(input:checked) {
  border-color: var(--olive);
  background: rgba(107, 130, 54, 0.07);
}

/* File upload */
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--olive);
  background: rgba(107, 130, 54, 0.06);
}
.dropzone svg {
  width: 34px;
  height: 34px;
  color: var(--olive);
}
.dropzone strong {
  color: var(--navy);
  font-size: 0.9375rem;
}
.dropzone span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0.875rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.file-list img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.file-list .file-size {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* Progressive disclosure — optional fields tucked behind a toggle so the form
   reads short at a glance without losing the detail that speeds up a quote. */
.optional-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  margin-bottom: 2rem;
}
.optional-block > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.optional-block > summary::-webkit-details-marker {
  display: none;
}
.optional-block > summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  flex: none;
}
.optional-block[open] > summary::before {
  content: "\2013";
}
/* .hint is otherwise scoped to .field, so restate it for the summary line */
.optional-block > summary .hint {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}
.optional-block__body {
  padding: 0.25rem 1.1rem 1.25rem;
}

/* Photo upload, two paths.
   Netlify accepts one file per field name, so the real inputs are the numbered
   photo-1..6 slots. With JS we hide those and drive them from a single
   multi-select picker; without JS they show as plain slots so uploads still
   work rather than silently failing. */
.photo-picker {
  display: none;
}
.js .photo-picker {
  display: block;
}
.js .photo-slots {
  /* Kept in the DOM and submittable, just not shown. display:none would stop
     some browsers submitting the files at all. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.photo-slots {
  display: grid;
  gap: 0.5rem;
}
.photo-slots label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.photo-slots label > span {
  flex: none;
  min-width: 4.5rem;
}
.photo-slots input[type="file"] {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  min-width: 0;
}

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footnote {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Estimate page sidebar */
.estimate-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
}
@media (max-width: 980px) {
  .estimate-layout {
    grid-template-columns: 1fr;
  }
}
.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.sidebar-card + .sidebar-card {
  margin-top: 1.25rem;
}
.sidebar-card h3 {
  font-size: 1.125rem;
}
.sidebar-card p:last-child {
  margin-bottom: 0;
}

/* Page header (interior pages) */
.page-head {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-head h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  max-width: 22ch;
}
.page-head p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 46rem;
  margin-bottom: 0;
}
.breadcrumbs {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   18b. Prose — long-form text pages (privacy policy, terms)
   -------------------------------------------------------------------------- */
.prose h2 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.prose h2:first-of-type {
  margin-top: 0;
}
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose p {
  max-width: 68ch;
}
.prose strong {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   19. Mobile sticky call bar
   -------------------------------------------------------------------------- */
.mobile-bar {
  display: none;
}
@media (max-width: 720px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    box-shadow: 0 -2px 12px rgba(18, 29, 52, 0.12);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-bar a:first-child {
    background: var(--white);
    color: var(--navy);
  }
  .mobile-bar a:last-child {
    background: var(--olive);
    color: var(--white);
  }
  .mobile-bar svg {
    width: 18px;
    height: 18px;
  }
  body {
    padding-bottom: 56px;
  }
}

/* --------------------------------------------------------------------------
   20. Utilities & motion
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}
.mb-0 {
  margin-bottom: 0;
}
.mt-2 {
  margin-top: 2rem;
}
.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;
}

/* Scroll reveal — .reveal elements fade up as they enter the viewport.
   Gated behind .js (set by an inline script in each page's <head>) so that with
   JavaScript disabled the content is simply visible rather than stuck at
   opacity: 0 with nothing around to reveal it. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .topbar,
  .mobile-bar,
  .cta-band,
  .nav-backdrop {
    display: none !important;
  }
}
