/* ═══════════════════════════════════════════
   DAVID MALONE CPA — SHARED DESIGN SYSTEM
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

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

:root {
  --navy:        #1B3A6B;
  --navy-deep:   #0F2447;
  --navy-mid:    #254F96;
  --blue:        #2563EB;
  --blue-hover:  #1D4ED8;
  --blue-light:  #EFF6FF;
  --blue-pale:   #DBEAFE;
  --gold:        #B45309;
  --gold-light:  #FEF3C7;
  --gold-accent: #D97706;
  --text:        #1C2B3A;
  --muted:       #4B5E71;
  --subtle:      #64748B;
  --border:      #CBD5E1;
  --border-soft: #E2E8F0;
  --bg:          #F8FAFC;
  --bg-warm:     #F9F7F4;
  --white:       #FFFFFF;
  --success:     #065F46;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 4px rgba(15,36,71,0.08);
  --shadow-md:  0 4px 20px rgba(15,36,71,0.10);
  --shadow-lg:  0 12px 40px rgba(15,36,71,0.14);

  --max-w: 1080px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 600; }
h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 600; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 500; }
h4 { font-size: 17px; font-weight: 500; }
p  { font-size: 16px; line-height: 1.75; color: var(--muted); }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 500; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-deep);
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-placeholder {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.nav-logo-tag {
  font-size: 10px;
  font-weight: 400;
  color: #93C5FD;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: #93C5FD; font-weight: 500; }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 500 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--blue-hover) !important; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  padding: 12px 2rem 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-mobile-menu a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); text-decoration: none; }
.btn-outline-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn-lg { font-size: 17px; padding: 15px 36px; }

/* ── SECTION WRAPPERS ── */
.section { padding: 80px 2rem; }
.section-sm { padding: 52px 2rem; }
.section-lg { padding: 100px 2rem; }
.container { max-width: var(--max-w); margin: 0 auto; }

/* ── EYEBROW LABELS ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 14px;
}
.eyebrow-blue {
  color: var(--blue);
  background: var(--blue-pale);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 52px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 17px; max-width: 600px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--blue); }

/* ── DIVIDERS ── */
.divider { border: none; border-top: 1px solid var(--border-soft); margin: 0; }
.divider-gold { border-top: 2px solid var(--gold-accent); width: 52px; margin: 16px 0 24px; }

/* ── CALLOUT / NOTE BOX ── */
.callout {
  display: flex;
  gap: 12px;
  background: var(--gold-light);
  border-left: 3px solid var(--gold-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin: 16px 0;
}
.callout p { font-size: 14px; color: #78350F; margin: 0; }
.callout-info {
  background: var(--blue-light);
  border-left-color: var(--blue);
}
.callout-info p { color: #1E40AF; }

/* ── FOOTER ── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 60px 2rem 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 14px; color: rgba(255,255,255,0.5); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.6; }
.footer-bottom a { color: rgba(255,255,255,0.45); }

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.badge-blue { color: #1E40AF; background: var(--blue-pale); border-color: #BFDBFE; }
.badge-green { color: var(--success); background: #D1FAE5; border-color: #6EE7B7; }
.badge-gold { color: var(--gold); background: var(--gold-light); border-color: #FCD34D; }

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--white);
  padding: 24px 20px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-fade-up { animation: fadeUp 0.55s ease both; }
.anim-d1 { animation-delay: 0.05s; }
.anim-d2 { animation-delay: 0.12s; }
.anim-d3 { animation-delay: 0.19s; }
.anim-d4 { animation-delay: 0.26s; }
.anim-d5 { animation-delay: 0.33s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 1.5rem; }
  .section-lg { padding: 72px 1.5rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
