:root {
  --navy: #142332;
  --charcoal: #1f262b;
  --cream: #f6efe3;
  --paper: #fffaf1;
  --gold: #b78445;
  --terracotta: #a85f3f;
  --muted: #65707a;
  --line: rgba(20, 35, 50, 0.16);
  --shadow: 0 24px 60px rgba(20, 35, 50, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

a:hover {
  opacity: 0.94;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 { max-width: 810px; font-size: clamp(3.05rem, 7.5vw, 6.55rem); }
h2 { max-width: 760px; font-size: clamp(2.1rem, 4vw, 4.15rem); }
h3 { font-size: 1.5rem; }

p {
  margin: 0;
  font-size: clamp(1rem, 1.65vw, 1.12rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fffaf1;
  background: rgba(20, 35, 50, 0.88);
  border-bottom: 1px solid rgba(255, 250, 241, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid rgba(255, 250, 241, 0.7);
  font-family: "Playfair Display", Georgia, serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.65rem);
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: #f0c287;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font: 700 0.94rem/1 "Inter", sans-serif;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fffaf1;
  background: var(--terracotta);
  box-shadow: 0 12px 30px rgba(168, 95, 63, 0.35);
}

.button-primary:hover {
  background: #914f36;
}

.button-secondary,
.button-ghost {
  color: #fffaf1;
  background: rgba(255, 250, 241, 0.12);
  border: 1px solid rgba(255, 250, 241, 0.28);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(255, 250, 241, 0.18);
}

.section-pad {
  padding: clamp(4.25rem, 8vw, 7.5rem) 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.split,
.valuation-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 8rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(10, 18, 26, 0.76) 0%, rgba(10, 18, 26, 0.58) 42%, rgba(10, 18, 26, 0.14) 100%),
    url("https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=2400&q=85") center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-copy,
.hero-copy p,
.hero-copy h1 {
  color: #fffaf1;
}

.eyebrow,
.section-kicker,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow,
.section-kicker {
  color: #f0c287;
}

.hero-intro {
  max-width: 620px;
  margin-top: 1.15rem;
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  color: rgba(255, 250, 241, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-points span {
  padding: 0.55rem 0.8rem;
  color: #fffaf1;
  background: rgba(255, 250, 241, 0.12);
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-panel {
  padding: 1.4rem 1.4rem 1.5rem;
  color: #fffaf1;
  background: rgba(20, 35, 50, 0.68);
  border: 1px solid rgba(255, 250, 241, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.hero-panel li + li {
  margin-top: 0.75rem;
}

.problem {
  background: var(--paper);
}

.problem p,
.about p,
.valuation p,
.market-plan p,
.faq p,
.stub-card p {
  max-width: 760px;
  margin-top: 1.1rem;
  color: #35424e;
}

.approach {
  color: #fffaf1;
  background: var(--navy);
}

.approach h2,
.approach p {
  color: #fffaf1;
}

.approach-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.18);
  box-shadow: var(--shadow);
}

.approach-panel div {
  min-height: 8.8rem;
  padding: 1.6rem;
  background: rgba(255, 250, 241, 0.08);
}

.approach-panel strong,
.approach-panel span {
  display: block;
}

.approach-panel strong {
  margin-bottom: 0.45rem;
  color: #f0c287;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
}

.approach-panel span {
  color: rgba(255, 250, 241, 0.88);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p {
  max-width: 690px;
  color: var(--muted);
}

.signal-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat-grid article {
  min-height: 12rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.stat-number,
.stat-label {
  display: block;
}

.stat-number {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.stat-label {
  max-width: 190px;
  margin-top: 1rem;
  color: #4c5965;
  font-weight: 700;
}

.market-plan {
  background: #f6efe3;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid article {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 35, 50, 0.12);
  box-shadow: 0 14px 30px rgba(20, 35, 50, 0.06);
}

.card-grid p {
  margin-top: 0.85rem;
}

.neighborhoods {
  background: #efe2d0;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.neighborhood-grid a {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.5rem;
  padding: 1.2rem;
  color: #fffaf1;
  background:
    linear-gradient(180deg, rgba(20, 35, 50, 0.08), rgba(20, 35, 50, 0.82)),
    url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80") center / cover;
  box-shadow: 0 16px 36px rgba(20, 35, 50, 0.14);
  text-decoration: none;
}

.neighborhood-grid a:nth-child(2n) {
  background-image:
    linear-gradient(180deg, rgba(20, 35, 50, 0.08), rgba(20, 35, 50, 0.82)),
    url("https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?auto=format&fit=crop&w=900&q=80");
}

.neighborhood-grid a:nth-child(3n) {
  background-image:
    linear-gradient(180deg, rgba(20, 35, 50, 0.08), rgba(20, 35, 50, 0.82)),
    url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=900&q=80");
}

.neighborhood-grid a span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.neighborhood-grid a small {
  color: rgba(255, 250, 241, 0.88);
  font-size: 0.95rem;
}

.about {
  background: var(--paper);
}

.portrait {
  min-height: 34rem;
  background:
    linear-gradient(180deg, rgba(20, 35, 50, 0), rgba(20, 35, 50, 0.14)),
    url("https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=1200&q=85") center / cover;
  box-shadow: var(--shadow);
}

.inline-links,
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.inline-links {
  margin-top: 1.5rem;
}

.inline-links a,
.footer-contact a,
.contact-note a,
.faq a {
  color: var(--terracotta);
  font-weight: 700;
}

.faq {
  background: #f8f3e8;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(20, 35, 50, 0.12);
}

.faq summary {
  cursor: pointer;
  color: var(--navy);
  font: 700 1.03rem/1.4 "Inter", sans-serif;
}

.faq details p {
  margin-top: 0.9rem;
}

.valuation {
  color: #fffaf1;
  background:
    linear-gradient(90deg, rgba(20, 35, 50, 0.94), rgba(20, 35, 50, 0.84)),
    url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1800&q=85") center / cover;
}

.valuation h2,
.valuation p {
  color: #fffaf1;
}

.valuation-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: var(--shadow);
}

.valuation-form label,
.valuation-form span {
  display: grid;
  gap: 0.4rem;
}

.valuation-form span {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.valuation-form input,
.valuation-form select,
.valuation-form textarea {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid rgba(20, 35, 50, 0.25);
  border-radius: 0;
  padding: 0.85rem;
  background: #fff;
  color: var(--charcoal);
  font: 500 1rem/1.4 "Inter", sans-serif;
}

.valuation-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.valuation-form .button {
  width: 100%;
  margin-top: 0.35rem;
}

.form-note,
.contact-note {
  color: rgba(255, 250, 241, 0.9) !important;
  font-size: 0.92rem;
}

.site-footer {
  padding: 1.4rem 0;
  color: #fffaf1;
  background: #101923;
}

.footer-grid {
  justify-content: space-between;
}

.footer-grid span {
  font-weight: 700;
}

.footer-contact a {
  color: #f0c287;
}

.stub-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
}

.stub-main {
  display: grid;
  align-items: center;
  padding: 8rem 0 4rem;
}

.stub-card {
  max-width: 820px;
}

.stub-card .button {
  margin-top: 2rem;
}

.stub-card ul {
  margin: 1.15rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 940px) {
  .hero-grid,
  .split,
  .valuation-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-cta {
    order: 3;
    width: 100%;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .signal-grid,
  .stat-grid,
  .neighborhood-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 10rem;
    padding-bottom: 4rem;
    background-position: 58% center;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 8.8rem;
    background-position: 60% center;
  }

  h1 { font-size: clamp(2.6rem, 15vw, 4.25rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }

  .signal-grid,
  .stat-grid,
  .neighborhood-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid article {
    min-height: 8.5rem;
  }

  .portrait {
    min-height: 24rem;
    order: -1;
  }

  .footer-grid {
    display: grid;
    gap: 0.4rem;
  }
}
