/* ==========================================================================
   Adam Buys Alabama Houses — design tokens + component styles
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces — C2 "Navy field reversed": cream paper, navy for bands */
  --color-bg: #f7f3e6;
  --color-surface: #ffffff;
  --color-surface-2: #fdfbf5;
  --color-surface-offset: #efe8d3;
  --color-surface-offset-2: #e6ddc2;
  --color-surface-dynamic: #d9cca4;
  --color-divider: #e3dabd;
  --color-border: #d6c9a4;

  /* Text — navy ink */
  --color-text: #12233a;
  --color-text-muted: #5b6b7f;
  --color-text-faint: #97a2b0;
  --color-text-inverse: #f7f3e6;

  /* Primary — deep navy field */
  --color-primary: #12233a;
  --color-primary-hover: #0b1626;
  --color-primary-active: #0e1c2f;
  --color-primary-highlight: #e2e7ed;

  /* Action — porch gold accent */
  --color-action: #c8912e;
  --color-action-hover: #ac7a22;
  --color-action-active: #8f651c;
  --color-action-highlight: #f3e6c9;

  /* Dark bands (stats, CTA, footer) — fixed in both themes */
  --color-band: #12233a;
  --color-band-deep: #0b1626;
  --color-band-ink: #f7f3e6;
  --color-band-gold: #d9a53e;

  --color-success: #3f7a42;
  --color-success-highlight: #e0ebdd;
  --color-warning: #9a6a1c;
  --color-warning-highlight: #f0e5cd;
  --color-error: #a13333;
  --color-error-highlight: #f0d6d2;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 250 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.2 0.03 250 / 0.1);
  --shadow-lg: 0 18px 40px oklch(0.2 0.03 250 / 0.16);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Anton', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0e1a2b;
  --color-surface: #142339;
  --color-surface-2: #17273f;
  --color-surface-offset: #1c2e47;
  --color-surface-offset-2: #21354f;
  --color-surface-dynamic: #2b4160;
  --color-divider: #243650;
  --color-border: #33465f;

  --color-text: #eef1f5;
  --color-text-muted: #a9b4c2;
  --color-text-faint: #6c7889;
  --color-text-inverse: #0e1a2b;

  --color-primary: #dfe6ee;
  --color-primary-hover: #ffffff;
  --color-primary-active: #c7d1de;
  --color-primary-highlight: #21354f;

  --color-action: #e0b158;
  --color-action-hover: #eac37a;
  --color-action-active: #f2d49b;
  --color-action-highlight: #3a2f1a;

  --color-band: #0b1626;
  --color-band-deep: #07101c;
  --color-band-ink: #f7f3e6;
  --color-band-gold: #e0b158;

  --color-success: #7cb87f;
  --color-success-highlight: #23331f;
  --color-warning: #d3a15a;
  --color-warning-highlight: #3a2e1a;
  --color-error: #d98686;
  --color-error-highlight: #3a2020;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 18px 40px oklch(0 0 0 / 0.5);
}

/* ==========================================================================
   Type scale
   ========================================================================== */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --text-3xl: clamp(2.25rem, 1.3rem + 3.5vw, 3.75rem);
  --text-hero: clamp(2.5rem, 1rem + 5.5vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

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

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

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-action);
  margin-bottom: var(--space-3);
  line-height: 2;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  vertical-align: middle;
  background: var(--color-action);
  border-radius: var(--radius-full);
}
.eyebrow::before {
  margin-right: var(--space-2);
}
.eyebrow::after {
  margin-left: var(--space-2);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--color-text);
}
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
}
h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 60ch;
}
.section-head--center p {
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  border-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header--hidden {
  transform: translateY(-100%);
}

/* Single full-width navy bar */
.header {
  background: var(--color-band);
}
.header-bar {
  width: 100%;
  background: var(--color-band);
}
.header-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 2vw, var(--space-8));
}
.header-mobile-bar {
  background: var(--color-band);
}

