/* Aldervale Roofing — Level 3 Architectural Reference Stylesheet
   High-contrast gallery white (#FFFFFF), warm alabaster stone (#F6F4EE),
   deep espresso-charcoal (#181412), and vibrant burnt copper-orange (#D4521E).
   Display: Bricolage Grotesque | Body: Source Sans 3 */

:root {
  --bg-white: #FFFFFF;
  --bg-stone: #F6F4EE;
  --bg-stone-deep: #ECE7DC;

  --dark-surface: #181412;
  --dark-card: #241E1B;
  --dark-border: rgba(255, 250, 245, 0.14);
  --dark-ink: #FAF7F2;
  --dark-muted: #C6BEB6;
  --dark-copper: #F07A46;

  --ink-primary: #171412;
  --ink-secondary: #48423D;
  --ink-muted: #655E58;

  --accent-copper: #BD4414;
  --accent-copper-bright: #C24716;
  --accent-copper-hover: #9C350D;
  --accent-copper-tint: #FCECE4;

  --border-light: #E6E0D6;
  --border-strong: #CEC5B8;

  --status-error: #A62620;
  --status-error-bg: #FDEFEF;
  --status-success: #1E5438;
  --status-success-bg: #ECF6F0;

  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-float: 0 20px 44px -18px rgba(23, 20, 18, 0.36);
  --shadow-sheet: 0 18px 40px -24px rgba(23, 20, 18, 0.14);

  --container-max: 1220px;
  --header-height: 78px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Browser Surfaces */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-white);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.03125rem;
  line-height: 1.62;
  color: var(--ink-primary);
  background-color: var(--bg-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent-copper);
}

::selection {
  background-color: var(--accent-copper-tint);
  color: var(--ink-primary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-stone);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-stone);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-muted);
}

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

a {
  color: inherit;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--accent-copper);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--dark-surface);
  color: var(--bg-white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

.container {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
}

/* ==========================================================================
   1. Crisp White Top Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--accent-copper);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 160ms ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out-expo);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-copper);
  color: var(--bg-white);
  padding: 12px 22px;
}

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

.btn-primary:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-hero-glass {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-hero-glass:hover {
  background-color: rgba(255, 255, 255, 0.24);
  border-color: var(--bg-white);
}

.btn-light-pill {
  background-color: var(--bg-white);
  color: var(--dark-surface);
  padding: 12px 22px;
  font-weight: 700;
}

.btn-light-pill:hover {
  background-color: var(--bg-stone);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink-primary);
  border-color: var(--border-strong);
  padding: 12px 22px;
}

.btn-secondary:hover {
  background-color: var(--bg-stone);
  border-color: var(--ink-primary);
}

.btn-on-dark {
  background-color: var(--accent-copper-bright);
  color: var(--bg-white);
  padding: 14px 24px;
  font-weight: 700;
}

.btn-on-dark:hover {
  background-color: var(--accent-copper);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.94rem;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-stone);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  cursor: pointer;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0 24px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 4px;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links a:hover {
  color: var(--accent-copper);
}

.mobile-drawer-cta {
  margin-top: 14px;
  width: 100%;
  padding: 14px 20px;
}

/* ==========================================================================
   2. Signature Rounded Full-Bleed Daylight Photo Hero (Reference Feel)
   ========================================================================== */
.hero-band {
  padding: 24px 0 72px;
  background-color: var(--bg-white);
}

.hero-canvas {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  background-color: var(--dark-surface);
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 16, 14, 0.88) 0%,
    rgba(20, 16, 14, 0.52) 44%,
    rgba(20, 16, 14, 0.08) 78%,
    rgba(20, 16, 14, 0.0) 100%
  );
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 370px);
  gap: 36px;
  align-items: end;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--bg-white);
  max-width: 14ch;
}

.hero-summary {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 252, 248, 0.92);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

/* Floating White Crew Card inside Hero Bottom-Right (Reference Signature) */
.hero-float-card {
  background-color: var(--bg-white);
  color: var(--ink-primary);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-float-thumb {
  width: 82px;
  height: 92px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center 25%;
  flex-shrink: 0;
}

.hero-float-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-float-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-primary);
}

