@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&family=Mulish:wght@400;500;600;700&display=swap');

:root {
  /* Thematic CSS Variables */
  --vitality-bg: #FAFAFA;
  --vitality-surface: #FFFFFF;
  --vitality-ink: #1A1F24;
  --vitality-muted: #566573;
  --glucose-highlight: #FF4757; /* Saturated red/pink for energy */
  --glucose-dim: #FFE3E3;
  --habit-accent: #2ED573; /* Fresh green */
  --energy-gradient: linear-gradient(135deg, #FF4757 0%, #FF6B81 100%);
  
  /* Typography */
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Mulish', sans-serif;
  
  /* Layout & Spacing */
  --pad-scale: 10dvh;
  --radius-soft: 16px;
  
  /* Depth / Shadows */
  --depth-deep: 0 15px 35px -5px rgba(255, 71, 87, 0.15), 0 5px 15px -3px rgba(0,0,0,0.05);
  --depth-hover: 0 25px 45px -10px rgba(255, 71, 87, 0.25), 0 10px 20px -5px rgba(0,0,0,0.1);
  --depth-header: 0 4px 20px -2px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--vitality-bg);
  color: var(--vitality-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* Structural thematic classes */
.lifestyle-bounds {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5vw;
}

.wellness-spacing {
  padding-top: var(--pad-scale);
  padding-bottom: var(--pad-scale);
}

.action-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--energy-gradient);
  color: var(--vitality-surface);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-soft);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: var(--depth-deep);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.action-trigger:hover {
  transform: translateY(-3px);
  box-shadow: var(--depth-hover);
  color: var(--vitality-surface);
}

/* Preset B: Header */
.nutrition-top-bar {
  background-color: var(--vitality-surface);
  border-bottom: 1px solid var(--glucose-dim);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

/* Pseudo-focus trick for scroll shadow logic in pure CSS */
.nutrition-top-bar:focus-within,
.nutrition-top-bar:hover {
  box-shadow: var(--depth-header);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--glucose-highlight);
}

.brand-identity svg {
  width: 32px;
  height: 32px;
  fill: var(--glucose-highlight);
}

.wellness-routing {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.wellness-routing a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--vitality-ink);
}

.wellness-routing a:hover {
  color: var(--glucose-highlight);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--vitality-ink);
}

/* Preset B: Announcement */
.sugar-alert-strip {
  background: var(--glucose-highlight);
  color: var(--vitality-surface);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sugar-alert-strip a {
  color: var(--vitality-surface);
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Preset B: Hero Split */
.sugar-awareness-split {
  display: flex;
  min-height: calc(100vh - 120px);
  background-color: var(--vitality-surface);
}

.split-info-pane {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad-scale) 5vw;
}

.split-info-pane h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--vitality-ink);
}

.split-info-pane p {
  font-size: 1.2rem;
  color: var(--vitality-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.split-visual-pane {
  flex: 0 0 45%;
  position: relative;
}

.split-visual-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Preset B: Fullwidth image + Columns */
.regime-visual-break {
  width: 100%;
  height: 45vh;
  object-fit: cover;
}

.insight-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.insight-col {
  border-top: 3px solid var(--glucose-highlight);
  padding-top: 1.5rem;
}

.insight-col h3 {
  font-size: 1.3rem;
}

/* Preset B: Masonry Features */
.dietary-masonry {
  column-count: 3;
  column-gap: 2rem;
}

.habit-module {
  background: var(--vitality-surface);
  border-radius: var(--radius-soft);
  box-shadow: var(--depth-deep);
  padding: 2rem;
  margin-bottom: 2rem;
  break-inside: avoid;
  border: 1px solid var(--glucose-dim);
  transition: transform 0.3s ease;
}

.habit-module:hover {
  transform: translateY(-5px);
}

.habit-module svg {
  width: 48px;
  height: 48px;
  fill: var(--glucose-highlight);
  margin-bottom: 1.5rem;
}

.habit-module img {
  border-radius: calc(var(--radius-soft) - 8px);
  margin-bottom: 1.5rem;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Preset B: Horizontal Progress Track */
.glucose-path {
  display: flex;
  gap: 2rem;
}

.path-node {
  flex: 1;
  border-top: 2px dashed var(--vitality-muted);
  padding-top: 2rem;
  position: relative;
}

.path-node::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--vitality-bg);
  border: 4px solid var(--vitality-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.path-node.active-node {
  border-top-color: var(--glucose-highlight);
}

.path-node.active-node::before {
  border-color: var(--glucose-highlight);
  background: var(--glucose-highlight);
  box-shadow: 0 0 0 6px var(--glucose-dim);
}

/* Preset B: Colorful CTA Strip */
.energy-motivation-zone {
  background: var(--energy-gradient);
  padding: calc(var(--pad-scale) * 1.5) 5vw;
  text-align: center;
  color: var(--vitality-surface);
}

.energy-motivation-zone h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--vitality-surface);
}

.energy-motivation-zone .action-trigger {
  background: var(--vitality-surface);
  color: var(--glucose-highlight);
}

/* Expert Page Specifics */
.educator-bio-split {
  display: flex;
  align-items: stretch;
  background: var(--vitality-surface);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--depth-deep);
  margin-bottom: 4rem;
}

