/* ===== Base / tokens ===== */
/* Self-hosted web fonts (SIL Open Font License, files in assets/fonts/, Latin subset).
   Cairo 600/700/800 for headings and buttons, Manrope 400-700 for body text. */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/cairo-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/cairo-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/cairo-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Fallback faces sized to match Cairo and Manrope, so text keeps its width and
   line height when the web fonts load and swap in (stops layout shift).
   size-adjust = width of the real font over Arial, measured on the site's own text;
   ascent/descent = the font's own metrics divided by size-adjust. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  font-weight: 300 500;
  size-adjust: 102.6%;
  ascent-override: 103.9%;
  descent-override: 29.24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold");
  font-weight: 600 900;
  size-adjust: 96.6%;
  ascent-override: 110.35%;
  descent-override: 31.06%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Cairo Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold");
  font-weight: 400 900;
  size-adjust: 87.7%;
  ascent-override: 148.57%;
  descent-override: 65.11%;
  line-gap-override: 0%;
}

:root {
  /* Official brand colours (from the logo). Not used everywhere by default — reach
     for these at brand touchpoints; the rest of the UI uses a broader accent palette
     for visual interest. */
  --brand-dark: #323d41;
  --brand-orange: #f57e20;

  --bg-dark: #0a0a0b;
  --bg-topbar: #000;
  --text: #f5f5f7;
  --text-muted: #b5b5bd;
  --accent: #e5484d;
  --accent-2: #ff8a5c;
  --eco-green-light: rgb(95, 227, 154); /* used only in the sustainability section */
  --radius: 8px;
  --container: 1240px;   /* max content width — same on every section */
  --gutter: 24px;        /* left/right page spacing — same on every section */

  /* Type system — 2 families site-wide: Cairo for headings/emphasis (bold, punchy),
     Manrope for body/UI text (readable at small sizes). Both loaded via one Google Fonts
     request in each page <head> (Cairo 600/700/800, Manrope 400-700). Fall back to the system stack if the webfont fails. */
  --font-heading: "Cairo", "Cairo Fallback", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: var(--font-body);
  color: #1b1b1f;
  background: #fff;
}

h1, h2, h3, h4,
.nav__link, .btn,
.hero-card__badge,
.mega-card__title {
  font-family: var(--font-heading);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Every full-width section wraps its content in .container so the left/right
   gutter is identical site-wide. A full-bleed background = colour the outer
   section, keep the inner .container. */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
}


/* ===== Back to top button (every page) =====
   Created and appended by js/main.js rather than added to each page's HTML
   -- same "one shared piece of chrome, every page" goal as the header/footer
   partials, but simpler: there's no markup to fetch, just one element to
   create, so a plain DOM insertion covers every current page and any future
   one without an HTML edit.

   Fixed bottom-right, hidden until the visitor has scrolled roughly one
   viewport down (see the threshold in js/main.js), then fades/slides in.
   z-index 40: below the sticky nav (50) and its mega menus (60), since
   those already occupy the top of the screen and this sits at the bottom,
   but still above ordinary page content. */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease;
  /* Promotes this button to its own compositing layer. Without it, the button
     was completely invisible on the Discount Programs page specifically —
     present in the DOM, correctly opacity:1/visible after scrolling, z-index
     40 as declared, yet nothing painted there. It was NOT a z-index/stacking
     precedence bug: bisecting found an inline z-index of 41 (one more than
     the CSS value) "fixed" it, and so did setting an inline z-index back to
     the SAME 40 already in this rule — changing nothing about the numbers,
     only forcing the browser to redo the stacking calculation. That points
     at a stale paint/compositing bug triggered by toggling opacity/
     visibility/transform via a class on a fixed element that shares the page
     with position:sticky descendants elsewhere (this page's
     .discount-tabs__aside image columns) — the other two pages have no such
     descendants and never showed the bug. will-change forces the button onto
     its own layer up front, sidestepping whatever stale recalculation caused
     it, the same way .discount-tabs__indicator and .hero__logos already use
     will-change: transform for compositor promotion elsewhere in this file. */
  will-change: transform, opacity;
}
.back-to-top:hover { background: #e06f16; }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* Site-wide convention: motion is opt-out. The scroll-to-top itself is also
   instant instead of smooth when this is set — see js/main.js. */
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .15s ease, visibility .15s ease; transform: none; }
}

/* <picture> wrappers (WebP with a PNG fallback) must not change layout: the
   <img> inside keeps behaving exactly as if it sat in the parent directly,
   so every existing img rule/flex/grid context still applies. */
picture { display: contents; }
picture > source { display: none; }
