/* ==========================================================================
   EB5 Manhattan — styles.css
   Deep navy + gold/champagne palette. No external dependencies.
   ========================================================================== */

:root {
  --navy: #0d1b2e;
  --navy-deep: #091323;
  --navy-mid: #14263f;
  --navy-soft: #1c3252;
  --gold: #c9a95b;
  --gold-light: #e3cf9a;
  --champagne: #f3e9d2;
  --ink: #22293a;
  --ink-soft: #4a5468;
  --paper: #fbfaf7;
  --paper-alt: #f2efe8;
  --line: #e2ddd0;
  --max-width: 1050px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id], [id] { scroll-margin-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a { color: var(--navy-soft); }

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

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

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 46, 0.97);
  border-bottom: 1px solid rgba(201, 169, 91, 0.35);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--champagne);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .logo-mark { color: var(--gold); }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
}

.main-nav a {
  color: var(--champagne);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201, 169, 91, 0.5);
  border-radius: 4px;
  color: var(--champagne);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(ellipse at 75% 10%, rgba(201, 169, 91, 0.14), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: var(--champagne);
  padding: 5.5rem 0 5rem;
  text-align: center;
}

.hero h1 {
  color: #fdfaf2;
  max-width: 820px;
  margin: 0 auto 1.25rem;
}

.hero .hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 91, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.5rem;
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto 2.25rem;
  font-size: 1.12rem;
  color: rgba(243, 233, 210, 0.88);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  border: 1px solid var(--gold);
  font-weight: 600;
}

.btn-gold:hover, .btn-gold:focus { transform: translateY(-1px); background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--champagne);
  border: 1px solid rgba(201, 169, 91, 0.6);
  margin-left: 0.75rem;
}

.btn-outline:hover, .btn-outline:focus { background: rgba(201, 169, 91, 0.12); }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.25rem;
}

.hero-stats .stat { min-width: 150px; }

.hero-stats .stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-light);
}

.hero-stats .stat span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 233, 210, 0.75);
}

/* --- Sections ----------------------------------------------------------- */

.section { padding: 4.25rem 0; }

.section-alt { background: var(--paper-alt); }

.section-dark {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--champagne);
}

.section-dark h2, .section-dark h3 { color: var(--champagne); }
.section-dark p { color: rgba(243, 233, 210, 0.85); }

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.section-intro { max-width: 760px; margin-bottom: 2.25rem; color: var(--ink-soft); }
.section-dark .section-intro { color: rgba(243, 233, 210, 0.8); }

.rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 0 0 1.5rem;
}

/* --- Card grids ---------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.75rem 1.6rem;
  box-shadow: 0 1px 3px rgba(13, 27, 46, 0.06);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(201, 169, 91, 0.28);
  border-top: 3px solid var(--gold);
  box-shadow: none;
}

.card h3 { margin-bottom: 0.6rem; }
.section-dark .card h3 { color: var(--gold-light); }
.card p { margin-bottom: 0; font-size: 0.97rem; color: var(--ink-soft); }
.section-dark .card p { color: rgba(243, 233, 210, 0.8); }

.fact-list { list-style: none; margin: 1.25rem 0 0; }

.fact-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.fact-list li:last-child { border-bottom: none; }

.fact-list li::before {
  content: "◆";
  position: absolute;
  left: 0.25rem;
  top: 0.6rem;
  font-size: 0.7rem;
  color: var(--gold);
}

/* --- Timeline ------------------------------------------------------------ */

.timeline { list-style: none; margin-top: 2rem; counter-reset: step; }

.timeline li {
  position: relative;
  padding: 0 0 2.2rem 4.25rem;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 1.32rem;
  top: 2.9rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(201, 169, 91, 0.15));
}

.timeline li:last-child::after { display: none; }
.timeline li:last-child { padding-bottom: 0; }

.timeline h3 { margin-bottom: 0.35rem; }
.timeline p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 700px; }

/* --- Forms ---------------------------------------------------------------- */

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 30px rgba(13, 27, 46, 0.08);
  max-width: 760px;
}

.section-dark .form-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 91, 0.3);
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}

.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-weight: 600;
}

.section-dark .form-field label { color: var(--gold-light); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfc9ba;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.section-dark .form-field input,
.section-dark .form-field select,
.section-dark .form-field textarea {
  background: rgba(255, 255, 255, 0.92);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-field .field-error {
  display: none;
  font-size: 0.82rem;
  color: #a2352c;
  margin-top: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}

.section-dark .form-field .field-error { color: #f2b8ae; }

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: #a2352c; }

.form-field.invalid .field-error { display: block; }

.consent-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.section-dark .consent-row { color: rgba(243, 233, 210, 0.8); }

.consent-row input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.form-actions { grid-column: 1 / -1; margin-top: 0.4rem; }

.form-note {
  grid-column: 1 / -1;
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin: 0;
}

.section-dark .form-note { color: rgba(243, 233, 210, 0.65); }

.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 0.8rem 1rem;
  border-radius: 3px;
  font-size: 0.95rem;
}

.form-status.error { display: block; background: #f9e4e1; color: #7c2921; border: 1px solid #e5b5af; }
.form-status.success { display: block; background: #e7f0e4; color: #2e5427; border: 1px solid #b9d3b2; }

/* --- FAQ accordion --------------------------------------------------------- */

.faq-list { max-width: 820px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--navy);
  padding: 1.15rem 3rem 1.15rem 0.25rem;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  transform: translateY(-50%);
}

.faq-question:hover, .faq-question:focus { color: var(--navy-soft); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0.25rem 1.3rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 740px;
}

.faq-answer-inner p:last-child { margin-bottom: 0; }

/* --- Disclaimer ------------------------------------------------------------- */

.disclaimer-box {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.6rem 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 900px;
}

.disclaimer-box h2, .disclaimer-box h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.disclaimer-box p:last-child { margin-bottom: 0; }

/* --- Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(243, 233, 210, 0.75);
  padding: 3rem 0 2.25rem;
  font-size: 0.88rem;
}

.site-footer .footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--champagne);
  margin-bottom: 0.75rem;
}

.site-footer .footer-brand .logo-mark { color: var(--gold); }

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1rem 0 1.5rem;
}

.footer-links a { color: var(--gold-light); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { text-decoration: underline; }

.footer-disclaimer {
  border-top: 1px solid rgba(201, 169, 91, 0.25);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(243, 233, 210, 0.55);
  max-width: 900px;
}

.footer-copy { margin-top: 1rem; font-size: 0.82rem; }

/* --- Content pages (privacy, meetings) ---------------------------------------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--champagne);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 { color: #fdfaf2; margin-bottom: 0.75rem; }
.page-hero p { max-width: 720px; color: rgba(243, 233, 210, 0.85); margin-bottom: 0; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: 0.4rem; }

.notice-strip {
  background: var(--navy-mid);
  color: var(--gold-light);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* --- Responsive ----------------------------------------------------------------- */

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(201, 169, 91, 0.35);
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 1.5rem;
    border-bottom: none;
  }

  .form-grid { grid-template-columns: 1fr; }

  .hero { padding: 3.75rem 0 3.5rem; }

  .btn-outline { margin-left: 0; margin-top: 0.75rem; }

  .hero-stats { gap: 1.5rem; }

  .section { padding: 3rem 0; }

  .timeline li { padding-left: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
