/* ============================================================================
   Gloria Jean's Coffees South Africa, website stylesheet
   ----------------------------------------------------------------------------
   Mobile-first. Single stylesheet, no build step, no framework.

   Design tokens mirror:
     03 Colours & Fonts/tokens.css        (canonical primaries)
     00 Design Centre/tokens-extended.css (campaign palette, Coffee Brown)

   Type: Gotham is the brand family and must be licensed for production.
   Montserrat is the approved free fallback (01 Design Language §4.1).
   To swap in licensed Gotham, add the @font-face blocks and the stack picks
   it up automatically, no other change needed.
   ========================================================================= */

/* ---------------------------------------------------------------- TOKENS  */
:root {
  /* Primary, canonical */
  --gj-orange:            #F38300;   /* Pantone 151 C, flat fields + UI */
  --gj-orange-mark:       #F2682A;   /* ≈165 C, marks only, never beside 151 */
  --gj-black:             #1A1516;   /* Pantone Black 6 C */
  --gj-white:             #FFFFFF;

  /* Inks */
  --gj-coffee-brown:      #543518;
  --gj-coffee-brown-deep: #3A1B12;

  /* Campaign accents (01 Design Language §3.3) */
  --gj-bone:              #DED5D0;
  --gj-chiller-blue:      #6ABEEB;
  --gj-chiller-blue-deep: #295CAA;
  --gj-tasty-teal:        #58AFB2;
  --gj-tasty-teal-deep:   #3B736C;
  --gj-sweet-pink:        #F49AC1;
  --gj-saucy-red:         #F37A71;
  --gj-golden-amber:      #F9A01B;
  --gj-fotm-cream:        #FFD8A5;

  /* Neutrals derived for UI */
  --gj-ink-muted:         #6B6265;
  --gj-rule:              #E8E2DF;
  --gj-surface:           #FAF7F5;

  /* Type stacks, Gotham first, Montserrat fallback, Arial last */
  --gj-font-head: "Gotham Black", "Montserrat", Arial, sans-serif;
  --gj-font-sub:  "Gotham Bold", "Montserrat", Arial, sans-serif;
  --gj-font-body: "Gotham Book", "Montserrat", Arial, sans-serif;

  /* Layout */
  --gj-max:        1200px;
  --gj-gut:        20px;
  --gj-radius:     14px;
  --gj-header-h:   64px;

  --gj-shadow-sm:  0 2px 8px rgba(26, 21, 22, .08);
  --gj-shadow-md:  0 8px 28px rgba(26, 21, 22, .12);
}

@media (min-width: 768px) {
  :root { --gj-gut: 32px; --gj-header-h: 76px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gj-header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--gj-font-body);
  font-weight: 400;
  color: var(--gj-black);
  background: var(--gj-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------------------------------------ TYPOGRAPHY  */
/* 01 Design Language §4.2, headlines ALL CAPS, Gotham Black, tight leading
   (100–106% of size), tracking 0 to −10, flush left, ragged right.          */
h1, h2, h3, h4 {
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 3.4vw, 1.5rem); }
h4 { font-size: 1rem; letter-spacing: .04em; }

p { margin: 0 0 1rem; }

/* The strapline. Sentence case, WITH the full stop, it is part of the line.
   01 Design Language §4.2 / 04 Copy & Voice §2. Never caps, never with a "!". */
.strapline {
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 3.6vw, 1.9rem);
}

.eyebrow {
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  margin: 0 0 .9rem;
  opacity: .85;
}

.lede { font-size: clamp(1rem, 2.4vw, 1.15rem); max-width: 60ch; }

/* Legal copy, 01 Design Language §9. Do not paraphrase; do not shrink below
   the print equivalent of 6pt. */
.legal {
  font-size: .72rem;
  line-height: 1.45;
  color: var(--gj-ink-muted);
  max-width: 78ch;
}

/* ---------------------------------------------------------------- LAYOUT  */
.wrap {
  width: 100%;
  max-width: var(--gj-max);
  margin-inline: auto;
  padding-inline: var(--gj-gut);
}

