/* ==========================================================================
   L & B Hardscape LLC — "Hardscape Industrial" design system
   Tokens transcribed from hardscape_industrial/DESIGN.md
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces */
  --surface: #fdf8f7;
  --surface-dim: #ddd9d8;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f7f3f1;
  --surface-container: #f1edeb;
  --surface-container-high: #ece7e6;
  --surface-container-highest: #e6e1e0;
  --surface-variant: #e6e1e0;
  --surface-tint: #635d58;

  /* Ink */
  --on-surface: #1c1b1b;
  --on-surface-variant: #4c463f;
  --inverse-surface: #31302f;
  --inverse-on-surface: #f4f0ee;

  /* Structure */
  --outline: #7e766f;
  --outline-variant: #cfc5bc;

  /* Charcoal brown */
  --primary: #0e0b07;
  --on-primary: #ffffff;
  --primary-container: #25211d;
  --on-primary-container: #8f8882;
  --on-primary-fixed-variant: #4b4641;
  --primary-fixed-dim: #cdc5bf;

  /* Burnt clay */
  --secondary: #97471f;
  --on-secondary: #ffffff;
  --secondary-container: #ff996a;
  --on-secondary-container: #772f07;
  --secondary-fixed: #ffdbcd;
  --secondary-fixed-dim: #ffb595;

  /* Ochre */
  --tertiary-container: #301e00;
  --on-tertiary-container: #b37f1d;
  --tertiary-fixed: #ffdeae;
  --tertiary-fixed-dim: #f9bc56;

  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing */
  --margin-page: 5vw;
  --gutter: 32px;
  --section-gap: 128px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;

  --header-h: 76px;
  --max-w: 1440px;
  --content-w: 1200px;
}

@media (max-width: 1199px) {
  :root { --section-gap: 80px; }
}
@media (max-width: 767px) {
  :root { --section-gap: 48px; --gutter: 24px; --margin-page: 24px; --header-h: 64px; }
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* Rectilinear: nothing in this system is rounded. */
input, select, textarea, button, .btn, .card, .chip { border-radius: 0; }

::selection { background: var(--secondary-container); color: var(--on-secondary-container); }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--secondary); color: var(--on-secondary);
  padding: 12px 20px; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.skip-link:focus { left: 0; }

/* --- Typography ----------------------------------------------------------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.headline-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.body-lg { font-size: 18px; line-height: 28px; }
.body-md { font-size: 16px; line-height: 26px; }

.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.text-clay { color: var(--secondary); }
.text-muted { color: var(--on-surface-variant); }
.measure { max-width: 68ch; }

/* Section headings carry a 4px x 60px burnt-clay rule, 12px below baseline. */
.rule-under::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin-top: 12px;
}
.rule-under.is-centered::after { margin-left: auto; margin-right: auto; }

/* --- Layout --------------------------------------------------------------- */
.section { padding: var(--section-gap) var(--margin-page); }
.section--tight { padding-block: calc(var(--section-gap) * 0.6); }
.section--container { background: var(--surface-container); }
.section--variant { background: var(--surface-variant); }
.section--dark { background: var(--primary-container); color: var(--on-primary); }

.wrap { width: 100%; max-width: var(--content-w); margin-inline: auto; }
.wrap--wide { max-width: var(--max-w); }

.grid { display: grid; gap: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--stack-md); }
.stack-lg { display: flex; flex-direction: column; gap: var(--stack-lg); }
.center { text-align: center; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 18px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary { background: var(--secondary); color: var(--on-secondary); }
.btn--primary:hover { background: var(--on-secondary-container); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--primary); }
.btn--outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline-dark:hover { background: var(--primary); color: var(--on-primary); }
.btn--sm { padding: 14px 24px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover .icon { transform: translateX(4px); }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack-lg);
  padding: 0 var(--margin-page);
  height: var(--header-h);
  background: var(--primary-container);
  border-bottom: 1px solid var(--on-primary-fixed-variant);
  color: var(--on-primary);
  transition: background-color .3s ease, border-color .3s ease;
}
/* Home page: transparent over the hero photography until scrolled. */
.site-header--overlay { background: transparent; border-bottom-color: rgba(207, 197, 188, 0.25); }
.site-header--overlay.is-scrolled { background: var(--primary-container); border-bottom-color: var(--on-primary-fixed-variant); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 26px; height: 26px; color: var(--secondary-container); flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: var(--stack-lg); }
.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav__link:hover { color: var(--secondary-fixed-dim); }
.nav__link[aria-current="page"] { color: var(--secondary-container); border-bottom-color: var(--secondary-container); }
/* The CTA inside the nav list only exists for the collapsed mobile menu. */
.nav > .btn { display: none; }

