/* 
================================================================================
  CHANCE LEIGH CUSTOM HOMES — GLOBAL STYLE SYSTEM
  Built Strictly Following Kevin Geary's 5S Framework & Texas Hill Country Craft
  
  [1] SYSTEMS: Global CSS Custom Properties (Colors, Typography, Spacing Scale)
  [2] STRUCTURE: Flat Visual-Builder Grid and Flex Layout Utilities
  [3] SELECTORS: Strict BEM Class Styling Blocks (No IDs, low specificity)
  [4] STATE: Defined Hover, Active, and Focus States for Web Accessibility
================================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* =============================================================================
   1. SYSTEMS (Global Token System)
   ============================================================================= */
:root {
  /* --- Colors (Texas Hill Country Craft Palette) --- */
  --color-linen: #FAF8F5;          /* Warm linen page background base */
  --color-warm-ivory: #F3ECE3;     /* Muted contrast base for alternative sections */
  --color-weathered-iron: #22211F; /* Deep charcoal for headlines & structure */
  --color-smoked-wood: #5A5854;    /* Warm mid-tone gray for body and descriptions */
  --color-cedar-tan: #B67A4F;      /* Texas Cedar Accent — decorative, large text, borders only (3.27:1 on linen) */
  --color-cedar-dark: #93603B;     /* Texas Cedar Dark — normal-weight small text on linen (5.4:1; WCAG AA) */
  --color-border: rgba(34, 33, 31, 0.12); /* Fine structural layout lines */
  --color-border-focus: rgba(182, 122, 79, 0.6); /* Accessible state signal */

  /* --- Typography Families --- */
  --font-serif: 'Domine', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* --- Fluid Spacing Scale (Relational Math Scale) --- */
  --space-xxs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-xs: clamp(0.75rem, 0.68rem + 0.36vw, 1.125rem);
  --space-s: clamp(1rem, 0.9rem + 0.48vw, 1.5rem);
  --space-m: clamp(1.5rem, 1.35rem + 0.72vw, 2.25rem);
  --space-l: clamp(2rem, 1.8rem + 0.96vw, 3rem);
  --space-xl: clamp(3rem, 2.7rem + 1.44vw, 4.5rem);
  --space-xxl: clamp(4rem, 3.4rem + 2.88vw, 7rem);
  --space-section: clamp(6rem, 5.2rem + 3.84vw, 10rem); /* Whitespace as structure */

  /* --- Border Radius --- */
  --radius-none: 0px; /* Zero rounded corners for structural, architectural weight */
  --radius-btn: 0px;  /* Client controllable button radius */

  /* --- Spacing Multiplier --- */
  --space-base: 1rem; /* Base multiplier for relative units */

  /* --- System Transitions --- */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================================
   2. GLOBAL BASE & RESET (Structure & Accessibility Defaults)
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-linen);
  color: var(--color-smoked-wood);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Defaults */
h1, h2, h3, h4 {
  color: var(--color-weathered-iron);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.7vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.75vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.75vw, 1.8rem);
}

p {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Skip Navigation Link (Accessibility — WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--color-weathered-iron);
  color: var(--color-linen);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus {
  left: 4px;
  outline: 2px solid var(--color-cedar-tan);
  outline-offset: 2px;
}

/* Universal Keyboard Focus Outline (5S state compliance) */
:focus-visible {
  outline: 2px solid var(--color-cedar-tan);
  outline-offset: 4px;
}

/* Motion Safety (WCAG 2.3.3 — F-08) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .project-study__image-wrapper:hover .project-study__img,
  .plan-card:hover .plan-card__img,
  .plan-card:hover,
  .btn:hover,
  .collection-card:hover,
  .testimonial-card--wall:hover,
  .bulletin-card:hover {
    transform: none !important;
  }
}

/* =============================================================================
   3. STRUCTURE: Structural Layout Classes
   ============================================================================= */
.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--alt {
  background-color: var(--color-warm-ivory);
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-m);
  width: 100%;
}

.grid {
  display: grid;
  gap: var(--space-l);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--6 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Alignment utilities */
.text-center {
  text-align: center;
}

/* Spacing and lines */
.border-top {
  border-top: 1px solid var(--color-border);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

/* =============================================================================
   4. SELECTORS (Modular BEM Styling Blocks)
   ============================================================================= */

/* --- Component: Navigation Header --- */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* backdrop-filter is on ::before so it doesn't create a fixed-position
     containing block that would trap the mobile drawer inside the header */
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

/* Pseudo-element carries the glassmorphism blur without trapping
   position:fixed children (which backdrop-filter on a real element does) */
.header-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.header-nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 0.8rem + 1vw, 2.5rem);
  height: clamp(4.5rem, 3.8rem + 3.2vw, 6rem);
  position: relative; /* sit above ::before pseudo-element */
  z-index: 1;
}

.header-nav__logo {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1rem + 0.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-weathered-iron);
  flex-shrink: 0;
}

.header-nav__logo-accent {
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 0.55rem + 0.1vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cedar-dark);
  display: block;
  margin-top: -0.2rem;
}

.header-nav__menu {
  display: none;
  list-style: none;
  gap: clamp(0.6rem, 0.4rem + 0.6vw, 1.5rem); /* Dynamic gap to compress menu */
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.header-nav__link {
  font-size: clamp(0.72rem, 0.65rem + 0.15vw, 0.825rem); /* Dynamic font sizing */
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-smoked-wood);
  position: relative;
  white-space: nowrap; /* Prevent ugly wrapping to 2 lines */
}

.header-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-cedar-tan);
  transition: var(--transition-smooth);
}

.header-nav__link:hover,
.header-nav__link:focus-visible {
  color: var(--color-weathered-iron);
}

.header-nav__link:hover::after,
.header-nav__link:focus-visible::after {
  width: 100%;
}

/* --- Component: Navigation Dropdown --- */
.header-nav__dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.header-nav__dropdown {
  position: absolute;
  top: 100%; /* Grounded to bottom of header to prevent hover gap */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(34, 33, 31, 0.08);
  list-style: none;
  padding: var(--space-xs) 0;
  min-width: 240px;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  border-radius: 2px;
}

/* Invisible hover bridge to prevent submenu dropouts during diagonal tracking */
.header-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.header-nav__dropdown-wrapper:hover .header-nav__dropdown,
.header-nav__dropdown-wrapper:focus-within .header-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header-nav__dropdown-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-smoked-wood);
  padding: 0.75rem 1.25rem;
  display: block;
  transition: var(--transition-smooth);
}

