/* Advantage by Blue Door Realty Group — first-draft marketing site */

:root {
  --navy: #0c2a4d;
  --door: #2B7FFF;
  --navy-2: #153a66;
  --navy-3: #1c4a80;
  --blue: #0c2a4d;
  --blue-mid: #1a3f6e;
  --blue-soft: #eef1f6;
  --sky: #f5f7fa;
  --gold: #c4a35a;
  --gold-deep: #a6863e;
  --gold-light: #e8d5a3;
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #142033;
  --muted: #4a5563;
  --line: #d5dae3;
  --white: #ffffff;
  --savings: #1c5c40;
  --danger: #9b2c2c;
  --shadow: 0 16px 36px rgba(12, 42, 77, 0.08);
  --radius: 16px;
  --header-h: 76px;
  --font-sans: "Poppins", "Segoe UI", sans-serif;
  --font-serif: "Poppins", "Segoe UI", sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); color: var(--navy); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: var(--blue-mid); }

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

.container.narrow { width: min(100% - 2.5rem, 800px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -80px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.eyebrow.dark { color: var(--gold-deep); }

.section-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

.btn-gold {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(12, 42, 77, 0.22);
}
.btn-gold:hover { background: var(--navy-2); color: var(--white); }

.btn-header {
  background: var(--white);
  color: var(--navy);
  padding: 0.65rem 1.15rem;
}

.site-header .btn-header,
.site-nav .btn-header {
  background: var(--navy);
  color: var(--white);
}
.site-header .btn-header:hover,
.site-nav .btn-header:hover {
  background: var(--navy-2);
  color: var(--white);
}

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }

.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(100%, 220px);
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--navy-2);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.55rem 0.75rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--navy-3); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: var(--white);
  color: var(--navy);
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(43, 127, 255, 0.07), transparent 52%),
    radial-gradient(ellipse at 8% 90%, rgba(12, 42, 77, 0.035), transparent 48%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.idx-search-slot {
  max-width: 46rem;
  min-height: 3.6rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  box-shadow: 0 12px 30px rgba(12, 42, 77, 0.10);
  border: 1px solid var(--line);
  max-width: 36rem;
}

.search-icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  min-width: 0;
  padding: 0.7rem 0;
}

.search-box input:focus { outline: none; }
.search-box input::placeholder { color: #8a94a0; }

.search-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  color: var(--navy-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dba7a;
  box-shadow: 0 0 0 4px rgba(61, 186, 122, 0.2);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-why-link {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}
.hero-why-link a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(12, 42, 77, 0.35);
}
.hero-why-link a:hover { color: var(--navy-3); border-bottom-color: var(--navy-3); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0;
  max-width: 36rem;
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.door-illustration {
  width: min(100%, 380px);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.hero-art {
  position: relative;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 18px 32px rgba(12, 42, 77, 0.10));
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(88%, 340px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(43, 127, 255, 0.10) 0%, rgba(43, 127, 255, 0.03) 46%, transparent 70%);
  pointer-events: none;
}

/* Why Advantage */
.why {
  background: var(--white);
  padding: 5.5rem 0;
}

.why h2 { max-width: 24ch; }

.why .section-lead {
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: 0;
}

.badge-soon {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 163, 0.55);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-soon-light {
  color: var(--navy-2);
  border-color: rgba(12, 42, 77, 0.18);
  background: var(--sky);
}

.why-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  margin-top: 2.4rem;
  padding: 2.1rem 2.2rem 2.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(12, 42, 77, 0.18);
}

.why-feature-copy {
  max-width: 44rem;
}

@media (min-width: 901px) {
  .why-feature-copy {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    grid-template-areas:
      "badge points"
      "title points"
      "lead points"
      "actions points";
    column-gap: 2.8rem;
    row-gap: 0.55rem;
    align-items: center;
  }

  .why-feature-copy .badge-soon {
    grid-area: badge;
    justify-self: start;
  }

  .why-feature-copy h3 { grid-area: title; }

  .why-feature-copy > p:not(.badge-soon) { grid-area: lead; }

  .why-feature-copy .why-feature-points {
    grid-area: points;
    margin: 0;
    align-self: center;
  }

  .why-feature-copy .why-feature-actions { grid-area: actions; }
}

.why-feature h3 {
  color: var(--white);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 0.55rem;
}

.why-feature p { color: #d7e0ea; }

.why-feature .btn-header {
  margin-top: 0.4rem;
  display: inline-flex;
}

.why-feature-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.why-feature-points li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 213, 163, 0.16);
  border-radius: 12px;
  color: #e8eef5;
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-feature-points li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.22);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.why-card {
  grid-column: span 2;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 30, 54, 0.06);
}