.hero-float-sub {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.hero-float-cta {
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 0.86rem;
  align-self: flex-start;
}

/* ==========================================================================
   Shared Section Rhythm
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section-white {
  background-color: var(--bg-white);
}

.section-stone {
  background-color: var(--bg-stone);
}

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

.section-header {
  max-width: 64ch;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.55rem;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-secondary);
  line-height: 1.62;
}

.section-dark .section-title {
  color: var(--dark-ink);
}

.section-dark .section-lead {
  color: var(--dark-muted);
}

/* ==========================================================================
   3. Editorial Story Section ("Who We Are" — Asymmetric 2-Photo Spread)
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: stretch;
}

.story-tall-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-stone);
  min-height: 460px;
}

.story-tall-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.story-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.story-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-prose .section-title {
  margin-bottom: 4px;
  max-width: 22ch;
}

.story-prose p {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.68;
  max-width: 58ch;
}

.story-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.craft-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.craft-pillars li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.craft-pillars strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-primary);
}

.craft-pillars span {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.story-inset-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-stone);
  aspect-ratio: 16 / 11;
}

.story-inset-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   4. Deep Espresso-Charcoal Core Services Showcase (Reference Contrast Band)
   ========================================================================== */
.dark-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.dark-header-row .section-header {
  margin-bottom: 0;
  max-width: 56ch;
}

.services-dark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-dark-card {
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-dark-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #2C2521;
}

.service-dark-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-dark-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.service-dark-title {
  font-size: 1.26rem;
  line-height: 1.24;
  color: var(--dark-ink);
}

.service-dark-copy {
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--dark-muted);
}

.service-dark-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-dark-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-ink);
  transition: color 160ms ease;
}

.service-dark-link:hover {
  color: var(--dark-copper);
}

.service-arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-copper-bright);
  color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 160ms ease, transform 180ms var(--ease-out-expo);
}

.service-dark-link:hover .service-arrow-circle {
  background-color: var(--accent-copper);
  transform: translateX(3px);
}

/* ==========================================================================
   5. Interactive Before & After Storm Restoration
   ========================================================================== */
.ba-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.ba-header-row .section-header {
  margin-bottom: 0;
}

.ba-case-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: var(--bg-white);
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
}

.ba-tab {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.ba-tab:hover {
  color: var(--ink-primary);
}

.ba-tab[aria-selected="true"] {
  background-color: var(--dark-surface);
  color: var(--bg-white);
}

.ba-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.88fr);
  gap: 36px;
  align-items: stretch;
}

.ba-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ba-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--dark-surface);
  aspect-ratio: 16 / 10;
  user-select: none;
  touch-action: pan-y;
  --pos: 50%;
}

.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-layer-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 2;
}

.ba-badge {
  position: absolute;
  bottom: 16px;
  z-index: 4;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.ba-badge-before {
  left: 16px;
  background-color: rgba(24, 20, 18, 0.88);
  color: var(--bg-white);
}

.ba-badge-after {
  right: 16px;
  background-color: rgba(200, 75, 25, 0.94);
  color: var(--bg-white);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background-color: var(--bg-white);
  transform: translateX(-1px);
  z-index: 5;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-white);
  color: var(--ink-primary);
  border: 2px solid var(--accent-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(24, 20, 18, 0.3);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

.ba-stage:has(.ba-range:focus-visible) {
  outline: 3px solid var(--accent-copper);
  outline-offset: 4px;
}

.ba-hint {
  font-size: 0.9rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ba-readout {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-secondary);
}

.ba-details {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ba-case-title {
  font-size: 1.42rem;
  line-height: 1.22;
}

.ba-case-summary {
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.62;
}

.ba-spec-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
}

.ba-spec-list div {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ba-spec-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-copper);
}

.ba-spec-list dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-primary);
  line-height: 1.5;
}

.ba-note {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ==========================================================================
   6. Interactive North Texas Roof Cost Estimator
   ========================================================================== */
.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: start;
}

.estimator-controls {
  background-color: var(--bg-stone);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.est-group {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.est-legend {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.est-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.est-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.est-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.est-choice-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-primary);
  line-height: 1.28;
}

.est-choice-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.est-choice:hover {
  border-color: var(--ink-primary);
}

.est-choice:has(input:checked) {
  background-color: var(--accent-copper-tint);
  border-color: var(--accent-copper);
}

.est-choice:has(input:focus-visible) {
  outline: 2px solid var(--accent-copper);
  outline-offset: 2px;
}

.est-slider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.est-slider-value {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-copper);
}

