/* ==========================================================================
   Cedarline Outdoor Works — base build stylesheet
   Palette and logo direction supplied by client brief.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (fixed by brief) */
  --pine:            #244638;
  --pine-deep:       #16291f;
  --pine-mid:        #2e5946;
  --sandstone:       #d6be96;
  --sandstone-deep:  #b99c6c;
  --offwhite:        #f6f3ec;
  --paper:           #ede8dd;
  --charcoal:        #242824;
  --sage:            #81907a;

  /* Derived */
  --rule:            rgba(36, 70, 56, 0.16);
  --rule-light:      rgba(246, 243, 236, 0.18);
  --body-muted:      #5d6659;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --quote:   "Fraunces", Georgia, "Times New Roman", serif;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --measure: 68ch;

  --radius: 3px;
  --shadow-soft: 0 18px 44px -28px rgba(22, 41, 31, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: var(--body);
  font-variation-settings: "wdth" 100, "wght" 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: "wdth" 78, "wght" 700;
  line-height: 1.02;
  letter-spacing: 0.002em;
  margin: 0 0 0.5em;
  color: var(--pine);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.65rem); }
h2 { font-size: clamp(1.95rem, 4.4vw, 3.15rem); }
h3 { font-variation-settings: "wdth" 88, "wght" 650; font-size: clamp(1.25rem, 2.1vw, 1.5rem); line-height: 1.15; }
h4 { font-variation-settings: "wdth" 92, "wght" 650; font-size: 1.0625rem; line-height: 1.3; }

p { margin: 0 0 1.15em; max-width: var(--measure); }

/* keep in-page anchors clear of the sticky header */
[id] { scroll-margin-top: 96px; }
p:last-child { margin-bottom: 0; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-mid); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--pine); color: var(--offwhite);
  padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.wrap--narrow { width: min(820px, 100% - (var(--gutter) * 2)); }

.band { padding-block: var(--section-y); }
.band--paper { background: var(--paper); }
.band--pine { background: var(--pine); color: var(--offwhite); }
.band--pine h2, .band--pine h3, .band--pine h4 { color: var(--offwhite); }
.band--tight { padding-block: clamp(2.75rem, 5vw, 4rem); }

/* Eyebrow label — condensed caps, used to name each section */
.eyebrow {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--sandstone-deep);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sandstone-deep);
  flex: none;
}
.band--pine .eyebrow { color: var(--sandstone); }
.band--pine .eyebrow::before { background: var(--sandstone); }

.lede {
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--body-muted);
}
.band--pine .lede { color: rgba(246, 243, 236, 0.82); }

/* Stratum rule — the layered-base motif, used as a section divider */
.stratum {
  height: 7px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    to bottom,
    var(--pine) 0 2px,
    var(--sandstone) 2px 4px,
    var(--sandstone-deep) 4px 5px,
    var(--sage) 5px 7px
  );
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 650;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--sandstone); color: var(--pine-deep); border-color: var(--sandstone); }
.btn--primary:hover { background: #e3cfae; border-color: #e3cfae; color: var(--pine-deep); }

.btn--pine { background: var(--pine); color: var(--offwhite); border-color: var(--pine); }
.btn--pine:hover { background: var(--pine-mid); border-color: var(--pine-mid); color: var(--offwhite); }

.btn--ghost { background: transparent; color: var(--offwhite); border-color: rgba(246, 243, 236, 0.55); }
.btn--ghost:hover { background: rgba(246, 243, 236, 0.1); border-color: var(--offwhite); color: var(--offwhite); }

.btn--ghost-dark { background: transparent; color: var(--pine); border-color: rgba(36, 70, 56, 0.35); }
.btn--ghost-dark:hover { background: rgba(36, 70, 56, 0.06); border-color: var(--pine); }

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

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

/* Text logo: CEDARLINE condensed + spaced OUTDOOR WORKS beneath */
.logo { display: inline-block; text-decoration: none; line-height: 1; padding: 0.35rem 0; }
.logo__img { display: block; height: 40px; width: auto; }
.site-footer .logo__img { height: 36px; }
.logo__mark {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 72, "wght" 800;
  font-size: clamp(1.55rem, 3.4vw, 1.95rem);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--pine);
}
.logo__sub {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 500;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sandstone-deep);
  margin-top: 0.28rem;
}
.logo--light .logo__mark { color: var(--offwhite); }
.logo--light .logo__sub { color: var(--sandstone); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 550;
  font-size: 0.83rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine);
  padding: 0.4rem 0;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--sandstone-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-variation-settings: "wdth" 100, "wght" 700; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 650;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--pine);
  white-space: nowrap;
}
.header-cta .btn { min-height: 46px; padding: 0.6rem 1.15rem; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  min-height: 46px;
  cursor: pointer;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
}
.nav-toggle__bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--pine);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 62%;
  animation: heroSettle 12s var(--ease) forwards;
}
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(22, 41, 31, 0.92) 0%, rgba(22, 41, 31, 0.74) 42%, rgba(22, 41, 31, 0.18) 78%),
    linear-gradient(to top, rgba(22, 41, 31, 0.55), transparent 45%);
}

