/* =========================================================
   Nutra — Premium D2C Wellness Theme
   Inspired by Minimalist, Medvi, Ritual, Athletic Greens.
   Bold sans-serif, ingredient-forward, color-blocked.
   ========================================================= */

:root {
  /* ---- Brand: deep saturated wellness blue + cream + sky ---- */
  --ink-900: #0B1733;
  --ink-800: #11204A;
  --ink-700: #19305E;

  --brand-900: #06255A;
  --brand-800: #0B3175;
  --brand-700: #0F3D8E;
  --brand-600: #1A56DB;
  --brand-500: #2B6BFF;
  --brand-400: #5A8DFF;
  --brand-200: #BBD0FF;
  --brand-100: #DCE7FF;
  --brand-50:  #EEF3FF;

  /* Ingredient/efficacy chip colour (warm honey accent) */
  --honey-700: #8A5A00;
  --honey-500: #E1A93A;
  --honey-100: #FBE7B7;
  --honey-50:  #FFF6E0;

  --gold-700: #A8884A;
  --gold-600: #C9A961;
  --gold-200: #E8D5A8;

  /* Section background palette */
  --paper:  #FFFFFF;
  --bone:   #FAF8F4;
  --cream:  #F4ECE0;
  --sage:   #DDE7DC;
  --mint:   #D6E8DD;
  --sky:    #E6EFFB;
  --mist:   #F5F8FC;
  --canvas: #FAFAF8;

  /* Neutrals */
  --slate-900: #0B1733;
  --slate-800: #1B2440;
  --slate-700: #2E3656;
  --slate-600: #4B5474;
  --slate-500: #6B7491;
  --slate-400: #8F97AF;
  --slate-300: #B7BDCC;
  --slate-200: #D8DCE6;
  --slate-100: #ECEEF4;

  --line: #E1E4EC;
  --line-soft: #ECEEF4;

  --success: #15803D;
  --warning: #B45309;
  --danger:  #B91C1C;

  /* Typography — confident bold sans by default */
  --font-sans:  'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xxs: 0.6875rem;
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-base:1rem;
  --fs-md:  1.125rem;
  --fs-lg:  1.375rem;
  --fs-xl:  1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3.5rem;
  --fs-4xl: 4.75rem;
  --fs-5xl: 6.5rem;

  --tracking-tight: -0.035em;
  --tracking-snug:  -0.02em;
  --tracking-base:  -0.005em;
  --tracking-wide:  0.04em;
  --tracking-wider: 0.18em;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(11, 23, 51, 0.05);
  --shadow-sm: 0 4px 12px rgba(11, 23, 51, 0.06);
  --shadow-md: 0 14px 32px rgba(11, 23, 51, 0.08);
  --shadow-lg: 0 30px 60px rgba(6, 37, 90, 0.14);
  --shadow-glow: 0 0 0 4px rgba(43, 107, 255, 0.18);

  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-base: 260ms;
  --t-slow: 480ms;
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--slate-800);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: clip;          /* prevents stray decorative elements from creating a horizontal scroll */
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
}
p { margin: 0; }

::selection { background: var(--brand-600); color: #fff; }

/* =========================================================
   Typography utilities
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow.eyebrow--center::before { display: none; }

.h-display { font-size: clamp(2.6rem, 6vw, var(--fs-5xl)); line-height: 0.96; letter-spacing: -0.04em; font-weight: 800; }
.h-1 { font-size: clamp(2.25rem, 4.6vw, var(--fs-3xl)); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.h-2 { font-size: clamp(1.875rem, 3.6vw, var(--fs-2xl)); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.h-3 { font-size: var(--fs-xl); line-height: 1.16; font-weight: 700; letter-spacing: -0.02em; }
.h-4 { font-size: var(--fs-lg); line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; }

.lead { font-size: var(--fs-md); color: var(--slate-600); max-width: 60ch; line-height: 1.6; }
.muted { color: var(--slate-500); }

.serif-italic { font-style: italic; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }
.text-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }

/* =========================================================
   Layout primitives
   ========================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--ink   { background: var(--ink-900); color: var(--brand-100); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--cream { background: var(--cream); }
.section--bone  { background: var(--bone); }
.section--sky   { background: var(--sky); }
.section--sage  { background: var(--sage); }
.section--mist  { background: var(--mist); }
.section--canvas{ background: var(--canvas); }

.row { display: flex; gap: 24px; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.stack > * + * { margin-top: var(--stack, 16px); }

/* =========================================================
   Buttons — D2C confident pill, filled blue primary
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  transition: transform var(--t-base) var(--ease), background var(--t-base), color var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }

.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(26, 86, 219, 0.55);
}
.btn--primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(26, 86, 219, 0.65); }

.btn--ink   { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--brand-700); transform: translateY(-1px); }

.btn--gold  { background: var(--honey-500); color: var(--ink-900); }
.btn--gold:hover { background: #cf962a; transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink-900); border: 1.5px solid var(--ink-900); }
.btn--ghost:hover { background: var(--ink-900); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

.btn--white { background: #fff; color: var(--ink-900); }
.btn--white:hover { background: var(--brand-50); }

.btn--link {
  padding: 0; background: transparent; color: var(--ink-900); border-radius: 0;
  border-bottom: 1.5px solid currentColor;
  font-size: 14px; font-weight: 600; padding-bottom: 4px; letter-spacing: 0;
}
.btn--link:hover { color: var(--brand-600); }

.btn--lg { padding: 18px 34px; font-size: 15px; }
.btn--xl { padding: 22px 40px; font-size: 16px; font-weight: 700; }
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform var(--t-base) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Pills, chips, badges
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-700);
}
.pill--ink   { background: var(--ink-900); color: #fff; }
.pill--gold  { background: var(--honey-100); color: var(--honey-700); }
.pill--sale  { background: #FEE2E2; color: #991B1B; }
.pill--outline { background: transparent; border: 1px solid var(--slate-300); color: var(--slate-700); }
.pill--lg    { padding: 8px 16px; font-size: 12px; }

/* Ingredient chip — Minimalist-style circular badge */
.chip-ingredient {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink-900);
  color: var(--ink-900);
  text-align: center; line-height: 1; padding: 4px; flex-shrink: 0;
}
.chip-ingredient strong {
  font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
}
.chip-ingredient small {
  font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 2px; color: var(--slate-600);
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

/* =========================================================
   Forms
   ========================================================= */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-700);
}
.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--paper);
  color: var(--ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-500); box-shadow: var(--shadow-glow);
}
.field textarea { min-height: 140px; resize: vertical; }

/* =========================================================
   Helpers
   ========================================================= */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--honey-500), transparent); border: 0; }
.center { text-align: center; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}.mt-6{margin-top:64px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}.mb-5{margin-bottom:48px}.mb-6{margin-bottom:64px}
.hidden { display: none !important; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}