.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: 0.03em; white-space: nowrap;
}
.header__phone:hover { color: var(--secondary-fixed-dim); }
.header__phone .icon { width: 18px; height: 18px; color: var(--secondary-container); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  padding: 8px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }

@media (max-width: 1099px) {
  .header__phone { display: none; }
}
@media (max-width: 949px) {
  .nav-toggle { display: block; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--primary-container);
    border-bottom: 1px solid var(--on-primary-fixed-variant);
    padding: 8px var(--margin-page) 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid var(--on-primary-fixed-variant);
    font-size: 20px;
  }
  .nav__link[aria-current="page"] { border-bottom-color: var(--secondary-container); }
  .nav > .btn { display: inline-flex; margin-top: 24px; }
}

/* --- Hero (home) ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 660px;
  height: 88vh;
  padding: calc(var(--header-h) + 48px) var(--margin-page) 64px;
  background: var(--primary);
  color: var(--on-primary);
  overflow: hidden;
}
/* Full-bleed: the hero photo is the background of the whole section, edge to
   edge and behind the transparent header. */
.hero__media {
  position: absolute;
  inset: 0;
  background: var(--primary);
  overflow: hidden;
}
.hero__media > picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Two layers: a top band so the white header stays legible over the bright
   right-hand panels, and the left-to-right ramp behind the headline. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 11, 7, 0.88) 0%, rgba(14, 11, 7, 0.55) 90px, rgba(14, 11, 7, 0) 190px),
    linear-gradient(90deg, rgba(14, 11, 7, 0.94) 0%, rgba(14, 11, 7, 0.74) 45%, rgba(14, 11, 7, 0.22) 100%);
}
.hero__inner { position: relative; z-index: 2; width: min(760px, 100%); }
.hero__eyebrow { color: var(--secondary-container); margin-bottom: var(--stack-md); }
.hero__title { margin-bottom: var(--stack-lg); }
.hero__lede { color: var(--surface-variant); max-width: 46ch; margin-bottom: var(--stack-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--stack-md); }

@media (max-width: 767px) {
  .hero { height: auto; min-height: 0; padding-bottom: 56px; }
  /* One panel on phones — three would be too narrow to read. */
  .hero__media { inset: 0; }
  .hero__scrim { background: linear-gradient(180deg, rgba(14, 11, 7, 0.72) 0%, rgba(14, 11, 7, 0.92) 60%); }
}

/* --- Trust bar ------------------------------------------------------------ */
.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--primary-container);
  border-bottom: 1px solid var(--outline);
  color: var(--on-primary);
}
.trustbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
  padding: 32px 20px;
  border-left: 1px solid var(--on-primary-fixed-variant);
}
.trustbar__item:first-child { border-left: 0; }
.trustbar__item .icon { width: 28px; height: 28px; color: var(--secondary-container); }
.trustbar__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-fixed-dim);
}
@media (max-width: 767px) {
  .trustbar { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item:nth-child(odd) { border-left: 0; }
  .trustbar__item:nth-child(n + 3) { border-top: 1px solid var(--on-primary-fixed-variant); }
}

/* --- Chips / badges ------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--stack-md); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--outline);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chip .icon { width: 18px; height: 18px; color: var(--secondary); }
.chip--solid {
  background: var(--surface-tint);
  color: var(--on-primary);
  border-color: var(--surface-tint);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 6px 16px;
}

/* --- Page header (inner pages) -------------------------------------------- */
.page-header {
  padding: calc(var(--header-h) + 72px) var(--margin-page) 72px;
  background: var(--surface-variant);
  border-bottom: 1px solid var(--outline-variant);
}
.page-header__eyebrow { color: var(--secondary); display: block; margin-bottom: var(--stack-md); }
.page-header h1 { margin-bottom: var(--stack-lg); }
.page-header p { color: var(--on-surface-variant); max-width: 62ch; }

/* --- Service rows --------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}
.service__panel {
  grid-column: 1 / span 5;
  grid-row: 1;
  background: var(--surface-container-high);
  border: 1px solid var(--outline);
  padding: 48px;
  z-index: 2;
  margin-right: -96px;
}
.service__media {
  grid-column: 6 / span 7;
  grid-row: 1;
  border: 1px solid var(--outline);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service__media img { width: 100%; height: 100%; object-fit: cover; }

/* Alternating: image left, panel right */
.service--flip .service__panel {
  grid-column: 8 / span 5;
  margin-right: 0;
  margin-left: -96px;
  background: var(--surface-container-lowest);
}
.service--flip .service__media { grid-column: 1 / span 7; }

.service__title { margin: var(--stack-lg) 0 var(--stack-md); color: var(--primary); }
.service__copy { color: var(--on-surface-variant); margin-bottom: var(--stack-lg); }
.service__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--stack-lg); }
.service__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--on-surface-variant); }
.service__list .icon { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; margin-top: 5px; }