.hero__inner {
  padding-block: clamp(4.5rem, 13vw, 9.5rem);
  max-width: 40rem;
  color: var(--offwhite);
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--offwhite); margin-bottom: 0.45em; }
.hero__sub {
  font-size: clamp(1.075rem, 1.75vw, 1.3rem);
  line-height: 1.55;
  color: rgba(246, 243, 236, 0.88);
  margin-bottom: 2rem;
  max-width: 34rem;
}
.hero .eyebrow { color: var(--sandstone); }
.hero .eyebrow::before { background: var(--sandstone); }

/* Trust strip beneath the hero */
.trust {
  background: var(--pine-deep);
  color: rgba(246, 243, 236, 0.9);
  border-top: 1px solid rgba(214, 190, 150, 0.2);
}
.trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none; margin: 0; padding: 0;
}
.trust__list li {
  padding: 1.15rem 1.4rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 550;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  border-left: 1px solid rgba(214, 190, 150, 0.18);
}
.trust__list li:first-child { border-left: 0; }

/* --------------------------------------------------------------------------
   7. Section headers
   -------------------------------------------------------------------------- */
.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); max-width: 46rem; }
.section-head--split {
  display: grid; gap: 1.5rem 3rem; align-items: end;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  max-width: none;
}
.section-head--split .lede { margin: 0; }

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.service-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  background: var(--offwhite);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.band--paper .service-lead { background: var(--offwhite); }
.service-lead__media { height: 100%; min-height: 260px; overflow: hidden; }
.service-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.service-lead__body { padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem) 0; }
.service-lead__tag {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pine); background: var(--sandstone);
  padding: 0.3rem 0.7rem; border-radius: 2px; margin-bottom: 1rem;
}

/* Compact service rows */
.service-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service-rows li { border-bottom: 1px solid var(--rule); }
.service-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.6rem 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.service-row:hover { background: rgba(36, 70, 56, 0.045); padding-left: 0.9rem; }
.service-row__index {
  font-family: var(--display);
  font-variation-settings: "wdth" 78, "wght" 700;
  font-size: 1.5rem;
  color: var(--sandstone-deep);
  line-height: 1;
  padding-top: 0.15rem;
}
.service-row h3 { margin-bottom: 0.35rem; }
.service-row p { color: var(--body-muted); font-size: 0.98rem; margin: 0; }
.service-row__arrow {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  color: var(--pine);
  align-self: center;
  transition: transform 0.25s var(--ease);
}
.service-row:hover .service-row__arrow { transform: translateX(5px); }