.brand {
  display: flex;
  /* Top-align the mark and the wordmark. The mark reserves its full image
     height (including the thin southern panhandle tail) in the flex row so
     the header is always tall enough to contain the whole state outline —
     no absolute positioning, so nothing can spill outside the header.
     The wordmark is nudged down via margin-top on .brand-name so it lands
     centered against the mark's main body specifically, not its full
     tail-inclusive height. */
  align-items: flex-start;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-band-ink);
  flex-shrink: 0;
  padding-block: var(--space-3);
}
.brand-mark-frame {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 192px;
  max-width: 100%;
}
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.94;
  white-space: nowrap;
  /* "ALABAMA HOUSES" is the wider line at equal font-size, so it sets the
     reference size. "ADAM BUYS" is scaled up 1.534x so its text renders the
     same width as line2 (measured in-browser), matching them into a flush
     block instead of a short line sitting over a long one.
     --line-size is sized so the two stacked lines together are shorter than
     the main body of the Alabama mark (excluding its southern panhandle
     tail); margin-top below centers that shorter block against the main
     body specifically, within the full-height mark image reserved above. */
  --line-size: 3.886rem;
  margin-top: 11px;
}
.brand-name .line1 {
  font-size: calc(var(--line-size) * 1.534);
  color: var(--color-band-ink);
}
.brand-name .line2 {
  font-size: var(--line-size);
  color: var(--color-band-gold);
}

/* Right-hand column: contact info + CTA on top, nav row underneath, both
   tied to the right edge of the page. The whole column is vertically
   centered against the logo block on the opposite side (see
   .header-bar-inner align-items: center). */
.header-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-6));
}

/* Nav sits right under the contact/CTA row, right-aligned with it, with a
   gold dash separating each link and bracketing both ends. */
.header-nav-row {
  display: flex;
  justify-content: flex-end;
}
.nav {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.nav-links::before {
  content: "\2014";
  color: var(--color-band-gold);
  font-weight: 700;
  margin-right: var(--space-3);
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links li::after {
  content: "\2014";
  color: var(--color-band-gold);
  font-weight: 700;
  margin-inline: var(--space-3);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: color-mix(in oklab, var(--color-band-ink) 82%, transparent);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--color-band-ink);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}
.header-contact-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in oklab, var(--color-band-ink) 60%, transparent);
  margin-bottom: 2px;
}
.header-phone-big {
  font-family: var(--font-display);
  color: var(--color-band-gold);
  font-size: clamp(1.35rem, 0.9rem + 1.1vw, 1.85rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.header-email {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-band-ink) 78%, transparent);
  text-decoration: none;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-band-ink);
  text-decoration: none;
  white-space: nowrap;
}
.phone-link svg {
  color: var(--color-band-gold);
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-band-ink);
  border: 1px solid color-mix(in oklab, var(--color-band-ink) 30%, transparent);
}
.icon-btn:hover {
  color: var(--color-band-gold);
  border-color: color-mix(in oklab, var(--color-band-ink) 55%, transparent);
}

.menu-toggle {
  display: none;
}
@media (max-width: 1500px) {
  .theme-toggle--desktop {
    display: none;
  }
}
@media (max-width: 1360px) {
  .header-email {
    display: none;
  }
}

/* Mobile-only phone + menu row beneath the full-bleed brand bar */
.header-mobile-bar {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4) var(--space-3);
  border-top: 1px solid color-mix(in oklab, var(--color-band-ink) 14%, transparent);
}
.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header-mobile-actions .menu-toggle {
  display: inline-flex;
}
.header-mobile-bar .icon-btn {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-action);
  color: var(--color-band-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-action-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-action-active);
  transform: translateY(0);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-text-faint);
  background: var(--color-surface-offset);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in oklab, var(--color-bg) 96%, transparent) 0%,
    color-mix(in oklab, var(--color-bg) 88%, transparent) 38%,
    color-mix(in oklab, var(--color-bg) 55%, transparent) 62%,
    color-mix(in oklab, var(--color-bg) 22%, transparent) 100%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: stretch;
  gap: var(--space-10);
  max-width: 760px;
}
.hero-map-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.hero-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-map-radius {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed var(--color-band-gold);
  background: color-mix(in oklab, var(--color-band-gold) 12%, transparent);
  pointer-events: none;
}
.hero-map-city-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.hero-map-city-pin::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.hero-map-city-pin span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.88);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.hero-map-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.hero .eyebrow {
  color: var(--color-action);
}
.hero h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-action);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-verse {
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.5;
}
.hero-verse-text {
  color: var(--color-band-gold);
  font-weight: 600;
}
.hero-verse-ref {
  display: inline-block;
  margin-left: var(--space-2);
  color: var(--color-primary);
  font-weight: 700;
  font-style: normal;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg {
  color: var(--color-action);
  flex-shrink: 0;
}
.stars {
  color: var(--color-action);
  display: inline-flex;
  gap: 1px;
}

.quick-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
}
.quick-form p {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.quick-form-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.quick-form-row input {
  flex: 1 1 220px;
}
.field-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats {
  padding-block: var(--space-12);
  background: var(--color-band);
  color: var(--color-band-ink);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-band-ink);
}
.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  color: color-mix(in oklab, var(--color-band-ink) 75%, transparent);
  margin-top: var(--space-1);
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  counter-reset: step;
  max-width: 640px;
  margin: 0 auto;
}
.step-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.step-num {
  display: inline-flex;
  flex-shrink: 0;
  font-weight: 400;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}