.header-nav__dropdown-link:hover {
  background-color: var(--color-warm-ivory);
  color: var(--color-cedar-dark);
  padding-left: calc(1.25rem + 6px); /* Subtle shift micro-animation */
}

.header-nav__dropdown-header {
  font-weight: 700 !important;
  color: var(--color-weathered-iron) !important;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.header-nav__dropdown-sublink {
  padding-left: 2rem !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

.header-nav__dropdown-sublink:hover {
  padding-left: calc(2rem + 6px) !important;
}

.dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 4px;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s ease;
}

.header-nav__dropdown-wrapper:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.header-nav__cta {
  display: none;
  align-items: center;
  gap: clamp(0.6rem, 0.4rem + 0.6vw, 1.25rem); /* Dynamic gap */
  flex-shrink: 0;
}

.header-nav__phone {
  font-size: clamp(0.78rem, 0.72rem + 0.1vw, 0.85rem);
  font-weight: 600;
  color: var(--color-weathered-iron);
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-nav__phone svg {
  flex-shrink: 0;
}

.header-nav__phone:hover {
  color: var(--color-cedar-dark);
}

.header-nav__btn {
  padding: clamp(0.5rem, 0.4rem + 0.2vw, 0.65rem) clamp(0.9rem, 0.8rem + 0.4vw, 1.3rem) !important;
  font-size: clamp(0.7rem, 0.65rem + 0.1vw, 0.75rem) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   MOBILE NAV — Hamburger + Slide Drawer
   ============================================================ */

/* Hamburger: always visible on mobile, hidden on desktop */
.header-nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header-nav__hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-weathered-iron);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Bars morph to × when open */
body.nav-open .header-nav__hamburger .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .header-nav__hamburger .bar:nth-child(2) { opacity: 0; }
body.nav-open .header-nav__hamburger .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(34, 33, 31, 0.5);
  z-index: 198;
}
body.nav-open .nav-mobile-overlay { display: block; }
body.nav-open { overflow: hidden; }

/* Raise the sticky header above the overlay when drawer is open
   so the hamburger × button stays clickable */
body.nav-open .header-nav { z-index: 202; }

/* ─── Mobile only (< 1024px) ───────────────────────────── */
@media (max-width: 1279px) {

  /* Hide CTA from sticky header on mobile — it lives in the drawer instead */
  .header-nav__cta { display: none; }

  /* Drawer: always rendered but slid off-screen to the right */
  .header-nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 90vw);
    background: var(--color-linen);
    z-index: 199;
    padding: 5.5rem 1.5rem 8rem; /* 8rem bottom = room for fixed CTA */
    overflow-y: auto;
    display: flex !important;       /* always rendered for transition */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    list-style: none;
    box-shadow: -6px 0 32px rgba(34, 33, 31, 0.14);
    /* Slide off-screen using transform (reliable across all browsers) */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s linear 0.32s;
  }

  /* Slide in when open */
  body.nav-open .header-nav__menu {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s linear 0s;
  }

  /* Full-width list items */
  .header-nav__menu > li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .header-nav__menu > li:last-child { border-bottom: none; }

  /* Nav links become full-width tap targets */
  .header-nav__link {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.82rem;
    white-space: normal;
    width: 100%;
  }
  .header-nav__link::after { display: none; }

  /* Accordion dropdowns */
  .header-nav__dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    width: 100%;
    display: none;
    background: var(--color-warm-ivory);
    padding: 0.25rem 0 0.5rem;
  }
  .header-nav__dropdown.is-open { display: block; }

  .header-nav__dropdown-wrapper {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    width: 100%;
  }

  .dropdown-arrow.is-open { transform: rotate(180deg); }

  /* CTA pinned to bottom of drawer when nav is open */
  body.nav-open .header-nav__cta {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    right: 0;
    width: min(320px, 90vw);
    padding: 1rem 1.5rem;
    z-index: 200;
    background: var(--color-linen);
    border-top: 1px solid var(--color-border);
    gap: 0.6rem;
  }

  body.nav-open .header-nav__btn {
    width: 100% !important;
    justify-content: center;
    text-align: center;
  }

  body.nav-open .header-nav__phone { justify-content: center; }
}

/* ─── Desktop (≥ 1280px) ────────────────────────────────── */
@media (min-width: 1280px) {
  .header-nav__hamburger { display: none; }
  .header-nav__menu { display: flex; }
  .header-nav__cta { display: flex; }
}

/* --- Component: Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-weathered-iron);
  padding-block: var(--space-xxl);
  overflow: hidden;
}

/* Visual Background Overlay - High quality, textured feel */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(34, 33, 31, 0.78) 45%, rgba(34, 33, 31, 0.3) 100%);
  z-index: 1;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: contrast(1.0) brightness(0.96);
}

/* --- Component: Inline Video Reel embed --- */
/* Used on build-on-your-lot, process, and gallery pages */
.video-reel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-weathered-iron);
  border-radius: 2px;
}

/* Portrait (9:16) on mobile — matches Instagram native ratio */
.video-reel { aspect-ratio: 9 / 16; max-width: 380px; margin-inline: auto; }

/* Landscape crop on desktop */
@media (min-width: 768px) {
  .video-reel { aspect-ratio: 16 / 9; max-width: 100%; }
}

.video-reel__player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section layout: text beside video */
.video-reel-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: flex-start;
}

@media (min-width: 900px) {
  .video-reel-row {
    flex-direction: row;
    align-items: center;
  }
  .video-reel-row .video-reel {
    flex: 0 0 40%;
    max-width: 40%;
    aspect-ratio: 9 / 16;
  }
  .video-reel-row .video-reel-row__text {
    flex: 1;
  }
}

/* Landscape 4:3 crop — eliminates black bars encoded in portrait Instagram videos.
   object-fit: cover zooms into the centre of the frame, cutting top/bottom bars. */
.video-reel--crop {
  aspect-ratio: 4 / 3;
  max-width: 480px;
}

@media (min-width: 900px) {
  .video-reel-row .video-reel--crop {
    aspect-ratio: 4 / 3;
    max-width: 420px;
    flex: 0 0 420px;
  }
}

