/* ============================================
   PawMetrics - Global Stylesheet
   Science-Based Dog Care Calculators
   ============================================ */

/* --- CSS Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Design Tokens --- */
:root {
  /* Colors */
  --primary: #2C5F7C;
  --primary-dark: #1A3D52;
  --primary-light: #5C8AA3;
  --primary-50: #EBF2F6;
  --accent: #ED8936;
  --accent-dark: #C2691F;
  --accent-light: #FBD38D;
  --accent-50: #FFF7ED;

  --bg: #FAFAF6;
  --bg-warm: #F5F2EA;
  --surface: #FFFFFF;
  --surface-alt: #F7F5EF;

  --text: #1A202C;
  --text-muted: #4A5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --border-strong: #CBD5E0;

  --success: #2F855A;
  --success-bg: #E6F4EA;
  --warning: #B7791F;
  --warning-bg: #FFFBEA;
  --danger: #C53030;
  --danger-bg: #FED7D7;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

  /* Effects */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 61, 82, 0.06);
  --shadow: 0 4px 12px rgba(26, 61, 82, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 61, 82, 0.12);
  --shadow-glow: 0 0 0 4px rgba(237, 137, 54, 0.15);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1180px;
  --container-narrow: 760px;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(237, 137, 54, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 85% 88%, rgba(44, 95, 124, 0.04) 0%, transparent 35%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; }

a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

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

section { padding: var(--space-3xl) 0; }
@media (max-width: 640px) { section { padding: var(--space-2xl) 0; } }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: var(--shadow-sm);
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text span:first-child { font-size: 1.3rem; }
.brand-text span:last-child {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.25rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav a {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.primary-nav a:hover { color: var(--primary); background: var(--primary-50); }
.primary-nav a.active { color: var(--primary); }
.primary-nav a.active::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.dropdown { position: relative; }
.dropdown-toggle::after {
  content: '▾';
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.7em;
  opacity: 0.6;
  transition: transform var(--transition);
}
.dropdown:hover .dropdown-toggle::after,
.dropdown:focus-within .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 200ms ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
}
.dropdown-menu a:hover { background: var(--primary-50); color: var(--primary); }
.dropdown-menu a small {
  display: block;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--text);
}
.mobile-toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .mobile-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform 250ms ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 0.8rem 1rem; font-size: 1rem; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: var(--surface-alt);
    margin-top: 0.25rem;
    padding: 0.25rem;
  }
  .dropdown-toggle::after { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-3xl);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237, 137, 54, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-50);
  color: var(--accent-dark);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border: 1px solid var(--accent-light);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(237, 137, 54, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(237, 137, 54, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(237, 137, 54, 0); }
}

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-lede {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: var(--shadow); }

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--accent-dark); color: white; box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--primary); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.tool-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.tool-card:hover::before { opacity: 1; }
.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  transition: all var(--transition);
}
.tool-card:hover .tool-card-icon {
  background: var(--primary);
  color: white;
}
.tool-card-icon svg { width: 28px; height: 28px; }
.tool-card h3 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.tool-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.tool-card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.tool-card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.tool-card:hover .tool-card-link::after { transform: translateX(4px); }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 1rem auto 0;
}
.section-head.left p { margin: 1rem 0 0 0; }

/* ============================================
   CALCULATOR
   ============================================ */
.calc-page { padding: 2.5rem 0 var(--space-3xl); }
.calc-header { margin-bottom: 2.5rem; }
.calc-breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.calc-breadcrumb a:hover { color: var(--primary); }
.calc-breadcrumb span { color: var(--border-strong); }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 920px) {
  .calc-layout { grid-template-columns: 1fr; }
}

.calc-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 920px) { .calc-form { position: static; } }

.calc-form h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.calc-form h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-group .help {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 4px;
  margin-bottom: 0;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: all var(--transition);
}
.form-control:hover { border-color: var(--primary-light); }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.15);
}

.input-group { display: flex; gap: 0.5rem; align-items: stretch; }
.input-group .form-control { flex: 1; }
.input-group select {
  flex: 0 0 auto;
  min-width: 80px;
  background: var(--surface-alt);
}

.radio-group, .checkbox-group {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}
.radio-grid-2 { grid-template-columns: repeat(2, 1fr); }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
  position: relative;
}
.radio-option:hover { border-color: var(--primary-light); background: var(--primary-50); }
.radio-option input { accent-color: var(--primary); }
.radio-option input:checked ~ * { color: var(--primary); }
.radio-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-50);
  font-weight: 600;
}

