/* ============================================================
   Visionary Estates — design system
   Navy #16283E · Paper #FAF8F4 · Gold #A8862F · Slate #5B6B80
   Display: Source Serif 4 · Body/UI: Libre Franklin
   ============================================================ */

:root {
  --navy: #16283E;
  --navy-deep: #0F1C2D;
  --navy-tint: #EDF1F6;
  --paper: #FAF8F4;
  --ink: #1B2431;
  --slate: #5B6B80;
  --gold: #A8862F;
  --gold-soft: #C4A45C;
  --line: #DCD8CF;
  --white: #FFFFFF;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
p  { max-width: 62ch; }

a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius); border: 2px solid var(--navy);
  cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #8F7226; border-color: #8F7226; }
.link-quiet { font-weight: 600; color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; justify-content: space-between; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: #fff;
  background: var(--navy); width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border-bottom: 3px solid var(--gold);
}
.brand-name { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.brand-name em { font-style: normal; color: var(--gold); }

.site-nav ul { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover { color: var(--gold); }
.nav-cta { border: 2px solid var(--navy); padding: 0.45rem 1rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--navy); color: #fff !important; }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-toggle {
    display: block; background: none; border: 2px solid var(--navy); border-radius: var(--radius);
    padding: 0.4rem 0.9rem; font-weight: 600; font-family: var(--sans); color: var(--navy);
  }
  .site-nav ul {
    display: none; position: absolute; right: 1rem; top: 3.6rem; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(22,40,62,0.12); min-width: 220px;
  }
  .site-nav ul.open { display: flex; }
  .site-nav ul li a { display: block; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
  .nav-cta { border: none; }
}

/* ---------- sections ---------- */
.section { padding: 4rem 0; }
.section-tint { background: var(--navy-tint); }
.section-navy { background: var(--navy); color: #E9EDF3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #C9D2DE; }

/* ---------- 1 · hero ---------- */
.hero { padding: 4.5rem 0 3rem; }
.hero h1 { max-width: 17ch; margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: var(--slate); max-width: 56ch; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.hero-alt { color: var(--slate); font-size: 1rem; }
.cred-bar {
  margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-size: 0.9rem; color: var(--slate);
}
.cred-bar span { white-space: nowrap; }

/* ---------- 2 · search ---------- */
.search-block { background: var(--navy); padding: 2.5rem 0 2.75rem; }
.search-form { display: flex; gap: 0.6rem; }
.search-form input[type="search"] {
  flex: 1; font-size: 1.05rem; padding: 0.95rem 1.1rem; border: none; border-radius: var(--radius);
  font-family: var(--sans);
}
.chip-row { display: flex; gap: 0.55rem; margin-top: 1rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  color: #E9EDF3; border: 1px solid rgba(233,237,243,0.4); border-radius: 999px;
  padding: 0.42rem 1rem; transition: background .15s, border-color .15s;
}
.chip:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.chip-gold { border-color: var(--gold-soft); color: var(--gold-soft); }
.explore-all { display: inline-block; margin-top: 0.9rem; color: var(--gold-soft); font-size: 0.95rem; }
@media (max-width: 640px) { .search-form { flex-direction: column; } }

/* ---------- 3 · model + spine (signature element) ---------- */
.model-lead { color: var(--slate); font-size: 1.1rem; margin-bottom: 2.5rem; }
.spine { margin: 0 0 0.9rem; }
.spine ol {
  list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0;
}
.spine li {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--navy); display: flex; align-items: center;
}
.spine li + li::before {
  content: "→"; color: var(--gold); font-family: var(--sans); font-weight: 400;
  margin: 0 0.65rem; font-size: 0.9em;
}
.spine-rail { height: 3px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 70%, transparent 100%); max-width: 640px; margin-bottom: 0.7rem; }
.spine-caption { font-style: italic; color: var(--gold); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 3rem; }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; margin-bottom: 2rem; }
.proof-grid h3 { font-family: var(--serif); }
.proof-grid p { font-size: 0.98rem; color: var(--slate); }
@media (max-width: 820px) { .proof-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- 4 · fork ---------- */
.fork-kicker { font-family: var(--serif); text-align: center; margin-bottom: 2.25rem; }
.fork-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.fork-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy);
  padding: 1.8rem 1.5rem; display: flex; flex-direction: column; border-radius: var(--radius);
}
.fork-card h3 { font-size: 1.35rem; }
.fork-card p { font-size: 0.98rem; color: var(--slate); flex: 1; margin: 0.6rem 0 1.2rem; }
.fork-card .link-quiet { align-self: flex-start; }
@media (max-width: 820px) { .fork-grid { grid-template-columns: 1fr; } }