.est-range {
  width: 100%;
  accent-color: var(--accent-copper);
  height: 8px;
  cursor: pointer;
}

.est-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.est-pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.est-addons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.est-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.est-checkbox:hover {
  border-color: var(--border-strong);
}

.est-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-copper);
  flex-shrink: 0;
  cursor: pointer;
}

.est-checkbox:has(input:checked) {
  background-color: var(--accent-copper-tint);
  border-color: var(--accent-copper);
}

.est-checkbox-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.est-checkbox-copy strong {
  font-size: 0.95rem;
  color: var(--ink-primary);
}

.est-checkbox-copy span {
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.estimator-ledger {
  background-color: var(--dark-surface);
  color: var(--dark-ink);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ledger-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-copper);
}

.ledger-range {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--dark-ink);
}

.ledger-subline {
  font-size: 0.96rem;
  color: var(--dark-muted);
  line-height: 1.5;
}

.ledger-breakdown {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--dark-border);
}

.ledger-breakdown li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--dark-border);
  font-size: 0.95rem;
}

.ledger-breakdown .item-label {
  color: var(--dark-muted);
}

.ledger-breakdown .item-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--dark-ink);
  text-align: right;
  white-space: nowrap;
}

.ledger-disclaimer {
  font-size: 0.86rem;
  color: var(--dark-muted);
  line-height: 1.55;
}

.ledger-cta {
  width: 100%;
}

/* ==========================================================================
   7. Story-Driven Process Track (Editorial Hairlines — No Cliché 01-04 Grid)
   ========================================================================== */
.process-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.process-stage {
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--border-light);
}

.process-stage:first-child {
  padding-left: 0;
}

.process-stage:last-child {
  padding-right: 0;
  border-right: none;
}

.stage-tag {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-copper);
}

.stage-title {
  font-size: 1.3rem;
  line-height: 1.24;
}

.stage-copy {
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.62;
}

/* ==========================================================================
   8. Service Area Feature Panel (Reference Rounded Banner Feel — No Bento Wall)
   ========================================================================== */
.area-panel {
  background-color: var(--bg-stone);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
}

.area-panel-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.area-panel-body .section-title {
  margin-bottom: 6px;
}

.area-panel-lead {
  color: var(--ink-secondary);
  font-size: 1.04rem;
  line-height: 1.64;
  max-width: 54ch;
}

.city-directory {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}

.city-directory li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.city-pin {
  width: 18px;
  height: 18px;
  color: var(--accent-copper);
  flex-shrink: 0;
  margin-top: 3px;
}

.city-dir-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-dir-text strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.city-dir-text span {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.area-panel-photo {
  min-height: 360px;
  background-color: var(--bg-stone-deep);
}

.area-panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   9. Homeowner FAQ
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-strong);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.34;
  color: var(--ink-primary);
  transition: color 160ms ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent-copper);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--accent-copper);
  flex-shrink: 0;
  transition: transform 220ms var(--ease-out-expo);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 32px 24px 0;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 64ch;
}

/* ==========================================================================
   10. Local Inspection Request Form
   ========================================================================== */
.request-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 60px;
  align-items: start;
}

.request-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.request-copy .section-title {
  margin-bottom: 0;
}

.request-copy p {
  color: var(--ink-secondary);
  line-height: 1.66;
}

.request-checklist {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--ink-primary);
}

.request-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--accent-copper);
  flex-shrink: 0;
  margin-top: 3px;
}

.form-panel {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-sheet);
}

.inspection-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.field-optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-primary);
  background-color: var(--bg-stone);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.field select {
  cursor: pointer;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-secondary);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--bg-white);
  border-color: var(--accent-copper);
  box-shadow: 0 0 0 3px rgba(200, 75, 25, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--status-error);
  background-color: var(--status-error-bg);
}

.field-error {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--status-error);
  min-height: 1.2em;
}

.form-error-banner {
  background-color: var(--status-error-bg);
  border: 1px solid rgba(166, 38, 32, 0.35);
  color: var(--status-error);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.94rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 6px;
}

