/* ==========================================================
   FIFO Radar – light, mining & resources style, mobile-first
   ========================================================== */

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --navy-3: #1E4275;
  --text: #1B2A3D;
  --muted: #56677C;
  --bg: #FFFFFF;
  --grey: #F2F4F7;
  --grey-2: #E7EBF0;
  --line: #D3DAE3;
  --accent: #FFC20E;       /* hi-vis yellow: buttons & highlights only */
  --accent-dark: #E5A900;
  --ok: #1E8E4E;
  --err: #C62828;
  --radius: 10px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-3); }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 10vw, 4.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 7.5vw, 3rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
.wrap--form { max-width: 720px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--navy); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border: 2px solid var(--accent); border-radius: 8px;
  background: var(--accent); color: var(--navy); cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn--lg { min-height: 60px; font-size: 1.4rem; padding: 14px 28px; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 1.1rem; }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--outline { background: #fff; border-color: var(--line); color: var(--navy); }
.btn--outline:hover { background: var(--grey); border-color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 10px rgba(11, 37, 69, .25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin: 0; }
.logo__icon { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; }
.logo__text { font-family: var(--font-head); font-size: 1.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.logo__text b { color: var(--accent); font-weight: 800; }

.menu-btn {
  display: grid; gap: 5px; place-content: center; width: 48px; height: 48px;
  background: transparent; border: 0; cursor: pointer; padding: 0; margin-right: -8px;
}
.menu-btn span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 20px 20px; flex-direction: column; box-shadow: 0 12px 24px rgba(11, 37, 69, .3);
}
.nav--open { display: flex; }
.nav a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem;
  padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 37, 69, .82) 0%, rgba(11, 37, 69, .72) 55%, rgba(11, 37, 69, .92) 100%);
}
.hero__inner { padding-top: 56px; padding-bottom: 64px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  border-left: 4px solid var(--accent); padding-left: 10px; margin-bottom: 18px; color: #fff;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hl { color: var(--accent); }
.hero__sub { font-size: 1.22rem; max-width: 36ch; color: #E8EDF4; margin-bottom: 28px; }
.hero__ctas { display: grid; gap: 12px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--grey); border-bottom: 1px solid var(--grey-2); }
.trust__list { list-style: none; margin: 0 auto; display: grid; gap: 0; padding-top: 8px; padding-bottom: 8px; }
.trust__list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.trust__list li + li { border-top: 1px solid var(--grey-2); }
.trust svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust svg path:last-child { stroke: var(--accent-dark); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.kicker {
  font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
h2 { position: relative; padding-bottom: 14px; margin-bottom: 24px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; background: var(--accent); border-radius: 3px; }
h2.center::after { left: 50%; transform: translateX(-50%); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); margin-bottom: 16px;
}
.step__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step__num { display: block; font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* Workers / employers */
.split { display: grid; gap: 28px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; }
.card h3 { font-size: 1.4rem; margin-bottom: .25em; }
.card p { margin: 0; color: var(--muted); }
.section--grey .center { margin-top: 32px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 16px 18px 16px 56px; background: var(--grey); border-radius: var(--radius); }
.ticks li::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFC20E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.ticks b { color: var(--navy); }
.split .btn--navy { margin-top: 8px; }

/* ---------- Forms ---------- */
.anchor { position: relative; top: calc(-1 * var(--header-h)); display: block; height: 0; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
}
.tab {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1.15;
  border: 0; border-radius: 8px; padding: 14px 8px; min-height: 56px; cursor: pointer; background: transparent; color: var(--muted);
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px 24px; box-shadow: 0 6px 24px rgba(11, 37, 69, .06); }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.form > *, .field > *, .tgroup__list > * { min-width: 0; }
.fstep { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
[data-part] { display: grid; gap: 22px; }

.progress__label { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.progress__step { color: var(--muted); font-weight: 600; }
.progress__bar { height: 10px; background: var(--grey-2); border-radius: 99px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 99px; transition: width .3s; }

.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .label { font-weight: 700; font-size: 1.1rem; color: var(--navy); padding: 0; }
.field > legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--muted); font-size: 1rem; }
.hint { color: var(--muted); font-size: 1rem; margin: -2px 0 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"],
input[type="date"], input[type="search"], select, textarea {
  width: 100%; max-width: 100%; min-width: 0; font: inherit; font-size: 1.125rem; /* ≥16px: no iPhone zoom */
  color: var(--text); background: #fff; border: 2px solid var(--line); border-radius: 8px;
  padding: 12px 14px; min-height: 54px; appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B2545' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 194, 14, .55); }
[aria-invalid="true"] { border-color: var(--err) !important; }
fieldset[aria-invalid="true"] .chips { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 8px; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sub-label { display: grid; gap: 4px; font-weight: 600; font-size: 1rem; color: var(--muted); }
.money { display: flex; align-items: center; gap: 8px; }
.money span { font-weight: 700; color: var(--muted); }
.money input { flex: 1; }

/* Choice chips (job types, rosters, regions…) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px;
  border: 2px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; color: var(--navy);
}
.chip:hover span { border-color: var(--navy-3); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Ticket picker */
.tickets { gap: 10px; }
.tickets__count { margin: 0; font-weight: 700; color: var(--navy); }
.tgroup { border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.tgroup[open] { border-color: var(--navy-3); }
.tgroup summary {
  display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 56px;
  cursor: pointer; list-style: none; padding: 10px 16px; font-weight: 700; color: var(--navy);
}
.tgroup summary::-webkit-details-marker { display: none; }
.tgroup summary::after { content: "+"; font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--navy); }
.tgroup[open] summary::after { content: "–"; }
.tgroup summary span:first-child { flex: 1; }
.tgroup__n { background: var(--accent); color: var(--navy); font-size: .85rem; font-weight: 800; border-radius: 99px; padding: 2px 10px; }
.tgroup__n:empty { display: none; }
.tgroup__list { display: grid; gap: 8px; padding: 0 12px 14px; }
.check {
  display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 52px;
  background: var(--grey); border: 2px solid transparent; border-radius: 8px; padding: 10px 12px; font-weight: 600;
}
.check input { width: 24px; height: 24px; accent-color: var(--navy); flex-shrink: 0; margin: 0; }
.check:has(input:checked) { border-color: var(--navy); background: #EAF0F8; }
.tickets__none { margin: 0; color: var(--muted); }

.verify { background: var(--grey); border-radius: 10px; padding: 0 16px; }
.verify[open] { padding-bottom: 16px; }
.verify summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy); min-height: 52px; }
.verify summary b { color: var(--ok); }
.verify .field { margin-top: 12px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--muted); cursor: pointer; padding: 14px; background: var(--grey); border-radius: 8px; border: 2px solid transparent; }
.consent[aria-invalid="true"] { border-color: var(--err); }
.consent input { width: 26px; height: 26px; flex-shrink: 0; accent-color: var(--navy); margin: 0; }

.form__nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.form__nav [data-next] { grid-column: 2; }
.form__error { margin: 0; padding: 12px 16px; border-radius: 8px; background: #FDECEC; border: 2px solid var(--err); color: #8A1C1C; font-weight: 600; }
.form__error ul { margin: 6px 0 0; padding-left: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding: 16px 4px; }
.thanks:focus { outline: none; }
.thanks__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 2.4rem; font-weight: 800; }
.thanks h3 { font-size: 2rem; text-transform: uppercase; }
.thanks p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.faq details[open] { border-color: var(--navy-3); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative; min-height: 56px;
  font-weight: 700; font-size: 1.15rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; line-height: 1; color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #C9D3E0; padding: 48px 0 24px; font-size: 1rem; }
.footer a { color: #fff; }
.footer a:hover { color: var(--accent); }
.footer h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__grid { display: grid; gap: 32px; }
.logo--footer { margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 36px; padding-top: 18px; font-size: .9rem; color: #9FB0C4; }
.footer__bottom p { margin: 0 0 6px; }
.footer__bottom a { color: #C9D3E0; }

/* ---------- Privacy page ---------- */
.legal h1 { color: var(--navy); font-size: clamp(2.4rem, 9vw, 3.4rem); }
.legal h2 { font-size: 1.7rem; margin-top: 1.6em; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal .lead { max-width: none; }

/* ---------- Bigger screens ---------- */
@media (min-width: 600px) {
  .hero__ctas { grid-template-columns: auto auto; justify-content: start; }
  .trust__list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .trust__list li + li { border-top: 0; }
  .tgroup__list { grid-template-columns: 1fr 1fr; }
  .panel { padding: 30px 32px 32px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .menu-btn { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 4px;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .nav a:not(.btn) { border: 0; padding: 10px 14px; font-size: 1.05rem; }
  .nav .btn { margin: 0 0 0 10px; }
  .hero__inner { padding-top: 120px; padding-bottom: 130px; }
  .section { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .split { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
}
