/* ============================================
   Advance Your Assets — Design System
   Warm, photo-forward retirement advisory site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --burgundy: #5A1A2E;
  --burgundy-light: #7A2840;
  --burgundy-pale: #F3E8EB;
  --gold: #B8923C;
  --gold-light: #D4B872;
  --gold-pale: #F1EBE2;
  --bg: #FAF8F5;
  --bg-section: #F1EBE2;
  --ink: #2B2420;
  --ink-soft: #5C5650;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 4px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

p { color: var(--ink-soft); }

.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Gold hairline divider (signature motif) ---------- */
.path-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}
.path-divider::before,
.path-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.path-divider .mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-pale);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--burgundy);
  letter-spacing: -0.01em;
}
.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--burgundy); }
.nav-links a.active { color: var(--burgundy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-phone {
  font-weight: 600;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-cta {
  background: var(--burgundy);
  color: var(--white) !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--burgundy-light); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.mobile-toggle svg { stroke: var(--burgundy); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-phone span.phone-text { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--gold-pale);
  padding: var(--space-sm) var(--space-md) var(--space-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bg-section);
  font-weight: 500;
}
.mobile-menu .nav-cta {
  text-align: center;
  margin-top: var(--space-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}
.btn-primary:hover { background: var(--burgundy-light); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a37f33; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy-pale); }

/* ---------- Sections ---------- */
section { padding: var(--space-xl) 0; }
.section-alt { background: var(--bg-section); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-lg);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius);
  padding: var(--space-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--burgundy);
  color: #E8D9DD;
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.site-footer h4 {
  color: var(--gold-light);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.site-footer .brand { color: var(--white); }
.site-footer .brand span { color: var(--gold-light); }
.site-footer p, .site-footer a { color: #D9C3CA; font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-md);
  font-size: 0.85rem;
  color: #C7AEB6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.disclosure {
  max-width: 800px;
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: #B79AA3;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ---------- Responsive: collapse two/three column grids on small screens ---------- */
@media (max-width: 860px) {
  .container > div[style*="grid-template-columns:1.1fr 0.9fr"],
  .container > div[style*="grid-template-columns:0.9fr 1.1fr"],
  .container > div[style*="grid-template-columns:0.85fr 1.15fr"],
  .container > div[style*="grid-template-columns:repeat(2, 1fr)"],
  .container > div[style*="grid-template-columns:repeat(3, 1fr)"],
  .container > div[style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
  section { padding: var(--space-lg) 0; }
  h1 { text-align: left; }
}

@media (max-width: 480px) {
  .nav-wrap { padding: 0.9rem var(--space-sm); }
  .brand { font-size: 1.05rem; }
  .container { padding: 0 var(--space-sm); }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reveal-on-scroll (subtle, used sparingly) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