/* Full-width cinematic reel (gallery featured) */
.video-reel--wide {
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

/* Eyebrow label above video sections */
.video-reel__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cedar-dark);
  display: block;
  margin-bottom: var(--space-xs);
}

.hero__container {
  position: relative;
  z-index: 2;
  color: var(--color-linen);
}

.hero__content {
  max-width: 780px;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cedar-tan);
  margin-bottom: var(--space-s);
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-s);
  flex-wrap: wrap;
}

.hero__stars {
  color: var(--color-cedar-tan);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.hero__rating-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-linen);
  opacity: 0.95;
}

@media (max-width: 600px) {
  .hero__stars {
    width: 100%;
  }
}

.hero__title {
  color: var(--color-linen);
  margin-bottom: var(--space-m);
  line-height: 1.15;
}

.hero__lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 300;
  color: var(--color-warm-ivory);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Button UI Components (Styled on Classes) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 0.8rem + 0.4vw, 1.15rem) clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn--primary {
  background-color: var(--color-cedar-tan);
  color: var(--color-weathered-iron);
}

.btn--primary:hover {
  background-color: var(--color-cedar-dark);
  color: var(--color-linen);
  transform: translateY(-2px);
}

.btn--secondary {
  border-color: rgba(250, 248, 245, 0.5);
  color: var(--color-linen);
}

.btn--secondary:hover {
  background-color: var(--color-linen);
  color: var(--color-weathered-iron);
  border-color: var(--color-linen);
  transform: translateY(-2px);
}

.btn--dark {
  background-color: var(--color-weathered-iron);
  color: var(--color-linen);
}

.btn--dark:hover {
  background-color: #000;
  transform: translateY(-2px);
}

.btn--dark-outline {
  border-color: var(--color-weathered-iron);
  color: var(--color-weathered-iron);
}

.btn--dark-outline:hover {
  background-color: var(--color-weathered-iron);
  color: var(--color-linen);
  transform: translateY(-2px);
}

/* --- Component: Trust Bar --- */
.trust-bar {
  padding-block: var(--space-l);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-linen);
}

.trust-bar__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: flex-start;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  width: 100%;
}

.trust-bar__divider {
  display: none;
  color: var(--color-border);
  font-weight: 300;
}

.trust-bar__text {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-weathered-iron);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.trust-bar__text::before {
  content: '·';
  color: var(--color-cedar-tan);
  font-size: 1.8rem;
  line-height: 0;
  font-weight: 900;
}

@media (min-width: 768px) {
  .trust-bar__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .trust-bar__item {
    width: auto;
  }
  .trust-bar__text::before {
    display: none;
  }
  .trust-bar__item:not(:last-child) .trust-bar__text::after {
    content: '·';
    color: var(--color-cedar-tan);
    margin-left: var(--space-l);
    font-size: 1.5rem;
    font-weight: bold;
  }
}

@media (min-width: 1024px) {
  .trust-bar__container {
    justify-content: space-around;
  }
}

/* --- Component: Process ("How We Build") --- */
.process__header {
  max-width: 680px;
  margin-bottom: var(--space-xl);
}

.process__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.process__title {
  margin-bottom: var(--space-s);
}

.process__intro {
  color: var(--color-smoked-wood);
}

.process__grid {
  counter-reset: step-counter;
}

.process-card {
  position: relative;
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.process-card:hover {
  border-color: var(--color-cedar-tan);
}

.process-card__number {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 1.8rem + 1vw, 3rem);
  font-weight: 300;
  color: var(--color-cedar-tan);
  line-height: 1;
  margin-bottom: var(--space-s);
  display: block;
}

.process-card__title {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-weathered-iron);
}

.process-card__description {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--color-smoked-wood);
}

/* --- Component: The Differentiators --- */
.diff__split {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .diff__split {
    flex-direction: row;
  }
  .diff__sidebar {
    width: 35%;
    position: sticky;
    top: 8rem;
    height: fit-content;
  }
  .diff__content {
    width: 65%;
  }
}

.diff__sidebar-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.diff__sidebar-title {
  margin-bottom: var(--space-m);
}

.diff__sidebar-text {
  color: var(--color-smoked-wood);
}

.diff-block {
  padding-block: var(--space-l);
  border-bottom: 1px solid var(--color-border);
}

.diff-block:first-child {
  padding-top: 0;
}

.diff-block:last-child {
  border-bottom: none;
}

.diff-block__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xxs);
  display: block;
}

.diff-block__title {
  margin-bottom: var(--space-s);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
}

.diff-block__text {
  color: var(--color-smoked-wood);
  line-height: 1.7;
}

/* --- Component: Portfolio (Case Studies) --- */
.portfolio__header {
  margin-bottom: var(--space-l);
}

#portfolio {
  padding-top: var(--space-l);
}

.portfolio__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.portfolio__title {
  margin-bottom: var(--space-s);
}

.portfolio__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.project-study {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  align-items: stretch;
}

/* Header spans full width across the top of every card */
.project-study__header {
  width: 100%;
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--color-border);
}

/* Vision line in the header reads as a lead, not bordered metadata */
.project-study__header .project-study__specs {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  color: var(--color-smoked-wood);
}

/* Body holds image + content; stacks on mobile, splits on desktop */
.project-study__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.project-study__image-wrapper {
  width: 100%;
  position: relative;
  background-color: var(--color-warm-ivory);
  overflow: hidden;
  border: 1px solid var(--color-border);
  order: 1;
}

.project-study__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-study__image-wrapper:hover .project-study__img {
  transform: scale(1.03);
}

.project-study__content {
  order: 2;
}

.project-study__link {
  display: inline-block;
  margin-top: var(--space-m);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-cedar-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.project-study__link:hover {
  color: var(--color-cedar-tan);
  opacity: 1;
}

.project-study__meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.project-study__title {
  margin-bottom: var(--space-xs);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2.2rem);
}

.project-study__price {
  font-family: var(--font-sans);
  font-size: 0.55em;
  font-weight: 700;
  color: var(--color-cedar-dark);
  background-color: var(--color-warm-ivory);
  border: 1px solid rgba(182, 122, 79, 0.25);
  padding: 0.25rem 0.65rem;
  margin-left: var(--space-xs);
  letter-spacing: 0.05em;
  display: inline-block;
  vertical-align: middle;
}

