/* Site layout + component styles */

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text) !important;
  text-decoration: none;
  border-bottom: none !important;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.brand:hover {
  border-bottom: none;
  color: var(--color-text) !important;
}

.brand-mark {
  display: block;
  height: 76px;
  width: auto;
  max-width: 320px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Screen-reader-only utility for SEO/a11y-visible business name */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smaller logo on tight viewports so it fits next to the hamburger */
@media (max-width: 480px) {
  .brand-mark {
    height: 56px;
    max-width: 210px;
  }
}

.site-footer .brand { color: #ffffff !important; }

/* On the dark footer, wrap the full logo in a subtle light background so the black outlines stay visible */
.site-footer .brand-mark {
  background: #fdfbf7;
  padding: 6px 10px;
  border-radius: 8px;
  height: 60px;
  width: auto;
  max-width: 260px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-sm);
}

.nav a {
  color: var(--color-text);
  border-bottom: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-primary);
  border-bottom: none;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background var(--transition-interactive);
}

.nav__cta:hover {
  background: var(--color-primary-hover);
}

.nav__toggle {
  display: none;
  color: var(--color-text);
  padding: var(--space-2);
}

/* --- Dropdown menus (Commercial / Residential) --- */
.nav__group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__group-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.nav__group-trigger:hover,
.nav__group-trigger[aria-expanded="true"] {
  color: var(--color-primary);
}

.nav__group-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  transition: transform var(--transition-interactive);
}

.nav__group-trigger[aria-expanded="true"] .nav__group-chevron {
  transform: rotate(180deg);
}

.nav__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: var(--space-3) 0;
  display: none;
  z-index: 40;
}

.nav__group.is-open .nav__panel {
  display: block;
}

.nav__panel a {
  display: block;
  padding: var(--space-2) var(--space-5);
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--text-sm);
  border-bottom: none;
}

.nav__panel a:hover {
  color: var(--color-primary);
  background: var(--color-background);
}

.nav__panel-hub {
  border-bottom: 1px solid var(--color-divider) !important;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3) !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    padding: var(--space-4);
    gap: 0;
    border-bottom: 1px solid var(--color-divider);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-divider) !important;
  }
  .nav__cta {
    margin-top: var(--space-3);
    justify-content: center;
    border-bottom: none !important;
  }
  .nav__toggle {
    display: inline-flex;
  }
  /* Mobile dropdown behavior: collapsed by default, tap trigger to expand */
  .nav__group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav__group-trigger {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    justify-content: space-between;
    width: 100%;
  }
  .nav__panel {
    position: static;
    display: none;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }
  .nav__group.is-open .nav__panel {
    display: block;
  }
  .nav__panel a {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-divider) !important;
  }
  .nav__panel-hub {
    color: var(--color-primary) !important;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #1a1a1a;
}

/* Graphic hero variant: bubbles-on-red background, no photo scrim needed */
.hero.hero--graphic {
  align-items: center;
  background: var(--color-primary);
  min-height: 70vh;
}

.hero.hero--graphic .hero__image img {
  object-position: left center;
}

.hero.hero--graphic .hero__inner {
  padding-block: var(--space-16) var(--space-14);
  max-width: 620px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.hero.hero--graphic .hero__eyebrow {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-active);
  font-weight: 600;
}

.hero.hero--graphic .hero__title {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(60, 5, 5, 0.75), 0 1px 3px rgba(60, 5, 5, 0.6);
}

/* Legacy logo mark: desktop only, positioned near the top of the hero on the right third, under the header. Leaves vertical room below for a future photo. */
.hero__legacy-logo {
  position: absolute;
  top: var(--space-8);
  left: 50%;
  transform: translateX(calc(468px - 50%));
  width: 34%;
  max-width: 480px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 24px rgba(40, 5, 5, 0.35));
}

@media (max-width: 1400px) {
  .hero__legacy-logo {
    /* On narrower screens, use container-relative positioning */
    left: auto;
    right: var(--space-8);
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero__legacy-logo {
    display: none;
  }
}

.hero.hero--graphic .hero__lede {
  color: #fdf2f2;
}

/* Hero services chip list — modernized version of the print-card bullet list */
.hero__services {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  max-width: 60ch;
}

.hero__services li {
  display: inline-flex;
}

.hero__services a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #ffffff;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.hero__services a:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.hero__services a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hero__tagline {
  margin: var(--space-6) 0 0;
  font-family: 'Caveat', var(--font-display);
  font-size: calc(var(--text-3xl) * 1.05);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(80, 10, 10, 0.35);
  display: inline-block;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero.hero--graphic .hero__meta {
  color: #f4d4d4;
  border-top-color: rgba(255, 255, 255, 0.25);
}

.hero.hero--graphic .hero__meta strong {
  color: #ffffff;
}

.hero.hero--graphic .btn--primary {
  background: #ffffff;
  color: var(--color-primary-active);
  border-color: #ffffff;
}

.hero.hero--graphic .btn--primary:hover {
  background: #fdf2f2;
  border-color: #fdf2f2;
  color: var(--color-primary-active);
}

.hero.hero--graphic .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero.hero--graphic .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 12, 0.25) 0%,
    rgba(20, 15, 12, 0.55) 45%,
    rgba(20, 15, 12, 0.92) 100%
  );
}

