/* --- CUSTOM VARIABLE SYSTEM BASED ON HEALTHY CARDIOVASCULAR THEME --- */
:root {
  --cardio-diet-rich-background: #0f1d1a;
  --cardio-diet-light-surface: #f3fcf4;
  --cardio-diet-accent-orange: #ff5e36;
  --cardio-diet-accent-green: #10b981;
  --cardio-diet-contrast-dark: #121824;
  --cardio-diet-text-base: #2c3e50;
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --cardio-diet-gradient-glow: linear-gradient(135deg, #10b981 0%, #ff5e36 100%);
}

/* --- BASE STYLES & TYPOGRAPHY --- */
h1, h2, h3, h4, .prominent-editorial-head {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body {
  font-family: var(--font-body);
  color: var(--cardio-diet-text-base);
  background-color: var(--cardio-diet-light-surface);
  line-height: 1.6;
}

/* Scroll Progress Bar at top of header */
.cardio-scroller {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--cardio-diet-gradient-glow);
  z-index: 100;
  animation: cardio-progress-grow linear;
  animation-timeline: scroll();
}

@keyframes cardio-progress-grow {
  to { width: 100%; }
}

/* --- HEADER NAVIGATION & BURGER (CSS ONLY) --- */
.header-navigation-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 24, 36, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navigation-anchor-item {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.navigation-anchor-item:hover {
  color: var(--cardio-diet-accent-green);
}

/* Mobile Hamburger logic */
.burger-visual-trigger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.burger-dash {
  height: 2px;
  width: 100%;
  background-color: white;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .burger-visual-trigger {
    display: flex;
  }
  .hamburger-links-shelf {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cardio-diet-contrast-dark);
    flex-direction: column;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--cardio-diet-accent-green);
  }
  .hamburger-links-shelf li {
    margin: 0.75rem 0;
  }
  .hidden-burger-input:checked ~ nav .hamburger-links-shelf {
    display: flex;
  }
}

/* --- LIMIT WIDTH CONTAINER REPLACEMENT --- */
.cardio-limit-width {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- HERO SECTION ELEMENTS --- */
.scenic-intro-gate h1 {
  font-size: clamp(2.5rem, 6dvw, 4.5rem);
  line-height: 1.1;
}

/* --- PULL-QUOTE STYLING --- */
.cardio-pull-quote-wrapper {
  transition: transform 0.3s ease;
}
.cardio-pull-quote-wrapper:hover {
  transform: translateY(-4px);
}

/* --- TESTIMONIALS STYLE --- */
.written-opinion-slug {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.written-opinion-slug:hover {
  transform: scale(1.01);
}

/* --- ACCORDION CORE HIGHLIGHTS --- */
.nutri-step-accordion {
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.nutri-step-accordion:hover {
  transform: translateY(-2px);
  border-color: var(--cardio-diet-accent-orange) !important;
}

/* --- DROP CAP STYLING --- */
.diet-drop-cap {
  line-height: 0.8;
  font-family: var(--font-display);
}

/* --- GHOST BUTTON TRIGGER --- */
.diet-ghost-trigger {
  border-radius: 16px;
  transition: all 0.3s ease;
}
.diet-ghost-trigger:hover {
  background: var(--cardio-diet-accent-orange);
  color: white !important;
}

/* --- FORM UNDERLINED INPUTS --- */
.form-underlined-input {
  border-bottom-width: 2px;
  transition: border-color 0.3s ease;
}
.form-underlined-input:focus {
  border-color: var(--cardio-diet-accent-green) !important;
}

/* --- SCROLL-DRIVEN ENTRY ANIMATIONS (CSS ONLY) --- */
@keyframes cardio-viewport-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.structural-diet-zone {
  animation: cardio-viewport-fade 0.8s ease-out both;
  animation-timeline: view();
  animation-range: entry 5% entry 35%;
}

/* Disabled transition delays on items to respect scroll timeline control */
@media (prefers-reduced-motion: reduce) {
  .structural-diet-zone {
    animation: none;
  }
}