.project-study__specs {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-weathered-iron);
  margin-bottom: var(--space-m);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.project-study__description {
  color: var(--color-smoked-wood);
  margin-bottom: var(--space-m);
  line-height: 1.75;
}

.project-study__accent-note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-smoked-wood);
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
}

.project-study__accent-note::before {
  content: '•';
  color: var(--color-cedar-tan);
  font-size: 1.2rem;
}

/* Mobile order: image, CTA, then supporting details */
@media (max-width: 991px) {
  .project-study__content {
    display: contents;
  }

  .project-study__image-wrapper {
    order: 1;
  }

  .project-study__link {
    order: 2;
    align-self: flex-start;
    margin-top: calc(var(--space-xs) * -1);
    margin-bottom: var(--space-s);
  }

  .project-study__content > .project-study__specs {
    order: 3;
  }

  .project-study__description {
    order: 4;
  }

  .project-study__accent-note {
    order: 5;
  }
}

/* Desktop order: image + right-column content */
@media (min-width: 992px) {
  .project-study__body {
    flex-direction: row;
    align-items: start;
  }

  /* Alternate image side card-to-card for editorial rhythm */
  .project-study:nth-child(even) .project-study__body {
    flex-direction: row-reverse;
  }

  .project-study__body > .project-study__image-wrapper {
    width: 55%;
    flex-shrink: 0;
  }

  .project-study__body > .project-study__content {
    display: block;
    width: 45%;
    padding-inline: var(--space-m);
  }
}

/* --- Testimonial Hero Pic Align --- */

.hero--testimonials .hero__img {
  object-position: center 8%;
}

@media (max-width: 767px) {
  .hero--testimonials .hero__img {
    object-position: center 30%;
  }
}

/* --- Testimonial Wall CTA --- */

.testimonials-soft-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: flex-start;
  justify-content: space-between;

  padding: clamp(2rem, 3vw, 3.25rem);
  background-color: var(--color-weathered-iron);
  border: 1px solid rgba(250, 248, 245, 0.14);
  color: var(--color-linen);
}

.testimonials-soft-cta__content {
  max-width: 760px;
}

.testimonials-soft-cta__eyebrow {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cedar-tan);
}

.testimonials-soft-cta__title {
  margin-bottom: var(--space-s);
  color: var(--color-linen);
  font-size: clamp(1.65rem, 1.25rem + 1.35vw, 2.35rem);
  line-height: 1.18;
  max-width: 680px;
}

.testimonials-soft-cta__text {
  max-width: 640px;
  color: var(--color-warm-ivory);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.65;
}

.testimonials-soft-cta__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .testimonials-soft-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .testimonials-soft-cta__btn {
    justify-self: end;
  }
}

@media (max-width: 600px) {
  .testimonials-soft-cta {
    padding: var(--space-l) var(--space-m);
  }

  .testimonials-soft-cta__btn {
    width: 100%;
  }
}

/* =============================================================================
   Testimonials Hero Rating Card Highlighter
============================================================================= */

.hero .reviews-dashboard.reviews-dashboard--hero {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 1rem !important;

  width: fit-content !important;
  max-width: min(100%, 360px) !important;
  min-height: 0 !important;

  padding: 0.85rem 1.1rem !important;
  margin-top: var(--space-m) !important;

  background-color: var(--color-warm-ivory) !important;
  border: 1px solid rgba(34, 33, 31, 0.16) !important;
  color: var(--color-weathered-iron) !important;
}

.hero .reviews-dashboard--hero .reviews-dashboard__score {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-weathered-iron);
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.hero .reviews-dashboard--hero .reviews-dashboard__stars {
  color: var(--color-cedar-dark);
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: 0.28rem;
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--color-weathered-iron);
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__link {
  display: inline-block;
  margin-top: 0.22rem;

  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;

  color: var(--color-cedar-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__link:hover,
.hero .reviews-dashboard--hero .reviews-dashboard__link:focus-visible {
  color: var(--color-weathered-iron);
  text-decoration-thickness: 2px;
}

@media (max-width: 480px) {
  .hero .reviews-dashboard.reviews-dashboard--hero {
    width: min(100%, 335px) !important;
    max-width: 335px !important;
    padding: 0.78rem 0.95rem !important;
    gap: 0.9rem !important;
  }

  .hero .reviews-dashboard--hero .reviews-dashboard__score {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }

  .hero .reviews-dashboard--hero .reviews-dashboard__stars {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .hero .reviews-dashboard--hero .reviews-dashboard__meta,
  .hero .reviews-dashboard--hero .reviews-dashboard__link {
    font-size: 0.68rem;
  }
}

/* =============================================================================
   Testimonial Inline Proof Highlights — Brand-safe + Mobile-readable
============================================================================= */

.testimonial-proof {
  color: var(--color-weathered-iron);
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-color: rgba(147, 96, 59, 0.55);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.testimonial-card__text--featured .testimonial-proof {
  color: var(--color-weathered-iron);
  text-decoration-color: rgba(147, 96, 59, 0.62);
}

@media (max-width: 600px) {
  .testimonial-proof {
    font-weight: 850;
    text-decoration-thickness: 0.16em;
    text-underline-offset: 0.1em;
  }
}

/* --- Screen Reader --- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
}
/* --- Component: Project Showcase Pages --- */
/* Section heading: always needs bottom breathing room so body text / gallery
   grid doesn't immediately crowd the heading baseline. Per SITE-STANDARDS.md. */
.showcase-content__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.4rem);
  color: var(--color-weathered-iron);
  margin-bottom: var(--space-m);
  line-height: 1.2;
}

/* Gallery section intro header: extra bottom margin separates the
   heading + description block from the photo grid below */
.gallery-header {
  margin-bottom: var(--space-l);
}

.gallery-header p {
  color: var(--color-smoked-wood);
  margin-bottom: 0; /* gallery-header margin-bottom handles the gap below */
}

/* Spec card layout */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
}

/* Contact section title on project pages */
.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.2rem);
  color: var(--color-weathered-iron);
  margin-bottom: var(--space-m);
  line-height: 1.25;
}

.contact__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-s);
}

/* --- Fix for Review box in hero on testimonials page (mobile) --- */

.reviews-dashboard--hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 4vw, 1.75rem);
  width: min(100%, 430px);
  max-width: 430px;
  padding: 0.95rem 1.25rem;
  margin-top: var(--space-m);
  background-color: var(--color-warm-ivory);
  border: 1px solid var(--color-border);
}

