/* ============================================================
   Teresa's Tax Service — Design System
   Palette: Deep Navy · Warm Gold · Cream · Slate
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── Tokens ─── */
:root {
  --navy:       #0B1D3A;
  --navy-mid:   #122347;
  --navy-light: #1C3461;
  --gold:       #C8922A;
  --gold-light: #E3A83A;
  --gold-pale:  #FFF3DC;
  --cream:      #FAF7F2;
  --white:      #FFFFFF;
  --slate-700:  #374151;
  --slate-500:  #6B7280;
  --slate-300:  #D1D5DB;
  --slate-100:  #F3F4F6;

  --font-body: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm:  0 1px 3px rgba(11,29,58,.08), 0 1px 2px rgba(11,29,58,.06);
  --shadow-md:  0 4px 20px rgba(11,29,58,.12);
  --shadow-lg:  0 12px 40px rgba(11,29,58,.16);
  --shadow-gold: 0 8px 32px rgba(200,146,42,.25);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ─── */
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography Scale ─── */
.display-xl {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.display-lg {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.display-md {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.heading-sm {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.body-lg {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--slate-500);
  max-width: 62ch;
}
.body-md {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--slate-500);
  max-width: 65ch;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding-block: 96px;
}
.section--sm {
  padding-block: 64px;
}
.section--lg {
  padding-block: 128px;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 18px;
  background: linear-gradient(to bottom, rgba(11,29,58,0.72) 0%, transparent 100%);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(11, 29, 58, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  padding-block: 12px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav__logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__logo-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav__cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: background var(--transition), box-shadow var(--transition) !important;
}
.nav__cta:hover {
  background: var(--gold-light) !important;
  box-shadow: var(--shadow-gold) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset-block-start: 70px;
  inset-inline: 0;
  background: var(--navy);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav__mobile a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav__mobile a.mobile-cta {
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  box-shadow: 0 12px 40px rgba(200,146,42,.35);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--slate-300);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--gold-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--gold-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}
.btn--sm {
  font-size: 0.875rem;
  padding: 10px 20px;
}
.btn--lg {
  font-size: 1rem;
  padding: 17px 36px;
}

/* ─── Tag / Chip ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.tag--gold {
  background: var(--gold-pale);
  color: var(--gold);
}
.tag--navy {
  background: rgba(11,29,58,.07);
  color: var(--navy);
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-100);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ─── Divider ─── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-block: 16px;
}

/* ─── Stat ─── */
.stat-number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ─── Form ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-700);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,146,42,.15);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; cursor: pointer; }

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding-block: 72px 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 28ch;
}
.footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.footer__contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.8rem;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer__social a:hover {
  background: var(--gold);
  color: var(--white);
}

/* ─── Utility ─── */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-muted { color: var(--slate-500); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-gold-pale { background: var(--gold-pale); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.grid { display: grid; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.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-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
.animate-fade-up.delay-1 { animation-delay: 0.12s; }
.animate-fade-up.delay-2 { animation-delay: 0.24s; }
.animate-fade-up.delay-3 { animation-delay: 0.36s; }
.animate-fade-up.delay-4 { animation-delay: 0.48s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ─── Page Hero (non-index) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding-block: 140px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero__inner {
  position: relative;
  z-index: 1;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.page-hero__breadcrumb a { transition: color var(--transition); }
.page-hero__breadcrumb a:hover { color: var(--gold); }
.page-hero__breadcrumb span { color: rgba(255,255,255,.25); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding-block: 64px; }
  .section--lg { padding-block: 80px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 48px; }
  .btn { padding: 12px 22px; }
  .btn--lg { padding: 14px 28px; }
}