.btn-calculate {
  width: 100%;
  margin-top: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-calculate:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-reset {
  width: 100%;
  margin-top: 0.6rem;
  background: transparent;
  color: var(--text-muted);
  padding: 0.6rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-reset:hover { background: var(--surface-alt); color: var(--text); }

/* --- Calculator Result --- */
.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.calc-result-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-light);
}
.calc-result-empty svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.result-headline {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.result-headline::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(237, 137, 54, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.result-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.3rem;
  position: relative;
}
.result-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  position: relative;
}
.result-value small {
  font-size: 0.55em;
  opacity: 0.8;
  font-weight: 400;
  margin-left: 0.4rem;
  font-family: var(--font-body);
}
.result-sub {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  position: relative;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.result-stat {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
}
.result-stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.result-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}
.result-stat-unit { font-size: 0.85rem; color: var(--text-muted); margin-left: 0.2rem; font-family: var(--font-body); }

.result-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.result-section h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.result-section ul { padding-left: 0; }
.result-section li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.result-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.result-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  border-left: 4px solid;
  margin: 1rem 0;
}
.alert-info { background: var(--primary-50); border-color: var(--primary); color: var(--primary-dark); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: #744210; }
.alert-danger { background: var(--danger-bg); border-color: var(--danger); color: #742A2A; }
.alert strong { display: block; margin-bottom: 0.25rem; }

/* ============================================
   CONTENT (Articles, About, etc.)
   ============================================ */
.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .content { padding: 1.5rem; } }

.content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.content p { margin-bottom: 1rem; line-height: 1.75; color: var(--text-muted); }
.content ul, .content ol { margin: 1rem 0 1.25rem 1.5rem; }
.content ul li { padding: 0.3rem 0; color: var(--text-muted); list-style: disc; }
.content ol li { padding: 0.3rem 0; color: var(--text-muted); list-style: decimal; }
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.content th, .content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.content th { background: var(--surface-alt); font-weight: 600; color: var(--text); }
.content tr:last-child td { border-bottom: none; }
.content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--accent-50);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--text);
}

/* FAQ */
.faq { margin-top: 2rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--primary-light); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-content { padding: 0 1.4rem 1.2rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.blog-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: white;
}
.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3));
}
.blog-card-image svg { width: 64px; height: 64px; opacity: 0.6; }
.blog-card-image.var-1 { background: linear-gradient(135deg, #2C5F7C 0%, #5C8AA3 100%); }
.blog-card-image.var-2 { background: linear-gradient(135deg, #ED8936 0%, #FBD38D 100%); }
.blog-card-image.var-3 { background: linear-gradient(135deg, #2F855A 0%, #68D391 100%); }
.blog-card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.blog-card-meta .tag {
  color: var(--accent);
  font-weight: 700;
}
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.blog-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.blog-card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.blog-card:hover .blog-card-link::after { transform: translateX(4px); }

/* --- Blog Post --- */
.post-header { margin-bottom: 2.5rem; text-align: center; padding: 0 1rem; }
.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.post-meta .tag {
  background: var(--accent-50);
  color: var(--accent-dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-title { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 22ch; margin: 0 auto 1rem; line-height: 1.15; }
.post-lede { font-size: 1.15rem; color: var(--text-muted); max-width: 55ch; margin: 0 auto; line-height: 1.6; }
.post-hero {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  display: grid;
  place-items: center;
  color: white;
}
.post-hero svg { width: 80px; height: 80px; opacity: 0.6; }
.post-content { max-width: 720px; margin: 0 auto; }
.post-content p { font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.25rem; }
.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.7rem; }
.post-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.3rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { color: var(--text-muted); padding: 0.3rem 0; line-height: 1.7; }
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--accent-50);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
}
.post-content strong { color: var(--text); font-weight: 700; }

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 3rem 0;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.author-info p { margin: 0; font-size: 0.88rem; }
.author-info strong { color: var(--text); display: block; margin-bottom: 0.15rem; font-size: 0.95rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #122B3D 100%);
  color: rgba(255,255,255,0.85);
  padding: var(--space-3xl) 0 2rem;
  margin-top: var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand .brand { color: white; }
.footer-brand .brand-icon { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; line-height: 1.6; max-width: 35ch; }

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--accent-light); }

/* ============================================
   UTILITIES & ANIMATIONS
   ============================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-50);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}
.feature-item-icon svg { width: 20px; height: 20px; }
.feature-item h4 { font-size: 1rem; margin-bottom: 0.25rem; font-family: var(--font-body); font-weight: 600; }
.feature-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* CTA Strip */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(237, 137, 54, 0.2), transparent 70%);
  border-radius: 50%;
}
.cta-strip h2 { color: white; margin-bottom: 0.75rem; position: relative; }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 1.5rem; position: relative; }
.cta-strip .btn-accent { position: relative; }

/* Form (contact) */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Page Hero (for non-home pages) */
.page-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; margin: 0 auto; }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.stat-num .accent { color: var(--accent); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Fade in animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 600ms ease-out both; }
.fade-in-1 { animation-delay: 80ms; }
.fade-in-2 { animation-delay: 160ms; }
.fade-in-3 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

/* Print */
@media print {
  .site-header, .site-footer, .calc-form, .result-actions, .btn { display: none !important; }
  body { background: white; }
  .calc-result { border: none; box-shadow: none; padding: 0; }
}