.educator-pic {
  flex: 0 0 50%;
}

.educator-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.educator-text {
  flex: 0 0 50%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metrics-horizontal {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

.metric-item {
  flex: 1;
  background: var(--vitality-surface);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-soft);
  box-shadow: var(--depth-header);
  border-bottom: 4px solid var(--glucose-highlight);
}

.metric-item span {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--glucose-highlight);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.knowledge-accords {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accord-item {
  background: var(--vitality-surface);
  border-radius: var(--radius-soft);
  padding: 1.5rem 2rem;
  box-shadow: var(--depth-header);
  border-left: 4px solid var(--glucose-highlight);
}

/* Reserve Page Specifics */
.booking-arena {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.info-deck {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-deck-card {
  background: var(--vitality-surface);
  padding: 2rem;
  border-radius: var(--radius-soft);
  box-shadow: var(--depth-header);
}

.info-deck-card svg {
  width: 40px;
  height: 40px;
  fill: var(--glucose-highlight);
  margin-bottom: 1rem;
}

.info-deck-card ul {
  list-style: none;
  margin-top: 1rem;
}

.info-deck-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--vitality-muted);
}

.info-deck-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--habit-accent);
  border-radius: 50%;
}

.action-portal {
  background: var(--vitality-surface);
  padding: 3rem;
  border-radius: var(--radius-soft);
  box-shadow: var(--depth-deep);
}

.data-field {
  margin-bottom: 1.5rem;
}

.data-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.data-field input,
.data-field textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--glucose-dim);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.data-field input:focus,
.data-field textarea:focus {
  outline: none;
  border-color: var(--glucose-highlight);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--vitality-muted);
}

.consent-check input {
  margin-top: 4px;
}

.faq-matrix {
  margin-top: 4rem;
}

.faq-matrix details {
  background: var(--vitality-surface);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-soft);
  cursor: pointer;
  box-shadow: var(--depth-header);
}

.faq-matrix summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--vitality-ink);
  outline: none;
}

/* Footer */
.wellness-base {
  background: var(--vitality-ink);
  color: var(--vitality-surface);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.base-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.base-brand svg {
  fill: var(--glucose-highlight);
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.base-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.base-links a {
  color: #A0AAB5;
}

.base-links a:hover {
  color: var(--glucose-highlight);
}

.legal-notice {
  border-top: 1px solid #2C353D;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #A0AAB5;
}

/* Cookie Banner */
.tracker-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--vitality-surface);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  padding: 1.5rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  border-top: 4px solid var(--glucose-highlight);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.tracker-consent.show {
  transform: translateY(0);
}

.consent-actions {
  display: flex;
  gap: 1rem;
}

.btn-accept {
  background: var(--energy-gradient);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.btn-decline {
  background: transparent;
  color: var(--vitality-muted);
  border: 1px solid var(--vitality-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .sugar-awareness-split {
    flex-direction: column;
  }
  .split-info-pane, .split-visual-pane {
    flex: none;
    width: 100%;
  }
  .split-visual-pane {
    height: 40vh;
  }
  .insight-trio, .booking-arena {
    grid-template-columns: 1fr;
  }
  .dietary-masonry {
    column-count: 2;
  }
  .educator-bio-split {
    flex-direction: column;
  }
  .metrics-horizontal {
    flex-wrap: wrap;
  }
  .metric-item {
    flex: 1 1 40%;
  }
}

@media (max-width: 768px) {
  .wellness-routing {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--vitality-surface);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--depth-header);
  }
  .nutrition-top-bar:focus-within .wellness-routing {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .dietary-masonry {
    column-count: 1;
  }
  .glucose-path {
    flex-direction: column;
    gap: 0;
  }
  .path-node {
    border-top: none;
    border-left: 2px dashed var(--vitality-muted);
    padding-top: 0;
    padding-left: 2rem;
    padding-bottom: 2rem;
  }
  .path-node::before {
    top: 0;
    left: -11px;
  }
  .path-node.active-node {
    border-left-color: var(--glucose-highlight);
  }
  .tracker-consent {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}