.step-card h3 {
  margin-bottom: var(--space-2);
}
.step-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.step-connector {
  display: block;
  width: 2px;
  height: var(--space-8);
  margin: 0 auto;
  background: var(--color-border);
}

/* Bolder treatment for the Simple, Honest Process band */
#how-it-works {
  background: var(--color-band);
  position: relative;
}
#how-it-works .eyebrow {
  color: var(--color-band-gold);
}
#how-it-works .eyebrow::before,
#how-it-works .eyebrow::after {
  background: var(--color-band-gold);
}
#how-it-works h2 {
  color: var(--color-band-ink);
}
#how-it-works .section-head p {
  color: color-mix(in oklab, var(--color-band-ink) 72%, transparent);
}
#how-it-works .step-card {
  background: color-mix(in oklab, var(--color-band-ink) 7%, var(--color-band));
  border: 1px solid color-mix(in oklab, var(--color-band-gold) 35%, transparent);
  border-left: 4px solid var(--color-band-gold);
  box-shadow: var(--shadow-lg);
}
#how-it-works .step-num {
  width: 56px;
  height: 56px;
  font-size: var(--text-xl);
  background: var(--color-band-gold);
  color: var(--color-band-deep);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-band-gold) 22%, transparent);
}
#how-it-works .step-card h3 {
  color: var(--color-band-ink);
}
#how-it-works .step-card p {
  color: color-mix(in oklab, var(--color-band-ink) 68%, transparent);
}
#how-it-works .step-connector {
  width: 3px;
  background: color-mix(in oklab, var(--color-band-gold) 55%, transparent);
}

/* ==========================================================================
   Why us — comparison
   ========================================================================== */
.compare-scroll-hint {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.compare-scroll-hint svg {
  color: var(--color-action);
  animation: compare-hint-nudge 1.6s ease-in-out infinite;
}
@keyframes compare-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
.compare-shell {
  position: relative;
}
.compare-fade {
  display: none;
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 36px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: linear-gradient(to right, transparent, var(--color-surface) 70%);
  pointer-events: none;
}
.compare-wrap {
  border: 2px solid var(--color-band-gold);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-band-gold) 25%, transparent);
}
.compare {
  width: 100%;
  min-width: 560px;
}
.compare th,
.compare td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}
.compare thead th {
  font-weight: 700;
  background: var(--color-primary-highlight);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.compare thead th:first-child {
  border-left: 3px solid var(--color-band-gold);
}
.compare thead th.compare-head--traditional {
  color: var(--color-text-muted);
  background: var(--color-primary-highlight);
  border-left: 3px solid var(--color-border);
}
.compare thead th.compare-head--brand {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  font-weight: 800;
  border-left: 3px solid var(--color-band-gold);
}
.compare td.compare-row-label {
  color: var(--color-text);
  font-weight: 600;
  background: var(--color-primary-highlight);
  border-left: 3px solid var(--color-band-gold);
}
.compare td.compare-traditional {
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-left: 3px solid var(--color-border);
}
.compare td.compare-us {
  color: var(--color-text);
  background: color-mix(in oklab, var(--color-surface-offset) 60%, var(--color-surface));
  font-weight: 600;
  border-left: 3px solid var(--color-band-gold);
}
.compare tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 720px) {
  .compare-scroll-hint {
    display: flex;
  }
  .compare-fade {
    display: block;
  }
  .compare th:first-child,
  .compare td.compare-row-label {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 4px 0 8px -4px oklch(0.2 0.03 250 / 0.12);
  }
  .compare thead th:first-child {
    background: var(--color-primary-highlight);
  }
  .compare tbody td.compare-row-label {
    background: var(--color-primary-highlight);
  }
}
.compare svg.yes {
  color: var(--color-band-gold);
}
.compare svg.no {
  color: var(--color-error);
}
.compare .cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ==========================================================================
   Situations grid
   ========================================================================== */