.why-card .badge-soon { margin-bottom: 0.85rem; }

.why-card h3 { margin-bottom: 0.45rem; }

.why-card p { color: var(--muted); margin-bottom: 0; }

.value-icon { width: 48px; margin-bottom: 1rem; }

/* Center the last two cards on the second row */
.why-card:nth-child(4) { grid-column: 2 / span 2; }
.why-card:nth-child(5) { grid-column: 4 / span 2; }

/* Compare */
.compare {
  background: var(--white);
  color: var(--ink);
  padding: 5.5rem 0;
}

.compare h2 { color: var(--navy); }
.compare .section-lead { color: var(--muted); }

.compare-table {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.15fr;
}

.compare-row + .compare-row { border-top: 1px solid var(--line); }

.compare-cell {
  padding: 1.15rem 1.25rem;
  color: var(--ink);
}

.compare-row:not(.compare-head) .compare-cell.label {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.3;
  background: #e8eef5;
  border-left: 4px solid var(--gold);
}

.compare-head .compare-cell {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--sky);
  line-height: 1.35;
}

.compare-head .highlight,
.compare-cell.highlight {
  background: var(--blue);
  color: var(--white);
}

.compare-head .highlight { color: var(--gold-light); }

.compare-footnote {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 58rem;
}

/* Calculator */
.calculator {
  background: var(--sky);
  padding: 4.5rem 0 5rem;
}

.calc-intro {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.calc-intro p { color: var(--muted); }

.calc-intro-note {
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--door);
  border-radius: 0 8px 8px 0;
  color: var(--navy-2);
  text-align: left;
}

.calc-card {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 42, 77, 0.08);
}

.calc-estimate {
  position: relative;
  text-align: center;
  margin-bottom: 1.4rem;
}

.calc-estimate-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.calc-info-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--door);
  background: var(--white);
  color: var(--door);
  font: 700 0.75rem/1 var(--font-sans);
  cursor: pointer;
}

.calc-info-btn:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.calc-info-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.15rem;
  z-index: 3;
  background: var(--white);
  border: 1px solid rgba(12, 42, 77, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(12, 42, 77, 0.12);
  padding: 0.9rem 1rem;
  text-align: left;
}

.calc-info-pop p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.calc-estimate-amount {
  margin: 0.15rem 0 0;
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #0C2A4D;
}

.calc-control {
  margin-top: 1.15rem;
}

.calc-control label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--navy);
  font-size: 0.92rem;
}

.calc-price-display {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.15rem;
}

.currency {
  font-weight: 700;
  font-size: 1.6rem;
  color: #0C2A4D;
}

#home-price {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0C2A4D;
  width: 100%;
  padding: 0.1rem 0 0.15rem;
  letter-spacing: -0.03em;
}

#home-price:focus { outline: none; }

.calc-price-display:focus-within #home-price,
.calc-price-display:focus-within .currency {
  box-shadow: none;
}

.calc-price-display:focus-within {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 8px;
}

#price-range,
#rate-range {
  width: 100%;
  margin: 0.55rem 0 0.25rem;
  accent-color: var(--door);
  cursor: pointer;
  height: 1.15rem;
}

.calc-range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.calc-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.15rem;
}

.calc-step {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(12, 42, 77, 0.16);
  background: var(--white);
  color: #0C2A4D;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
}

.calc-step:hover { background: var(--sky); }

.calc-step:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

#negotiated-rate {
  width: 4.2rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.35rem;
  color: #0C2A4D;
  text-align: center;
  padding: 0.2rem 0;
}

#negotiated-rate:focus {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 6px;
}

.rate-suffix {
  font-weight: 700;
  color: #0C2A4D;
  font-size: 1.1rem;
}