/* Full service blocks (Services page) */
.service-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.service-block:last-of-type { border-bottom: 0; }
.service-block--flip .service-block__media { order: 2; }
.service-block__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.service-block__index {
  font-family: var(--display);
  font-variation-settings: "wdth" 74, "wght" 700;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--sandstone-deep);
  display: block;
  margin-bottom: 0.6rem;
}
.tick-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.tick-list li {
  position: relative; padding-left: 1.75rem; font-size: 0.98rem; color: var(--body-muted);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sandstone); box-shadow: 0 0 0 3px rgba(214, 190, 150, 0.28);
}
.band--pine .tick-list li { color: rgba(246, 243, 236, 0.85); }

/* --------------------------------------------------------------------------
   9. Cross-section (signature element)
   -------------------------------------------------------------------------- */
.crosscut {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.crosscut__figure { margin: 0; }
.crosscut__figure svg { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.crosscut__caption {
  font-size: 0.83rem; color: var(--body-muted); margin-top: 0.85rem; line-height: 1.5;
  font-style: normal;
}
.band--pine .crosscut__caption { color: rgba(246, 243, 236, 0.65); }

.layers { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.layers li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 0.95rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.band--pine .layers li { border-top-color: var(--rule-light); }
.layers li:last-child { border-bottom: 1px solid var(--rule); }
.band--pine .layers li:last-child { border-bottom-color: var(--rule-light); }
.layers__chip { width: 14px; height: 14px; border-radius: 2px; margin-top: 0.4rem; }
.layers h4 { margin-bottom: 0.15rem; }
.layers p { font-size: 0.92rem; color: var(--body-muted); margin: 0; }
.band--pine .layers p { color: rgba(246, 243, 236, 0.72); }

/* --------------------------------------------------------------------------
   10. Process
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); counter-reset: step; }
.step { position: relative; padding-top: 2rem; border-top: 2px solid var(--sandstone); }
.step__num {
  font-family: var(--display);
  font-variation-settings: "wdth" 74, "wght" 700;
  font-size: 2.9rem; line-height: 1;
  color: var(--sandstone);
  display: block; margin-bottom: 0.55rem;
}
.band--pine .step { border-top-color: rgba(214, 190, 150, 0.5); }
.step p { color: var(--body-muted); font-size: 0.98rem; }
.band--pine .step p { color: rgba(246, 243, 236, 0.8); }

/* --------------------------------------------------------------------------
   11. Featured project
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.feature__media { position: relative; }
.feature__media img { width: 100%; border-radius: var(--radius); }
.feature__stat {
  position: absolute; right: -0.5rem; bottom: -1.25rem;
  background: var(--sandstone); color: var(--pine-deep);
  padding: 0.9rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 11rem;
}
.feature__stat b {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 78, "wght" 700;
  font-size: 1.9rem; line-height: 1;
}
.feature__stat span {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 550;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.quote { margin: 0; }
.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--quote);
  font-variation-settings: "opsz" 90, "wght" 350;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.quote__attr {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sandstone);
  font-style: normal;
}
.quote__note { display: block; margin-top: 0.4rem; font-size: 0.68rem; letter-spacing: 0.12em; color: rgba(246, 243, 236, 0.5); }

.quote--featured { border-top: 2px solid var(--sandstone); padding-top: 1.75rem; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.quote-grid .quote { border-top: 2px solid var(--sandstone); padding-top: 1.5rem; }
.quote-grid blockquote { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; }
.quote-card--dark .quote__attr { color: var(--sandstone-deep); }
.quote-card--dark .quote__note { color: var(--sage); }

/* --------------------------------------------------------------------------
   13. Service area
   -------------------------------------------------------------------------- */
.band--sand { background: var(--sandstone); color: var(--pine-deep); }
.band--sand h2, .band--sand h3 { color: var(--pine-deep); }
.band--sand .eyebrow { color: var(--pine); }
.band--sand .eyebrow::before { background: var(--pine); }

.area-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 92, "wght" 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}
.area-list li { display: flex; align-items: center; gap: 1.5rem; }
.area-list li::after { content: ""; width: 5px; height: 5px; background: var(--pine); border-radius: 50%; opacity: 0.5; }
.area-list li:last-child::after { display: none; }
.area-note { margin-top: 1.25rem; font-size: 0.95rem; color: rgba(22, 41, 31, 0.75); }

/* --------------------------------------------------------------------------
   14. CTA
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .wrap--narrow > * { margin-inline: auto; }
.cta-band .eyebrow { justify-content: center; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }
.cta-band .lede { max-width: 40rem; }

/* --------------------------------------------------------------------------
   15. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--pine);
  color: var(--offwhite);
  padding-block: clamp(3rem, 7vw, 5.25rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--offwhite); max-width: 20ch; }
.page-hero .lede { color: rgba(246, 243, 236, 0.82); max-width: 46rem; }

/* --------------------------------------------------------------------------
   16. Panels, cards, misc content
   -------------------------------------------------------------------------- */
.panel {
  background: var(--offwhite);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--sandstone);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
}
.band--pine .panel {
  background: rgba(246, 243, 236, 0.06);
  border-color: var(--rule-light);
  border-left-color: var(--sandstone);
}
.panel h3 { margin-bottom: 0.6rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.figure figcaption {
  font-size: 0.85rem; color: var(--body-muted); margin-top: 0.8rem; line-height: 1.5;
  border-left: 2px solid var(--sandstone); padding-left: 0.8rem;
}
.band--pine .figure figcaption { color: rgba(246, 243, 236, 0.7); }

.def-list { margin: 0; }
.def-list div { padding: 0.9rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
.def-list div:last-child { border-bottom: 1px solid var(--rule); }
.def-list dt {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sandstone-deep); padding-top: 0.2rem;
}
.def-list dd { margin: 0; font-size: 0.98rem; }

.not-offered { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.not-offered li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; color: var(--body-muted); }
.not-offered li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 11px; height: 2px; background: var(--sage);
}

.demo-flag {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--body-muted);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}
.band--pine .demo-flag { color: rgba(246, 243, 236, 0.6); border-color: var(--rule-light); }