.hero__inner {
  padding-block: var(--space-20) var(--space-16);
  color: #f7f4ef;
  max-width: 900px;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7f4ef;
  background: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero__lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: #efeae2;
  max-width: 62ch;
}

.hero__ctas {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  font-size: var(--text-sm);
  color: #d4ccbe;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__meta strong {
  color: #ffffff;
  font-weight: 600;
  display: block;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

/* --- Hero: stacked layout on mobile portrait ---
 * Landscape/desktop keeps the full-bleed background photo.
 * At ≤ 720px the photo sits above the text at its natural aspect ratio
 * so nothing is cropped, and the text moves onto a solid cream panel.
 */
@media (max-width: 720px) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--color-surface);
    isolation: auto;
  }

  .hero__image {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
  }

  .hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero__scrim {
    display: none;
  }

  .hero__inner {
    padding-block: var(--space-10) var(--space-12);
    color: var(--color-text);
    max-width: none;
  }

  .hero__eyebrow {
    /* Red badge on cream background stays as-is */
    margin-bottom: var(--space-5);
  }

  .hero__title {
    color: var(--color-text);
    font-size: var(--text-2xl);
  }

  .hero__lede {
    color: var(--color-text-muted);
    font-size: var(--text-base);
  }

  .hero__meta {
    color: var(--color-text-muted);
    border-top-color: var(--color-divider);
  }

  .hero__meta strong {
    color: var(--color-text);
  }

  /* Graphic hero on mobile: two zones. Top ~55vh holds bubbles + eyebrow + title.
     Below that a flat solid red field holds chips, tagline, and CTAs so the eye
     has a calm reading surface. */
  .hero.hero--graphic {
    display: block;
    min-height: auto;
    background: var(--color-primary);
    isolation: isolate;
  }

  /* Bubble graphic sits ONLY behind the top zone, not full-bleed */
  .hero.hero--graphic .hero__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55vh;
    z-index: -2;
    aspect-ratio: auto;
    width: auto;
    background: transparent;
  }

  .hero.hero--graphic .hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
  }

  /* Soft fade at the bottom of the bubble zone into the flat red field below */
  .hero.hero--graphic::after {
    content: "";
    position: absolute;
    top: 40vh;
    left: 0;
    right: 0;
    height: 15vh;
    z-index: -1;
    background: linear-gradient(180deg, rgba(181, 42, 42, 0) 0%, rgba(181, 42, 42, 0.85) 70%, var(--color-primary) 100%);
    pointer-events: none;
  }

  .hero.hero--graphic .hero__inner {
    padding-block: var(--space-8) var(--space-12);
    color: #ffffff;
    max-width: none;
  }

  .hero.hero--graphic .hero__title {
    color: #ffffff;
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.01em;
    /* Stronger stack so white lettering reads solid on top of bubble highlights */
    text-shadow: 0 2px 12px rgba(60, 5, 5, 0.75), 0 1px 3px rgba(60, 5, 5, 0.6);
    /* Space between title (in bubble zone) and chips (below in flat zone) */
    margin-bottom: var(--space-8);
  }

  .hero.hero--graphic .hero__lede {
    color: #fdf2f2;
    font-size: var(--text-base);
  }

  /* Chips sit on the flat red field: solid darker red, no border, high contrast */
  .hero__services {
    margin-top: var(--space-2);
  }

  .hero__services a {
    background: rgba(90, 15, 15, 0.75);
    border: 0;
    padding: 0.625rem var(--space-4);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }

  .hero__tagline {
    text-shadow: none;
    color: #ffffff;
    font-size: calc(var(--text-2xl) * 1.15);
  }

  .hero.hero--graphic .hero__meta {
    color: #f4d4d4;
    border-top-color: rgba(255, 255, 255, 0.25);
  }

  .hero.hero--graphic .hero__meta strong {
    color: #ffffff;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  border-bottom: none !important;
  transition: transform var(--transition-interactive), background var(--transition-interactive);
}

.btn:hover {
  transform: translateY(-1px);
  border-bottom: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text);
}