.reviews-dashboard--hero .reviews-dashboard__score {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 11vw, 3.25rem);
  font-weight: 700;
  color: var(--color-weathered-iron);
  line-height: 0.95;
  flex: 0 0 auto;
}

.reviews-dashboard--hero .reviews-dashboard__summary {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.reviews-dashboard--hero .reviews-dashboard__stars {
  color: var(--color-cedar-tan);
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.reviews-dashboard--hero .reviews-dashboard__meta {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.4vw, 0.8rem);
  font-weight: 700;
  color: var(--color-weathered-iron);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.reviews-dashboard--hero .reviews-dashboard__link {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2.3vw, 0.75rem);
  color: var(--color-cedar-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .reviews-dashboard--hero {
    width: 100%;
    max-width: none;
    padding: 0.85rem 1rem;
    gap: 1rem;
  }

  .reviews-dashboard--hero .reviews-dashboard__score {
    font-size: clamp(2.55rem, 13vw, 3.1rem);
  }
}

.hero .reviews-dashboard.reviews-dashboard--hero {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 1rem !important;

  width: fit-content !important;
  max-width: min(100%, 360px) !important;
  min-height: 0 !important;

  padding: 0.85rem 1.1rem !important;
  margin-top: var(--space-m) !important;

  background-color: var(--color-warm-ivory) !important;
  border: 1px solid rgba(34, 33, 31, 0.16) !important;
  color: var(--color-weathered-iron) !important;
}

.hero .reviews-dashboard--hero .reviews-dashboard__score {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-weathered-iron);
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.hero .reviews-dashboard--hero .reviews-dashboard__stars {
  color: var(--color-cedar-dark);
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: 0.28rem;
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--color-weathered-iron);
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__link {
  display: inline-block;
  margin-top: 0.22rem;

  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;

  color: var(--color-cedar-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.hero .reviews-dashboard--hero .reviews-dashboard__link:hover,
.hero .reviews-dashboard--hero .reviews-dashboard__link:focus-visible {
  color: var(--color-weathered-iron);
  text-decoration-thickness: 2px;
}

@media (max-width: 480px) {
  .hero .reviews-dashboard.reviews-dashboard--hero {
    width: min(100%, 335px) !important;
    max-width: 335px !important;
    padding: 0.78rem 0.95rem !important;
    gap: 0.9rem !important;
  }

  .hero .reviews-dashboard--hero .reviews-dashboard__score {
    font-size: clamp(2.25rem, 10vw, 2.75rem);
  }

  .hero .reviews-dashboard--hero .reviews-dashboard__stars {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .hero .reviews-dashboard--hero .reviews-dashboard__meta,
  .hero .reviews-dashboard--hero .reviews-dashboard__link {
    font-size: 0.68rem;
  }
}

/* --- Component: Testimonials --- */

.testimonials__header {
  margin-bottom: var(--space-xl);
}

.testimonials__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.testimonials__title {
  margin-bottom: var(--space-s);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl) var(--space-l);
  align-items: start;
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lone last card spans all columns instead of sitting in col 1 alone */
@media (min-width: 768px) and (max-width: 1199px) {
  .testimonials__grid > *:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .testimonials__grid > *:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }
}

.testimonial-card {
  background-color: var(--color-linen);
  padding: var(--space-l);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: var(--color-cedar-tan);
}

.testimonial-card__quote {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-smoked-wood);
  margin-bottom: var(--space-m);
}

.testimonial-card__author {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-weathered-iron);
  display: block;
}

.testimonial-card__relation {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-cedar-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.2rem;
}

/* --- Component: About Builder (The Builder) --- */
.builder {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .builder {
    flex-direction: row;
    gap: var(--space-xxl);
  }
  .builder__image-wrapper {
    width: 40%;
  }
  .builder__content {
    width: 60%;
  }
}

.builder__image-wrapper {
  width: 100%;
  border: 1px solid var(--color-border);
  background-color: var(--color-warm-ivory);
}

.builder__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.builder__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.builder__title {
  margin-bottom: var(--space-xs);
}

.builder__subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-weathered-iron);
  margin-bottom: var(--space-m);
  display: block;
}

.builder__bio {
  color: var(--color-smoked-wood);
  line-height: 1.8;
}

.builder__bio p {
  margin-bottom: var(--space-m);
}

.builder__bio p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--color-weathered-iron);
}

/* --- Component: Conversion Block (Contact) ---
   Intentionally dark: matches hero background to signal a clear
   "take action" moment that visually breaks the linen/ivory rhythm.
----------------------------------------------------------------------- */
.contact-section {
  background-color: var(--color-weathered-iron);
  border-top: none;
  border-bottom: none;
}

/* Flip all interior text to light on dark background.
   Covers BOTH heading conventions: contact-info__* (homepage/BYOL)
   and contact__* (project pages) so any contact form is correct on dark. */
.contact-section .contact-info__title,
.contact-section .contact__title {
  color: var(--color-linen);
}

.contact-section .contact-info__lead,
.contact-section .contact__text,
.contact-section .contact__lead {
  color: var(--color-warm-ivory);
}

.contact-section .contact-method__link {
  color: var(--color-linen);
}

.contact-section .contact-method__link:hover {
  color: var(--color-cedar-tan);
}

.contact-section .contact-method__text {
  color: var(--color-warm-ivory);
}

.contact-section .form-label {
  color: rgba(250, 248, 245, 0.7);
}

.contact-section .form-control {
  background-color: rgba(250, 248, 245, 0.07);
  border-color: rgba(250, 248, 245, 0.18);
  color: var(--color-linen);
}

.contact-section .form-control::placeholder {
  color: rgba(250, 248, 245, 0.7);
}

.contact-section .form-control:focus {
  border-color: var(--color-cedar-tan);
  background-color: rgba(250, 248, 245, 0.11);
  box-shadow: 0 0 0 3px rgba(182, 122, 79, 0.25);
}

/* Cedar button pops on dark background; weathered-iron would disappear */
.contact-section .btn--dark {
  background-color: var(--color-cedar-tan);
  color: var(--color-weathered-iron);
}

.contact-section .btn--dark:hover {
  background-color: var(--color-cedar-dark);
  color: var(--color-linen);
  transform: translateY(-2px);
}

