/* ============================================================
   SIMILAC CANADA CONTEST — Campaign Theme CSS
   Campaign: Similac Canada | Contest + Instant Win | R3
   Upload to blob storage as the campaign's customCssPath file.

   Layered over the platform baseline stylesheet. Only variables the
   design actually specifies are set; anything unset falls back to
   baseline defaults on purpose.

   Tokens below are the signed-off palette confirmed August 4, 2026.
   Exported for English delivery (round 1) — nothing in this file is
   language-dependent, so it carries into the French round unchanged.
   ============================================================ */

/* ============================================================
   1. FONTS
   Brandon Text is an Adobe Fonts (Typekit) kit, NOT a Google font.
   The kit must be licensed for the production domain before launch
   or every heading silently falls back to Mulish.
   ============================================================ */
@import url('https://use.typekit.net/pcz6zfs.css');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    /* ============================================================
     2. THE TWELVE NAMED VARIABLES
     ============================================================ */

    --primary-color: #003087; /* Dark Blue — ink, primary buttons, figures */
    --secondary-color: #009CDE; /* Hero Blue — accents, active states       */
    --heading-color: #003087;
    --body-color: #4A4A4A;
    --browser-bg: #FBF7F1;
    --top-nav-bg: #FFFFFF; /* the header is a white bar, not a dark one */
    --footer-bg: #003087;
    --font-h1: "brandon-text", "Brandon Text", "brandon-grotesque", "Mulish", system-ui, sans-serif;
    --font-h2-h3-h4: "brandon-text", "Brandon Text", "brandon-grotesque", "Mulish", system-ui, sans-serif;
    --font-cta: "brandon-text", "Brandon Text", "brandon-grotesque", "Mulish", system-ui, sans-serif;
    --font-body: "Mulish", system-ui, sans-serif;
    --font-faq-title: "brandon-text", "Brandon Text", "brandon-grotesque", "Mulish", system-ui, sans-serif;
    /* ============================================================
     3. CAMPAIGN-SPECIFIC CUSTOM VARIABLES
     Beyond the two named accent slots. Every one is named for the
     role it plays, because this design uses a five-step blue ramp
     and two golds and the two named slots cannot carry that.
     ============================================================ */
    /* --- Blues. The ramp runs dark → light and is used for depth,
         not decoration: navy for ink and the footer, hero blue for
         accent, light blue for gradient fields, tints for surfaces. --- */
    --sc-blue-navy: #003087; /* same as --primary-color, aliased for clarity */
    --sc-blue-hero: #009CDE;
    --sc-blue-light: #5BC2E7;
    --sc-blue-link-hover: #00246A; /* link + button hover, darker than navy       */
    --sc-blue-tint: #E8F5FC; /* selected states, quiet panels               */
    --sc-blue-tint-pale: #F5FAFD; /* alternating section surface                 */
    --sc-blue-grand-card: #3F9AD6; /* the grand prize card field                  */
    --sc-blue-step-numeral: #ABCAD9; /* oversized step numerals, deliberately low
                                      contrast — they are texture, not copy     */
    --sc-blue-parent-footer: #007ACC; /* the similac.ca parent footer band         */
    /* --- Golds. Two, and they are not interchangeable: 360 TC gold is
         the product-line gold used on prize furniture; Club gold is
         the Similac Club mark's own gold and appears only there. --- */
    --sc-gold-360: #D2B46B;
    --sc-gold-club: #A9853C;
    --sc-gold-figure: #8A6A22; /* gold set as type — darkened for contrast    */
    --sc-gold-label: #75540F; /* small uppercase gold labels                 */
    /* --- Neutrals --- */
    --sc-gray-light: #D9D9D6;
    --sc-ink-muted: #7A7A78;
    --sc-hairline: #E9ECEC;
    --sc-surface-offwhite: #FAFAFA;
    --sc-surface-ivory: #FBF7F1; /* warm panel behind the wheel and the bridge  */
    --sc-border-warm: #E6DACA;
    /* --- Gradient fields sampled from the approved comp. Held as
         token pairs rather than baked gradients so a section can
         choose its own angle. --- */
    --sc-field-htp-from: #8BC6EA;
    --sc-field-htp-to: #C4E8FA;
    --sc-field-iw-from: #5DABDD;
    --sc-field-iw-to: #C4E8FA;
    /* --- Geometry --- */
    --sc-radius-pill: 999px; /* every button is a full pill                  */
    --sc-radius-card: 24px;
    --sc-radius-panel: 22px;
    --sc-maxw: 1240px;
    /* --- Breakpoints, for reference. The build uses three:
         1140 (layout compression) · 900 (stacking, mobile menu)
         · 768 (mobile). Round 1 raised the mobile-menu takeover to
         1000 to give the French nav row headroom — see
         EXPORT-MANIFEST.md § French headroom. --- */
}