/* --------------------------------------------------------------------------
   17. Contact + form
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.form-card {
  background: var(--offwhite);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.field { margin-bottom: 1.35rem; }
.field > label, .fieldset__legend {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.5rem;
}
.req { color: var(--sandstone-deep); }
.field__hint { display: block; font-size: 0.85rem; color: var(--body-muted); margin-top: 0.4rem; letter-spacing: 0; text-transform: none; font-variation-settings: "wdth" 100, "wght" 400; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid rgba(36, 70, 56, 0.28);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  min-height: 50px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23244638' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(214, 190, 150, 0.45);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #9a3b2c;
  box-shadow: 0 0 0 3px rgba(154, 59, 44, 0.14);
}
::placeholder { color: #96a08f; opacity: 1; }

.field__error {
  display: none;
  font-size: 0.85rem;
  color: #8c3527;
  margin-top: 0.4rem;
  font-variation-settings: "wdth" 100, "wght" 500;
}
.field--error .field__error { display: block; }

.fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(36, 70, 56, 0.28);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.choice:hover { border-color: var(--pine); }
.choice input { accent-color: var(--pine); width: 17px; height: 17px; }
.choice:has(input:checked) { background: rgba(214, 190, 150, 0.3); border-color: var(--pine); }

.consent {
  display: grid; grid-template-columns: 20px 1fr; gap: 0.75rem;
  align-items: start; margin-bottom: 1.5rem;
  font-size: 0.95rem; line-height: 1.5;
}
.consent input { accent-color: var(--pine); width: 20px; height: 20px; margin-top: 0.15rem; }

.form-note { font-size: 0.85rem; color: var(--body-muted); margin-top: 1.1rem; }

.form-success {
  display: none;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--pine);
  background: rgba(214, 190, 150, 0.22);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
}
.form-success[data-visible="true"] { display: block; }
.form-success h3 { margin-bottom: 0.5rem; }

.contact-aside { display: grid; gap: 1.5rem; }
.contact-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--offwhite);
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.85rem; }
.contact-card a { font-weight: 500; }

.hours { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.42rem 0; border-bottom: 1px dashed var(--rule); }
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: var(--body-muted); }
.hours span:last-child {
  font-family: var(--display);
  font-variation-settings: "wdth" 95, "wght" 600;
  white-space: nowrap;
}
.hours li[data-closed] span:last-child { color: var(--sage); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--pine-deep); color: rgba(246, 243, 236, 0.78); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer h4 {
  color: var(--sandstone);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(246, 243, 236, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--sandstone); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-light);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-blurb { font-size: 0.95rem; color: rgba(246, 243, 236, 0.65); margin-top: 1.15rem; max-width: 30ch; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.15rem; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.footer-bottom {
  padding-top: 1.75rem;
  display: grid; gap: 1.25rem;
  font-size: 0.8rem; color: rgba(246, 243, 236, 0.55);
}
.footer-bottom p { max-width: none; }
.disclosure {
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  line-height: 1.6;
}
.disclosure strong { color: var(--sandstone); font-variation-settings: "wdth" 100, "wght" 650; }

/* --------------------------------------------------------------------------
   19. Motion
   -------------------------------------------------------------------------- */
