/* ==========================================================================
   Weight Loss Calculator - Modern Health & Fitness Theme
   Clean white background with fresh green & teal accents
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f7faf9;
  --bg-mint: #ecfdf5;
  --bg-teal-soft: #f0fdfa;
  --surface: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;

  --border-light: #e2e8f0;
  --border-focus: #10b981;

  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --warning-text: #92400e;
  --error-text: #dc2626;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(13, 148, 136, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--green-600);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--teal-600);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
}

.primary-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
}

.primary-nav.open {
  display: block;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  display: inline-block;
  padding: 0.25rem 0;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--teal-600);
}

.primary-nav .nav-cta {
  background: var(--bg-mint);
  color: var(--green-700);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid #a7f3d0;
}

.primary-nav .nav-cta:hover {
  background: var(--green-600);
  color: #ffffff;
  border-color: var(--green-600);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 2.5rem 0 1.75rem;
  background: linear-gradient(180deg, var(--bg-teal-soft) 0%, #ffffff 100%);
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-mint);
  color: var(--green-700);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0 auto;
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ==========================================================================
   Calculator Layout & Cards
   ========================================================================== */
.calculator-section {
  padding: 1.5rem 0 3.5rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

.card-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Unit Toggle */
.unit-toggle {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  align-self: flex-start;
}

.unit-btn {
  border: none;
  background: transparent;
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.unit-btn.active {
  background: linear-gradient(135deg, var(--green-500), var(--teal-600));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Form Elements */
.form-row {
  margin-bottom: 1.2rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label,
.label-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.unit-hint {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.84rem;
}

input[type="number"],
select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

input.input-error {
  border-color: var(--error-text);
}

.error-msg {
  font-size: 0.82rem;
  color: var(--error-text);
  min-height: 1.1em;
}

/* Segmented Gender Control */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.segment-option {
  position: relative;
  cursor: pointer;
}

.segment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segment-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.75rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  transition: all var(--transition);
}

.segment-option input:checked + span {
  border-color: var(--teal-600);
  background: var(--bg-teal-soft);
  color: var(--teal-700);
}

.segment-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Height Slider */
.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-700);
  background: var(--bg-teal-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.slider-input-wrap {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 0.85rem;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--teal-600));
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--teal-600));
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
}

/* Weekly Rate Cards */
.rate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.rate-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all var(--transition);
}

.rate-card:hover {
  border-color: var(--green-500);
}

.rate-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rate-main {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.rate-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rate-card:has(input:checked) {
  border-color: var(--teal-600);
  background: var(--bg-mint);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.rate-card:has(input:checked) .rate-main {
  color: var(--green-700);
}

.rate-card:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Buttons */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

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

.btn-primary {
  flex: 1 1 210px;
  background: linear-gradient(135deg, var(--green-500), var(--teal-600));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.35);
  filter: brightness(1.03);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--teal-700);
  border-color: #99f6e4;
}

.btn-outline:hover {
  background: var(--bg-teal-soft);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Results Dashboard
   ========================================================================== */
.results-card {
  min-height: 480px;
}

.results-placeholder {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-secondary);
}

.placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-teal-soft);
  color: var(--teal-600);
  margin-bottom: 1rem;
}

.results-placeholder h3 {
  margin: 0 0 0.65rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.results-placeholder p {
  max-width: 420px;
  margin: 0 auto 1.25rem;
  font-size: 0.95rem;
}

.placeholder-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 320px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.placeholder-list li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 700;
  margin-right: 0.55rem;
}

.results-content {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.results-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.results-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Safety Warning */
.alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  color: var(--warning-text);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.alert-warning svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Highlighted KPIs */
.kpi-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.kpi-box {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kpi-primary {
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #ffffff;
}

.kpi-teal {
  background: var(--bg-teal-soft);
  border: 1px solid #99f6e4;
  color: var(--text-primary);
}

.kpi-emerald {
  background: var(--bg-mint);
  border: 1px solid #a7f3d0;
  color: var(--text-primary);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.kpi-meta {
  font-size: 0.84rem;
  opacity: 0.9;
}

/* Comparison & Progress Visualization */
.comparison-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.comparison-header h3 {
  margin: 0;
  font-size: 1rem;
}

.loss-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-mint);
  color: var(--green-700);
  border: 1px solid #a7f3d0;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.comp-side {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comp-side-target {
  border-color: #a7f3d0;
  background: #f0fdf9;
}

.comp-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag-goal {
  color: var(--green-700);
}

.comp-weight {
  font-size: 1.2rem;
  font-weight: 800;
}

.comp-bmi {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.comp-arrow {
  color: var(--teal-600);
  display: flex;
  align-items: center;
}

.progress-viz {
  margin-top: 0.5rem;
}

.progress-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--teal-600));
  border-radius: var(--radius-full);
  transition: width 0.45s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* Detailed Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.metric-item {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Timeline */
.timeline-card {
  border-top: 1px solid var(--border-light);
  padding-top: 1.1rem;
  margin-bottom: 1rem;
}

.timeline-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
}

.timeline-step {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timeline-step.is-goal {
  background: var(--bg-mint);
  border-color: #a7f3d0;
}

.tl-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
}

.tl-weight {
  font-size: 0.98rem;
  font-weight: 800;
}

.tl-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.results-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal-500);
}

/* ==========================================================================
   Educational Content, Tips & FAQ
   ========================================================================== */
.content-section {
  padding: 2.5rem 0 4rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.content-container {
  max-width: 920px;
}

.edu-article {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.edu-article h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.45rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.edu-article h2:first-child {
  margin-top: 0;
}

.edu-article p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.edu-article a {
  color: var(--teal-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.styled-list {
  padding-left: 1.35rem;
  margin: 0.75rem 0 1.25rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Tips Grid */
.tips-section {
  margin-bottom: 2.75rem;
}

.tips-section h2,
.faq-section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

.section-lead {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tip-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-mint);
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.tip-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.tip-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-section {
  margin-bottom: 2.75rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
  font-size: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.05rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--bg-subtle);
}

.faq-chevron {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-600);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   NutriActive Promotional Section
   ========================================================================== */
.promo-card {
  background: linear-gradient(135deg, #065f46 0%, #0f766e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.promo-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.promo-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.promo-card p {
  margin: 0 auto 1.5rem;
  max-width: 620px;
  color: #d1fae5;
  font-size: 1rem;
}

.promo-card p a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.btn-promo {
  background: #ffffff;
  color: #065f46;
  padding: 0.9rem 1.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-promo:hover {
  background: #ecfdf5;
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-brand a {
  color: var(--teal-600);
  font-weight: 700;
  text-decoration: none;
}

.footer-brand a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal-600);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Desktop)
   ========================================================================== */
@media (min-width: 640px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .rate-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .kpi-highlight-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .tip-card-wide {
    grid-column: span 2;
  }

  .edu-article {
    padding: 2.5rem 2.25rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    position: static;
    background: transparent;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tip-card-wide {
    grid-column: span 3;
  }
}

@media (min-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .card {
    padding: 2rem;
  }
}
