/* ============================================================
   THE PLANNING ROOM — styles.css
   "Quiet Authority" design system
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:       #0D1F3C;
  --navy-mid:   #1A2A4A;
  --navy-light: #243560;
  --gold:       #C9A961;
  --gold-light: #DEC07A;
  --ivory:      #F5EFE1;
  --cream:      #FAF7F2;
  --charcoal:   #2A2A35;
  --slate:      #6B7280;
  --white:      #FFFFFF;
  --rule:       rgba(201, 169, 97, 0.25);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --transition: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  --section-v: 6rem;
  --container-max: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}

img, svg { display: block; }

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

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  :root { --section-v: 4rem; }
}

/* ============================================================
   ANIMATION
   ============================================================ */
.fade-in, .fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.fade-in {
  transform: translateY(0);
}

.fade-in.visible,
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(13, 31, 60, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

@media (max-width: 480px) {
  .nav-brand { display: none; }
  .nav-inner { padding: 0 1.25rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201, 169, 97, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201, 169, 97, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative thin horizontal rule behind the fold */
.hero-bg-rule {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule) 20%, var(--rule) 80%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(245, 239, 225, 0.7);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9375rem 2rem;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.16s ease;
}

.btn-primary:hover    { background: var(--gold-light); }
.btn-primary:active   { transform: scale(0.97); }

.btn-ghost {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 239, 225, 0.6);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.btn-ghost:hover { color: var(--ivory); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 239, 225, 0.4);
}

.trust-sep {
  color: rgba(201, 169, 97, 0.4);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 640px) {
  .hero { padding: 6rem 0 4rem; }
  .hero-inner { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================================
   SECTION: WHY THIS MATTERS
   ============================================================ */
.section-why {
  background: var(--cream);
  padding: var(--section-v) 0;
  border-bottom: 1px solid var(--rule);
}

.why-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-eyebrow.light {
  color: rgba(201, 169, 97, 0.8);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-title.light {
  color: var(--ivory);
}

.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
  max-width: 56ch;
  margin-bottom: 1rem;
}

.body-text:last-child { margin-bottom: 0; }

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--rule);
  padding-left: 2.5rem;
}

@media (max-width: 900px) {
  .why-stats { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 2rem; flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.stat-card:last-child { border-bottom: none; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  max-width: 22ch;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .stat-card { border-bottom: none; padding: 0; flex: 1; min-width: 150px; }
}

/* ============================================================
   SECTION: WHAT YOU'LL LEARN
   ============================================================ */
.section-learn {
  background: var(--navy);
  padding: var(--section-v) 0;
  position: relative;
  overflow: hidden;
}

.section-learn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}

.learn-header {
  margin-bottom: 3.5rem;
  max-width: 52ch;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

@media (max-width: 640px) {
  .learn-grid { grid-template-columns: 1fr; }
}

.learn-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rule);
  padding: 2.5rem 2rem;
  transition: background 0.3s ease;
}

.learn-card:hover { background: rgba(201, 169, 97, 0.05); }

.learn-card-icon {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.learn-card-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.learn-card-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 239, 225, 0.55);
}

/* ============================================================
   SECTION: ADVISORS
   ============================================================ */
.section-advisors {
  background: var(--ivory);
  padding: var(--section-v) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.advisors-header {
  margin-bottom: 3.5rem;
}

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

@media (max-width: 900px) {
  .advisors-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.advisor-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 2px;
}

.advisor-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.advisor-avatar svg { width: 100%; height: 100%; }

.advisor-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.advisor-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.advisor-bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate);
}

/* ============================================================
   SECTION: REGISTER CTA
   ============================================================ */
.section-register {
  background: var(--navy-mid);
  padding: calc(var(--section-v) * 1.2) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.register-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(12rem, 30vw, 20rem);
  font-weight: 700;
  color: rgba(201, 169, 97, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.register-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.register-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
}

.badge-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.register-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ivory);
  max-width: 22ch;
}

.register-sub {
  font-size: 1.0625rem;
  color: rgba(245, 239, 225, 0.6);
  max-width: 48ch;
  line-height: 1.6;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.0625rem 2.5rem;
  border-radius: 2px;
  margin-top: 0.5rem;
  transition: background 0.2s ease, transform 0.16s ease;
}

.btn-register:hover  { background: var(--gold-light); }
.btn-register:active { transform: scale(0.97); }

.register-note {
  font-size: 0.8125rem;
  color: rgba(245, 239, 225, 0.35);
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTION: FAQ
   ============================================================ */
.section-faq {
  background: var(--cream);
  padding: var(--section-v) 0;
}

.faq-header {
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.faq-item:first-child { border-top: 1px solid rgba(201, 169, 97, 0.2); }

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s var(--transition);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question { color: var(--gold); }

.faq-answer {
  padding: 0 0 1.5rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--slate);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(245, 239, 225, 0.45);
}

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(245, 239, 225, 0.25);
  max-width: 72ch;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 97, 0.1);
}