/* Override inline styles on the investment range select */
.contact-section select.form-control,
.contact-section select {
  background-color: rgba(250, 248, 245, 0.07) !important;
  border: 1px solid rgba(250, 248, 245, 0.18) !important;
  color: var(--color-linen) !important;
}

.contact-section select option {
  background-color: var(--color-weathered-iron);
  color: var(--color-linen);
}

/* Form reassurance caption — one class, readable on every contact background.
   Light forms (linen/ivory): smoked-wood = 6:1+. Dark form: warm-ivory = 13.7:1.
   No opacity (opacity was the original contrast failure). */
.contact-form__assurance {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-smoked-wood);
}
.contact-section .contact-form__assurance {
  color: var(--color-warm-ivory);
}

/* Secondary note line that can appear under the assurance caption (e.g. a cross-link
   to another page). One class, readable on light and dark contact sections. */
.contact-form__note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: var(--color-smoked-wood);
}
.contact-section .contact-form__note {
  color: rgba(243, 236, 227, 0.65);
}
/* Link inside the subordinate note: present but not louder than the text around it. */
.contact-section .contact-form__note .inline-link {
  color: var(--color-cedar-tan);
  font-weight: 600;
}
/* General dark-section inline-link (e.g. the assurance area), kept readable. */
.contact-section .inline-link {
  color: var(--color-cedar-tan);
}
.contact-section .inline-link:hover {
  color: var(--color-linen);
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 992px) {
  .contact-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .contact-info {
    width: 40%;
  }
  .contact-form-wrapper {
    width: 60%;
  }
}

/* --- Project page CTA grid (contact__grid) --- */
/* Used in project showcase pages where the CTA appears above the gallery.
   .contact__content = left (title, phone, email)
   .contact-form-wrapper = right (the actual form fields) */
.contact__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 992px) {
  .contact__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }
  .contact__grid .contact__content {
    width: 45%;
    flex-shrink: 0;
  }
  .contact__grid .contact-form-wrapper {
    flex: 1;
  }
}

.contact-info__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.contact-info__title {
  margin-bottom: var(--space-m);
}

.contact-info__lead {
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.contact-method {
  display: flex;
  flex-direction: column;
}

.contact-method__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cedar-dark);
  margin-bottom: 0.25rem;
}

.contact-method__link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-weathered-iron);
  font-family: var(--font-serif);
}

.contact-method__link:hover {
  color: var(--color-cedar-dark);
}

.contact-method__text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-weathered-iron);
}

.form-group {
  margin-bottom: var(--space-m);
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-weathered-iron);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  color: var(--color-weathered-iron);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: 2px solid var(--color-cedar-tan);
  outline-offset: 2px;
  border-color: var(--color-cedar-tan);
  box-shadow: 0 0 0 3px var(--color-border-focus);
}

.form-control::placeholder {
  color: rgba(90, 88, 84, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A5854' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* --- Accessible form error states (F-09) --- */
.form-error {
  display: block;
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  min-height: 1.2em;
  font-family: var(--font-sans);
}
/* Collapse the reserved space when there's no error message (prevents an empty
   box rendering at rest, especially visible on the dark contact section). */
.form-error:empty {
  min-height: 0;
  margin-top: 0;
}
/* Error text needs a lighter red to stay legible on the dark contact background. */
.contact-section .form-error {
  color: #f1948a;
}

.form-control[aria-invalid="true"] {
  border-color: #c0392b;
  outline-color: #c0392b;
}

/* --- Component: Global Footer --- */
.footer-nav {
  background-color: var(--color-weathered-iron);
  color: var(--color-linen);
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid rgba(250, 248, 245, 0.1);
}

.footer-nav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

@media (min-width: 576px) {
  .footer-nav__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-nav__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-nav__brand-title {
  font-family: var(--font-serif);
  color: var(--color-linen);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-nav__brand-desc {
  font-size: 0.85rem;
  color: var(--color-warm-ivory);
  opacity: 0.7;
  max-width: 240px;
}

.footer-nav__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cedar-tan);
  margin-bottom: var(--space-m);
}

.footer-nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav__link {
  font-size: 0.9rem;
  color: var(--color-warm-ivory);
  opacity: 0.8;
}

.footer-nav__link:hover {
  color: var(--color-cedar-tan);
  opacity: 1;
}

.footer-nav__socials {
  display: flex;
  gap: var(--space-s);
}

.footer-nav__social-link {
  color: var(--color-warm-ivory);
  opacity: 0.8;
}

.footer-nav__social-link:hover {
  color: var(--color-cedar-tan);
  opacity: 1;
}

.footer-nav__copyright {
  padding-top: var(--space-m);
  border-top: 1px solid rgba(250, 248, 245, 0.08);
  font-size: 0.8rem;
  color: var(--color-warm-ivory);
  opacity: 0.5;
  text-align: center;
}

/* --- Component: Responsive Data Table --- */
/* Desktop: horizontal scroll if table overflows container width */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-linen);
  border: 1px solid var(--color-border);
  padding: var(--space-m);
}

/* Mobile (≤680px): convert 3-column comparison table to stacked card layout */
@media (max-width: 680px) {
  .table-scroll {
    overflow-x: visible;
    padding: 0;
    background: transparent;
    border: none;
  }

  .table-scroll table,
  .table-scroll thead,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll th,
  .table-scroll td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* Prevent long strings from breaking out of cards */
  .table-scroll td {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Hide table column headers — labels inferred by position */
  .table-scroll thead tr {
    display: none;
  }

  /* Each row becomes a card */
  .table-scroll tr {
    background: var(--color-linen);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-s);
    padding: var(--space-m);
  }

  .table-scroll td {
    padding: var(--space-xxs) 0;
    border: none;
    vertical-align: top;
    font-size: 0.95rem;
  }

  /* First cell: bold topic name */
  .table-scroll td:first-child {
    font-weight: 700;
    color: var(--color-weathered-iron);
    font-size: 1rem;
    border-bottom: 1px solid rgba(34,33,31,0.1);
    padding-bottom: var(--space-xxs);
    margin-bottom: var(--space-xxs);
  }

  /* Second cell: the comparison / description */
  .table-scroll td:nth-child(2) {
    color: var(--color-smoked-wood);
    padding-top: var(--space-xxs);
  }

  /* Third cell: the Chance Leigh answer or permit mandate — cedar accent */
  .table-scroll td:nth-child(3) {
    color: var(--color-cedar-dark);
    font-weight: 600;
    padding-top: var(--space-xxs);
    border-top: 1px dashed rgba(182,122,79,0.3);
    margin-top: var(--space-xxs);
  }
}

