/* ============================================================
   C2U Design Tokens
   Brand palette, type scale, shadows, fonts
   Extracted from chemist2u.com.au live site 6 Oct 2026
   ============================================================ */

/* Self-hosted Inter — same subset as live site */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v19-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v19-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  src: url('../fonts/inter-italic-var.woff2') format('woff2');
}

:root {
  /* ---- Core brand palette (Brand Guide 2.0) ---- */
  --c2u-red:        #D92050;
  --c2u-red-light:  #EA5078;
  --c2u-red-deep:   #C01B47;
  --c2u-red-soft:   #FBE3E6;

  --c2u-navy:       #0C344A;
  --c2u-navy-soft:  #15486A;
  --c2u-navy-deep:  #052A3F;

  --c2u-teal:       #4ECEC5;
  --c2u-teal-ink:   #0B6E66;
  --c2u-teal-tint:  #D8F4F2;

  --c2u-cream:      #FFF0E8;
  --c2u-paper:      #FFFFFF;
  --c2u-ink:        #0C344A;
  --c2u-body:       #1B2B36;
  --c2u-muted:      #5A6B78;
  --c2u-faint:      #90A0B8;
  --c2u-line:       #E6E6E6;

  --c2u-mint:       #D8F4F2;
  --c2u-peach:      #FBE3E6;
  --c2u-lavender:   #E1EEFF;
  --c2u-blue-soft:  #E8F2FE;

  /* ---- Type ---- */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* ---- Shadows ---- */
  --shadow-card: 0 10px 30px rgba(12,52,74,.08);
  --shadow-md:   0 6px 20px rgba(12,52,74,.10);
  --shadow-lg:   0 16px 48px rgba(12,52,74,.16);

  /* ---- Radii ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* ---- Layout ---- */
  --container: 1200px;
  --gutter-sm: 20px;
  --gutter-md: 32px;
  --gutter-lg: 56px;
  --section-y: clamp(72px, 10vw, 120px);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c2u-body);
  background: var(--c2u-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Image defaults */
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c2u-ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* Links default (brand red for inline, override in components where needed) */
a { color: var(--c2u-red); text-decoration: none; transition: color .18s; }
a:hover { color: var(--c2u-red-deep); }

/* ---- Type scale (fluid, clamp) ---- */
.c2u-hero-h1 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.05em; }
.c2u-h2--xl  { font-size: clamp(34px, 5vw, 72px);   line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; }
.c2u-h2      { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.c2u-h2--spot{ font-size: clamp(28px, 2.9vw, 42px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.c2u-h3      { font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.c2u-h4      { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--c2u-navy); }

.tc-para     { font-size: clamp(18px, 2vw, 24px); line-height: 1.4; font-weight: 400; color: var(--c2u-muted); }
.tc-body     { font-size: 16px; line-height: 1.6; color: var(--c2u-muted); }
.tc-small    { font-size: 14px; line-height: 1.5; color: var(--c2u-muted); }

.c2u-kicker {
  display: inline-block;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c2u-red);
  margin-bottom: 14px;
}

/* Red inline brand highlight (used in homepage H1 for "Chemist2U", etc.) */
.c2u-brand-red { color: var(--c2u-red); }

/* Ensure <em> renders italic inside headings (some resets kill it) */
h1 em, h2 em, h3 em, h4 em { font-style: italic; }

/* Hero pink radial gradient — matches live site .c2u-root background */
.c2u-section--hero-gradient {
  background: radial-gradient(125% 125% at 50% 90%, #fff 35%, var(--c2u-peach) 100%);
}

/* Continuous gradient wrapper — single radial fade across multiple sections.
   The gradient anchors to the wrapper's full height, so sections inside share
   one unbroken pink fade rather than restarting at each section boundary. */
.c2u-gradient-wrap {
  background: radial-gradient(125% 125% at 50% 90%, #fff 35%, var(--c2u-peach) 100%);
}

/* Hero H1 — wraps naturally within container (matches homepage width without clipping) */
.c2u-hero-h1 {
  margin: 0 0 22px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero description — 75% width (matches homepage) */
.c2u-hero-desc {
  width: 75%;
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: rgba(12, 52, 74, 0.72);
  text-wrap: balance;
}
@media (max-width: 640px) {
  .c2u-hero-desc { width: 100%; }
}

/* ---- Layout containers ---- */
.c2u-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter-lg);
  padding-right: var(--gutter-lg);
}
.c2u-container--wide {
  max-width: 1280px;
}
@media (max-width: 820px) {
  .c2u-container { padding-left: var(--gutter-md); padding-right: var(--gutter-md); }
}
@media (max-width: 540px) {
  .c2u-container { padding-left: var(--gutter-sm); padding-right: var(--gutter-sm); }
}

.c2u-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.c2u-section--tight { padding-top: calc(var(--section-y) * .55); padding-bottom: calc(var(--section-y) * .55); }
.c2u-section--navy  { background: var(--c2u-navy); color: #fff; }
.c2u-section--navy h1,
.c2u-section--navy h2,
.c2u-section--navy h3,
.c2u-section--navy h4 { color: #fff; }
.c2u-section--cream { background: var(--c2u-cream); }

/* Section header pattern (eyebrow + H2 + optional sub) */
.c2u-sec-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.c2u-sec-head--left { text-align: left; }
.c2u-sec-head p { margin-top: 16px; max-width: 620px; margin-left: auto; margin-right: auto; }
.c2u-sec-head--left p { margin-left: 0; margin-right: 0; }

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

/* Focus ring (consistent brand focus) */
:focus-visible {
  outline: 2px solid var(--c2u-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Prefers-reduced-motion */
@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;
  }
}
