/* Variables and Base Theme */
:root {
  --color-primary: #3b82f6; /* Blue 500 */
  --color-primary-dark: #2563eb; /* Blue 600 */
  --color-indigo: #4f46e5; /* Indigo 600 */
  --color-indigo-light: #e0e7ff; /* Indigo 100 */
  --color-bg-light: #f0f9ff; /* Sky 50 */
  --color-text-main: #1e293b; /* Slate 800 */
  --color-text-muted: #475569; /* Slate 600 */
  --color-white: #ffffff;
  --color-emerald: #059669; /* Emerald 600 */
  --color-emerald-light: #ecfdf5; /* Emerald 50 */
  --color-orange: #ea580c; /* Orange 600 */
  --color-orange-light: #ffedd5; /* Orange 100 */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 1.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text-main);
  background: linear-gradient(180deg, #e0f2fe 0%, #eef2ff 50%, #ffffff 100%);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

/* Layout Utilities */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem;}
  .content-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 4rem;}
}
@media (max-width: 1023px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Components */
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text-main);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
}

/* Form Inputs */
.input-group {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background: var(--color-white);
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.input-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Result Box */
.result-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-indigo));
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: var(--color-white);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
}

.result-box.hidden {
  display: none;
}

.result-empty {
  color: #eff6ff;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.result-empty.hidden { display: none; }

.result-bmi {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.result-category {
  font-size: 1.125rem;
  font-weight: 500;
}

.result-note {
  font-size: 0.875rem;
  color: #eff6ff;
  margin-top: 0.5rem;
}

/* Sections */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 35%),
    radial-gradient(circle at right, rgba(167,139,250,0.18), transparent 30%),
    linear-gradient(to bottom, rgba(59,130,246,0.10), transparent);
  z-index: -1;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  flex-shrink: 0;
}
.icon-blue { background: #dbeafe; color: #1d4ed8; }
.icon-emerald { background: var(--color-emerald-light); color: var(--color-emerald); }
.icon-orange { background: var(--color-orange-light); color: var(--color-orange); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f0f9ff;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.feature-item p { color: #334155; margin: 0; }
.feature-item i { margin-top: 0.125rem; }

.image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--color-white);
}

.image-container img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to bottom right, rgba(199,210,254,0.6), rgba(191,219,254,0.4));
  filter: blur(24px);
  z-index: -1;
  border-radius: 2rem;
}

.support-cards {
  margin-top: 2rem;
}

.support-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  height: 100%;
}

.support-card .icon-box {
  margin: 0 auto 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
}

.cta-section {
  padding-bottom: 4rem;
}

.cta-box {
  background: linear-gradient(120deg, #1d4ed8 0%, #4338ca 100%);
  border-radius: 2rem;
  padding: 2.5rem 2.5rem 0 3rem;
  color: white;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.45) 0%, rgba(96, 165, 250, 0) 70%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  padding-bottom: 2.5rem;
}

.cta-box h2 { color: white; }
.cta-box p { color: #dbeafe; font-size: 1.125rem; }

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-btn-primary {
  background: var(--color-white);
  color: #1d4ed8;
}
.cta-btn-primary:hover { background: #f0f9ff; }

.cta-btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
}
.cta-btn-outline:hover { background: rgba(255,255,255,0.1); }

.cta-image {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}

.cta-image::after {
  content: "";
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(4px);
  z-index: 0;
}

.cta-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

/* Layout spacing */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-w-width: 42rem; }
.max-w-3xl { max-w-width: 48rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-3 { gap: 0.75rem; }

/* Info box */
.info-box {
  border-radius: var(--radius-md);
  border: 1px solid #dbeafe;
  background: rgba(239, 246, 255, 0.8);
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }




/* Campaign Nav Bar Styles */
.campaign-nav-bar {
  position: sticky;
  top: 110px;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(27, 58, 107, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100%;
  overflow: hidden;
}

.campaign-nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--pf-wh-max-width, min(76%, 1320px));
  margin: 0 auto;
  padding: 10px max(1.25rem, 3vw);
  box-sizing: border-box;
}

.campaign-nav-bar__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.campaign-nav-bar__brand strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--secondary-brand);
  line-height: 1.2;
}

.campaign-nav-bar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.campaign-nav-bar__links a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.campaign-nav-bar__links a:hover,
.campaign-nav-bar__links a:focus-visible {
  background-color: rgba(224, 82, 117, 0.1);
  color: var(--primary-brand);
}

.campaign-nav-short {
  display: none;
}

@media (max-width: 1024px) {
  .campaign-nav-bar {
    position: relative;
    top: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .campaign-nav-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 100%;
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }

  .campaign-nav-bar__brand {
    width: 100%;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
  }

  .campaign-nav-bar__links {
    width: 100%;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 0;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: none;
  }

  .campaign-nav-bar__links a {
    scroll-snap-align: unset;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.78rem;
    flex-shrink: 1;
    white-space: nowrap;
  }

  .campaign-nav-bar__links::-webkit-scrollbar {
    display: none;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
  }

  .hero-track {
    aspect-ratio: 1.1 / 1;
    min-height: 220px;
    max-height: 42vh;
    touch-action: pan-y;
  }
}

@media (max-width: 600px) {
  .campaign-nav-bar__brand strong {
    font-size: 0.95rem;
  }

  .hero-track {
    min-height: 200px;
    max-height: 38vh;
  }
}


/* Hero specific overrides */
.hero-section {
  position: relative;
  background: url('assets/weight-management-hero-woman.webp') center center / cover no-repeat;
  padding: 5rem 0 7rem 0;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.hero-badge .badge-icon {
  color: #3b82f6;
  display: flex;
}

.hero-headline {
  color: #1e3a8a;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-collaboration {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.btn-icon {
  background: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon i {
  width: 14px;
  height: 14px;
}
.btn-primary.hero-btn {
  background: #3b82f6;
  color: white;
}
.btn-primary.hero-btn .btn-icon {
  color: #3b82f6;
}
.btn-white.hero-btn {
  background: white;
  color: #1f2937;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-white.hero-btn:hover {
  background: #f9fafb;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
}
.hero-feature-item:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  background: #d1d5db;
  margin-left: 1.5rem;
}
.feature-icon {
  background: #e0f2fe;
  color: #3b82f6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon i {
  width: 18px;
  height: 18px;
}

.calc-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.calc-icon {
  background: #eff6ff;
  color: #2563eb;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.calc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}
.calc-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-section {
    background-position: left center;
  }
  .hero-features {
    flex-wrap: wrap;
  }
  .hero-feature-item:not(:last-child)::after {
    display: none;
  }
  .cta-box {
    padding: 2.5rem 2rem 0;
    text-align: center;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    justify-items: center;
  }
  .cta-content {
    padding-bottom: 1rem;
  }
  .cta-buttons {
    justify-content: center;
  }
  .cta-image img {
    max-width: 320px;
  }
}

/* --- FAQ Accordion Styles --- */
.faq-item {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.faq-header:hover h3 {
  color: var(--color-primary-dark);
}

/* --- Range Slider Enhancements --- */
input[type=range] {
  -webkit-appearance: none;
  background: transparent;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: -8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