.calc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.calc-split > div:first-child {
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.calc-split > div:last-child {
  padding-left: 1rem;
}

.calc-split-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.calc-split-amount {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0C2A4D;
  letter-spacing: -0.02em;
}

.calc-disclaimer,
.calc-disclaimer-eho {
  max-width: 34rem;
  margin: 0.85rem auto 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.calc-disclaimer-eho {
  margin-top: 0.35rem;
}

.calc-disclaimer-eho a,
.calc-info-pop a {
  color: var(--navy);
  font-weight: 600;
}

.calc-ways {
  max-width: 58rem;
  margin: 2.25rem auto 0;
}

.calc-ways-heading {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  /* Logo gold (--gold #c4a35a) is too pale on --sky (~2.2:1). --gold-deep is the brand gold used for light backgrounds. */
  color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.calc-ways-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

.calc-ways-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  align-items: start;
  align-content: start;
  background: transparent;
}

.calc-ways-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  color: #0C2A4D;
  box-shadow: 0 8px 18px rgba(12, 42, 77, 0.08);
  border: 1px solid rgba(12, 42, 77, 0.06);
  grid-row: 1 / span 2;
}

.calc-ways-icon svg {
  width: 26px;
  height: 26px;
}

.calc-ways-title {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}

.calc-ways-list p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.calc-ways-note {
  margin: 1.15rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (min-width: 800px) {
  .calc-card { padding: 1.85rem 1.8rem 1.6rem; }
  .calc-ways-list {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 1.25rem;
    row-gap: 0;
    align-items: start;
  }
  .calc-ways-list li {
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
    grid-row: span 3;
    justify-items: start;
    align-items: start;
    align-content: start;
    column-gap: 0;
    row-gap: 0;
  }
  .calc-ways-icon {
    grid-row: auto;
    margin: 0 0 0.9rem;
  }
  .calc-ways-title {
    margin: 0 0 0.2rem;
  }
}

.field-help { font-size: 0.82rem; color: var(--muted); margin: 0 0 1.2rem; }

/* Steps */
.steps {
  background: var(--sky);
  color: var(--ink);
  padding: 5.5rem 0;
}

.steps h2 { color: var(--navy); }

.step-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 800px;
  counter-reset: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  margin-top: 0.15rem;
}

.step h3 { color: var(--navy); margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--muted); }

/* Team */
.team {
  background: var(--white);
  padding: 5.5rem 0;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px dashed #b9a36a;
  padding-bottom: 1.4rem;
}

.team-card.is-filled {
  border-style: solid;
  border-color: rgba(11, 30, 54, 0.06);
}

.team-photo {
  position: relative;
  background: #d9e3f0;
  aspect-ratio: 10 / 11;
  overflow: hidden;
}

.team-photo svg,
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo picture { display: block; height: 100%; }

.placeholder-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.team-card h3,
.team-card .team-role,
.team-card .team-meta,
.team-card p:not(.team-role):not(.team-meta) {
  padding-inline: 1.25rem;
}

.team-role {
  margin: 1rem 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.team-card h3 { margin: 0 0 0.25rem; font-style: italic; color: var(--muted); }
.team-card.is-filled h3 { font-style: normal; color: var(--navy); }

.team-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.team-card p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}


/* Shared carousel (team + recently closed) */
.carousel {
  margin-top: 2rem;
}

.carousel-frame {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 0.2rem 0 0.4rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 8px;
}