/* --- Sections --- */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--offset {
  background: var(--color-surface-offset);
}

/* For sections that hold a single compact row of content (like a stats
   band) and don't need the full 8vw vertical rhythm of a normal section. */
.section--tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
}

.section--dark {
  background: #3d332c;
  color: #f7f1e6;
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 500;
  max-width: 22ch;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.subpage-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-top: var(--space-7);
  box-shadow: var(--shadow-lg);
}
.subpage-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section__lede {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.section--dark .section__lede {
  color: #d4ccbe;
}

/* --- Service card grid --- */
.services {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

a.service-card, a.insight-card { text-decoration: none; color: inherit; }

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.service-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__image img {
  transform: scale(1.04);
}

.service-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.service-card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: 500;
}

.service-card__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.service-card__more {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
}

/* --- Two column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.two-col__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Compact About block on homepage: eyebrow + headline, then proof stats, then link */
.about-compact {
  max-width: 820px;
  margin: 0 0 var(--space-10);
}

.about-compact__link {
  margin-top: var(--space-8);
}

.two-col__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* --- Heritage banner (About page) --- */
.heritage-banner {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  margin-top: var(--space-12);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  overflow: hidden;
  position: relative;
}

.heritage-banner__logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(40, 5, 5, 0.35));
}

.heritage-banner__slogan {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(60, 5, 5, 0.5);
  letter-spacing: -0.01em;
}

@media (max-width: 600px) {
  .heritage-banner {
    padding: var(--space-8) var(--space-6);
  }
}

/* --- Proof strip --- */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}

.proof__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: var(--space-2);
  overflow-wrap: break-word;
  word-break: normal;
}

.proof__item span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* --- Coverage grid --- */
.coverage {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
}

.coverage a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-interactive);
}

.coverage a:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  transform: translateY(-1px);
}

.coverage a::after {
  content: '→';
  margin-left: auto;
  opacity: 0.5;
  transition: transform var(--transition-interactive);
}

.coverage a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

/* Coverage chip with no dedicated town page yet. Same shape as the
   linked chips so the grid stays even, muted so a visitor's eye can
   tell the linked chips are the clickable ones. */
.coverage span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* --- CTA banner --- */
.cta-band {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-16);
}

@media (max-width: 720px) {
  .cta-band__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.cta-band h2 {
  font-size: var(--text-2xl);
  color: #ffffff;
  max-width: 20ch;
}

.cta-band p {
  margin-top: var(--space-4);
  color: #f7d5d5;
  max-width: 55ch;
}

.cta-band .btn--primary {
  background: #ffffff;
  color: var(--color-primary);
}

.cta-band .btn--primary:hover {
  background: #ffffff;
  color: var(--color-primary-hover);
}

/* --- Footer --- */
.site-footer {
  background: #14100d;
  color: #d4ccbe;
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.site-footer a {
  color: #d4ccbe;
  border-bottom: none;
}

.site-footer a:hover {
  color: #ffffff;
  border-bottom: none;
}

.site-footer__brand p {
  font-size: var(--text-sm);
  color: #a49f96;
  margin-top: var(--space-4);
  max-width: 40ch;
}

.site-footer__brand .brand {
  color: #ffffff;
}

.site-footer__brand .brand-text small {
  color: #a49f96;
}

.site-footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid #2b2520;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #7c756a;
}

/* --- Insights preview --- */
.insights-grid {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.insight-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-interactive);
}

.insight-card:hover {
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.insight-card__meta {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.insight-card__title,
.section--dark .insight-card__title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}

.insight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.insight-card__more {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
}

.insight-card__soon {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.chip-soon {
  align-self: flex-start;
  display: inline-block;
  width: auto;
  margin-bottom: var(--space-3);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section--dark .chip-soon {
  background: #ffffff;
  color: var(--color-primary);
}

/* Footer socials */
.site-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: var(--space-4);
}
.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}
.site-footer__socials a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.site-footer__socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-interactive);
}
.testimonial-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.testimonial-card__stars {
  color: var(--color-primary);
  font-size: 16px;
  letter-spacing: 3px;
}
.testimonial-card__quote {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.testimonial-card__attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: auto;
}
.testimonial-card__attr strong {
  color: var(--color-text);
  font-weight: 600;
}
.testimonial-source {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
}

