/* ============ LAYOUT PRIMITIVES ============ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}
.section--offset {
  background: var(--color-surface-offset);
}
.section--steel {
  background: var(--color-steel);
  color: #e8eaeb;
}
.section--steel .eyebrow {
  color: #a9b1b6;
}
.section--steel .lede,
.section--steel p {
  color: #b9c0c4;
}

/* ============ TYPE ============ */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow--muted {
  color: var(--color-text-muted);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.h-hero {
  font-size: clamp(2.375rem, 1.1rem + 3.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  line-height: 1;
}
.h-page {
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.02;
}
.h-section {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.012em;
}
.h-card {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 46ch;
}
/* Headings sit tight to their own baseline, so give the paragraph that
   follows some real breathing room. */
h1 + .lede,
h2 + .lede,
.h-hero + .lede,
.h-page + .lede {
  margin-top: var(--space-5);
}
.body-stack > * + * {
  margin-top: var(--space-4);
}
.body-stack h3 {
  margin-top: var(--space-10);
}
.body-stack ul {
  padding-left: var(--space-5);
  color: var(--color-text-muted);
}
.body-stack li + li {
  margin-top: var(--space-2);
}
.muted {
  color: var(--color-text-muted);
}
.small {
  font-size: var(--text-sm);
}
.xs {
  font-size: var(--text-xs);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 46px;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
[data-theme='dark'] .btn--primary {
  color: #14171a;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn--outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}
.btn--ghost-light {
  border-color: rgb(255 255 255 / 0.4);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: #fff;
}
.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  min-height: 54px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============ HEADER ============ */
.topbar {
  background: var(--color-steel);
  color: #cfd5d8;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}
.topbar a:hover {
  color: var(--color-primary);
}
[data-theme='dark'] .topbar a:hover {
  color: var(--color-primary-hover);
}
.topbar__note {
  color: #9aa2a7;
}
/* On phones the note wrapped to two lines and pushed the hero down.
   The insurance + phone line is the one that earns its space. */
@media (max-width: 700px) {
  .topbar__note {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo__img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.logo__img--dark {
  display: none;
}
[data-theme='dark'] .logo__img--light {
  display: none;
}
[data-theme='dark'] .logo__img--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo__img--light {
    display: none;
  }
  :root:not([data-theme]) .logo__img--dark {
    display: block;
  }
}
@media (max-width: 1024px) {
  .logo__img {
    height: 46px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 700;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.nav-toggle,
.call-mobile {
  display: none;
}
.call-mobile {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
[data-theme='dark'] .call-mobile {
  color: #14171a;
}
.call-mobile:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

@media (max-width: 1040px) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg);
    padding: var(--space-4) var(--space-6) var(--space-8);
    gap: var(--space-1);
    border-bottom: 1px solid var(--color-divider);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
    box-shadow: var(--shadow-lg);
    visibility: hidden;
  }
  .nav[data-open='true'] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
  }
  .nav-toggle {
    display: grid;
    margin-left: auto;
  }
  .header__actions .btn--quote {
    display: none;
  }
  .call-mobile {
    display: grid;
  }
  .header__inner {
    gap: var(--space-3);
  }
  .header__actions {
    margin-left: auto;
  }
  .nav-toggle {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .logo__img {
    height: 40px;
  }
  .logo {
    gap: var(--space-2);
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }
  .header__actions {
    gap: 6px;
  }
}


/* ============ LANDING DOORS ============ */
.gateway {
  padding-top: clamp(var(--space-12), 7vw, var(--space-20));
  padding-bottom: clamp(var(--space-12), 7vw, var(--space-20));
  background: var(--color-bg);
}
.gateway__head {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.gateway__head > * {
  max-width: 46rem;
}
.gateway .hero__accent {
  color: var(--color-primary);
}
.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-6), 2.5vw, var(--space-8));
}
@media (max-width: 900px) {
  .doors {
    grid-template-columns: 1fr;
  }
}
.door {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 200ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease;
}
.door:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.door__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-2);
}
.door__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.door:hover .door__media img {
  transform: scale(1.03);
}
.door__body {
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}
.door__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.door__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.625rem, 3.1vw, 2.125rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--color-text);
}
.door__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.door__list {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  margin-top: auto;
}
.door__list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.door__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--color-primary);
}
.door__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.btn--on-steel {
  background: #fff;
  color: #14171a;
  border-color: #fff;
}
.btn--on-steel:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (max-width: 380px) {
  .logo {
    flex-shrink: 1;
    min-width: 0;
  }
  .logo__img {
    height: 36px;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(84vh, 720px);
  display: flex;
  align-items: flex-end;
  background: var(--color-steel);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  z-index: -1;
}
.hero__inner {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  color: #fff;
  width: 100%;
}
.hero__content {
  max-width: 46rem;
}
.hero .h-hero {
  color: #fff;
}
.hero__accent {
  color: var(--color-primary-bright);
}
.hero__lede {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: #d6dbde;
  margin-top: var(--space-5);
  max-width: 40ch;
  text-shadow: 0 1px 12px rgb(9 11 13 / 0.5);
}
.hero .btn-row {
  margin-top: var(--space-8);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
}
[data-theme='dark'] .hero__eyebrow {
  color: #14171a;
}

/* trust strip under hero */
.trust {
  background: var(--color-steel-2);
  color: #dfe3e5;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgb(255 255 255 / 0.08);
}
.trust__item {
  background: var(--color-steel-2);
  padding: var(--space-6) var(--space-5);
}
.trust__val {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.trust__label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #949ca1;
  margin-top: var(--space-2);
}
.stars {
  color: #f0b429;
  letter-spacing: 0.06em;
  font-size: 0.9em;
}
@media (max-width: 860px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ GRIDS ============ */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) {
  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 980px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .grid--5 {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.split--wide-left {
  grid-template-columns: 1.15fr 0.85fr;
}
.split--wide-right {
  grid-template-columns: 0.85fr 1.15fr;
}
@media (max-width: 900px) {
  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
  }
  .split__media--first {
    order: -1;
  }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ============ CARDS ============ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.card__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}
.card__icon {
  color: var(--color-primary);
}
.card--link {
  text-decoration: none;
  color: inherit;
}
.card--link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__more {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
}

/* service cards with image */
.svc {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.svc:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.svc img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.svc__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.svc__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ============ STEPS ============ */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(4, 1fr);
}
.step {
  border-top: 3px solid var(--color-primary);
  padding-top: var(--space-5);
}
.step__n {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.step h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.section--steel .step p {
  color: #a9b1b6;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ============ REVIEWS ============ */
.review {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.review blockquote {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.review cite {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 700;
}
.review .xs {
  color: var(--color-text-muted);
}

/* ============ AREA LIST ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
}
.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.section--steel .chip {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.2);
  color: #e8eaeb;
}
.section--steel .chip:hover {
  border-color: #fff;
  color: #fff;
}

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--color-divider);
}
.faq details {
  border-bottom: 1px solid var(--color-divider);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) 0;
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary);
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: '\2013';
}
.faq details > p {
  color: var(--color-text-muted);
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
}

/* ============ QUOTE FORM ============ */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 700;
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  min-height: 48px;
  width: 100%;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
  outline: none;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (max-width: 620px) {
  .radio-grid {
    grid-template-columns: 1fr;
  }
}
.radio-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--color-bg);
}
.radio-tile input {
  width: auto;
  min-height: 0;
  accent-color: var(--color-primary);
  margin: 0;
  flex-shrink: 0;
}
.radio-tile:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
[data-theme='dark'] .radio-tile:has(input:checked) {
  background: var(--color-primary-highlight);
}
.form-status {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-success-highlight);
  border: 1px solid var(--color-success);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.form-status[hidden] {
  display: none;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--color-primary);
  color: #fff;
}
[data-theme='dark'] .cta-band {
  background: var(--color-primary);
  color: #14171a;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-10);
  padding-block: clamp(var(--space-10), 5vw, var(--space-14));
}
@media (max-width: 880px) {
  .cta-band__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.cta-band h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 26ch;
}
.cta-band p {
  margin-top: var(--space-3);
  color: rgb(255 255 255 / 0.85);
  font-size: var(--text-sm);
  max-width: 40ch;
}
[data-theme='dark'] .cta-band .btn--ghost-light {
  color: #14171a;
  border-color: rgb(20 23 26 / 0.5);
}
[data-theme='dark'] .cta-band .btn--ghost-light:hover {
  background: #14171a;
  border-color: #14171a;
  color: #fff;
}
[data-theme='dark'] .cta-band p {
  color: rgb(20 23 26 / 0.8);
}
.btn--on-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn--on-primary:hover {
  background: #14171a;
  border-color: #14171a;
  color: #fff;
}
[data-theme='dark'] .btn--on-primary {
  background: #14171a;
  color: #fff;
  border-color: #14171a;
}
[data-theme='dark'] .btn--on-primary:hover {
  background: #fff;
  color: #14171a;
  border-color: #fff;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-steel);
  color: #b9c0c4;
  font-size: var(--text-sm);
  padding-block: var(--space-16) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer a {
  text-decoration: none;
  color: #b9c0c4;
}
.footer a:hover {
  color: #fff;
}
.footer__logo {
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer__logo img {
  height: 62px;
  width: auto;
  display: block;
  margin-bottom: var(--space-5);
}
.footer p {
  color: #9aa2a7;
  max-width: 34ch;
}
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer .social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  color: #d5dadd;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.footer .social svg {
  flex: none;
}
.footer .social:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.06);
}
.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: #8d959a;
}

/* ============ BREADCRUMB ============ */
.crumbs {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-6);
  letter-spacing: 0.04em;
}
.crumbs a {
  text-decoration: none;
  color: var(--color-text-muted);
}
.crumbs a:hover {
  color: var(--color-primary);
}