.carousel-track > * {
  flex: 0 0 85%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (min-width: 721px) {
  .carousel-track > * {
    flex: 0 0 calc((100% - 2.5rem) / 3);
  }
}

.carousel-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(12, 42, 77, 0.16);
  background: #ffffff;
  color: #0C2A4D;
  box-shadow: 0 8px 20px rgba(12, 42, 77, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.carousel-prev { left: 0.35rem; }
.carousel-next { right: 0.35rem; }

@media (min-width: 721px) {
  .carousel-prev { left: -0.6rem; }
  .carousel-next { right: -0.6rem; }
}

.carousel-btn:hover {
  background: var(--sky);
}

.carousel-btn:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-btn[hidden] {
  display: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.carousel-dots[hidden] {
  display: none;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5ced9;
  cursor: pointer;
}

.carousel-dot.is-active,
.carousel-dot[aria-current="true"] {
  width: 22px;
  background: #0C2A4D;
}

.carousel-dot:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

/* FAQ */
.faq {
  background: var(--sky);
  padding: 5.5rem 0;
}

.faq-list { margin-top: 2rem; }

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1.15rem 2.2rem 1.15rem 0;
  position: relative;
  color: var(--navy);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 500;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  padding-right: 1.5rem;
}

.faq-list summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Lead form */
.lead {
  background: var(--blue);
  color: #e8f2ff;
  padding: 5.5rem 0;
}

.lead h2 { color: var(--white); }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.lead-copy p { color: #c9d4e3; }

.contact-details {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  color: #d7e0ea;
  font-size: 0.95rem;
}

.contact-details li { margin: 0 0 0.45rem; }
.contact-details a { color: var(--gold-light); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.email-pending { color: #c9d4e3; }
.todo-flag {
  display: inline-block;
  margin-left: 0.15rem;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
}

.lead-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.field input,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 78, 140, 0.15);
}

.form-fine {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-success {
  background: #e8f6ee;
  border: 1px solid #b7deC6;
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
}

.form-success h3 { margin-bottom: 0.4rem; color: var(--savings); }
.form-success p { margin: 0; color: var(--navy-2); }


/* Recently closed */
.recently-closed {
  background: var(--sky);
  padding: 5rem 0;
}

.closed-card {
  background: var(--white);
  border: 1px solid rgba(12, 42, 77, 0.08);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.closed-card-price {
  margin: 0.15rem 0 0;
  font-size: clamp(1.55rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
}

.closed-card-city {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy-2);
}

.closed-card-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy-2);
  border: 1px solid rgba(12, 42, 77, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closed-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 46rem;
}

/* Reviews */
.reviews {
  background: var(--white);
  padding: 5rem 0;
}

.reviews-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin: 0 0 1.1rem;
}

.star-row {
  display: inline-flex;
  gap: 0.2rem;
  color: #e0ac2b;
}

.star-row svg {
  width: 28px;
  height: 28px;
  display: block;
}

.reviews-score {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.reviews-listings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin: 1.5rem 0 1.5rem;
  max-width: 24rem;
}

.review-listing {
  background: var(--sky);
  border: 1px solid rgba(12, 42, 77, 0.08);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
}

.review-listing-name {
  margin: 0 0 0.35rem;
  font-weight: 650;
  color: var(--navy);
  font-size: 1rem;
}

.review-listing-meta {
  margin: 0;
  color: var(--navy-2);
  font-size: 0.95rem;
}

.review-listing-meta strong {
  font-size: 1.15rem;
  color: var(--navy);
}

.reviews-note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.review-card--placeholder {
  display: none;
}

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

/* Footer */
.site-footer {
  background: #081525;
  color: #b7c4d3;
  padding: 3.2rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p { margin: 1rem 0 0; max-width: 28rem; }

.footer-logo .logo-name { font-size: 1.2rem; }
.footer-logo .logo-img { height: 52px; max-width: min(100%, 230px); }

.footer-meta p { margin: 0 0 0.45rem; }
.footer-meta strong { color: var(--gold-light); font-weight: 650; }
.footer-meta a { color: #d7e0ea; text-decoration: none; }
.footer-meta a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-meta .email-pending { color: #b7c4d3; }
.footer-meta .todo-flag { color: var(--gold-light); }

.footer-eho {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.eho-logo {
  width: 64px;
  flex-shrink: 0;
  color: var(--gold-light);
}

.footer-eho p { margin: 0; }

.footer-disclaimer {
  font-size: 0.82rem;
  color: #8ea0b4;
  max-width: 70rem;
  margin-bottom: 0.8rem;
}

.footer-copy { margin: 0; color: #7d8fa3; font-size: 0.82rem; }
.footer-copy .footer-team-link { color: #9aadc0; margin-left: 1rem; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.footer-copy .footer-team-link:hover { color: #fff; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .lead-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-art { order: 0; }
  .hero-why-link {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}
.hero-why-link a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(12, 42, 77, 0.35);
}
.hero-why-link a:hover { color: var(--navy-3); border-bottom-color: var(--navy-3); }

.door-illustration,
  .hero-logo { width: min(100%, 220px); margin: 0.5rem auto 0; }

  .value-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-feature {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.4rem;
    gap: 1.3rem;
  }

  .why-card,
  .why-card:nth-child(4),
  .why-card:nth-child(5) {
    grid-column: auto;
  }


}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(12, 42, 77, 0.08);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
  }

  .site-nav .btn-header {
    margin-top: 0.7rem;
    text-align: center;
    border-bottom: 0;
  }

  .header-inner { position: relative; width: 100%; padding-inline: 1.25rem; }
  .logo-img { height: 48px; }
}

@media (max-width: 420px) {
  .logo-img { height: 42px; max-width: min(100%, 196px); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 2rem, var(--max)); }

  .hero { padding: 2.4rem 0 3.2rem; }

  .search-box {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 0.65rem 0.75rem 0.75rem;
  }

  .search-box input { flex: 1 1 180px; padding: 0.45rem 0; }

  .search-box .btn { width: 100%; }

  .compare-row,
  .compare-head {
    grid-template-columns: 1fr;
  }

  .compare-head { display: none; }

  .compare-head .compare-cell.label { display: none; }

  .compare-cell {
    padding: 0.7rem 1rem;
  }

  .compare-row:not(.compare-head) + .compare-row {
    margin-top: 1.1rem;
    border-top: 0;
  }

  .compare-row:not(.compare-head) .compare-cell.label {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--navy);
    background: #e4ebf3;
    border-left: 4px solid var(--gold);
    padding: 0.95rem 1rem 0.85rem 1.15rem;
  }

  .compare-cell[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.25rem;
  }

  .compare-cell.highlight[data-label]::before { color: var(--gold-light); }

  .compare-head .compare-cell[data-label]::before,
  .compare-head .compare-cell::before { display: none; }

  .field-row { grid-template-columns: 1fr; }

  .lead-form { padding: 1.25rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .carousel-track { scroll-behavior: auto; }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thank-you {
  min-height: calc(100vh - var(--header-h));
  background: var(--sky);
  padding: 5rem 0 6rem;
}

.thank-you h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--navy);
}

.thank-you p { color: var(--muted); max-width: 36rem; }

.thank-you .btn { margin-top: 0.6rem; }

.calc-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ----- Hero photo ----- */
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 44px rgba(12, 42, 77, 0.16);
}

.hero-art::before { display: none; }

.why-feature-copy .why-feature-points {
  margin: 1.1rem 0 1.15rem;
}

.why-card-photo {
  margin: 0 0 1rem;
  margin-inline: -1.25rem;
  margin-top: -1.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.why-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Tennessee scenery break ----- */
.scenery-break {
  padding: 0;
  background: var(--white);
}

.scenery-frame {
  position: relative;
  overflow: hidden;
}

.scenery-frame img {
  display: block;
  width: 100%;
  height: min(42vw, 420px);
  object-fit: cover;
  object-position: center 40%;
}

.scenery-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.15rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ----- Recently closed photos ----- */
.closed-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.closed-card-photo,
.closed-card-photo picture {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.closed-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closed-card-body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.closed-card .closed-card-badge,
.closed-card-body .closed-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  margin: 0;
  box-shadow: 0 4px 12px rgba(12, 42, 77, 0.12);
}

.closed-card-body .closed-card-price {
  margin-top: 0.15rem;
}

/* ----- Join the Advantage Team ----- */
.join-page {
  padding: 3.5rem 0 4.5rem;
  background: var(--white);
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.join-copy h1 {
  max-width: 16ch;
}

.join-copy .section-lead,
.join-copy p {
  color: var(--muted);
}

.join-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.join-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--navy-2);
  line-height: 1.5;
}

.join-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
}

.join-form-card {
  background: var(--white);
  border: 1px solid rgba(12, 42, 77, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.6rem 1.8rem;
}

.join-form-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.site-nav .btn-header[aria-current="page"] {
  color: var(--white);
}

.site-nav .btn-header {
  flex-shrink: 0;
}

input[type="file"].file-input {
  font: inherit;
  font-size: 0.92rem;
  color: var(--navy-2);
  width: 100%;
}

.field-help {
  margin: 0.3rem 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .join-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-feature {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-height: 320px;
  }

  .scenery-frame img {
    height: 220px;
  }
}

.lead-form textarea,
.join-form-card textarea,
.lead-form .field textarea {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(12, 42, 77, 0.16);
  border-radius: 10px;
  color: var(--navy);
  background: var(--white);
}


/* Why Advantage CTA row and process links */
.why-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
  align-items: center;
}

.why-feature .btn-header {
  margin-top: 0;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  padding: 0.65rem 1.15rem;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.why-card-btn {
  margin-top: 0.85rem;
  align-self: flex-start;
}

.step-cta {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.step-cta a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.step-cta a:hover { color: var(--navy-3); }

/* Buyer Portal */
.portal-page {
  background: var(--white);
  padding: 2.6rem 0 4.5rem;
}

.portal-intro {
  margin-bottom: 2rem;
}

.portal-intro h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
}

.portal-soon {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-2);
}

.portal-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.portal-tab {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid rgba(12, 42, 77, 0.12);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 8px 22px rgba(12, 42, 77, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.portal-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 42, 77, 0.28);
  color: var(--navy);
}

.portal-tab.is-active {
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(12, 42, 77, 0.12);
}

.portal-tab:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.portal-tab-icon {
  display: block;
  width: 48px;
  height: 48px;
}

.portal-tab-icon svg { display: block; width: 48px; height: 48px; }

.portal-tab-title {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.portal-tab-copy {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--navy-2);
  line-height: 1.45;
}

.portal-panel { display: none; scroll-margin-top: calc(var(--header-h) + 1rem); }
.portal-panel.is-active { display: block; }
.portal-panels:has(:target) .portal-panel { display: none; }
.portal-panels:has(:target) .portal-panel:target { display: block; }

.portal-form-card {
  margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(12, 42, 77, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.65rem 1.9rem;
  max-width: 760px;
}

.portal-form-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  color: var(--navy);
}

.portal-panel-lead {
  margin: 0 0 1.3rem;
  color: var(--navy-2);
}

.portal-step {
  border: 1px solid rgba(12, 42, 77, 0.1);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 0.35rem;
  margin: 0 0 1.15rem;
  background: #f7faff;
}

.portal-step legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 0.35rem;
}