/* --- Inline Text Link Styles --- */

.inline-link {
  color: var(--color-cedar-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition-smooth);
}

.inline-link:hover {
  color: var(--color-cedar-tan);
  text-decoration-thickness: 2px;
}

/* --- Component: Plans Gallery Catalog --- */
.plans-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .plans-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plans-catalog {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
  }
}

.plan-card {
  background-color: var(--color-linen);
  padding: var(--space-m);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.plan-card:hover {
  border-color: var(--color-cedar-tan);
  transform: translateY(-3px);
}

.plan-card__image-wrapper {
  width: 100%;
  position: relative;
  background-color: var(--color-warm-ivory);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-s);
}

.plan-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  padding: var(--space-xs);
  transition: var(--transition-smooth);
}

.plan-card:hover .plan-card__img {
  transform: scale(1.02);
}

.plan-card__header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-s);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-xs);
}

.plan-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-weathered-iron);
}

.plan-card__sqft {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cedar-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-card__specs {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-weathered-iron);
  margin-bottom: var(--space-s);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-card__description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-smoked-wood);
  margin-bottom: var(--space-m);
}

.plan-card__actions {
  margin-top: auto;
}

/* =============================================================================
   CHANCE LEIGH CUSTOM HOMES — TESTIMONIALS WALL ("WALL OF PROOF") STYLES
   ============================================================================= */

/* Main Wall Grid */
.testimonials-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl) var(--space-l);
  margin-top: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .testimonials-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .testimonials-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lone last card spans all columns instead of sitting in col 1 alone */
@media (min-width: 768px) and (max-width: 1099px) {
  .testimonials-wall > *:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .testimonials-wall > *:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }
}

/* Enhanced Testimonial Card */
.testimonial-card--wall {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card--wall:hover {
  border-color: var(--color-cedar-tan);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(34, 33, 31, 0.05);
}

/* Header Elements within Testimonial Card */
.testimonial-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xxs);
  margin-bottom: var(--space-s);
  border-bottom: 1px solid rgba(34, 33, 31, 0.06);
  padding-bottom: var(--space-xs);
}

.testimonial-card__rating {
  color: var(--color-cedar-tan);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.testimonial-card__badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background-color: var(--color-warm-ivory);
  color: var(--color-smoked-wood);
  border: 1px solid var(--color-border);
}

.testimonial-card__badge--google {
  border-color: rgba(66, 133, 244, 0.25);
  background-color: rgba(66, 133, 244, 0.04);
  color: #4285F4;
}

.testimonial-card__badge--houzz {
  border-color: rgba(124, 191, 73, 0.25);
  background-color: rgba(124, 191, 73, 0.04);
  color: #7CBF49;
}

/* Body Text Overrides */
.testimonial-card__text {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  line-height: 1.75;
  color: var(--color-smoked-wood);
  margin-bottom: var(--space-m);
  position: relative;
}

.testimonial-card__text--featured {
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  line-height: 1.8;
  color: var(--color-weathered-iron);
}

/* Verified Specs Grid inside Card */
.testimonial-card__specs {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-s);
  margin-top: var(--space-m);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
  font-family: var(--font-sans);
}

.testimonial-card__spec-item {
  display: flex;
  flex-direction: column;
}

.testimonial-card__spec-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cedar-dark);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.testimonial-card__spec-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-weathered-iron);
}

/* Aggregate Rating Header Card on Testimonials Page */
.reviews-hero-card {
  background-color: var(--color-warm-ivory);
  border: 1px solid var(--color-border);
  padding: var(--space-m) var(--space-l);
  margin-top: var(--space-m);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
  max-width: 100%;
}

.reviews-hero-card__stars {
  color: var(--color-cedar-tan);
  font-size: 1.5rem;
  line-height: 1;
}

.reviews-hero-card__meta {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-weathered-iron);
}

.reviews-hero-card__meta strong {
  font-size: 1.05rem;
}

/* Active Nav Link Highlights */
.header-nav__link--active {
  color: var(--color-weathered-iron) !important;
}

.header-nav__link--active::after {
  width: 100% !important;
}

/* =============================================================================
   factual google reviews dashboard & feed layout
   ============================================================================= */

.reviews-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-top: var(--space-m);
  background-color: var(--color-warm-ivory);
  border: 1px solid var(--color-border);
  padding: var(--space-l);
  max-width: 100%;
}

@media (min-width: 768px) {
  .reviews-dashboard {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
  }
}

.reviews-dashboard__aggregate {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  flex-shrink: 0;
}

.reviews-dashboard__score {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  color: var(--color-weathered-iron);
  line-height: 1;
}

.reviews-dashboard__stars {
  color: var(--color-cedar-tan);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.reviews-dashboard__meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-smoked-wood);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.reviews-dashboard__breakdown {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
}

.reviews-dashboard__row {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.reviews-dashboard__label {
  font-weight: 600;
  color: var(--color-weathered-iron);
  width: 60px;
  white-space: nowrap;
}

.reviews-dashboard__bar-wrapper {
  flex-grow: 1;
  height: 8px;
  background-color: rgba(34, 33, 31, 0.06);
  border: 1px solid var(--color-border);
  position: relative;
}

.reviews-dashboard__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--color-cedar-tan);
}

.reviews-dashboard__count {
  width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--color-weathered-iron);
}

/* Factual Google Reviews Short Feed */
.reviews-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  margin-top: var(--space-xl);
}

@media (min-width: 600px) {
  .reviews-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .reviews-feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .reviews-feed {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-s);
  }
}

.reviews-feed-card {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.reviews-feed-card:hover {
  border-color: var(--color-cedar-tan);
  box-shadow: 0 8px 20px rgba(34, 33, 31, 0.03);
}

.reviews-feed-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(34, 33, 31, 0.06);
  padding-bottom: var(--space-xxs);
  margin-bottom: var(--space-xs);
}

.reviews-feed-card__stars {
  color: var(--color-cedar-tan);
  font-size: 0.9rem;
}

.reviews-feed-card__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-smoked-wood);
  margin-bottom: var(--space-s);
  font-style: italic;
}