/* Rolodex testimonial carousel */
.rolodex {
  position: relative;
  margin-top: var(--space-8);
}
.rolodex__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  contain: paint;
  max-width: 100%;
}
.rolodex__track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: pan-y;
}
.rolodex__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 2px;
  box-sizing: border-box;
}
.rolodex__slide-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 780px;
  margin: 0 auto;
}
.rolodex__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.rolodex__dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}
.rolodex__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 200ms ease;
}
.rolodex__dot:hover {
  border-color: var(--color-primary);
}
.rolodex__dot--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.15);
}
.rolodex__arrows {
  display: flex;
  gap: var(--space-3);
}
.rolodex__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}
.rolodex__arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.rolodex__arrow:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.rolodex__status {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 80px;
  text-align: center;
}

/* Base .rolodex__controls-row: keep arrows and the counter on one line
   at every viewport. Mobile inherits its parent's flex/wrap behavior
   from .rolodex__controls above. */
.rolodex__controls-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Desktop: stack the reviews controls so the dot pager sits on its
   own centered row above the arrows + counter row, instead of all
   three sitting on one horizontal row (which felt uneven with 12
   dots stretching across the width). */
@media (min-width: 861px) {
  .rolodex__controls {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  .rolodex__dots {
    justify-content: center;
  }
  .rolodex__controls-row {
    justify-content: center;
    gap: var(--space-5);
  }
}

/* ============================================================
   Floating "Request an Estimate" CTA
   Always-visible primary action anchored to the viewport corner.
   Hidden on the contact page itself.
   ============================================================ */
/* ============================================================
   Pinned phone number pill — DESKTOP ONLY.
   Sits bottom-left, always visible while scrolling. Reads as a
   phone number (not a button) but is clickable for laptop tel: users.
   Hidden on mobile (Call button already lives there) and hidden
   on the contact/application page.
   ============================================================ */
.floating-phone {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--color-bg);
  color: var(--color-text) !important;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  text-decoration: none !important;
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.12)) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.floating-phone:hover,
.floating-phone:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
  color: var(--color-text) !important;
}

.floating-phone__icon {
  color: var(--color-primary);
  flex: 0 0 auto;
}

.floating-phone__label {
  color: var(--color-text-muted, #6b6b6b);
  font-size: 0.85em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.floating-phone__number {
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* Hide on the contact/application page */
body.page--contact .floating-phone {
  display: none;
}

/* Hide on mobile — the two-button pinned CTA bar covers this need */
@media (max-width: 640px) {
  .floating-phone {
    display: none;
  }
}

/* Container that pins to the viewport; holds both Call + Estimate buttons */
.floating-ctas {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: 24px;
  z-index: 60;
  display: inline-flex;
  gap: var(--space-2);
  align-items: stretch;
}

.floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.floating-cta:hover,
.floating-cta:focus-visible {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(0, 0, 0, 0.16);
  color: var(--color-text-inverse) !important;
  border-bottom: none !important;
}

.floating-cta__arrow {
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(-1px);
}

.floating-cta__icon {
  flex: 0 0 auto;
}

/* Hide on the contact/application page (redundant when already on the form) */
body.page--contact .floating-ctas {
  display: none;
}

/* Mobile: two pinned buttons sit side-by-side across the full width.
   Call button = half width, Estimate button = half width. */
@media (max-width: 640px) {
  .floating-ctas {
    right: 16px;
    left: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .floating-cta {
    flex: 1 1 0;
    padding: 15px 12px;
    border-radius: 14px;
    font-size: var(--text-base);
  }
  .floating-cta--call {
    flex: 0 0 44%;
  }
  .floating-cta--estimate {
    flex: 1 1 auto;
  }
}

/* Give the page enough bottom padding so the floating CTA never covers footer legal text on mobile */
@media (max-width: 640px) {
  .site-footer {
    padding-bottom: calc(var(--space-8) + 70px);
  }
}

/* Mobile: hide the hero's "Request an Estimate" button because the pinned floating CTA already serves that need at the bottom of the viewport. Keep the phone button visible. */
@media (max-width: 640px) {
  .hero__ctas .btn--primary {
    display: none;
  }
}

/* Mobile header phone icon — hidden on desktop, shown next to hamburger on mobile.
   Sits between the brand and the hamburger visually because both are pushed to
   the right of the flex row via space-between. We keep it icon-only so it does
   not compete with the brand logo. */
.header-call {
  display: none;
  color: var(--color-primary);
  padding: var(--space-2);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.header-call:hover,
.header-call:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  outline: none;
}
.header-call:focus-visible {
  box-shadow: 0 0 0 3px rgba(181, 42, 42, 0.35);
}
.header-call svg {
  display: block;
}

@media (max-width: 860px) {
  .header-call {
    display: inline-flex;
    margin-left: auto; /* Push both the phone button and hamburger to the right of the brand */
  }
  /* Give the hamburger a small gap from the phone button */
  .header-call + .nav__toggle {
    margin-left: var(--space-2);
  }
}
