/* Campaign pages of dutyfreedeal.com, dutyfreebank.com, dutyfreezone.com and dutyfreefood.com.
 * One layout and one motion grammar for the four sites; each site's dfd-campaign/theme.css only sets the colours below
 * (DutyFreeDeal: midnight and copper, Bank: blue, Zone: orange, Food: green).
 * Switzer only, a dark hero over the animated sky, light chapters below.
 * Motion: everything rises a few pixels and fades in, slowly, in order; the hero drifts away as the page scrolls;
 * a thin bar shows how far down the page the reader is. Nothing moves with reduced motion. */

:root {
  /* Theme (default: DutyFreeDeal) */
  --night: #0b2235;
  --night-rgb: 11 34 53;
  --ink: #12324b;
  --accent: #cb6831;
  --accent-strong: #b4561f;
  --accent-hover: #9c4818;
  --accent-rgb: 203 104 49;
  --accent-on-dark: #f0b48c;
  --accent-on-dark-2: #f6c39f;
  --studio: #f3f5f8;
  --text: #12324b;
  --text-2: #5b6e80;
  --line: #e1e6ec;
  --line-strong: #c2ccd6;
  --sky-glow-1: 38 96 140;
  --sky-glow-2: 203 104 49;
  --sky-glow-3: 240 160 96;
  --sky-top: #0a2133;
  --sky-bottom: #071a2a;
  /* Colours of the animated sky (sky.js), as r g b: base, two mid tones, highlight, brightest highlight, deep shadow. */
  --sky-c0: 18 50 75;
  --sky-c1: 36 102 158;
  --sky-c2: 97 163 214;
  --sky-c3: 219 112 51;
  --sky-c4: 255 179 115;
  --sky-deep: 8 23 38;

  /* Fixed */
  --white: #ffffff;
  --on-dark: #f5f5f7;
  --on-dark-2: rgba(245, 245, 247, 0.74);
  --danger: #a3122a;
  --danger-bg: #fde8eb;
  --success: #1b6b36;
  --success-bg: #e3f4e8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --radius-s: 10px;
  --pad: clamp(20px, 3.4vw, 48px);
  --max: 1200px;
  --font: 'Switzer', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
a.inline { color: inherit; text-underline-offset: 3px; }

/* ---------- Sky (dark chapters) ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: strict;
  background:
    radial-gradient(60% 42% at 28% 4%, rgb(var(--sky-glow-1) / 0.5), transparent 70%),
    radial-gradient(48% 36% at 74% 10%, rgb(var(--sky-glow-2) / 0.32), transparent 70%),
    radial-gradient(36% 30% at 52% 0%, rgb(var(--sky-glow-3) / 0.16), transparent 70%),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 70%);
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.sky canvas.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sky canvas { transition: none; } }

.dark { color: var(--on-dark); }
.dark .lead, .dark .muted { color: var(--on-dark-2); }

/* ---------- Scroll progress ---------- */

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--on-dark);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-solid { background: rgb(var(--night-rgb) / 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { height: 30px; width: auto; }
.brand-tile { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.brand-tile--light { background: var(--white); padding: 3px 4px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--on-dark); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--on-dark-2); transition: color 0.3s var(--ease); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.nav a:hover, .nav a.is-current { color: var(--on-dark); }
.nav a.is-current::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav { display: none; } .header-row .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--primary { background: var(--accent-strong); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--on-dark); background: rgb(var(--night-rgb) / 0.35); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.85); }
.btn--line { border-color: var(--line-strong); color: var(--text); background: var(--white); }
.btn--line:hover { border-color: var(--text); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Hero ---------- */

.hero { padding: clamp(72px, 12vh, 140px) 0 clamp(88px, 14vh, 160px); text-align: center; }
.hero-inner { will-change: transform, opacity; }
.eyebrow { display: inline-block; margin-bottom: 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-dark); }
.display { font-size: clamp(44px, 5.6vw, 84px); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; }
.display .soft { display: block; color: var(--on-dark-2); }
.hero .lead { max-width: 44em; margin: 26px auto 0; font-size: clamp(17px, 1.35vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }

/* ---------- Chapters ---------- */

.chapter { padding: clamp(80px, 11vw, 136px) 0; background: var(--white); }
.chapter--studio { background: var(--studio); }
/* A veil over the sky in lower chapters, where the gradient is brightest, so body text keeps its contrast. */
.chapter--dark { background: linear-gradient(rgb(var(--night-rgb) / 0.5), rgb(var(--night-rgb) / 0.5)); }
.kicker { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); }
.dark .kicker { color: var(--accent-on-dark); }
.title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; }
.lead { max-width: 46em; margin-top: 18px; font-size: clamp(17px, 1.3vw, 19px); color: var(--text-2); }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--after { margin-top: 20px; }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { padding: 30px 28px 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.chapter--studio .card { border-color: transparent; box-shadow: 0 1px 2px rgb(var(--night-rgb) / 0.05), 0 24px 60px rgb(var(--night-rgb) / 0.06); }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin-top: 10px; font-size: 16px; color: var(--text-2); }
.card-num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; border-radius: 50%; background: rgb(var(--accent-rgb) / 0.12); color: var(--accent-strong); font-size: 14px; font-weight: 700; }
.dark .card { background: rgb(var(--night-rgb) / 0.72); border-color: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dark .card p { color: var(--on-dark-2); }
.dark .card-num { background: rgb(var(--accent-rgb) / 0.22); color: var(--accent-on-dark-2); }

/* Two promises, equal weight */
.promise { padding: clamp(32px, 4vw, 48px); border-radius: 24px; background: var(--studio); }
.promise h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.promise p { margin-top: 14px; color: var(--text-2); }
.note { margin-top: 28px; font-size: 14px; color: var(--text-2); }

/* Split chapter: heading on the left, points on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .head { position: sticky; top: 108px; margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .head { position: static; } }
.points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.point { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.point svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent-strong); }
.point h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.point p { margin-top: 6px; font-size: 16px; color: var(--text-2); }
.dark .points, .dark .point { border-color: rgba(255, 255, 255, 0.14); }
.dark .point svg { color: var(--accent-on-dark); }
.dark .point p { color: var(--on-dark-2); }
.split-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Chips (departments, categories) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 14px; color: var(--on-dark); background: rgb(var(--night-rgb) / 0.45); }
.chips--light li { border-color: var(--line-strong); color: var(--text); background: var(--white); }

/* Escrow steps */
.steps { margin: 0; padding: 0; list-style: none; }

/* "Moving to DutyFreeDeal" band of dutyfreezone.com and dutyfreefood.com: the site's logo, an arrow, the DutyFreeDeal logo. */
.move { padding: clamp(64px, 8vw, 104px) 0; background: var(--studio); text-align: center; }
.move-logos { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 28px); margin-bottom: 34px; }
.move-tile { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 1px 2px rgb(var(--night-rgb) / 0.08), 0 12px 30px rgb(var(--night-rgb) / 0.1); }
.move-tile.brand-tile--light { padding: 6px 7px; }
.move-arrow { width: 40px; height: 16px; color: var(--accent-strong); }
.move-arrow path { stroke-dasharray: 48; stroke-dashoffset: 48; transition: stroke-dashoffset 1.2s var(--ease) 0.5s; }
.move-logos.is-in .move-arrow path { stroke-dashoffset: 0; }
.move-dfd { height: 40px; width: auto; }
.move .title { max-width: 20em; margin: 0 auto; }
.move .lead { margin: 18px auto 0; max-width: 40em; }
.move-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.move-actions .btn--line { background: transparent; }
@media (prefers-reduced-motion: reduce) { .move-arrow path { transition: none; stroke-dashoffset: 0; } }
.no-js .move-arrow path { stroke-dashoffset: 0; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-aside .btn { margin-top: 28px; }
.contact-mail { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.privacy { margin-top: 18px; font-size: 13px; color: var(--text-2); }

.form { padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--white); box-shadow: 0 1px 2px rgb(var(--night-rgb) / 0.05), 0 24px 60px rgb(var(--night-rgb) / 0.08); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.4 var(--font);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.2); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); }
fieldset.field { margin: 0; padding: 0; border: 0; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; }
.role { position: relative; }
.role input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.role span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.role input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.role input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.status { padding: 14px 16px; border-radius: var(--radius-s); font-size: 15px; }
.status:empty { display: none; }
.status--ok { background: var(--success-bg); color: var(--success); }
.status--error { background: var(--danger-bg); color: var(--danger); }
.form-status { margin-top: 18px; }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 44px; background: var(--night); color: var(--on-dark-2); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; color: var(--on-dark-2); }
.footer-links a:hover { color: var(--on-dark); }
.family { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
.family span { color: #8a9db1; }
.family a { color: var(--on-dark-2); text-decoration: none; }
.family a:hover { color: var(--on-dark); }
.legal { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; line-height: 1.6; color: #8a9db1; }

/* ---------- Motion ---------- */

/* Reveal: blocks rise and fade in once, in reading order (--i is set by campaign.js inside each [data-stagger] group). */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }
/* Section titles rise from behind a mask, a little later than the kicker above them. */
.title.reveal, .display.reveal { clip-path: inset(0 0 100% 0); transition-property: opacity, transform, clip-path; }
.title.reveal.is-in, .display.reveal.is-in { clip-path: inset(0 0 -20% 0); }
/* The separator lines of a list draw themselves from left to right. */
.point.reveal::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgb(var(--accent-rgb) / 0.55); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease) calc(var(--i, 0) * 90ms + 250ms); }
.point.reveal.is-in::after { transform: scaleX(1); }

.no-js .reveal { opacity: 1; transform: none; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .title.reveal, .display.reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
  .point.reveal::after { transition: none; transform: scaleX(1); }
  .progress { display: none; }
}