.reviews-feed-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  border-top: 1px solid rgba(34, 33, 31, 0.06);
  padding-top: var(--space-xxs);
}

.reviews-feed-card__author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-weathered-iron);
}

.reviews-feed-card__date {
  font-size: 0.7rem;
  color: var(--color-cedar-dark);
  text-transform: uppercase;
  font-weight: 600;
}

/* =========================================================================
   LIGHTBOX / BLUEPRINT ZOOM SYSTEM
   ========================================================================= */

/* Cursor hint on thumbnail hover */
.plan-card__image-wrapper {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.plan-card__image-wrapper::after {
  content: 'Click to Zoom Blueprint';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(34, 33, 31, 0.9);
  color: var(--color-linen);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.6rem;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.plan-card__image-wrapper:hover::after {
  transform: translateY(0);
}

/* Lightbox Modal Structure */
.blueprint-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blueprint-lightbox--active {
  opacity: 1;
  pointer-events: auto;
}

.blueprint-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(250, 248, 245, 0.08);
  border: 1px solid rgba(250, 248, 245, 0.15);
  color: var(--color-linen);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.blueprint-lightbox__close:hover {
  background: var(--color-linen);
  color: var(--color-weathered-iron);
  transform: rotate(90deg);
  border-color: var(--color-linen);
}

.blueprint-lightbox__container {
  width: 92%;
  height: 85%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  scrollbar-width: none; /* Hide scrollbars */
  border: 1px solid rgba(250, 248, 245, 0.05);
  background: rgba(20, 20, 20, 0.4);
}

.blueprint-lightbox__container::-webkit-scrollbar {
  display: none;
}

.blueprint-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

/* Zoomed state triggers drag cursor */
.blueprint-lightbox__img--zoomed {
  cursor: grab;
  max-width: none !important;
  max-height: none !important;
  width: 180% !important;
  height: auto !important;
}

.blueprint-lightbox__caption {
  display: none !important;
}

.blueprint-lightbox__tip {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(250, 248, 245, 0.08);
  border: 1px solid rgba(250, 248, 245, 0.15);
  padding: 0.4rem 1rem;
  color: var(--color-linen);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 10001;
  pointer-events: none;
  opacity: 0.7;
}

/* =============================================================================
   CHANCE LEIGH CUSTOM HOMES — EDITORIAL TECHNICAL BULLETIN STYLES
   ============================================================================= */
.technical-bulletin {
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-l);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 992px) {
  .technical-bulletin {
    grid-template-columns: 1.2fr 1.8fr;
    gap: var(--space-xxl);
    padding: var(--space-xxl);
  }
}

.technical-bulletin__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.technical-bulletin__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cedar-dark);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.technical-bulletin__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-weathered-iron);
  margin-bottom: var(--space-m);
}

.technical-bulletin__text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-smoked-wood);
}

.technical-bulletin__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

@media (min-width: 576px) {
  .technical-bulletin__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bulletin-card {
  background-color: var(--color-warm-ivory);
  border: 1px solid var(--color-border);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.bulletin-card:hover {
  border-color: var(--color-cedar-tan);
  transform: translateY(-2px);
}

.bulletin-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-weathered-iron);
  margin-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(34, 33, 31, 0.08);
  padding-bottom: 6px;
}

.bulletin-card__desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-smoked-wood);
}

/* =============================================================================
   CHANCE LEIGH CUSTOM HOMES — THE ARCHITECTURAL COLLECTIONS GRID STYLES
   ============================================================================= */
.collections-section {
  padding-block: var(--space-section);
  background-color: var(--color-linen);
  border-bottom: 1px solid var(--color-border);
}

.collections-header {
  max-width: 780px;
  margin-bottom: var(--space-xl);
}

.collections-header__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cedar-dark);
  margin-bottom: var(--space-xs);
  display: block;
}

.collections-header__title {
  margin-bottom: var(--space-s);
}

.collections-header__lead {
  color: var(--color-smoked-wood);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.collections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}

@media (min-width: 768px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.collection-card {
  background-color: var(--color-warm-ivory);
  border: 1px solid var(--color-border);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}

.collection-card:hover {
  border-color: var(--color-cedar-tan);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(34, 33, 31, 0.04);
}

.collection-card__header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-s);
  margin-bottom: var(--space-s);
}

.collection-card__subtitle {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cedar-dark);
  display: block;
  margin-bottom: 4px;
}

.collection-card__title {
  font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.8rem);
  color: var(--color-weathered-iron);
}

.collection-card__desc {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--color-smoked-wood);
  margin-bottom: var(--space-m);
}

.collection-card__link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-weathered-iron);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.collection-card__link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.collection-card:hover .collection-card__link {
  color: var(--color-cedar-dark);
}

.collection-card:hover .collection-card__link::after {
  transform: translateX(4px);
}




/* ============================================================
   MOBILE STICKY PHONE BAR
   ============================================================ */
.mobile-sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-weathered-iron);
  border-top: 2px solid var(--color-cedar-tan);
}
.mobile-sticky-call__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem var(--space-m);
  color: var(--color-linen);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.mobile-sticky-call__link:hover {
  background: rgba(182,122,79,0.15);
}
.mobile-sticky-call__icon {
  color: var(--color-cedar-tan);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mobile-sticky-call { display: block; }
  /* Push body content up so sticky bar doesn't cover CTA buttons */
  body { padding-bottom: 62px; }
  /* Raise drawer and its pinned CTA above the sticky call bar */
  .header-nav__menu { bottom: 62px !important; }
  body.nav-open .header-nav__cta { bottom: 62px !important; }
}

/* ============================================================
   COOKIE CONSENT BANNER (Premium Glassmorphism & WCAG AA)
   ============================================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 680px;
  background-color: rgba(243, 236, 227, 0.92); /* Warm ivory with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 16px 40px rgba(34, 33, 31, 0.12);
  border-radius: var(--radius-none);
}
.cookie-consent-banner--hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.cookie-consent-banner__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
@media (min-width: 640px) {
  .cookie-consent-banner__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
  }
}
.cookie-consent-banner__text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-smoked-wood);
  margin: 0;
}
.cookie-consent-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-shrink: 0;
}
.cookie-consent-banner__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-weathered-iron);
  text-decoration: underline;
}
.cookie-consent-banner__link:hover {
  color: var(--color-cedar-dark);
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: 5.5rem; /* Raise above the mobile sticky bar */
  }
}