.section       { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tight{ padding-block: clamp(2rem, 5vw, 3rem); }
.section--bone { background: var(--gj-bone); }
.section--surface { background: var(--gj-surface); }

.section--black {
  background: var(--gj-black);
  color: var(--gj-white);
}

.center { text-align: center; }
.center .lede, .center .strapline { margin-inline: auto; }

.stack > * + * { margin-top: 1rem; }

/* Skip link, keyboard users land here first. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gj-black);
  color: var(--gj-white);
  padding: .8rem 1.2rem;
  font-family: var(--gj-font-sub);
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--gj-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------- BUTTONS  */
/* 44px minimum touch target throughout, WCAG 2.1 AA / mobile ergonomics.   */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.6rem;
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .88rem;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--gj-orange); color: var(--gj-black); }
.btn--primary:hover { background: #d97400; }

.btn--dark { background: var(--gj-black); color: var(--gj-white); }
.btn--dark:hover { background: #322a2c; }

.btn--ghost {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.btn--white { background: var(--gj-white); color: var(--gj-black); }
.btn--white:hover { background: var(--gj-bone); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.center .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- HEADER  */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gj-white);
  border-bottom: 1px solid var(--gj-rule);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--gj-header-h);
}

.header__logo { display: block; flex-shrink: 0; }
.header__logo img { height: 34px; width: auto; }

@media (min-width: 768px) {
  .header__logo img { height: 44px; }
}

/* Desktop nav, hidden on mobile, drawer takes over. */
.nav { display: none; }

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .nav a {
    font-family: var(--gj-font-sub);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8rem;
    text-decoration: none;
    padding: .5rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .nav a:hover,
  .nav a[aria-current="page"] { border-bottom-color: var(--gj-orange); }

  .nav .btn { margin-left: .5rem; }
}

/* Hamburger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 11px;
  margin-right: -11px;
}
.burger span {
  display: block;
  height: 2.5px;
  background: var(--gj-black);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 900px) { .burger { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--gj-header-h) 0 0 0;
  background: var(--gj-black);
  color: var(--gj-white);
  padding: 1.5rem var(--gj-gut) 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 99;
  visibility: hidden;
}
.drawer[data-open="true"] { transform: translateX(0); visibility: visible; }

.drawer a {
  display: block;
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  text-decoration: none;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.drawer a[aria-current="page"] { color: var(--gj-orange); }
.drawer .btn { margin-top: 1.5rem; width: 100%; border-bottom: 0; }

@media (min-width: 900px) { .drawer { display: none; } }

body[data-lock="true"] { overflow: hidden; }

/* ------------------------------------------------------------------ HERO  */
/* 01 Design Language §5.1, FLOOD a flat field, STACK a caps headline flush
   left, DROP the cut-out product, SIGN at the bottom.                       */
.hero {
  position: relative;
  background: var(--gj-orange);
  color: var(--gj-black);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 8vw, 4.5rem);
}

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 2rem;
    min-height: 540px;
  }
}

/* (a) The concentric roundel, a light-tint disc behind the product. */
.hero__media { position: relative; display: grid; place-items: center; }

.hero__media::before {
  content: "";
  position: absolute;
  width: min(96%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.hero__media img {
  position: relative;
  width: min(78%, 380px);
  filter: drop-shadow(0 18px 26px rgba(36, 35, 36, .28));
}

.hero__title { margin-bottom: .35rem; }

/* Marquee, echoes the international site's scrolling flavour strip. */
.marquee {
  background: var(--gj-black);
  color: var(--gj-white);
  overflow: hidden;
  padding: .7rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: marquee 26s linear infinite;
}
.marquee span {
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .9rem;
}
.marquee span::after { content: " ·"; color: var(--gj-orange); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------- CARDS  */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--gj-white);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--gj-shadow-md); }

.card__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem 1rem;
  background: var(--gj-surface);
  min-height: 190px;
}
.card__media img { width: auto; max-height: 175px; }

/* Feature-coloured card tops, one feature colour per card, never two as
   equal partners (01 Design Language §3.6). */
.card__media--orange { background: var(--gj-orange); }
.card__media--blue   { background: var(--gj-chiller-blue); }
.card__media--teal   { background: var(--gj-tasty-teal); }
.card__media--amber  { background: var(--gj-golden-amber); }
.card__media--pink   { background: var(--gj-sweet-pink); }
.card__media--cream  { background: var(--gj-fotm-cream); }

.card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .35rem;
}
.card__body h3 { margin-bottom: .15rem; }
.card__body p  { color: var(--gj-ink-muted); font-size: .93rem; margin-bottom: .75rem; }
.card__body .btn,
.card__link { margin-top: auto; }