/* Scoped to .js so blocks stay visible if JavaScript never runs */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__list li:nth-child(3) { border-left: 0; }
  .trust__list li:nth-child(n+3) { border-top: 1px solid rgba(214, 190, 150, 0.18); }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-soft);
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__link { display: block; padding: 1rem 0; font-size: 0.95rem; }
  .nav__link::after { display: none; }
  .header-cta { flex-direction: column; align-items: stretch; gap: 0.75rem; padding-top: 1.25rem; }
  .header-cta .btn { width: 100%; min-height: 52px; font-size: 0.85rem; }
  .header-phone { text-align: center; font-size: 1.05rem; padding: 0.5rem 0; }

  .crosscut, .feature, .split, .split--wide-left, .contact-layout,
  .service-lead, .section-head--split { grid-template-columns: 1fr; }
  .service-lead__body { padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem); }
  .service-block, .service-block--flip .service-block__media { grid-template-columns: 1fr; order: 0; }
  .steps, .quote-grid, .grid-3 { grid-template-columns: 1fr; }
  .feature__stat { position: static; margin-top: 1rem; display: inline-block; }
  .section-head--split { align-items: start; }
  }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .trust__list { grid-template-columns: 1fr; }
  .trust__list li { border-left: 0; border-top: 1px solid rgba(214, 190, 150, 0.18); }
  .trust__list li:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .service-row__arrow { display: none; }
  .def-list div { grid-template-columns: 1fr; gap: 0.25rem; }
  .btn-row .btn { width: 100%; }
  .area-list { font-size: 0.95rem; gap: 0.4rem 1rem; }
  .area-list li { gap: 1rem; }
}

@media print {
  .site-header, .nav, .hero__media, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}


/* --------------------------------------------------------------------------
   21. TK FieldWorks sample-site bar
   Agency chrome, deliberately styled in TK's colours so it never reads
   as part of the Cedarline brand. Delete this block and the markup in
   each page's <body> if the sample is ever handed over as a real site.
   -------------------------------------------------------------------------- */
.tk-bar {
  background: #0B1519;
  color: #B9CBC5;
  border-bottom: 1px solid rgba(163, 198, 183, 0.2);
  font-size: 0.82rem;
  line-height: 1.5;
}
.tk-bar__inner {
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
}
.tk-bar__tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0B1519;
  background: #FFB43C;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  flex: none;
}
.tk-bar p { margin: 0; max-width: none; flex: 1 1 22rem; }
.tk-bar a {
  color: #FFB43C;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.tk-bar a:hover { color: #FFB43C; text-decoration: underline; }
.tk-bar :focus-visible { outline-color: #FFB43C; }

@media (max-width: 640px) {
  .tk-bar { font-size: 0.78rem; }
  .tk-bar__inner { padding: 0.6rem 0; }
}
