/* ============================================================
   Bulmers brand layer — shared with the summer campaign
   ============================================================

   Lifted from Rooftop-Twenty-Two/Bulmers (iframe/style.css), which
   derived these values from Bulmers_Brand_Guide_241125.pdf — kept in
   assets/brand/ for reference. Both campaigns must read as one brand,
   so this file is the shared half: tokens, faces and the primitives
   built on them.

   Anything specific to Christmas belongs in the campaign stylesheet,
   not here. If a value needs to change for Christmas, add a token
   there rather than editing one of these, or the two campaigns drift.

   FONT LICENSING — these are the summer build's TRIAL .otf files.
   Licensed .woff2 files are still outstanding from the client (it is
   on the summer repo's go-live checklist too). They must be swapped
   in, and the @font-face src declarations below updated, before this
   campaign goes live.
     Resolve Sans Extrabold Narrow (800) → condensed display headlines
     New Atten ExtraBold (800)           → sub-heads, labels, buttons
     New Atten Medium (500)              → body copy, inputs
   ============================================================ */

@font-face {
  font-family: 'Resolve Sans';
  src: url('/assets/fonts/resolve-sans-extrabold-narrow.otf') format('opentype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'New Atten';
  src: url('/assets/fonts/new-atten-extrabold.otf') format('opentype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'New Atten';
  src: url('/assets/fonts/new-atten-medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* Greens. --green is the campaign green both builds sit on. */
  --green:      #005936;
  --green-dk:   #00442A;
  --green-lt:   #0B6B43;
  /* The deeper green the summer full-page layout used behind its artwork. */
  --green-deep: #05432A;

  /* Brand gold gradient, per the guidelines: Pantone 10126 C base,
     CMYK shadow 27,51,100,8 and highlight 0,13,50,0. */
  --gold:       #C6A352;
  --gold-lt:    #FFDE80;
  --gold-dk:    #AB7300;

  --red:        #E4002B;
  --cream:      #F7F2E8;
  --paper:      #FFFFFF;
  --ink:        #1E1B16;
  --ink-soft:   #5E5A50;
  --line:       #E6DECF;
  --field-bg:   #F6F2E9;

  --font-display: 'Resolve Sans', 'Arial Narrow', Arial, sans-serif;
  --font-head:    'New Atten', Arial, sans-serif;
  --font-body:    'New Atten', Arial, sans-serif;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow: 0 14px 40px rgba(0, 30, 18, 0.28);

  /* The gold gradient appears on the CTA, rules and clipped text. One
     definition so the three never drift apart. */
  --gold-grad:   linear-gradient(180deg, var(--gold-lt) 0%, var(--gold) 55%, var(--gold-dk) 100%);
  --gold-grad-h: linear-gradient(90deg, var(--gold-dk) 0%, var(--gold) 45%, var(--gold-lt) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* ── Type ───────────────────────────────────────────────────── */

.t-display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.5px;
}


.t-eyebrow {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.86rem;
}

.t-gold {
  background: var(--gold-grad-h);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Form card ──────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 22px 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 1.5rem;
  line-height: 1.02;
  color: var(--green);
  margin-bottom: 4px;
}

.card__lede {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ── Fields ─────────────────────────────────────────────────── */

.form-grid { display: grid; grid-template-columns: 1fr; column-gap: 20px; }
.form-field-full { grid-column: 1 / -1; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink);
  margin-bottom: 7px;
}

.req { color: var(--red); }

.input {
  display: block;
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input::placeholder { color: #A9A294; }

.input:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.25);
}

.input.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.14);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 15px; top: 50%;
  width: 10px; height: 10px;
  transform: translateY(-60%) rotate(45deg);
  border-right: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  pointer-events: none;
}
.input--select { padding-right: 38px; cursor: pointer; }

.field__hint {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.err {
  display: none;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--red);
  margin-top: 6px;
}
.err.is-visible { display: block; }

/* ── Checkboxes ─────────────────────────────────────────────── */

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  margin-bottom: 12px;
}

.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check__box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--field-bg);
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.check__box::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.check input:checked + .check__box {
  background: var(--green);
  border-color: var(--green);
}
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }

.check input:focus-visible + .check__box {
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.35);
}

.check__text {
  font-size: 0.83rem;
  color: var(--ink);
  line-height: 1.45;
}
.check__text a { color: var(--green); font-weight: 800; text-decoration: underline; }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.18s, background 0.18s;
}

.btn--primary {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.12rem;
  color: var(--green-dk);
  background: var(--gold-grad);
  box-shadow: 0 6px 16px rgba(169, 132, 47, 0.4);
}
.btn--primary:hover  { box-shadow: 0 8px 22px rgba(169, 132, 47, 0.5); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.btn--ghost {
  flex-shrink: 0;
  padding: 15px 18px;
  font-size: 0.95rem;
  color: var(--green);
  background: transparent;
  border: 2px solid var(--line);
}
.btn--ghost:hover  { border-color: var(--green); }
.btn--ghost:active { transform: translateY(1px); }

/* ── Age note ───────────────────────────────────────────────── */

.age-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.age-note__badge {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  padding: 3px 7px;
}

/* ── Footer sign-off ────────────────────────────────────────── */

/* The Wm Magner signature is a heritage sign-off. The guidelines keep it
   away from the Bulmers logo so the two never compete, which is why it
   lives in the footer and the logo sits at the top. */
.foot { padding: 16px 22px 22px; text-align: center; }

.foot__signature {
  display: block;
  width: 168px;
  height: auto;
  margin: 2px auto 16px;
  opacity: 0.9;
}

.foot__legal {
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.foot__legal a { color: rgba(255, 255, 255, 0.8); }

.foot__da {
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-lt);
}

/* ── Texture ────────────────────────────────────────────────── */

/* A low-opacity droplet texture from the brand guide, blended over the
   green. It should only ever read through green areas — the form card
   sits on top of it, opaque. Apply to a positioned ancestor.
   Light enough that it reads as atmosphere, not as pattern. */
.has-condensation { position: relative; }
.has-condensation > .condensation {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assets/condensation-web.jpg') center / cover no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0.26;
  pointer-events: none;
}

/* ── Motion ─────────────────────────────────────────────────── */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .t-display, .card, [class*="fade"] { animation: none !important; }
}

/* ── Desktop ────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .card { padding: 28px 28px 30px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__signature { width: 196px; }
}
