/* ===== VITALITY HEALTH — GLOBAL STYLES =====
 *
 *  :root Variables ........ Brand colors, fonts
 *  Reset .................. Box-sizing, margin/padding
 *  Typography ............. Body, headings base
 *  Icon Utilities ......... SVG icon sizing classes
 *  Image Utilities ........ Background image helper
 *  Container .............. Layout containers
 *  Section Labels ......... Overline, titles, subtitles
 *  Buttons ................ Primary, outline, ghost
 *  Scroll Behavior ........ Smooth scroll, font smoothing
 */

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

:root {
  /* Brand Colors */
  --white: #ffffff;
  --off-white: #f8fafb;
  --light-gray: #f0f4f7;
  --mid-gray: #5a7282;
  --dark-gray: #1a2c3a;
  --blue: #1a8ad4;
  --blue-hover: #1695e6;
  --blue-light: #e4f1fa;
  --blue-pale: #edf5fb;
  --navy: #005a8c;
  --slate: #3a5565;
  --deep-navy: #003d5c;
  --gradient-start: #e4f0fa;
  --gradient-end: #f4f8fc;

  /* Typography */
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Account for fixed 52px nav so anchor links don't land behind it */
  scroll-padding-top: 80px;
}

/* Each section that's a possible anchor target gets the same offset */
section[id], [id^="section-"] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Clear fixed nav height */
main { padding-top: 52px; }

/* ===== SVG ICON UTILITIES ===== */
.icon { display: inline-block; vertical-align: middle; }
.icon svg { display: block; }
.icon-sm svg { width: 20px; height: 20px; }
.icon-md svg { width: 32px; height: 32px; }
.icon-lg svg { width: 48px; height: 48px; }
.icon-xl svg { width: 64px; height: 64px; }
.icon-hero svg { width: 96px; height: 96px; }

/* ===== BACKGROUND IMAGE UTILITY ===== */
.uimg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION LABELS ===== */
.section-overline {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-gray);
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
