/* ═══════════════════════════════════════════════════════════
   AI FPA Expert — Shared Stylesheet
   Theme: Navy / Teal / Gold  (matching Crestmoor dashboard)
═══════════════════════════════════════════════════════════ */

:root {
  --navy:   #0F2545;
  --navy2:  #1B3A6B;
  --teal:   #0D7A8A;
  --teal2:  #12939E;
  --gold:   #C9943B;
  --gold2:  #E8A84A;
  --green:  #1A7F4B;
  --red:    #C0392B;
  --bg:     #F0F3F8;
  --card:   #FFFFFF;
  --border: #DDE3EE;
  --text:   #1A2840;
  --muted:  #6B7A99;
  --light:  #E8EDF6;
  --shadow: 0 2px 20px rgba(15,37,69,0.10);
  --shadow-lg: 0 8px 40px rgba(15,37,69,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════════════════════════ */
.topnav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(15,37,69,0.4);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}

.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  letter-spacing: -1px; flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.3px; line-height: 1.1; }
.logo-tagline { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.8px; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  transition: all .2s; letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff; background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal2)) !important;
  color: #fff !important;
  padding: 9px 20px !important; border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(13,122,138,0.4);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--teal2), var(--teal)) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13,122,138,0.5) !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 6px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 16px 24px; gap: 4px; border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, #1a4a7a 100%);
  color: #fff; position: relative; overflow: hidden;
  padding: 96px 32px 80px;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(13,122,138,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,122,138,0.2); border: 1px solid rgba(13,122,138,0.4);
  border-radius: 20px; padding: 6px 14px;
  font-size: 11px; font-weight: 700; color: var(--teal2);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px;
}

.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--teal2); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 20px;
}

.hero h1 .accent { color: var(--gold); }

.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.72);
  line-height: 1.65; margin-bottom: 36px; max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  cursor: pointer; border: none; transition: all .25s; letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #fff; box-shadow: 0 6px 20px rgba(13,122,138,0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13,122,138,0.55); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #fff; box-shadow: 0 6px 20px rgba(201,148,59,0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,148,59,0.5); }

.btn-outline {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline-dark:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }

/* Hero visual panel */
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-panel-bar {
  background: rgba(255,255,255,0.08);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-panel-bar .dot-row { display: flex; gap: 6px; }
.hero-panel-bar .dot-row span {
  width: 10px; height: 10px; border-radius: 50%;
}

.hero-panel-body { padding: 24px; }

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 32px;
}

.stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}

.stat-item { text-align: center; }
.stat-value { font-size: 34px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.stat-value .accent { color: var(--gold); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════
   SECTION WRAPPER
══════════════════════════════════════════════════════════════ */
.section {
  padding: 80px 32px;
  max-width: 1280px; margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900; color: var(--navy); letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 14px;
}

.section-sub {
  font-size: 17px; color: var(--muted); max-width: 580px; line-height: 1.65;
}

.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Divider ───────────────────────────────────────────────── */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 32px;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════ */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 28px; transition: all .3s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(13,122,138,0.25);
}

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(13,122,138,0.1), rgba(13,122,138,0.05));
}

.card-title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.card-body { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Service Card variants ──────────────────────────────────── */
.service-card { border-top: 4px solid var(--teal); }
.service-card.gold  { border-top-color: var(--gold); }
.service-card.navy  { border-top-color: var(--navy2); }
.service-card.green { border-top-color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   GRIDS
══════════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   TAB SYSTEM
══════════════════════════════════════════════════════════════ */
.tab-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 22px; font-size: 13px; font-weight: 700;
  color: var(--muted); background: none; border: none; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all .2s; letter-spacing: 0.3px; border-radius: 8px 8px 0 0;
}

.tab-btn:hover { color: var(--navy); background: rgba(13,122,138,0.04); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   FEATURE LIST
══════════════════════════════════════════════════════════════ */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text); line-height: 1.5;
}
.feature-list li::before {
  content: '✓'; width: 20px; height: 20px;
  background: rgba(13,122,138,0.12); color: var(--teal);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0; margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   PILLS / BADGES
══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.badge-teal  { background: rgba(13,122,138,0.12); color: var(--teal); }
.badge-gold  { background: rgba(201,148,59,0.12); color: var(--gold); }
.badge-navy  { background: rgba(27,58,107,0.12); color: var(--navy2); }
.badge-green { background: rgba(26,127,75,0.12); color: var(--green); }
.badge-red   { background: rgba(192,57,43,0.1); color: var(--red); }

/* ══════════════════════════════════════════════════════════════
   PRICING CARDS
══════════════════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

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

.pricing-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 36px 32px;
  box-shadow: var(--shadow); position: relative; transition: all .3s;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  background: var(--navy);
  border-color: var(--teal); border-width: 2px;
  color: #fff;
}

.pricing-card.featured .price-label,
.pricing-card.featured .plan-name { color: rgba(255,255,255,0.7); }
.pricing-card.featured .price { color: #fff; }
.pricing-card.featured .price-sub { color: rgba(255,255,255,0.55); }
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.85); }
.pricing-card.featured .pricing-feature::before { background: rgba(13,122,138,0.3); }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 5px 16px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(13,122,138,0.4);
}

.plan-name { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.price { font-size: 42px; font-weight: 900; color: var(--navy); letter-spacing: -2px; line-height: 1; }
.price-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.12); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text); line-height: 1.45;
}
.pricing-feature::before {
  content: '✓'; width: 18px; height: 18px;
  background: rgba(13,122,138,0.1); color: var(--teal);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; flex-shrink: 0; margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 50%, #1a4a7a 100%);
  padding: 80px 32px; text-align: center; position: relative; overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(13,122,138,0.2), transparent);
  pointer-events: none;
}

.cta-band-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta-band h2 { font-size: 36px; font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 36px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6); padding: 60px 32px 32px;
}

.footer-inner {
  max-width: 1280px; margin: 0 auto;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-name { font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.5); max-width: 260px; }

.footer-col h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════════════════
   MISC HELPERS
══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-teal  { color: var(--teal); }
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--muted); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }
.fs-13  { font-size: 13px; }
.fs-14  { font-size: 14px; }

/* Download button */
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: rgba(13,122,138,0.08); color: var(--teal);
  border: 1px solid rgba(13,122,138,0.25); text-decoration: none;
  transition: all .2s;
}
.download-btn:hover {
  background: var(--teal); color: #fff;
  box-shadow: 0 4px 12px rgba(13,122,138,0.3);
}

/* Resource card */
.resource-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; transition: all .3s;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.resource-card-img { height: 180px; overflow: hidden; background: var(--navy2); }
.resource-card-img img { width: 100%; height: 100%; object-fit: cover; }
.resource-card-body { padding: 20px 22px; }
.resource-card-tag { font-size: 10px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.resource-card-title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.resource-card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-year { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.timeline-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.timeline-body { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Full-page hero for inner pages */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 60px 32px; text-align: center;
}
.page-hero h1 { font-size: 38px; font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(13,122,138,0.06), rgba(13,122,138,0.02));
  border: 1px solid rgba(13,122,138,0.2); border-radius: var(--radius);
  padding: 28px 32px;
}
