/* ==========================================================================
   Carlos Garcia — Investor Site
   Brand palette: Black & Gold, with Silver as the neutral undertone
   ========================================================================== */

:root {
  --jet: #0d0d0f;
  --charcoal: #202124;
  --gold: #c9a24b;
  --gold-dark: #a17f34;
  --silver: #aeb4bd;
  --silver-soft: #eef0f2;
  --ink: #121212;
  --ink-soft: #686c74;
  --paper: #ffffff;
  --paper-soft: #f5f5f6;
  --line: #dcdde1;
  --shadow: 0 12px 32px rgba(13, 13, 15, 0.12);
  --radius: 14px;
  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201, 162, 75, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--jet);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.4);
}
.btn-primary:hover { background: var(--gold-dark); color: #fff; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-outline {
  background: transparent;
  color: var(--jet);
  border-color: var(--jet);
}
.btn-outline:hover { background: var(--jet); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--jet);
}
.brand-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.brand-logo-lockup {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--jet);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav-cta .btn-primary { background: var(--gold); color: var(--jet); box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--jet) 0%, var(--charcoal) 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,162,75,0.30) 0%, rgba(201,162,75,0) 70%);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead {
  color: rgba(255,255,255,0.86);
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
}
.hero-stats div span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.hero-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-visual img { border-radius: 10px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }

.bg-soft { background: var(--paper-soft); }
.bg-blue {
  background: var(--jet);
  color: #fff;
}
.bg-blue h2, .bg-blue h3 { color: #fff; }
.bg-blue p { color: rgba(255,255,255,0.82); }

/* ---------- Grids / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(201,162,75,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--silver-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-strip div {
  flex: 1 1 160px;
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-strip div:last-child { border-right: none; }
.stat-strip strong {
  display: block;
  font-size: 1.7rem;
  color: var(--jet);
}
.stat-strip span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Lead magnet / CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--jet);
  border-radius: var(--radius);
  padding: 46px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 30px;
}
.cta-banner h3 { color: var(--jet); }
.cta-banner p { color: rgba(13,13,15,0.72); }

/* ---------- Timeline (1031 wealth ladder) ---------- */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ladder .rung {
  padding: 22px 0 22px 26px;
  border-left: 3px solid var(--line);
  position: relative;
}
.ladder .rung:not(:last-child) { border-left-color: var(--jet); }
.ladder .rung .num {
  position: absolute;
  left: -22px;
  top: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--jet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 16px 0 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--paper-soft);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--jet);
  background: #fff;
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  display: none;
  background: #ecfdf3;
  border: 1px solid #b6ecc8;
  color: #14532d;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 26px;
}
.site-footer h4 { color: #fff; font-size: 1rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer-grid a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold); }

.disclaimer-box {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.placeholder-note {
  font-size: 0.72rem;
  color: var(--gold-dark);
  background: rgba(201,162,75,0.1);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner .btn { margin: 0 auto; }
}

@media (max-width: 680px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .brand-tag { white-space: nowrap; }
  body.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip div { border-right: none; border-bottom: 1px solid var(--line); }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
}