.situations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.situation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.situation-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-action-highlight);
  color: var(--color-action);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.situation-card h3 {
  font-size: var(--text-base);
}
.situation-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Divider / pull quote with image
   ========================================================================== */
.divider {
  position: relative;
  padding-block: clamp(var(--space-20), 14vw, var(--space-32));
  overflow: hidden;
}
.divider-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.divider-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.divider-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in oklab, var(--color-band-deep) 86%, transparent) 0%,
    color-mix(in oklab, var(--color-band-deep) 70%, transparent) 55%,
    color-mix(in oklab, var(--color-band-deep) 40%, transparent) 100%
  );
}
.divider blockquote {
  max-width: 900px;
  color: var(--color-band-ink);
}
.divider blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}
.divider footer {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--color-band-ink) 78%, transparent);
  font-weight: 600;
}

/* ==========================================================================
   Service area
   ========================================================================== */
.area-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.city-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
}
.city-chip svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   About Adam
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
}
.avatar-mark {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}
.avatar-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.about-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.about-copy p:last-of-type {
  margin-bottom: var(--space-6);
}
.signature {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.signature span {
  display: block;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.review-card p {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.review-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.review-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.review-name {
  font-weight: 600;
  font-size: var(--text-sm);
}
.review-loc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list {
  max-width: var(--content-default);
  margin-inline: auto;
  border-top: 1px solid var(--color-divider);
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}
.faq-question svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}
.faq-item[data-open='true'] .faq-question svg {
  transform: rotate(45deg);
  color: var(--color-action);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[data-open='true'] .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer-inner {
  overflow: hidden;
}
.faq-answer p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding-bottom: var(--space-5);
  max-width: 68ch;
}

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.cta-band {
  background: var(--color-band);
  color: var(--color-band-ink);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  text-align: center;
  margin-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.cta-band h2 {
  color: var(--color-band-ink);
}
.cta-band p {
  color: color-mix(in oklab, var(--color-band-ink) 80%, transparent);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-band .btn-primary {
  background: var(--color-band-ink);
  color: var(--color-band-deep);
}
.cta-band .btn-primary:hover {
  background: color-mix(in oklab, var(--color-band-ink) 90%, var(--color-action));
}

/* ==========================================================================
   Lead form
   ========================================================================== */
.form-section {
  background: var(--color-surface-offset);
}
.form-wrap {
  max-width: 760px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-lg);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.form-grid .field-full {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.field .required {
  color: var(--color-action);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: var(--text-base);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-6);
}
.form-privacy svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
.form-actions {
  margin-top: var(--space-6);
}

.form-success {
  display: none;
  text-align: center;
  padding-block: var(--space-8);
}
.form-success[data-visible='true'] {
  display: block;
}
.form-success .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}
.form-success h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.form-success p {
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: auto;
}
.form-card[data-hidden='true'] {
  display: none;
}

/* Shown only when the submission actually failed, so the seller knows to reach
   out another way instead of assuming their details arrived. */
.form-error {
  display: none;
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-error);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
}
.form-error[data-visible='true'] {
  display: block;
}
.form-error p {
  color: var(--color-text);
  margin: 0;
}
.form-error a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: underline;
}

.form-actions button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-band-deep);
  color: color-mix(in oklab, var(--color-band-ink) 88%, transparent);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid color-mix(in oklab, var(--color-band-ink) 15%, transparent);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-band-ink);
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.footer-mark {
  height: 176px;
  width: auto;
  flex-shrink: 0;
}
.footer-wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.06;
}
.footer-wordmark .line1 {
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  color: var(--color-band-ink);
}
.footer-wordmark .line2 {
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  color: var(--color-band-gold);
}
.footer p.tagline {
  font-size: var(--text-sm);
  max-width: 32ch;
  color: color-mix(in oklab, var(--color-band-ink) 68%, transparent);
}
.footer h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: color-mix(in oklab, var(--color-band-ink) 60%, transparent);
  margin-bottom: var(--space-4);
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer a {
  color: color-mix(in oklab, var(--color-band-ink) 82%, transparent);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer a:hover {
  color: var(--color-band-ink);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-band-ink) 55%, transparent);
}
.social-links {
  display: flex;
  gap: var(--space-3);
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in oklab, var(--color-band-ink) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-legal {
  max-width: 900px;
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-band-ink) 50%, transparent);
  margin-top: var(--space-6);
  line-height: 1.7;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav[data-open='true'] {
  transform: translateX(0);
}
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .situations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  .area-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-layout {
    text-align: center;
  }
}