.portal-step-copy {
  margin: 0 0 1rem;
  color: var(--navy-2);
  font-size: 0.95rem;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.check-field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.signature-input {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  border-style: none none solid none !important;
  border-bottom: 2px solid var(--navy) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.portal-offer-note {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: #E8F2FF;
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .portal-tabs {
    grid-template-columns: 1fr;
  }

  .portal-tab {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
  }

  .portal-tab-copy {
    flex-basis: 100%;
    padding-left: calc(48px + 0.85rem);
  }
}

@media (max-width: 1100px) {
  .site-nav .btn-header + .btn-header {
    margin-top: 0.45rem;
  }
}

@media (max-width: 1240px) and (min-width: 1101px) {
  .site-nav {
    gap: 0.4rem 0.55rem;
  }

  .site-nav a {
    font-size: 0.76rem;
  }

  .site-nav .btn-header {
    padding: 0.55rem 0.9rem;
  }
}

/* Live Recently Closed cards (Brokermint) — no photos of client homes */
.closed-card-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%); border-bottom: 1px solid rgba(12, 42, 77, 0.08); }
.closed-card-art svg { width: 34%; max-width: 120px; height: auto; }
.closed-card-badge.is-closed { background: #e5f5ec; color: #1c5c40; }
.closed-card--loading { min-height: 160px; display: flex; align-items: center; justify-content: center; }

/* How AI Helps You Decide */
.ai-help { background: var(--white); padding: 5.5rem 0; }
.ai-help h2 { max-width: 24ch; }
.ai-help .section-lead { max-width: 46rem; }
.ai-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.45rem 1.6rem; box-shadow: var(--shadow); }
.ai-card h3 { color: var(--navy); font-size: 1.08rem; margin: 0.9rem 0 0.4rem; }
.ai-card p { color: var(--muted); margin: 0; font-size: 0.96rem; line-height: 1.6; }
.ai-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); }
.ai-icon svg { width: 24px; height: 24px; }
.ai-note { margin: 2rem 0 0; padding: 1.1rem 1.3rem; border-radius: 12px; background: var(--navy); color: #e6edf6; max-width: 52rem; }
.ai-note strong { color: var(--white); }
.ai-disclaimer { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.82rem; max-width: 52rem; }
.ai-carousel { margin-top: 2.2rem; }
.ai-track { padding: 0.4rem 0.2rem 1.6rem; scroll-padding-left: 0.2rem; }
.ai-track > .ai-card { box-shadow: 0 10px 24px rgba(12, 42, 77, 0.08); }
.ai-carousel .carousel-dots { margin-top: 0.4rem; }
@media (max-width: 600px) { .ai-help { padding: 4rem 0; } }
@media (max-width: 720px) {
  /* Arrows sit beside the dots on phones so they never cover card text. */
  .ai-carousel { position: relative; }
  .ai-carousel .carousel-frame { position: static; }
  .ai-carousel .carousel-btn { top: auto; bottom: 0; transform: none; width: 40px; height: 40px; }
  .ai-carousel .carousel-prev { left: 0; }
  .ai-carousel .carousel-next { right: 0; }
  .ai-carousel .carousel-dots { min-height: 40px; align-items: center; margin-top: 0.2rem; }
}

/* The Key Difference spotlight (navy band after Five Steps) */
.kd-spotlight { background: var(--navy); color: #e6edf6; padding: 4.5rem 0; }
.kd-spot-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center; }
.kd-spotlight .eyebrow { color: var(--gold-light); }
.kd-spotlight h2 { color: var(--white); margin: 0 0 1rem; max-width: 20ch; }
.kd-spot-text { margin: 0; font-size: 1.05rem; line-height: 1.7; color: #d7e0ea; max-width: 40rem; }
.kd-spot-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.kd-spot-facts li:not(.kd-spot-cta) { display: grid; gap: 0.15rem; padding: 0.9rem 1.1rem 0.9rem 2.7rem; position: relative; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.kd-spot-facts li:not(.kd-spot-cta)::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 0.85rem; height: 0.45rem; border-left: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(-45deg); }
.kd-spot-facts strong { color: var(--white); font-weight: 600; }
.kd-spot-facts span { font-size: 0.9rem; color: #c9d5e3; }
.kd-spot-cta { margin-top: 0.4rem; }
.kd-spot-cta .btn { display: inline-flex; }
@media (max-width: 860px) { .kd-spot-inner { grid-template-columns: 1fr; gap: 1.8rem; } .kd-spotlight { padding: 3.5rem 0; } }

/* Recently Closed: branded placeholder when no photo */
.closed-card-art--brand { flex-direction: column; gap: 0.35rem; background: linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%); border-bottom: 0; color: var(--white); text-align: center; padding: 1rem; }
.closed-art-logo { width: 52px; height: 52px; opacity: 0.95; margin-bottom: 0.2rem; }
.closed-art-city { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--white); }
.closed-art-month { margin: 0; font-size: 0.85rem; color: var(--gold-light); letter-spacing: 0.02em; }

/* Shiny gold "The Key Difference" text */
.kd-gold, .kd-gold-dark {
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* On navy: bright metallic gold */
.kd-gold {
  background-image: linear-gradient(100deg, #b8860b 0%, #f5d77a 28%, #fff3c4 45%, #d4a537 62%, #a8781c 80%, #f5d77a 100%);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}
/* On white/light: deeper gold so it stays readable */
.kd-gold-dark {
  background-image: linear-gradient(100deg, #7a5a0c 0%, #a8781c 30%, #c9962a 46%, #8f6512 64%, #6e4f0a 82%, #a8781c 100%);
  font-weight: 800;
}
.eyebrow.kd-gold-dark { font-size: 0.86rem; letter-spacing: 0.15em; }
@media (prefers-reduced-motion: no-preference) {
  .kd-gold, .kd-gold-dark { animation: kd-shimmer 2.4s ease-out 0.4s 1 both; }
}
@keyframes kd-shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}
@media (forced-colors: active) {
  .kd-gold, .kd-gold-dark { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}
.site-nav a[hidden] { display: none !important; }
.calc-more { text-align: center; margin: 1.2rem 0 0; }

/* ----- Tennessee neighborhood guides ----- */
.guide-hero { padding: 4.5rem 0 2.5rem; background: #fff; }
.guide-page { padding: 4.5rem 0 3rem; }
.guide-page h1, .guide-hero h1 { color: #0c2a4d; }
.guide-page section { margin: 2rem 0; }
.guide-page h2, .guide-region h2, .guide-cta h2 { color: #0c2a4d; font-size: 1.35rem; margin-bottom: .75rem; }
.guide-regions { padding: 1rem 0 3rem; }
.guide-region { margin-bottom: 2.5rem; }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.guide-card { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #d9e0ea; border-radius: 12px; text-decoration: none; color: #0c2a4d; min-height: 5.5rem; box-shadow: 0 1px 0 rgba(12,42,77,.04); }
.guide-card:hover, .guide-card:focus-visible { border-color: #c4a35a; box-shadow: 0 0 0 3px rgba(196,163,90,.25); }
.guide-card span { color: #4a5b70; font-size: .9rem; }
.guide-cta { background: #0c2a4d; color: #fff; padding: 2.5rem 0; margin-top: 1.5rem; }
.guide-page .guide-cta { background: #0c2a4d; color: #fff; padding: 1.75rem 1.5rem; border-radius: 16px; margin: 2.5rem 0; }
.guide-cta h2, .guide-page .guide-cta h2 { color: #fff; }
.guide-cta p, .guide-page .guide-cta p { color: #e8eef5; }
.guide-cta .btn-outline, .guide-page .guide-cta .btn-outline { color: #fff; border-color: #fff; }
.guide-more { margin-top: 2rem; }
.guide-more ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.container.narrow { max-width: 760px; }
.home-guides { padding: 3.5rem 0; background: #f6f8fb; }
.home-guides .guide-grid { margin-top: 1.25rem; }
.savings-band { padding: 3rem 0; background: #0c2a4d; color: #fff; text-align: center; }
.savings-band .eyebrow { color: #c4a35a; }
.savings-total { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; color: #fff; margin: .25rem 0; letter-spacing: -0.02em; }
.savings-lead { max-width: 36rem; margin: 0 auto; color: #e8eef5; }
.reviews-score { font-weight: 600; color: #0c2a4d; }
@media (max-width: 640px) {
  .guide-hero, .guide-page { padding-top: 3rem; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { width: 100%; height: auto; }
}

.item.is-highlight { outline: 2px solid #c4a35a; box-shadow: 0 0 0 4px rgba(196,163,90,.2); }


/* Compact City + Price search (homepage, portal, search page) */
.adv-simple-search {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(12, 42, 77, 0.10);
  padding: 0.9rem 1rem 0.85rem;
}
.adv-simple-search-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.3fr) minmax(6.5rem, 1fr) minmax(6.5rem, 1fr) auto;
  gap: 0.65rem 0.7rem;
  align-items: end;
}
.adv-ss-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
}
.adv-ss-field select {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  min-height: 2.7rem;
  width: 100%;
  background: var(--white);
}
.adv-ss-field select:focus {
  outline: 3px solid var(--gold-light, #e8d5a3);
  outline-offset: 1px;
  border-color: var(--navy);
}
.adv-ss-submit {
  white-space: nowrap;
  min-height: 2.7rem;
  padding: 0.55rem 1.2rem;
}
.adv-ss-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0.65rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.adv-ss-toggle:hover { color: var(--navy-2, #153a66); }
.adv-ss-toggle:focus-visible { outline: 3px solid var(--gold-light, #e8d5a3); outline-offset: 2px; }
.adv-ss-advanced {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.7rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.adv-ss-advanced[hidden] { display: none !important; }
.adv-ss-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy);
  cursor: pointer;
}
.adv-ss-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); flex-shrink: 0; }
@media (max-width: 800px) {
  .adv-simple-search-row,
  .adv-ss-advanced { grid-template-columns: 1fr 1fr; }
  .adv-ss-submit { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .idx-search-slot { max-width: none; }
  .adv-simple-search-row,
  .adv-ss-advanced { grid-template-columns: 1fr; }
}

.adv-ss-alt { margin: 0.45rem 0 0; font-size: 0.88rem; color: var(--muted, #4a5563); }
.adv-ss-alt a { color: var(--navy); font-weight: 600; }
.sample-more-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.75rem; }
.sample-more-chips[hidden] { display: none !important; }