.card__link {
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
  text-decoration: none;
  color: var(--gj-coffee-brown);
  border-bottom: 2px solid var(--gj-orange);
  align-self: flex-start;
  padding-bottom: 2px;
}
.card__link:hover { color: var(--gj-orange); }

/* --------------------------------------------------------------- REWARDS  */
.rewards {
  background: var(--gj-black);
  color: var(--gj-white);
}
.rewards__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .rewards__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.perks { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .9rem; }
.perks li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
}
.perks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gj-orange);
  /* tick */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23000'/%3E%3C/svg%3E") center/16px no-repeat,
           linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23000'/%3E%3C/svg%3E") center/16px no-repeat,
               linear-gradient(#000, #000);
          mask-composite: exclude;
}

.store-badges { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------------------------------------------------------------- STORES  */
.store {
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius);
  padding: 1.5rem;
  background: var(--gj-white);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.store__region {
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  color: var(--gj-orange);
}
.store h3 { margin-bottom: .4rem; }
.store address {
  font-style: normal;
  color: var(--gj-ink-muted);
  font-size: .94rem;
  margin-bottom: .5rem;
}
.store__hours {
  font-size: .88rem;
  color: var(--gj-ink-muted);
  margin-bottom: 1rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--gj-rule);
}
.store__hours strong {
  display: block;
  font-family: var(--gj-font-sub);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  color: var(--gj-black);
  margin-bottom: .3rem;
}
.store__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.store__actions .btn { min-height: 44px; padding: .6rem 1.1rem; font-size: .78rem; }

.tag {
  display: inline-block;
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .66rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: var(--gj-bone);
  color: var(--gj-coffee-brown);
  align-self: flex-start;
  margin-bottom: .6rem;
}
.tag--ho { background: var(--gj-orange); color: var(--gj-black); }

/* ------------------------------------------------------------------ MENU  */
.menu-nav {
  position: sticky;
  top: var(--gj-header-h);
  z-index: 50;
  background: var(--gj-white);
  border-bottom: 1px solid var(--gj-rule);
  padding-block: .6rem;
}
.menu-nav__scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}
.menu-nav__scroll::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-height: 40px;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--gj-surface);
  border: 1px solid var(--gj-rule);
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .74rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover, .chip[aria-current="true"] {
  background: var(--gj-orange);
  border-color: var(--gj-orange);
  color: var(--gj-black);
}

.menu-cat { padding-top: 2.5rem; }
.menu-cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--gj-black);
  padding-bottom: .5rem;
  margin-bottom: .25rem;
}
.menu-cat__head h2 { margin: 0; }

/* Size column header: S R L. 01 Design Language §4.2, SA menu boards carry
   no currency symbol, just the numeral. */
.sizes {
  display: grid;
  grid-template-columns: repeat(3, 3.1rem);
  gap: .35rem;
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  text-align: right;
  color: var(--gj-ink-muted);
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1rem;
  align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gj-rule);
}
.item__name {
  font-family: var(--gj-font-body);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .95rem;
}
.item__desc {
  grid-column: 1 / -1;
  font-size: .85rem;
  color: var(--gj-ink-muted);
  margin: -.15rem 0 0;
  text-transform: none;
  max-width: 62ch;
}
.item__prices {
  display: grid;
  grid-template-columns: repeat(3, 3.1rem);
  gap: .35rem;
  text-align: right;
  font-family: var(--gj-font-sub);
  font-weight: 700;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.item__prices span:empty::after { content: "–"; color: var(--gj-rule); }
.item__price--single { font-family: var(--gj-font-sub); font-weight: 700; font-variant-numeric: tabular-nums; }

/* The ADD: pill, house device for upsells and modifiers (§5.2g). */
.pill-add {
  display: inline-block;
  background: var(--gj-coffee-brown);
  color: var(--gj-white);
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .62rem;
  padding: .2rem .45rem;
  border-radius: 4px;
  margin-right: .5rem;
  vertical-align: 2px;
}

/* ----------------------------------------------------------------- FORMS  */
.form { display: grid; gap: 1.1rem; max-width: 640px; }

.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .74rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--gj-font-body);
  font-size: 1rem;             /* 16px min, stops iOS zoom-on-focus */
  padding: .8rem .9rem;
  min-height: 48px;
  border: 1px solid var(--gj-rule);
  border-radius: 10px;
  background: var(--gj-white);
  color: var(--gj-black);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gj-orange);
  outline: 2px solid var(--gj-orange);
  outline-offset: 1px;
}
.field small { color: var(--gj-ink-muted); font-size: .8rem; }

