/* ==========================================================================
   WellnessNaro — Main Stylesheet
   Theme: Modern Blue Palette
   - Primary Deep: Navy Blue #0B2A4A (headings, footer background)
   - Primary: Royal Blue #1E6FD9 (links, main buttons, icons)
   - Secondary: Sky Blue #5BB5F5 (hover states, accents, highlights)
   - Light Surface: Ice Blue #EAF4FF (section backgrounds)
   - Soft Tint: Pale Blue #D6E9FB (cards, borders)
   - Background: #F7FBFF
   - Accent (CTA): Bright Cyan #22C7E8
   - Body text: #1B3550 on light backgrounds, #FFFFFF on dark blue
   USA-focused Health & Wellness Awareness Platform
   ========================================================================== */

/* Root Variables */
:root {
  /* New Blue WellnessNaro Color Palette */
  --color-navy: #0B2A4A;          /* Primary Deep */
  --color-navy-dark: #071C33;
  --color-royal: #1E6FD9;         /* Primary */
  --color-royal-hover: #1656AB;
  --color-sky: #5BB5F5;           /* Secondary */
  --color-sky-light: #E1F1FD;
  --color-cyan: #22C7E8;          /* Accent CTA */
  --color-cyan-hover: #1AB5D4;
  --color-ice: #EAF4FF;           /* Light Surface */
  --color-pale: #D6E9FB;          /* Soft Tint / Borders */
  --color-bg: #F7FBFF;            /* Background */
  --color-body: #1B3550;          /* Body text */
  --color-body-muted: #3B5875;    /* Muted text */
  --color-body-light: #5A7795;    /* Light text */
  --color-white: #FFFFFF;
  --color-border-subtle: #D6E9FB;

  /* Backward Compatibility Aliases */
  --color-plum: var(--color-navy);
  --color-plum-dark: var(--color-navy-dark);
  --color-plum-light: #123C66;
  --color-orchid: var(--color-ice);
  --color-orchid-light: var(--color-bg);
  --color-orchid-border: var(--color-pale);
  --color-leaf: var(--color-royal);
  --color-leaf-hover: var(--color-royal-hover);
  --color-leaf-light: var(--color-ice);
  --color-mango: var(--color-sky);
  --color-mango-dark: var(--color-royal);
  --color-blush: var(--color-bg);
  --color-ink: var(--color-body);
  --color-ink-muted: var(--color-body-muted);
  --color-ink-light: var(--color-body-light);

  /* Typography */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing Scale (8px system) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 42, 74, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(11, 42, 74, 0.08), 0 2px 6px -1px rgba(11, 42, 74, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(11, 42, 74, 0.12), 0 4px 12px -2px rgba(11, 42, 74, 0.06);

  /* Container Max Width */
  --max-width: 1200px;
}

/* CSS Reset & Core Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg);
  color: var(--color-body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-4);
  background: var(--color-royal);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--color-cyan);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--color-body-muted);
  font-size: 1rem;
  line-height: 1.68;
}

p.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--color-body-muted);
  line-height: 1.6;
}

/* Blue Gradient Accent on Selected Headings */
.gradient-heading,
.gradient-text-blue {
  background: linear-gradient(135deg, #0B2A4A 0%, #1E6FD9 60%, #22C7E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Anchor Scroll Offset */
[id] {
  scroll-margin-top: 96px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--color-navy);
  color: var(--color-white);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
  width: 100%;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(7, 28, 51, 0.35);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-white);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.brand-text span {
  color: var(--color-sky);
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }
}

.nav-link {
  color: var(--color-pale);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-sky);
}

.nav-link.active {
  color: var(--color-sky);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: var(--space-2);
  right: var(--space-2);
  height: 2px;
  background-color: var(--color-sky);
  border-radius: var(--radius-pill);
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger Button */
.hamburger-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  z-index: 600;
}

.hamburger-button:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

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

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform-origin: center;
}

.hamburger-button[aria-expanded="true"] .line-1 {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-button[aria-expanded="true"] .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-button[aria-expanded="true"] .line-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-in Drawer */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-navy);
  padding: var(--space-12) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -6px 0 24px rgba(7, 28, 51, 0.5);
  z-index: 550;
  overflow-y: auto;
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 42, 74, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 520;
  backdrop-filter: blur(4px);
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.mobile-nav-link {
  display: block;
  color: var(--color-pale);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background-color: rgba(214, 233, 251, 0.12);
  color: var(--color-sky);
}