@media (max-width: 1023px) {
  .service { grid-template-columns: 1fr; }
  .service__panel,
  .service--flip .service__panel {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: -56px var(--stack-lg) 0;
    padding: 32px;
  }
  .service__media,
  .service--flip .service__media { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 600px) {
  .service__panel, .service--flip .service__panel { margin-inline: 0; margin-top: -32px; }
}

/* --- Cards (service preview on home) -------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--secondary); transform: translateY(-4px); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--outline-variant); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--stack-lg); display: flex; flex-direction: column; gap: var(--stack-md); flex: 1; }
.card__title { color: var(--primary); }
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
}
.card__link .icon { width: 16px; height: 16px; transition: transform .25s ease; }
.card:hover .card__link .icon { transform: translateX(4px); }
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* --- Project gallery ------------------------------------------------------ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--gutter);
  row-gap: 80px;
}
.project { display: flex; flex-direction: column; }
.project--offset { margin-top: 80px; }
.project--offset-lg { margin-top: 120px; }

.project__frame {
  position: relative;
  border: 1px solid var(--on-surface-variant);
  overflow: hidden;
  margin-bottom: var(--stack-md);
}
.project__frame--square { aspect-ratio: 1 / 1; }
.project__frame--wide { aspect-ratio: 4 / 3; }
.project__frame--tall { aspect-ratio: 4 / 5; }
.project__split { display: grid; height: 100%; }
.project__split--cols { grid-template-columns: 1fr 1fr; }
.project__split--rows { grid-template-rows: 1fr 1fr; }
.project__split--cols img + img { border-left: 1px solid var(--on-surface-variant); }
.project__split--rows img + img { border-top: 1px solid var(--on-surface-variant); }
.project__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.15);
  transition: transform .7s ease, filter .4s ease;
}
.project:hover .project__frame img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.project__tag {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
  border-top: 1px solid var(--on-surface-variant);
  border-left: 1px solid var(--on-surface-variant);
  padding: 8px 16px;
}
.project__title { color: var(--primary); margin-bottom: var(--stack-sm); }
.project__copy { color: var(--on-surface-variant); }

.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--stack-sm); }
.thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--on-surface-variant);
  overflow: hidden;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) contrast(1.15);
  transition: transform .7s ease, filter .4s ease;
}
.thumb:hover img { transform: scale(1.06); filter: none; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .project--offset, .project--offset-lg { margin-top: 0; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Contact / form ------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  align-items: start;
}
@media (max-width: 1023px) { .contact-layout { grid-template-columns: 1fr; } }

.form-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--outline);
  padding: 48px;
}
.form-panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: var(--secondary);
}
@media (max-width: 600px) { .form-panel { padding: 32px 24px; } }

.form { display: flex; flex-direction: column; gap: 24px; margin-top: var(--stack-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--stack-sm); }
.field label { color: var(--on-surface); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--outline);
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: inset 0 0 0 1px var(--secondary);
}
.field input::placeholder, .field textarea::placeholder { color: var(--outline-variant); }
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__error { color: var(--error); font-size: 14px; display: none; }
.field--invalid .field__error { display: block; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; cursor: pointer; }
.select-wrap .icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none; color: var(--on-surface-variant);
}

.form__note { color: var(--on-surface-variant); font-size: 14px; line-height: 22px; }
.form__status {
  display: none;
  border: 1px solid var(--secondary);
  border-left-width: 8px;
  background: var(--secondary-fixed);
  color: var(--on-secondary-container);
  padding: 16px 20px;
}
.form__status.is-visible { display: block; }
.form__status a { text-decoration: underline; }
.form__status--error {
  border-color: var(--error);
  background: var(--error-container);
  color: var(--on-error-container);
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn:disabled:hover { background: var(--secondary); }

.info-panel {
  background: var(--primary-container);
  border: 1px solid var(--outline);
  color: var(--on-primary);
  padding: 40px;
}
.info-panel h2 { color: var(--tertiary-fixed); margin-bottom: var(--stack-lg); }
.info-list { display: flex; flex-direction: column; gap: 28px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon { width: 22px; height: 22px; color: var(--secondary-container); flex-shrink: 0; margin-top: 3px; }
.info-list dt { color: var(--surface-variant); margin-bottom: 4px; }
.info-list dd { margin: 0; color: var(--on-primary); }
.info-list a:hover { color: var(--secondary-container); }

.map-frame {
  border: 4px solid var(--primary);
  background: var(--surface-variant);
  line-height: 0;
}
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* --- Social --------------------------------------------------------------- */
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--stack-lg); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--primary);
  padding: 18px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease;
}
.social-link .icon { width: 24px; height: 24px; color: var(--secondary); transition: color .3s ease; }
.social-link:hover { background: var(--primary); color: var(--on-primary); }
.social-link:hover .icon { color: var(--secondary-container); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: var(--primary);
  color: var(--on-primary);
  padding: calc(var(--section-gap) * 0.7) var(--margin-page);
  border-top: 4px solid var(--secondary);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack-lg);
}
.cta-band p { color: var(--primary-fixed-dim); margin-top: var(--stack-md); max-width: 52ch; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--primary-container);
  color: var(--on-primary);
  border-top: 1px solid var(--outline);
  padding: 72px var(--margin-page);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gutter);
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--stack-md); }
.footer__copy { color: var(--on-primary-container); font-size: 15px; }
.footer__heading { color: var(--secondary-container); margin-bottom: var(--stack-md); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--primary-fixed-dim); }
.footer-nav a:hover { color: var(--secondary-container); }
.footer__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  display: block;
  margin-bottom: var(--stack-md);
}
.footer__phone:hover { color: var(--secondary-container); }
.footer__col--contact { display: flex; flex-direction: column; align-items: flex-start; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Sticky call bar (phones/tablets) -------------------------------------
   The header phone number and CTA both collapse into the menu below 949px,
   which leaves a phone visitor with no one-tap way to get in touch. This
   puts both back within thumb reach. */
.mobile-cta { display: none; }

@media (max-width: 949px) {
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px solid var(--secondary);
  }
  .mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 14px 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
  }
  .mobile-cta__btn--call { background: var(--primary-container); color: var(--on-primary); }
  .mobile-cta__btn--call .icon { width: 18px; height: 18px; color: var(--secondary-container); }
  .mobile-cta__btn--quote { background: var(--secondary); color: var(--on-secondary); }
  .mobile-cta__btn:active { filter: brightness(1.25); }

  /* Keep the sticky bar from covering the end of the page.
     58px button + 2px top border = 60px. */
  body { padding-bottom: 60px; }
  .nav { padding-bottom: 84px; }
}

/* Inline links people actually tap on a phone need a real hit area. */
@media (max-width: 949px) {
  .card__link,
  .info-list dd a,
  .form__note a,
  .form__status a {
    display: inline-block;
    padding-block: 10px;
  }
}

/* Full-width stacked actions are easier to hit than side-by-side ones. */
@media (max-width: 600px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  /* Long body copy is hard to read centred on a narrow screen. */
  .center .measure { text-align: left; }
}

/* --- Motion --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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