/* --------------------------------------------------------------- FAQ / A11Y */
.faq { border-top: 1px solid var(--gj-rule); }
.faq details { border-bottom: 1px solid var(--gj-rule); }
.faq summary {
  font-family: var(--gj-font-sub);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.1rem 2.5rem 1.1rem 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  font-family: var(--gj-font-head);
  font-size: 1.5rem;
  color: var(--gj-orange);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-bottom: 1.1rem; color: var(--gj-ink-muted); }

/* -------------------------------------------------------------- PAGE HEAD */
.pagehead {
  background: var(--gj-black);
  color: var(--gj-white);
  padding-block: clamp(2.5rem, 7vw, 4rem);
}
.pagehead .lede { color: rgba(255,255,255,.82); }
.pagehead--orange { background: var(--gj-orange); color: var(--gj-black); }
.pagehead--orange .lede { color: rgba(26,21,22,.78); }

/* ---------------------------------------------------------------- FOOTER  */
/* (h) The white footer band inverted for screen: strapline left, mark right. */
.footer {
  background: var(--gj-black);
  color: var(--gj-white);
  padding-block: 3rem 2rem;
}
.footer__top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
@media (min-width: 720px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}

.footer h4 {
  color: var(--gj-orange);
  letter-spacing: .12em;
  font-size: .74rem;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer a { text-decoration: none; font-size: .92rem; color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--gj-orange); }
.footer__logo img { height: 46px; width: auto; margin-bottom: 1rem; }

.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); }

.social { display: flex; gap: .6rem; }
.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.social a:hover { background: var(--gj-orange); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* --------------------------------------------------------------- UTILITY  */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.note {
  background: var(--gj-fotm-cream);
  border-left: 4px solid var(--gj-golden-amber);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  font-size: .9rem;
}
.note strong { font-family: var(--gj-font-sub); }

/* ==========================================================================
   HOME, international layout, SA typography
   --------------------------------------------------------------------------
   Section rhythm, colour blocking and the flavour carousel follow the
   gloriajeans.com home page. Headlines stay ALL CAPS Gotham/Montserrat per
   01 Design Language §4.2 rather than the international's sentence case :
   the layout is shared, the type voice stays South African.
   ========================================================================= */

/* ------------------------------------------------------------ HERO SLIDER */
.hero-slider { position: relative; background: var(--gj-black); }

.hero-slide {
  position: relative;
  display: none;
  min-height: clamp(420px, 66vw, 620px);
}
.hero-slide[data-active="true"] { display: block; }

.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, keeps the headline legible over any photograph. Heavier on the
   left where the copy sits, clearing to nothing over the product. */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(26, 21, 22, .88) 0%,
    rgba(26, 21, 22, .72) 38%,
    rgba(26, 21, 22, .18) 70%,
    rgba(26, 21, 22, .05) 100%);
}
@media (max-width: 640px) {
  .hero-slide::after {
    background: linear-gradient(180deg,
      rgba(26, 21, 22, .55) 0%,
      rgba(26, 21, 22, .82) 60%,
      rgba(26, 21, 22, .92) 100%);
  }
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 66vw, 620px);
  padding-block: clamp(2.5rem, 7vw, 4rem);
}
.hero-slide__copy { max-width: 34rem; color: var(--gj-white); }
/* Only the first slide carries the page <h1>; later slides use <h2> so the
   page has a single top-level heading. Both must look identical. */
.hero-slide__copy h1,
.hero-slide__copy .hero-slide__title {
  color: var(--gj-white);
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
.hero-slide__copy .lede { color: rgba(255, 255, 255, .88); }
.hero-slide__copy .eyebrow { color: var(--gj-orange); opacity: 1; }

/* The short orange rule under the hero headline, international house device. */
.rule-orange {
  width: 64px;
  height: 4px;
  background: var(--gj-orange);
  border: 0;
  margin: 0 0 1.25rem;
}
.center .rule-orange { margin-inline: auto; }

/* Slider controls */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  padding: 0;
}
.hero-dots button[aria-current="true"] { background: var(--gj-orange); }

.hero-arrows {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
}
.hero-arrows button {
  width: 56px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  transition: background-color .15s ease;
}
.hero-arrows button:hover { background: var(--gj-orange); }
.hero-arrows button + button { border-left: 1px solid var(--gj-rule); }
.hero-arrows img { width: 11px; height: 20px; }

