/* ============================================================
   WealthMetron — Global CSS
   Design system variables, resets, base typography
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --navy:          #0B1C35;
  --navy-mid:      #112444;
  --navy-light:    #1A3560;
  --gold:          #C8A95A;
  --gold-light:    #E2C97E;
  --gold-dim:      rgba(200,169,90,0.15);
  --off-white:     #F5F3EE;
  --warm-white:    #FAFAF7;
  --text-dark:     #0B1C35;
  --text-mid:      #4A5568;
  --text-light:    #8A9AB5;
  --emerald:       #1A7A5E;
  --emerald-light: #22A67D;
  --border:        rgba(11,28,53,0.1);
  --gold-border:   rgba(200,169,90,0.3);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width:    1200px;
  --content-width: 720px;
  --nav-height:   68px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--warm-white);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Base Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 68ch;
}

/* --- Hero Subtitle --- */
.hero-subtitle {
  max-width: 520px;
}

/* --- Eyebrow Labels --- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background-color: var(--navy);
  color: var(--off-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--off-white);
}

.section--dark p {
  color: rgba(245,243,238,0.75);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--gold-light);
}

.btn-navy {
  background-color: var(--navy);
  color: var(--off-white);
}

.btn-navy:hover {
  background-color: var(--navy-light);
}

.btn-outline {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--gold-dim);
}

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(11,28,53,0.1);
  transform: translateY(-2px);
}

/* --- Fade-up animation --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.fade-up-delay-4 { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }

/* --- Responsive breakpoints --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

/* --- Calculator Cards --- */
.calc-card .card-eyebrow {
  font-size: 0.8rem;
}

.calc-card p {
  font-size: 0.95rem;
}
