/* ==========================================================================
   Smart Body Balance — Warm Premium Wellness
   Design tokens + mobile-first styles
   ========================================================================== */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --primary: #1E5B4F;
  --primary-dark: #14403A;
  --accent: #C9963B;
  --accent-soft: #F3E7D2;
  --text: #24312E;
  --text-muted: #5F6E68;
  --border: #E7DFD2;
  --on-accent: #24312E;
  --on-primary: #FFFFFF;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(36, 49, 46, 0.08);
  --shadow-lg: 0 16px 44px rgba(36, 49, 46, 0.12);

  --header-h: 72px;
  --transition: 200ms ease-out;
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

a { color: var(--primary); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface);
  color: var(--primary);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 9vw, 112px); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active { transform: scale(0.97); }

.btn-lg { min-height: 56px; padding: 16px 36px; }

.btn-gold {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 18px rgba(201, 150, 59, 0.35);
}

.btn-gold:hover { background: #B8862F; box-shadow: 0 8px 24px rgba(201, 150, 59, 0.45); }

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

.btn-outline:hover { background: var(--primary); color: var(--on-primary); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
  background: transparent;
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #FFFFFF; }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-block: 8px 16px;
}

.btn-row-center { justify-content: center; }

.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--transition);
}

.text-link:hover { color: var(--accent); }

/* Full-width boxed link row — matches accordion geometry so stacked rows align vertically */
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.link-row:hover { border-color: var(--accent); color: var(--accent); }

.link-row svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Stacked CTA group: elements one under another, left edges flush */
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-block: 8px 0;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(20, 64, 58, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.header-logo img { width: 132px; height: auto; }

.header-nav { display: flex; align-items: center; gap: 28px; }

.header-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav ul a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 2px;
  transition: color var(--transition);
}

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

.btn-nav-cta { min-height: 44px; padding: 10px 22px; font-size: 0.9375rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-tagline-light { color: #E8C87F; }

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 54ch;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-chips svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.hero-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius) var(--radius) 50% 50% / var(--radius) var(--radius) 42% 42%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface);
  max-width: 520px;
  margin-inline: auto;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Why / Solution ---------- */

.section-why { background: var(--surface); }

.why-problem { max-width: 760px; }

.solution-panel {
  display: grid;
  gap: 0;
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}

.solution-text { padding: clamp(28px, 4vw, 56px); }

.solution-text h3 { color: #FFFFFF; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.solution-text p { color: rgba(255, 255, 255, 0.88); }

.solution-text strong { color: #FFFFFF; }

.urgency-line { font-weight: 600; color: #E8C87F !important; }

.solution-media { min-height: 260px; }

.solution-media img { width: 100%; height: 100%; object-fit: cover; }

.cards-grid {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary);
  margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.2rem; }

.card p { color: var(--text-muted); margin: 0; }

/* ---------- Benefits ---------- */

.benefits-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.benefit-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.benefit-icon svg { width: 18px; height: 18px; }

.urgency-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #8A6320;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  padding: 10px 20px;
}

.desire-card {
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.desire-card h3 {
  color: #FFFFFF;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.desire-note { color: rgba(255, 255, 255, 0.85); margin: 20px 0 0; font-style: italic; }

/* check-list (shared: desire card + packages) */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324312E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Feature not included in this package: dimmed text + gray "minus" disc */
.check-list li.excluded { color: #75827C; }

.check-list li.excluded::before {
  background-color: #E3DFD6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6E68' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

/* ---------- Steps ---------- */

.section-steps { background: var(--surface); }

.steps-grid {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.steps-footer {
  margin-top: clamp(32px, 5vw, 48px);
  text-align: center;
}

.confidence {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  max-width: 48ch;
  margin-inline: auto;
}

/* ---------- Composition ---------- */

.composition-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.composition-media img {
  margin-inline: auto;
  filter: drop-shadow(0 20px 30px rgba(36, 49, 46, 0.18));
}

.note { font-size: 0.9375rem; color: var(--text-muted); }

.ingredients {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-block: 20px 12px;
}

.ingredients summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.ingredients summary::-webkit-details-marker { display: none; }

.chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); }

details[open] > summary .chevron { transform: rotate(180deg); }

/* While the closing animation runs, [open] is still set — rotate the chevron back immediately */
details.closing > summary .chevron { transform: rotate(0deg); }

.ingredients-list {
  columns: 1;
  column-gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0 24px 22px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .ingredients-list { columns: 2; }
}

.ingredients-list li { padding-block: 5px; break-inside: avoid; }

/* ---------- Results / social proof ---------- */

.section-results { background: var(--surface); }

.stats-row {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
}

.stat-label { font-size: 0.875rem; color: var(--text-muted); }

.before-after {
  margin: 0 auto clamp(40px, 6vw, 64px);
  max-width: 780px;
}

.before-after img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.before-after figcaption {
  text-align: center;
  margin-top: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.reviews-title { text-align: center; margin-bottom: 32px; }

.reviews-grid {
  display: grid;
  gap: 20px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.review-result {
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 18px;
}

.review-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
}

.review-card footer { font-weight: 600; color: var(--primary); }

.section-cta { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

/* ---------- Packages ---------- */

.packages-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.package-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow);
}

.package-card h3 { font-size: 1.5rem; margin: 0; }

.package-card .check-list { flex-grow: 1; }

.package-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 6px 18px;
  white-space: nowrap;
}

.pricing-note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  max-width: 860px;
  margin-inline: auto;
}

.pricing-note h3 { color: var(--primary); font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.pricing-note p { color: var(--text); }

/* ---------- Doctor ---------- */

.section-doctor { background: var(--surface); }

.doctor-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.doctor-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: min(100%, 420px);
  margin-inline: auto;
}

.doctor-facts li { font-weight: 400; }

.webinar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-top: 28px;
}

.webinar-card h3 { font-size: 1.2rem; }

.webinar-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.about-text p { color: var(--text-muted); }

.stats-column { display: grid; gap: 16px; }

/* ---------- FAQ ---------- */

.section-faq { background: var(--surface); }

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-muted);
}