/* ============================================================
   4. BASE
   ============================================================ */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--body-color);
  background: var(--browser-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16.5px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

a { color: var(--primary-color); }
a:hover { color: var(--sc-blue-link-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-h2-h3-h4);
  color: var(--heading-color);
  font-weight: 700;
  margin: 0;
}
h1 { font-family: var(--font-h1); }

/* ============================================================
   5. TYPE SCALE
   Confirmed against the approved comp. Four steps per heading,
   at the three breakpoints above.
   ============================================================ */
.sc-h1      { font-size: 62px; line-height: 1.05; font-weight: 700; }
.sc-h2      { font-size: 44px; line-height: 1.14; font-weight: 700; }
.sc-h3      { font-size: 21px; line-height: 1.35; font-weight: 700; }
.sc-numeral { font-size: 96px; line-height: 1;    font-weight: 700; color: var(--sc-blue-step-numeral); }
.sc-prize   { font-size: 100px; line-height: 1;   font-weight: 700; color: var(--primary-color); letter-spacing: -.035em; }
.sc-lead    { font-size: 18px; line-height: 1.6; }
.sc-body    { font-size: 16.5px; line-height: 1.7; }
.sc-small   { font-size: 14px; }
.sc-caption { font-size: 12.5px; color: var(--sc-ink-muted); }

.sc-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1140px) {
  .sc-h1 { font-size: 54px; }
  .sc-h2 { font-size: 38px; }
  .sc-numeral { font-size: 80px; }
  .sc-prize { font-size: 82px; }
}

@media (max-width: 900px) {
  .sc-h1 { font-size: 44px; }
  .sc-h2 { font-size: 32px; }
  .sc-numeral { font-size: 72px; }
  .sc-prize { font-size: 66px; }
}

@media (max-width: 768px) {
  .sc-h1 { font-size: 34px; }
  .sc-h2 { font-size: 27px; }
  .sc-numeral { font-size: 60px; }
  .sc-prize { font-size: 50px; }
  .sc-lead { font-size: 17px; }
  .sc-body { font-size: 16px; }
}

/* ============================================================
   6. BUTTONS
   Every CTA is a full pill. Primary is navy on white; hover
   darkens rather than lightens, per the approved comp.
   ============================================================ */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 56px;
  padding: 18px 42px;
  border: none;
  border-radius: var(--sc-radius-pill);
  background: var(--primary-color);
  color: #FFFFFF;
  font-family: var(--font-cta);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.sc-btn:hover { background: var(--sc-blue-link-hover); color: #FFFFFF; text-decoration: none; }

.sc-btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--sc-gray-light);
}
.sc-btn-ghost:hover { background: rgba(0,48,135,.045); border-color: var(--primary-color); color: var(--primary-color); }

/* Accessibility floor, held from the design: no interactive target
   below 44px, and focus is always visible. Do not regress this. */
a, button, input, select, [role="button"] { min-height: 44px; }
:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 2px; }

/* ============================================================
   7. FRENCH HEADROOM
   Round 1 changes made while English was still movable, so the
   French round is a data swap rather than a reopened design.
   Kept in the theme file because they are layout tolerances, not
   copy. See EXPORT-MANIFEST.md § French headroom.
   ============================================================ */

/* The mobile menu takes over 100px earlier than the rest of the
   layout stacks: five nav items measure 46 characters in English
   and land around 58–62 in French, on a row shared with two brand
   marks and the language toggle. */
@media (max-width: 1000px) {
  .sc-nav-desktop { display: none; }
  .sc-nav-burger { display: inline-flex; }
}

/* Tight-measure elements are allowed to grow rather than clip.
   Nothing here changes the English rendering. */
.sc-hero-eyebrow { white-space: normal; text-wrap: balance; }  /* was nowrap  */
.sc-hero-setline { max-width: 22ch; text-wrap: balance; }      /* ~40% longer */
.sc-marquee-item { white-space: normal; }
.sc-earn-badge   { white-space: normal; }                      /* pill grows  */
.sc-spins-label  { white-space: normal; }

/* Sentences assembled from adjacent spans are single strings with
   an embedded placeholder, so the figure sits in the text flow and
   French can reorder around it. */
.sc-inline-figure { display: inline-block; margin: 0 7px; }
@media (max-width: 768px) { .sc-inline-figure { margin: 0 5px; } }

/* Currency reformats in fr-CA: $5,000 becomes 5 000 $ — one more
   character, plus a narrow no-break space, plus the symbol moving
   to the end. Display figures need to tolerate the extra measure. */
.sc-prize, .sc-inline-figure { white-space: nowrap; }
