/* ============================================ */
/* BMI CALCULATOR - COMPLETE STANDALONE CSS */
/* ============================================ */

/* ============================================ */
/* CSS VARIABLES & RESET */
/* ============================================ */
:root {
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-dark: #1d4ed8;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #3b82f6;
  --accent-light: #1e3a8a;
  --accent-dark: #60a5fa;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.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;
}

/* ============================================ */
/* NAVBAR */
/* ============================================ */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

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

.nav-menu li {
  list-style: none;
}

.nav-menu a {
  padding: 8px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--bg-secondary);
  color: var(--accent);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 260px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-category {
  padding: 8px 0;
}

.category-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  margin-bottom: 4px;
}

.dropdown-tools {
  list-style: none;
}

.dropdown-tools li {
  list-style: none;
}

.dropdown-tools a {
  display: block;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dropdown-tools a:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.view-all {
  display: block;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
}

.nav-theme-item {
  list-style: none;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--border);
    display: none;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-dropdown:hover .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }

  .nav-menu a {
    display: block;
    width: 100%;
  }
}

/* ============================================ */
/* BMI HERO */
/* ============================================ */
.bmi-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.bmi-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 800;
}

.bmi-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.bmi-hero-badge {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* BMI CALCULATOR */
/* ============================================ */
.bmi-calculator-section {
  padding: 60px 0;
}

.bmi-calculator-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.bmi-calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.bmi-form-card,
.bmi-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.bmi-form-title,
.bmi-result-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.bmi-field {
  margin-bottom: 20px;
}

.bmi-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--text);
}

.bmi-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bmi-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg);
  font-size: 0.92rem;
}

.bmi-radio-label:hover {
  border-color: var(--accent);
}

.bmi-radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.bmi-radio-label input[type="radio"]:checked + span {
  color: var(--accent);
  font-weight: 700;
}

.bmi-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bmi-input-wrap input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.bmi-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bmi-input-suffix {
  position: absolute;
  right: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.bmi-input-wrap:has(.bmi-input-suffix) input {
  padding-right: 55px;
}

.bmi-height-imperial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bmi-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.bmi-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  font-family: inherit;
}

.bmi-btn.primary {
  background: var(--accent);
  color: white;
}

.bmi-btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bmi-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.bmi-btn.secondary:hover {
  background: var(--bg);
  border-color: var(--accent);
}