@media (max-width: 640px) { .hero-arrows { display: none; } }

/* -------------------------------------------------------------- CTA BAND */
/* The black strip directly under the hero. */
.band {
  background: var(--gj-black);
  color: var(--gj-white);
  padding-block: 1.5rem;
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.band h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
}
.band--orange { background: var(--gj-orange); color: var(--gj-black); }

/* ---------------------------------------------------------- OFFER TILES */
/* Large image tiles with the copy laid over the bottom-left corner. */
.offer {
  position: relative;
  display: block;
  border-radius: var(--gj-radius);
  overflow: hidden;
  min-height: 380px;
  text-decoration: none;
  color: var(--gj-white);
}
.offer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.offer:hover img { transform: scale(1.04); }

.offer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(26, 21, 22, .82) 0%,
    rgba(26, 21, 22, .45) 45%,
    rgba(26, 21, 22, .05) 100%);
}
.offer__body {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
}
.offer__body h3 {
  color: var(--gj-white);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: .5rem;
}
.offer__body p {
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  max-width: 34ch;
  margin-bottom: 1.1rem;
}
.offer__cta {
  align-self: flex-start;
  background: var(--gj-orange);
  color: var(--gj-black);
  font-family: var(--gj-font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
}
.offer:hover .offer__cta { background: var(--gj-white); }

/* --------------------------------------------------------- STORY SPLIT */
/* Photograph one side, flat colour panel the other. */
.split-panel { display: grid; }
@media (min-width: 900px) { .split-panel { grid-template-columns: 1fr 1fr; } }

.split-panel__img { min-height: 300px; }
.split-panel__img img { width: 100%; height: 100%; object-fit: cover; }

.split-panel__copy {
  background: var(--gj-tasty-teal);
  color: var(--gj-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.split-panel__copy h2 { color: var(--gj-white); }
.split-panel__copy p { color: rgba(255, 255, 255, .92); max-width: 42ch; }
.split-panel__copy .rule-orange { background: var(--gj-white); }

/* ------------------------------------------------------------- WORLD MAP */
.worldmap {
  background: var(--gj-black);
  color: var(--gj-white);
  overflow: hidden;
}
/* The source artwork carries a US-spelling strapline across its lower edge.
   Cropping the bottom keeps the map and drops the text, see README. */
.worldmap__figure {
  margin: 0;
  aspect-ratio: 1445 / 740;
  overflow: hidden;
}
.worldmap__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.worldmap__stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding-block: 2.5rem;
}
.worldmap__stats .n {
  font-family: var(--gj-font-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  color: var(--gj-orange);
  line-height: 1;
}
.worldmap__stats .l {
  font-family: var(--gj-font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  color: rgba(255, 255, 255, .75);
  margin-top: .5rem;
}

/* ------------------------------------------------------ NEWSLETTER BAND */
.signup {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  max-width: 460px;
  width: 100%;
}
.signup input {
  flex: 1 1 200px;
  font-family: var(--gj-font-body);
  font-size: 1rem;
  min-height: 48px;
  padding: .8rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--gj-white);
  color: var(--gj-black);
}
.signup input:focus { outline: 3px solid var(--gj-black); outline-offset: 2px; }

/* --------------------------------------------------------- DECORATIONS */
/* Floating cup/bean artwork, mirroring the international site's loose
   scatter. Purely decorative: aria-hidden, never interactive, and dropped
   entirely on small screens where it would crowd the copy. */
.has-decor { position: relative; overflow: hidden; }
.decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: .9;
}
/* Rotation and shadow were baked into the source SVGs; the flattened WebP
   carries neither, so they are reapplied here (see tools/optimise-decor.mjs). */
.decor--tl {
  top: 2%; left: 1%;
  width: clamp(80px, 9vw, 140px);
  transform: rotate(-41deg);
  filter: drop-shadow(0 10px 14px rgba(26, 21, 22, .18));
}
.decor--tr {
  top: 6%; right: 2%;
  width: clamp(70px, 8vw, 120px);
  transform: rotate(28deg);
  filter: drop-shadow(0 10px 14px rgba(26, 21, 22, .18));
}
.decor--br {
  bottom: 4%; right: 4%;
  width: clamp(80px, 9vw, 150px);
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 14px rgba(26, 21, 22, .18));
}
.has-decor > .wrap { position: relative; z-index: 1; }

@media (max-width: 860px) { .decor { display: none; } }