.mobile-nav-link.active {
  background-color: rgba(214, 233, 251, 0.18);
  color: var(--color-sky);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-royal);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(30, 111, 217, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-royal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 111, 217, 0.35);
}

.btn-secondary,
.btn-outline {
  background-color: var(--color-white);
  color: var(--color-royal);
  border: 1.5px solid var(--color-royal);
}

.btn-secondary:hover,
.btn-outline:hover {
  background-color: var(--color-ice);
  transform: translateY(-2px);
}

.btn-mango,
.btn-cyan {
  background-color: var(--color-cyan);
  color: var(--color-navy);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(34, 199, 232, 0.3);
}

.btn-mango:hover,
.btn-cyan:hover {
  background-color: var(--color-cyan-hover);
  transform: translateY(-2px);
}

/* Tag / Badge / Kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-royal);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.badge-mango,
.badge-blue {
  background-color: var(--color-ice);
  color: var(--color-royal);
  border: 1px solid var(--color-pale);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Pill Badge in Hero */
.pill-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-white);
  color: var(--color-royal);
  border: 1px solid var(--color-pale);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(30, 111, 217, 0.08);
  margin-bottom: var(--space-4);
}

.pill-badge-hero svg {
  color: var(--color-cyan);
}

/* ==========================================================================
   NEW HERO DESIGN (Light, airy gradient #F7FBFF -> #D6E9FB, floating blobs)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #F7FBFF 0%, #D6E9FB 100%);
  color: var(--color-body);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

/* Hero Drifting Blurred Blue Circles / Blobs */
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: blobDrift 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 360px;
  height: 360px;
  background-color: #D6E9FB;
  top: -10%;
  left: 5%;
  animation-duration: 20s;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background-color: #5BB5F5;
  bottom: -15%;
  right: 5%;
  animation-duration: 24s;
  animation-delay: -4s;
  opacity: 0.35;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background-color: #22C7E8;
  top: 30%;
  left: 45%;
  animation-duration: 16s;
  animation-delay: -8s;
  opacity: 0.25;
}

.blob-4 {
  width: 340px;
  height: 340px;
  background-color: #EAF4FF;
  top: 60%;
  left: 10%;
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes blobDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.08); }
  100% { transform: translate(-25px, 35px) scale(0.94); }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content-wrapper {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-10);
  }
}