/* The full desktop nav + contact block + CTA needs meaningful room to stay
   on one line and legible — collapse to the stacked/full-bleed mobile-style
   bar earlier than the rest of the page's 860px breakpoint. */
@media (max-width: 1180px) {
  .header-right-col {
    display: none;
  }
  .header-mobile-bar {
    display: flex;
  }
  /* Brand bar goes full-bleed: no inline padding on the row so the mark's
     left edge and the wordmark's right edge both touch the screen edges. */
  .header-bar-inner {
    padding-inline: 0;
  }
  .brand {
    width: 100%;
    padding-inline: 0;
    justify-content: space-between;
  }
  .brand-mark {
    height: 156px;
  }
  .brand-name {
    --line-size: 3.158rem;
    margin-top: 9px;
  }
  .phone-link--top {
    font-size: var(--text-sm);
    gap: var(--space-1, 0.25rem);
  }
  .phone-link--top svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 860px) {
  .hero .container {
    padding-inline: var(--space-4);
  }
  .hero h1 {
    font-size: clamp(2.75rem, 1.6rem + 6.5vw, 4.5rem);
  }
  .hero-sub {
    max-width: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .hero-map-card {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1.1 / 1;
    height: auto;
    margin-inline: auto;
  }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      color-mix(in oklab, var(--color-bg) 55%, transparent) 0%,
      color-mix(in oklab, var(--color-bg) 92%, transparent) 55%,
      var(--color-bg) 78%
    );
  }
  .hero {
    padding-top: var(--space-12);
  }
  .hero-bg video,
  .hero-bg img {
    object-position: 58% 72%;
  }
}

@media (max-width: 720px) {
  .situations-grid,
  .reviews-grid,
  .form-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .quick-form-row {
    flex-direction: column;
  }
  .quick-form-row input,
  .quick-form-row button {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Brand lockup — responsive trims */
@media (max-width: 860px) {
  .footer-mark {
    height: 136px;
  }
}
@media (max-width: 420px) {
  .brand-mark {
    height: 124px;
  }
  .brand-name {
    --line-size: 2.510rem;
    margin-top: 7px;
  }
  .footer-mark {
    height: 112px;
  }
}

/* ==========================================================================
   Seller qualifier entry points (hero secondary link + mid-page teaser)
   ========================================================================== */
.hero-alt-cta {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero-alt-cta a {
  font-weight: 900;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-action);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.hero-alt-cta a:hover {
  color: var(--color-action-hover);
}

.fit-check-card {
  background: var(--color-band);
  color: var(--color-band-ink);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.fit-check-card .eyebrow {
  justify-content: center;
  color: var(--color-band-gold);
}
.fit-check-card .eyebrow::before,
.fit-check-card .eyebrow::after {
  background: var(--color-band-gold);
}
.fit-check-card h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-2xl);
  color: var(--color-band-ink);
  margin-bottom: var(--space-4);
  max-width: 26ch;
  margin-inline: auto;
}
.fit-check-card p {
  color: color-mix(in oklab, var(--color-band-ink) 78%, transparent);
  max-width: 60ch;
  margin: 0 auto var(--space-6);
}
.fit-check-card .field-note {
  color: color-mix(in oklab, var(--color-band-ink) 55%, transparent);
  margin-top: var(--space-4);
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .fit-check-card {
    padding: var(--space-8) var(--space-5);
  }
}