/* ---------- 5/6/7 · product sections ---------- */
.product { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.product-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.product-side.on-navy { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; gap: 1.8rem; } }

.feature-strip { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.92rem; color: var(--slate); margin-top: 1.1rem; }
.section-navy .feature-strip { color: #AEB9C8; }

.addr-form { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.addr-form input { flex: 1; padding: 0.9rem 1rem; font-size: 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); }
@media (max-width: 640px) { .addr-form { flex-direction: column; } }

.chain { margin: 1.4rem 0 0.4rem; }
.chain ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.chain li { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: #fff; display: flex; align-items: center; }
.chain li + li::before { content: "→"; color: var(--gold-soft); margin: 0 0.55rem; font-weight: 400; }
.chain-caption { font-style: italic; color: var(--gold-soft); font-size: 0.98rem; margin-bottom: 1.3rem; }
.strategies { color: #C9D2DE; font-size: 0.95rem; }

.fin-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin: 2rem 0; }
.fin-points h3 { font-size: 1.08rem; }
.fin-points p { font-size: 0.95rem; color: var(--slate); }
@media (max-width: 820px) { .fin-points { grid-template-columns: 1fr; gap: 1.4rem; } }
.disclosure { font-size: 0.82rem; color: var(--slate); max-width: 70ch; margin-top: 1.6rem; }

/* ---------- 8 · proof ---------- */
.broker-grid { display: grid; grid-template-columns: auto 1fr; gap: 2.4rem; align-items: start; }
.broker-photo {
  width: 210px; height: 250px; background: var(--navy-tint); border: 1px solid var(--line);
  border-bottom: 4px solid var(--gold); display: grid; place-items: center;
  font-family: var(--serif); color: var(--slate); font-size: 0.9rem; text-align: center; padding: 1rem;
}
.broker-photo img { width: 100%; height: 100%; object-fit: cover; }
.broker-name { font-size: 1.6rem; margin-bottom: 0.15rem; }
.broker-title { color: var(--gold); font-weight: 600; margin-bottom: 0.6rem; }
.broker-lic { font-size: 0.95rem; color: var(--slate); margin-bottom: 1rem; }
.fact-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0; }
.fact-strip span {
  border: 1px solid var(--line); background: #fff; padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--navy);
}
@media (max-width: 720px) { .broker-grid { grid-template-columns: 1fr; } .broker-photo { width: 100%; max-width: 320px; } }

/* ---------- 9 · close ---------- */
.close-band { text-align: center; padding: 4.5rem 0; }
.close-band h2 { margin-bottom: 1.6rem; }
.close-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.2rem; }
.close-band .btn-ghost { border-color: #fff; color: #fff; }
.close-band .btn-ghost:hover { background: #fff; color: var(--navy); }
.close-alt { color: #C9D2DE; }
.close-alt a { color: var(--gold-soft); }

/* ---------- forms (funnel pages) ---------- */
.form-page { max-width: 680px; margin: 0 auto; padding: 3.5rem 1.25rem 4.5rem; }
.form-page h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 0.6rem; }
.form-intro { color: var(--slate); margin-bottom: 2rem; }
.lead-form { display: grid; gap: 1.1rem; }
.lead-form fieldset { border: none; display: grid; gap: 1.1rem; }
.lead-form legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.4rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; font-size: 1rem; font-family: var(--sans);
  border: 1px solid #C6C1B6; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field-hint { font-size: 0.85rem; color: var(--slate); margin-top: 0.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.88rem; color: var(--slate); }
.err-banner { background: #FBEFEA; border: 1px solid #E0B4A3; color: #7C3A21; padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1.4rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* thanks */
.thanks { text-align: center; padding: 5.5rem 1.25rem; max-width: 640px; margin: 0 auto; }
.thanks h1 { margin-bottom: 1rem; }
.thanks p { margin: 0 auto 1rem; color: var(--slate); }

/* ---------- footer ---------- */
.site-foot { background: var(--navy-deep); color: #AEB9C8; padding: 3rem 0 2.5rem; font-size: 0.92rem; }
.site-foot a { color: #D8DFE8; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: 2.5rem; }
.foot-logo { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: 0.5rem; }
.foot-nav { display: grid; gap: 0.45rem; align-content: start; }
.foot-legal p { margin-bottom: 0.5rem; max-width: none; }
.foot-disclosure { font-size: 0.82rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