.form-local-note {
  font-size: 0.87rem;
  color: var(--ink-muted);
  max-width: 34ch;
  line-height: 1.45;
}

.request-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--status-success-bg);
  border: 1px solid rgba(30, 84, 56, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--status-success);
}

.summary-status svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.summary-status-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.summary-status p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--status-success);
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.summary-list div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-list .summary-full {
  grid-column: 1 / -1;
}

.summary-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.summary-list dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-primary);
  word-break: break-word;
}

.summary-timestamp {
  font-variant-numeric: tabular-nums;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   11. Deep Espresso-Charcoal Four-Column Footer (Reference Grounded Close)
   ========================================================================== */
.site-footer {
  background-color: var(--dark-surface);
  color: var(--dark-ink);
  padding: 72px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.05fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand-mark {
  color: var(--dark-copper);
}

.footer-brand .brand-name {
  color: var(--dark-ink);
}

.footer-tagline {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 30ch;
}

.footer-thumb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}

.footer-thumb {
  width: 68px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.footer-location {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
  color: var(--dark-muted);
}

.footer-location strong {
  color: var(--dark-ink);
  font-weight: 700;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-ink);
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-list a {
  font-size: 0.96rem;
  color: var(--dark-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-list a:hover {
  color: var(--dark-ink);
}

.footer-city-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-city-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.96rem;
  color: var(--dark-muted);
}

.footer-city-list svg {
  width: 15px;
  height: 15px;
  color: var(--dark-copper);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-copyright {
  font-size: 0.88rem;
  color: var(--dark-muted);
}

.footer-disclosure {
  font-size: 0.84rem;
  color: var(--dark-muted);
  line-height: 1.5;
  max-width: 74ch;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .services-dark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-overlay {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .hero-float-card {
    max-width: 420px;
  }

  .story-grid,
  .ba-layout,
  .estimator-layout,
  .area-panel,
  .faq-layout,
  .request-shell {
    grid-template-columns: 1fr;
  }

  .story-tall-frame {
    min-height: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-stage:nth-child(2n) {
    border-right: none;
  }

  .process-stage:nth-child(odd) {
    padding-left: 0;
  }

  .process-stage:nth-child(1),
  .process-stage:nth-child(2) {
    border-bottom: 1px solid var(--border-light);
  }

  .faq-intro {
    position: static;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, var(--container-max));
  }

  .section {
    padding: 64px 0;
  }

  .hero-band {
    padding: 16px 0 48px;
  }

  .hero-canvas {
    min-height: 540px;
    border-radius: var(--radius-lg);
  }

  .hero-overlay {
    padding: 24px 20px;
    gap: 24px;
  }

  .hero-title {
    font-size: 2.35rem;
    max-width: none;
  }

  .section-title {
    font-size: 1.95rem;
  }

  .hero-float-card {
    flex-direction: row;
    padding: 12px;
    gap: 12px;
  }

  .hero-float-thumb {
    width: 68px;
    height: 76px;
  }

  .story-lower,
  .craft-pillars,
  .services-dark-grid,
  .est-material-grid,
  .est-pitch-grid,
  .process-track,
  .city-directory,
  .form-row-2,
  .summary-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-stage {
    padding: 22px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .process-stage:last-child {
    border-bottom: none;
  }

  .area-panel-body,
  .estimator-controls,
  .estimator-ledger,
  .ba-details,
  .form-panel {
    padding: 24px;
  }

  .ledger-range {
    font-size: 2.15rem;
  }

  .ba-badge {
    font-size: 0.74rem;
    padding: 5px 9px;
    bottom: 10px;
  }

  .ba-badge-before {
    left: 10px;
  }

  .ba-badge-after {
    right: 10px;
  }

  .faq-answer {
    padding-right: 0;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .summary-actions .btn {
    width: 100%;
  }

  .form-local-note {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.dw-demo-back {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(11, 34, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font: 600 13px/1.2 system-ui, -apple-system, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.dw-demo-back:hover,
.dw-demo-back:focus-visible {
  background: #007d89;
  color: #fff;
  outline: 2px solid #76e2dd;
  outline-offset: 2px;
}