.faq-footer { margin-top: 28px; text-align: center; }

/* ---------- Contact form ---------- */

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 20px;
}

.form-field { display: grid; gap: 8px; }

.form-field label { font-weight: 600; font-size: 0.9375rem; }

.req { color: #B4231F; }

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 91, 79, 0.15);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
}

.form-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.form-note svg { width: 16px; height: 16px; }

/* ---------- Pre-footer CTA ---------- */

.prefooter-cta {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding-block: clamp(64px, 9vw, 104px);
  text-align: center;
}

.prefooter-cta h2 {
  color: #FFFFFF;
  max-width: 22ch;
  margin-inline: auto;
}

.prefooter-cta .btn-row { justify-content: center; margin-top: 28px; }

.partner-line {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  margin: 28px 0 0;
}

.partner-line a { color: #E8C87F; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-block: clamp(48px, 6vw, 72px) 28px;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand img { width: 170px; height: auto; margin-bottom: 20px; }

.footer-socials {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transition: background-color var(--transition), border-color var(--transition);
}

.footer-socials a:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }

.footer-socials svg { width: 20px; height: 20px; }

.footer-col h3 {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-contacts,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contacts svg { width: 18px; height: 18px; flex-shrink: 0; color: #E8C87F; }

.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color var(--transition); }

.site-footer a:hover { color: #E8C87F; }

.footer-legal p { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .card { transition: none; }
}

/* ==========================================================================
   Responsive: phones — full-width block buttons (pill wraps look bad when
   long labels break to two lines)
   ========================================================================== */

@media (max-width: 639px) {
  .btn {
    width: 100%;
    border-radius: var(--radius);
  }
}

/* ==========================================================================
   Responsive: tablet 768px+
   ========================================================================== */

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-panel { grid-template-columns: 1.2fr 0.8fr; }
  .benefits-grid { grid-template-columns: 1.15fr 0.85fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .composition-grid { grid-template-columns: 0.9fr 1.1fr; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .packages-grid { grid-template-columns: repeat(3, 1fr); }
  .doctor-grid { grid-template-columns: 0.8fr 1.2fr; }
  .about-grid { grid-template-columns: 1.4fr 0.6fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 0.8fr 1fr; }
}

/* ==========================================================================
   Responsive: mobile nav (below 900px the inline nav collapses)
   ========================================================================== */

@media (max-width: 899px) {
  .header-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--primary-dark);
    padding: 20px;
    box-shadow: 0 16px 24px rgba(20, 64, 58, 0.3);
    display: none;
  }

  .header-nav.open { display: flex; }

  .header-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .header-nav ul a {
    display: block;
    padding: 12px 8px;
    font-size: 1.05rem;
  }

  .btn-nav-cta { margin-top: 8px; }

  .nav-toggle { display: flex; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

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