/* Weight Toggle */
.bmi-weight-toggle {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.bmi-unit-btn {
  flex: 1;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  font-family: inherit;
}

.bmi-unit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bmi-unit-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Result Card */
.bmi-highlight-box {
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 24px;
  color: white;
  transition: background 0.3s ease;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.bmi-highlight-box.underweight {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.bmi-highlight-box.normal {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.bmi-highlight-box.overweight {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bmi-highlight-box.obese {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.bmi-result-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bmi-result-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.bmi-result-category {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.95;
}

/* BMI Gauge */
.bmi-gauge {
  margin: 24px 0;
}

.bmi-gauge-bar {
  position: relative;
  display: flex;
  height: 16px;
  border-radius: 8px;
  overflow: visible;
  background: var(--bg-secondary);
}

.bmi-gauge-segment {
  height: 100%;
  transition: all 0.3s ease;
}

.bmi-gauge-segment.underweight {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 8px 0 0 8px;
}

.bmi-gauge-segment.normal {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.bmi-gauge-segment.overweight {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.bmi-gauge-segment.obese {
  background: linear-gradient(90deg, #ef4444 0%, #991b1b 100%);
  border-radius: 0 8px 8px 0;
}

.bmi-gauge-marker {
  position: absolute;
  top: -12px;
  transform: translateX(-50%);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.bmi-gauge-arrow {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  font-weight: 900;
}

.bmi-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bmi-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.bmi-breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.bmi-breakdown-item:last-child {
  border-bottom: none;
}

.bmi-breakdown-label {
  color: var(--text-secondary);
}

.bmi-breakdown-value {
  font-weight: 700;
  color: var(--text);
}

.bmi-formula-box {
  background: var(--bg-secondary);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  border-left: 3px solid var(--accent);
}

.bmi-formula-box code {
  display: block;
  margin-top: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}

.bmi-copy-bar {
  text-align: center;
}

.bmi-copy-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s ease;
  font-family: inherit;
}

.bmi-copy-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================ */
/* VISUAL BMI CHART (Icon Cards) */
/* ============================================ */
.bmi-visual-chart {
  margin-top: 48px;
}

.bmi-visual-chart h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

.bmi-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.bmi-visual-card {
  padding: 20px 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.2s ease;
  background: var(--bg-card);
}

.bmi-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.bmi-visual-card.underweight {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.bmi-visual-card.normal {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.bmi-visual-card.overweight {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.bmi-visual-card.obese-1 {
  border-color: #f97316;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.bmi-visual-card.obese-2 {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.bmi-visual-card.obese-3 {
  border-color: #991b1b;
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.bmi-visual-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.bmi-visual-range {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.bmi-visual-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.bmi-visual-risk {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Dark mode visual cards */
[data-theme="dark"] .bmi-visual-card.underweight {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
[data-theme="dark"] .bmi-visual-card.normal {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
}
[data-theme="dark"] .bmi-visual-card.overweight {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}
[data-theme="dark"] .bmi-visual-card.obese-1 {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
}
[data-theme="dark"] .bmi-visual-card.obese-2 {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}
[data-theme="dark"] .bmi-visual-card.obese-3 {
  background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
}

[data-theme="dark"] .bmi-visual-card .bmi-visual-label,
[data-theme="dark"] .bmi-visual-card .bmi-visual-range {
  color: #f1f5f9;
}

[data-theme="dark"] .bmi-visual-card .bmi-visual-risk {
  color: #cbd5e1;
}

/* ============================================ */
/* BMI CHART SECTION */
/* ============================================ */
.bmi-chart-section {
  margin-top: 48px;
}

.bmi-chart-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

.bmi-chart-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.bmi-chart-wrap,
.bmi-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bmi-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bmi-chart-table th {
  background: var(--bg-secondary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.bmi-chart-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.bmi-chart-table tbody tr:last-child td {
  border-bottom: none;
}

.bmi-chart-table tr:hover {
  background: var(--bg-secondary);
}

.bmi-chart-table td.cell-underweight {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  font-weight: 600;
}

.bmi-chart-table td.cell-normal {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-weight: 600;
}

.bmi-chart-table td.cell-overweight {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-weight: 600;
}

.bmi-chart-table td.cell-obese {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-weight: 600;
}

[data-theme="dark"] .bmi-chart-table td.cell-underweight {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

[data-theme="dark"] .bmi-chart-table td.cell-normal {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

[data-theme="dark"] .bmi-chart-table td.cell-overweight {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

[data-theme="dark"] .bmi-chart-table td.cell-obese {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ============================================ */
/* FORMULA SECTION */
/* ============================================ */
.bmi-formula-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bmi-formula-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.bmi-formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bmi-formula-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.bmi-formula-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}

.bmi-formula-box-large {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.bmi-formula-box-large code {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.bmi-formula-card ul {
  margin-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.bmi-formula-card p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ============================================ */
/* CONTENT ARTICLE */
/* ============================================ */
.bmi-content-article {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.bmi-content-article h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.bmi-content-article h3 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  color: var(--text);
  font-weight: 700;
}

.bmi-content-article p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.bmi-content-article ul,
.bmi-content-article ol {
  margin-left: 24px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.bmi-internal-links {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bmi-internal-links h3 {
  margin-top: 0;
}

.bmi-internal-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bmi-internal-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.bmi-internal-links li:last-child {
  border-bottom: none;
}

.bmi-internal-links a {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================ */
/* FAQ */
/* ============================================ */
.bmi-faq,
.faq {
  padding: 60px 0;
}

.bmi-faq h2,
.faq h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 700;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 0;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-tagline {
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 8px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-privacy {
  margin-top: 6px;
  font-size: 0.82rem;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 900px) {
  .bmi-calculator-grid,
  .bmi-formula-grid {
    grid-template-columns: 1fr;
  }

  .bmi-hero h1 {
    font-size: 2rem;
  }

  .bmi-result-value {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .bmi-hero {
    padding: 40px 0 30px;
  }

  .bmi-hero h1 {
    font-size: 1.75rem;
  }

  .bmi-btn-group {
    flex-direction: column;
  }

  .bmi-form-card,
  .bmi-result-card {
    padding: 20px;
  }

  .bmi-chart-table th,
  .bmi-chart-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .bmi-result-value {
    font-size: 2.2rem;
  }

  .bmi-height-imperial {
    grid-template-columns: 1fr;
  }

  .bmi-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bmi-visual-icon {
    font-size: 1.5rem;
  }

  .bmi-visual-range {
    font-size: 0.95rem;
  }

  .bmi-visual-label {
    font-size: 0.85rem;
  }

  .bmi-visual-risk {
    font-size: 0.7rem;
  }
}