.hero-text-block {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-text-block h1 {
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
}

.hero-text-block p {
  color: var(--color-body-muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Stats Strip under Hero Buttons */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(30, 111, 217, 0.2);
  max-width: 560px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--color-royal);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--color-body-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Right Side: Organic Blob Image Mask & Floating Glassmorphism Cards */
.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  padding: 1.5rem 0.5rem;
}

.hero-blob-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob-mask {
  width: 360px;
  height: 360px;
  max-width: 100%;
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  overflow: hidden;
  box-shadow: 0 20px 45px -8px rgba(11, 42, 74, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.85);
  background: var(--color-pale);
  animation: blobMorph 14s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

.hero-blob-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes blobMorph {
  0% { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; }
  50% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
  100% { border-radius: 55% 45% 60% 40% / 40% 60% 50% 50%; }
}

/* 3 Floating Glassmorphism Cards */
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(214, 233, 251, 0.9);
  border-radius: 16px;
  padding: 0.65rem 1rem;
  box-shadow: 0 12px 28px -6px rgba(11, 42, 74, 0.15), 0 4px 10px -2px rgba(11, 42, 74, 0.05);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 3;
  white-space: nowrap;
}

.hero-float-card .float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-ice);
  color: var(--color-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-card .float-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.hero-float-card.card-sleep {
  top: 8%;
  left: -6%;
  animation: floatCard1 5.5s ease-in-out infinite;
}

.hero-float-card.card-heart {
  top: 48%;
  right: -8%;
  animation: floatCard2 6.2s ease-in-out infinite 0.5s;
}

.hero-float-card.card-nutrition {
  bottom: 4%;
  left: 2%;
  animation: floatCard3 5.8s ease-in-out infinite 1s;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Mobile responsive for hero floating cards & stats */
@media (max-width: 767px) {
  .hero-media-wrapper {
    padding: 2rem 0 1rem;
    overflow: visible;
  }
  .hero-blob-container {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-blob-mask {
    width: 250px;
    height: 250px;
  }
  .hero-float-card {
    padding: 0.5rem 0.8rem;
  }
  .hero-float-card .float-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .hero-float-card .float-icon svg {
    width: 15px;
    height: 15px;
  }
  .hero-float-card .float-text {
    font-size: 0.8125rem;
  }
  .hero-float-card.card-sleep {
    top: -6px;
    left: -10px;
  }
  .hero-float-card.card-heart {
    top: 42%;
    right: -10px;
  }
  .hero-float-card.card-nutrition {
    bottom: -6px;
    left: 4px;
  }
}

@media (max-width: 440px) {
  .hero-blob-container {
    max-width: 280px;
  }
  .hero-blob-mask {
    width: 210px;
    height: 210px;
  }
  .hero-float-card {
    padding: 0.4rem 0.65rem;
    gap: 0.4rem;
  }
  .hero-float-card .float-text {
    font-size: 0.75rem;
  }
  .hero-float-card.card-sleep {
    top: -6px;
    left: -4px;
  }
  .hero-float-card.card-heart {
    top: 42%;
    right: -4px;
  }
  .hero-float-card.card-nutrition {
    bottom: -6px;
    left: 0;
  }
  .hero-stats-strip {
    gap: var(--space-2);
  }
  .hero-stat-value {
    font-size: 1.15rem;
  }
  .hero-stat-label {
    font-size: 0.72rem;
  }
}

/* Animated Heartbeat / ECG line across bottom of Hero */
.hero-ecg-strip {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  overflow: hidden;
}

.hero-ecg-svg {
  width: 100%;
  height: 38px;
  display: block;
}

.hero-ecg-path {
  fill: none;
  stroke: var(--color-sky);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: ecgFlow 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ecgFlow {
  0% { stroke-dashoffset: 800; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -800; }
}

/* Fade Up Keyframe */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle SVG Wave Divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
}

.wave-divider.flip {
  transform: rotate(180deg);
}

/* Section Styling */
.section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section-orchid,
.section-ice {
  background-color: var(--color-ice);
}

.section-white {
  background-color: var(--color-white);
}

.section-blush,
.section-bg {
  background-color: var(--color-bg);
}

.section-plum,
.section-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section-plum h2,
.section-plum h3,
.section-navy h2,
.section-navy h3 {
  color: var(--color-white);
}

.section-plum p,
.section-navy p {
  color: var(--color-pale);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-10);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

/* Card Grids */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 900px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Feature & Topic Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-royal);
}

.card-media {
  width: 100%;
  margin-bottom: var(--space-4);
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-ice);
  position: relative;
}

.card-img {
  width: 100%;
  height: 190px;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.02);
}

.card-title {
  margin-bottom: var(--space-2);
  color: var(--color-navy);
}

.card-desc {
  color: var(--color-body-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-royal);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.card-link:hover {
  color: var(--color-royal-hover);
  gap: var(--space-3);
}

/* Daily Habits Section */
.habit-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .habit-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .habit-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.habit-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-pale);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.habit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-royal);
}

.habit-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-ice);
  color: var(--color-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.habit-card h3 {
  font-size: 1.1875rem;
  color: var(--color-navy);
}

.habit-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.habit-stat {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-pale);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-royal);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Split Content Section */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.split-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.split-img-frame {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-ice);
  border: 1px solid var(--color-border-subtle);
}

.split-img {
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: cover;
  display: block;
}

/* Values Grid (About Page) */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-top: 4px solid var(--color-royal);
  box-shadow: var(--shadow-sm);
  border-left: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.value-card h3 {
  margin-bottom: var(--space-2);
  color: var(--color-navy);
}