/* ============ PAGE HEAD ============ */
.page-head {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16))
    clamp(var(--space-8), 4vw, var(--space-12));
  border-bottom: 1px solid var(--color-divider);
}
.page-head .lede {
  margin-top: var(--space-5);
  max-width: 54ch;
}

/* ============ FULL BLEED IMAGE ============ */
/* Full-bleed band image. The height tracks the viewport so the box stays
   close to the source photo's own proportions instead of slicing a thin
   strip out of the middle of it. */
.bleed {
  width: 100%;
  height: clamp(200px, 36vw, 560px);
  object-fit: cover;
}

/* ============ SPEC TABLE ============ */
.spec {
  font-size: var(--text-sm);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.spec th,
.spec td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}
.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: none;
}
.spec th {
  font-weight: 700;
  width: 38%;
  background: var(--color-surface-2);
}
.spec td {
  color: var(--color-text-muted);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ UTIL ============ */
.stack-8 > * + * {
  margin-top: var(--space-8);
}
.stack-6 > * + * {
  margin-top: var(--space-6);
}
.stack-4 > * + * {
  margin-top: var(--space-4);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mt-10 {
  margin-top: var(--space-10);
}
.mt-12 {
  margin-top: var(--space-12);
}
.center {
  text-align: center;
}
.center .lede,
.center p {
  margin-inline: auto;
}
.max-46 {
  max-width: 46ch;
}
.nowrap {
  white-space: nowrap;
}

/* ============ PROJECT GALLERY ============ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 980px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .proj-grid { grid-template-columns: 1fr; }
}
.proj {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.proj img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid var(--color-divider);
}
.proj figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.proj figcaption strong {
  display: block;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.proj--portrait img {
  aspect-ratio: 3 / 4;
}

/* project captions on the dark steel section */
.section--steel .proj figcaption {
  color: #b9c0c4;
}
.section--steel .proj figcaption strong {
  color: #fff;
}
.section--steel .proj img {
  border-color: rgb(255 255 255 / 0.14);
}

/* Service-area town cards: 5 across needs tighter type so nothing wraps */
.grid--5 .h-card {
  font-size: 1.0625rem;
  line-height: 1.25;
}
.grid--5 .card__more {
  font-size: 0.875rem;
}
@media (max-width: 1100px) {
  .grid--5 .h-card { font-size: 1.125rem; }
}
@media (max-width: 520px) {
  .grid--5 .h-card { font-size: 1.25rem; }
}

/* ============ REVIEW ASK ============ */
.review-ask {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: var(--space-8);
  align-items: center;
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 14px);
  background: var(--color-surface);
}
.review-ask p:last-of-type {
  max-width: 62ch;
}
@media (max-width: 860px) {
  .review-ask {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Utilities added for the quote form, thank-you and 404 pages ---------- */

/* Honeypot: a field only a spambot will fill in. Must stay in the DOM and stay
   reachable to bots, so it is moved off-screen rather than display:none. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Intro paragraph one step larger than body copy. */
.lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 60ch;
}
.lead:not(.muted) {
  color: var(--color-text);
}

/* Was referenced by several pages but never defined. */
.mt-4 {
  margin-top: var(--space-4);
}

/* Plain vertical link list used on the 404 page. */
.link-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}
.link-list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
}
.link-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.link-list a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-list a:hover,
.link-list a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Submitting state for the quote form. */
#quote-form button[type='submit'][data-sending] {
  opacity: 0.72;
  pointer-events: none;
}