/* Services Grid (1 col mobile, 2 col tablet, 3 col desktop) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-royal);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-royal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-pale);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-royal);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--color-sky);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.step-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Resources By Topic */
.resource-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .resource-topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-topic-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-pale);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.resource-topic-card h3 {
  font-size: 1.1875rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.resource-list li {
  font-size: 0.9375rem;
  color: var(--color-body-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.5;
}

.resource-list li::before {
  content: "•";
  color: var(--color-royal);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

/* Contact Form & FAQ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-10);
  }
}

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-pale);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-body);
  background-color: var(--color-bg);
  border: 1px solid var(--color-pale);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background-color: var(--color-white);
  border-color: var(--color-royal);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.2);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #C02626;
  background-color: #FFF5F5;
}

.form-error-msg {
  font-size: 0.8125rem;
  color: #C02626;
  margin-top: 0.35rem;
  display: none;
}

.form-error-msg.is-visible {
  display: block;
}

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

.form-success-banner {
  display: none;
  background-color: var(--color-ice);
  border: 1px solid var(--color-sky);
  color: var(--color-navy);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.form-success-banner.is-visible {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-pale);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-royal);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--color-cyan);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-royal);
  transition: transform 0.25s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 var(--space-5) var(--space-5);
  display: none;
  color: var(--color-body-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-content.is-open {
  display: block;
}

/* CTA Callout Block */
.cta-banner {
  background: linear-gradient(135deg, #0B2A4A 0%, #123C66 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.cta-banner p {
  color: var(--color-pale);
  max-width: 620px;
  margin: 0 auto var(--space-6);
  font-size: 1.0625rem;
}

/* Expanded Footer (Deep Navy #0B2A4A background, Sky Blue headings, Pale Blue links) */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-pale);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  margin-top: auto;
  border-top: 1px solid rgba(214, 233, 251, 0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr 1.1fr;
    gap: var(--space-8);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-logo span {
  color: var(--color-sky);
}

.footer-mission-desc {
  color: var(--color-pale);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-tagline {
  color: var(--color-sky);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.footer-title {
  color: var(--color-sky);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  color: var(--color-pale);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-white);
  transform: translateX(2px);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-note {
  color: var(--color-pale);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-contact-link {
  color: var(--color-sky);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color 0.2s ease;
  word-break: break-all;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(214, 233, 251, 0.15);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-pale);
}

/* Scroll-Reveal Utility */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .blob {
    animation: none !important;
  }

  .hero-ecg-path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }

  .hero-blob-mask {
    animation: none !important;
  }

  .hero-float-card {
    animation: none !important;
  }
}
/* Container CSS */
.cards-grid.cards-grid-4 {
  display: grid !important;
  /* Columns ki fixed fractional width freeze karne ke liye */
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

/* Card Styling */
.cards-grid.cards-grid-4 article,
.cards-grid.cards-grid-4 .card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  min-width: 0 !important; /* Grid item ko squeeze hone se rokta hai */
  box-sizing: border-box !important;
}

/* Card Media (Image Container) Fixed Height */
.cards-grid.cards-grid-4 .card-media {
  width: 100% !important;
  height: 200px !important; /* Sabhi images/icons ke liye fixed height */
  overflow: hidden !important;
  border-radius: 12px;
  flex-shrink: 0 !important; /* Image container size change na ho */
  background-color: #e8f0fe; /* Placeholder background */
}

/* Image Fit */
.cards-grid.cards-grid-4 .card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Image distrot nahi hogi aur proper fit hogi */
  display: block !important;
}

/* Bottom Links Alignment */
.cards-grid.cards-grid-4 .card-link {
  margin-top: auto !important;
}
@media (max-width: 768px) {
  /* Container ko horizontal scrollable flex row banayein */
  .cards-grid.cards-grid-4 {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding-bottom: 16px !important;
  }

  /* Har ek card ko proper width dein taaki wo squeeze na ho */
  .cards-grid.cards-grid-4 article,
  .cards-grid.cards-grid-4 .card {
    flex: 0 0 85% !important; /* Screen ka 85% width lega, next card thoda dikhega */
    max-width: 320px !important;
    min-width: 280px !important;
    scroll-snap-align: start;
    height: auto !important; /* Content ke hisaab se height adjust hogi */
  }

  /* Image container ki height mobile par thodi compact karein */
  .cards-grid.cards-grid-4 .card-media {
    height: 160px !important;
  }
}
@media (max-width: 768px) {
  /* Container ko strong flex properties ke sath force karein */
  section .steps-grid,
  div.steps-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    width: 100% !important;
  }

  /* Cards ki width fix karein taaki wo horizontal line me expand ho sakein */
  section .steps-grid > div,
  div.steps-grid > div,
  .steps-grid .step-card {
    flex: 0 0 85% !important;
    width: 85% !important;
    min-width: 280px !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    height: auto !important;
  }
}
@media (max-width: 768px) {
  /* Habit Strip aur Steps Grid dono ke liye horizontal scroll */
  .habit-strip,
  .steps-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    width: 100% !important;
  }

  /* Cards ki width aur snapping set karne ke liye */
  .habit-strip > *,
  .steps-grid > *,
  .habit-card,
  .step-card {
    flex: 0 0 85% !important;
    width: 85% !important;
    min-width: 280px !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    height: auto !important;
  }
}
