/* ==========================================================================
   PG Consulting — landing page styles
   Palette from the logo: deep navy + gold. Light sections for long text,
   dark sections for hero, accents and footer. Logo only on dark navy.
   ========================================================================== */

:root {
  --navy-950: #050d1e;
  --navy-900: #071126;
  --navy-800: #0a1630;
  --navy-700: #13224a;
  --navy-600: #1c2f5e;

  --gold: #c9a45c;
  --gold-light: #e3c88a;
  --gold-deep: #7d5f25;          /* gold text on light backgrounds (AA contrast) */
  --gold-tint: rgba(201, 164, 92, 0.12);
  --gold-border: rgba(201, 164, 92, 0.38);

  --cream: #f3eee3;
  --paper: #faf8f3;
  --white: #ffffff;

  --ink: #0a1630;
  --ink-soft: #3e4a63;
  --ink-muted: #5e6880;
  --line: rgba(10, 22, 48, 0.1);
  --line-strong: rgba(10, 22, 48, 0.2);

  --on-dark: #ece7dc;
  --on-dark-muted: #a9b2c6;
  --line-dark: rgba(255, 255, 255, 0.12);

  --ok: #1f6f43;
  --ok-tint: rgba(31, 111, 67, 0.1);
  --error: #b42318;

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 128px);
  --header-space: 96px;

  --radius-xl: 20px;
  --radius-card: 16px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --shadow-hover: 0 14px 30px -18px rgba(10, 22, 48, 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-space);
  /* Shown when the page is pulled past its top or bottom (rubber-band scrolling):
     navy like the hero and footer instead of a light strip. */
  background: var(--navy-900);
}

/* Smooth scrolling. Without JS (or with reduced motion) in-page links use CSS smooth scrolling;
   with JS, Lenis (js/vendor/lenis.min.js, started in main.js) eases wheel and trackpad scrolling.
   scroll-padding-top keeps focused fields clear of the fixed header; sections cancel it with
   scroll-margin-top so they land flush at the top (Lenis reads both values itself). */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  /* Navy, not light: Safari 26 tints its status/toolbar area from the body background.
     Every section paints its own background, so nothing else changes. */
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    font-size: 1.0625rem;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Cormorant only for large headings (link to the logo); everything else is Inter */
h1,
h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.6rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Focus ring: navy on light backgrounds, gold on dark ones (contrast >= 3:1). */
:focus-visible {
  outline: 2px solid var(--focus, var(--navy-800));
  outline-offset: 3px;
}

.site-header,
.hero,
.section--dark,
.site-footer,
.not-found {
  --focus: var(--gold);
}

.form-card {
  --focus: var(--navy-800);
}

/* Sections focused after an in-page link (tabindex="-1") need no ring */
[tabindex="-1"]:focus {
  outline: none;
}

.container {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-900);
}

.btn--gold:hover {
  background: var(--gold-light);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.btn--navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-700);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  font-size: 0.875rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- Eyebrow labels, tags ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero .eyebrow,
.section--dark .eyebrow {
  color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--navy {
  background: rgba(10, 22, 48, 0.06);
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
  /* enough room for the floating header (76px) when a link jumps here */
  padding-top: max(var(--section-y), 100px);
  /* in-page links put the section edge at the very top; the header floats over its padding.
     (html keeps scroll-padding-top for keyboard focus, this cancels it for sections) */
  scroll-margin-top: calc(var(--header-space) * -1);
}

.section--paper {
  background: var(--paper);
}

.section--tinted {
  background: var(--cream);
}

.section--paper,
.section--tinted {
  border-top: 1px solid var(--line);
}

.section--dark {
  background: var(--navy-900);
  color: var(--on-dark-muted);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head .lead {
  margin-top: 16px;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  text-wrap: balance;
}

@media (max-width: 600px) {
  .section {
    padding-top: 92px; /* clears the 68px floating header after an in-page jump */
    padding-bottom: 64px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head .lead {
    margin-top: 12px;
    font-size: 1rem;
  }
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  padding: clamp(22px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .card--hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

/* Scroll reveal: hidden state is added by main.js only for content below the fold */
.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.card.reveal {
  transition:
    opacity 0.8s var(--ease) var(--delay, 0s),
    transform 0.6s var(--ease) var(--delay, 0s),
    box-shadow 0.3s var(--ease);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- Header (floating glass pill) ---------- */

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  height: 64px;
  margin-inline: auto;
  padding: 0 10px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(7, 17, 38, 0.8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px -16px rgba(5, 13, 30, 0.55);
  pointer-events: auto;
  transition: background-color 0.3s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-bar {
    background: var(--navy-900);
  }
}

.site-header.is-scrolled .header-bar {
  background: rgba(7, 17, 38, 0.9);
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: auto;
}

.brand__name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .header-bar {
    gap: 10px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(7, 17, 38, 0.97);
    box-shadow: 0 24px 48px -16px rgba(5, 13, 30, 0.6);
  }

  .site-header.is-open .site-nav {
    display: block;
    animation: menuIn 0.35s var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--on-dark);
  }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .brand__name {
    display: none;
  }
}

/* "Request workers" inside the mobile menu: only when the header button is hidden
   (selector must beat `.site-nav a { display: block }`) */
.site-nav a.site-nav__cta {
  display: none;
}

@media (max-width: 600px) {
  :root {
    --header-space: 84px;
  }

  .header-bar {
    height: 56px;
    padding: 0 8px 0 14px;
  }

  .brand img {
    width: 36px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle span { left: 11px; }
  .nav-toggle span:nth-child(1) { top: 13px; }
  .nav-toggle span:nth-child(2) { top: 19px; }
  .nav-toggle span:nth-child(3) { top: 25px; }
}

@media (max-width: 480px) {
  .header-bar > .btn--sm {
    display: none;
  }

  .site-nav a.site-nav__cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-900);
  }

  .site-nav a.site-nav__cta:hover {
    background: var(--gold-light);
    color: var(--navy-900);
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-space) + clamp(32px, 6vw, 80px));
  padding-bottom: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(ellipse 80% 70% at 80% 10%, rgba(28, 47, 94, 0.55), transparent 70%),
    var(--navy-900);
  color: var(--on-dark-muted);
}

/* Large PG monogram as a faint light silhouette (assets/pg-mark.svg: smooth vector trace of the logo
   without its metallic texture, built by tools/build_mark.py), partly off the right edge */
.hero__mark {
  position: absolute;
  top: 50%;
  right: clamp(-120px, -5vw, -40px);
  width: min(48vw, 720px);
  height: auto;
  opacity: 0.065;
  transform: translateY(-46%);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__mark {
    animation: mark-in 1.8s var(--ease) 0.2s both;
  }
}

@keyframes mark-in {
  from { opacity: 0; transform: translateY(-44%) scale(1.04); }
  to { opacity: 0.065; transform: translateY(-46%); }
}

@media (max-width: 900px) {
  .hero__mark {
    top: 140px;
    right: -18vw;
    width: 78vw;
    opacity: 0.05;
    transform: none;
    animation: none;
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: clamp(40px, 6vw, 88px);
}

.hero h1 {
  color: var(--white);
}

.hero h1 .accent {
  display: block;
  color: var(--gold-light);
}

.hero__lead {
  max-width: 600px;
  text-wrap: pretty;
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  margin: 0;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line-dark);
}

.hero__fact + .hero__fact {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.hero__fact dt {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-dark);
}

.hero__num {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2.2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-light);
}

.hero__fact dd {
  margin: 6px 0 0;
  text-wrap: balance;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* On desktop the hero fills the first screen, so no strip of the next section peeks in */
@media (min-width: 901px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero > .container {
    width: 100%;
  }
}

/* Soft entrance (pure CSS, ends visible even without JS) */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > *,
  .hero__facts {
    animation: rise 0.9s var(--ease) both;
  }

  .hero__content > :nth-child(2) { animation-delay: 0.06s; }
  .hero__content > :nth-child(3) { animation-delay: 0.12s; }
  .hero__content > :nth-child(4) { animation-delay: 0.18s; }
  .hero__facts { animation-delay: 0.24s; }
}

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

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .hero__fact + .hero__fact {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: calc(var(--header-space) + 20px);
    padding-bottom: 32px;
  }

  .hero__mark {
    display: none; /* keeps the headline clean on small screens */
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero__lead {
    margin-top: 14px;
    font-size: 0.97rem;
    line-height: 1.55;
  }

  /* Two compact buttons side by side instead of two full-width slabs */
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero__actions .btn {
    min-height: 46px;
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
  }

  .hero__actions .btn .icon {
    display: none;
  }

  .hero__facts {
    margin-top: 28px;
    padding-top: 18px;
    gap: 12px;
  }

  .hero__num {
    margin-bottom: 4px;
    font-size: 2.1rem;
  }

  .hero__fact dt {
    font-size: 0.85rem;
  }

  .hero__fact dd {
    display: none;
  }
}

@media (max-width: 340px) {
  .hero__actions {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why PG ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 4vw, 48px);
}

.points li {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-strong);
}

.points .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--navy-700);
}

.points h3 {
  margin-bottom: 6px;
}

.points p {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .points {
    grid-template-columns: 1fr;
  }

  .points li {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 14px;
    padding: 16px 0;
  }

  .points .icon {
    grid-row: span 2;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
  }

  .points h3 {
    margin-bottom: 2px;
  }
}

/* ---------- Workers ---------- */

.sector-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.sector-list li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.sector-list .icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--navy-700);
}

.sector-list h3 {
  margin-bottom: 4px;
}

.sector-list p {
  font-size: 0.95rem;
}

.focus-line {
  margin-top: 28px;
  font-size: 0.97rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
}

@media (max-width: 720px) {
  .sector-list {
    grid-template-columns: 1fr;
  }

  .focus-line {
    text-align: left;
  }
}

/* ---------- Consulting ---------- */

.consult {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.consult__col {
  padding-top: 20px;
  border-top: 2px solid var(--navy-800);
}

.consult__col summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.consult__col summary::-webkit-details-marker {
  display: none;
}

.consult__col summary .icon {
  display: none;
}

.consult__col h3 {
  margin-bottom: 14px;
}

/* Desktop: columns always open, the summary is just a heading */
@media (min-width: 901px) {
  .consult__col summary {
    pointer-events: none;
    cursor: default;
  }
}

.dash-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
}

.dash-list li + li {
  margin-top: 8px;
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--ink-muted);
}

.fineprint {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  /* Tablets and phones: three collapsible rows instead of long lists */
  .consult {
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .consult__col {
    padding-top: 0;
    border-top: 1px solid var(--line-strong);
  }

  .consult__col summary {
    padding: 16px 0;
    cursor: pointer;
  }

  .consult__col summary h3 {
    margin: 0;
  }

  .consult__col summary .icon {
    display: block;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 50%;
    background: rgba(10, 22, 48, 0.06);
    color: var(--ink);
    stroke-width: 2;
    transition: transform 0.3s var(--ease), background-color 0.25s ease, color 0.25s ease;
  }

  .consult__col[open] summary .icon {
    transform: rotate(45deg);
    background: var(--navy-800);
    color: var(--white);
  }

  .consult__col .dash-list {
    padding-bottom: 18px;
  }

  .consult__col .fineprint {
    margin: -6px 0 18px;
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
}

.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
}

.step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

@media (hover: hover) {
  .step:hover .step__body {
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
  }
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.93rem;
}

.step__get {
  margin-top: auto;
  padding-top: 18px;
}

.step__get div {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--on-dark);
}

.step__get span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
}

.cta-band p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    position: relative;
  }

  .step__num {
    position: absolute;
    z-index: 1;
    top: 18px;
    right: 16px;
    width: 32px;
    height: 32px;
    margin: 0;
    font-size: 0.85rem;
  }

  .step__body {
    padding: 20px 18px 18px;
  }

  .step h3 {
    padding-right: 44px;
  }

  .cta-band .btn {
    width: 100%;
  }
}

/* ---------- Countries ---------- */

.route-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.route-col h3 {
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.route-col li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.route-col li.is-muted {
  font-weight: 400;
  color: var(--ink-muted);
}

.route-arrow {
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-light);
}

.map-figure {
  max-width: 720px;
  margin: clamp(32px, 5vw, 48px) auto 0;
}

.map-card {
  padding: clamp(10px, 2vw, 20px);
  border-radius: var(--radius-xl);
  background: var(--navy-900);
  overflow: hidden; /* land outlines extend past the map edges */
}

.map-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  text-align: center;
  color: var(--ink-muted);
}

.route-map {
  width: 100%;
  height: auto;
}

.route-map .land {
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.route-map .path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  opacity: 0.7;
}

.route-map .halo {
  fill: rgba(201, 164, 92, 0.22);
}

.route-map .halo--dest {
  fill: rgba(255, 255, 255, 0.12);
}

.route-map .traveler {
  fill: var(--gold-light);
}

@media (prefers-reduced-motion: no-preference) {
  /* dashes drift towards Europe along each route */
  .route-map .path {
    animation: route-flow 1.6s linear infinite;
  }

  .route-map .halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: halo-pulse 3.2s ease-in-out infinite;
  }

  .route-map .d1 { animation-delay: 0.4s; }
  .route-map .d2 { animation-delay: 0.8s; }
  .route-map .d3 { animation-delay: 1.2s; }
  .route-map .d4 { animation-delay: 1.6s; }
  .route-map .d5 { animation-delay: 2s; }
  .route-map .d6 { animation-delay: 2.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .route-map .traveler {
    display: none;
  }
}

@keyframes route-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes halo-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
}

.route-map .node {
  fill: var(--gold-light);
}

.route-map .node--dest {
  fill: var(--white);
}

.route-map text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  fill: var(--white);
  paint-order: stroke;
  stroke: var(--navy-900);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.route-map .legend text {
  font-size: 13px;
  font-weight: 500;
  fill: var(--on-dark-muted);
}

@media (max-width: 600px) {
  .route-map text {
    font-size: 19px;
  }

  .route-map .legend text {
    font-size: 17px;
  }
}

@media (max-width: 700px) {
  .route-board {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* ---------- Experience ---------- */

/* Flex so an incomplete last row stays centred */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.client {
  flex: 0 1 calc((100% - 48px) / 4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  text-align: center;
}

.client__name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.client__meta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .client {
    flex-basis: calc((100% - 16px) / 2);
    min-height: 110px;
  }
}

/* Trust bar (hidden in HTML until employers give permission) */
.trust-bar {
  padding-block: 28px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.trust-bar__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 840px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:focus-visible {
  outline-offset: -3px;
}

.faq summary .icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(10, 22, 48, 0.06);
  color: var(--ink);
  stroke-width: 2;
  transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
  background: var(--navy-800);
  color: var(--white);
}

.faq details > div {
  padding: 0 24px 22px;
  font-size: 0.97rem;
}

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

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact__intro {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
}

.example-request {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.example-request__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.example-request p {
  font-weight: 500;
  color: var(--white);
}

.contact-cards {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

a.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

.contact-card__icon .icon {
  width: 18px;
  height: 18px;
}

.contact-card div > span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.contact-card strong {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Form ---------- */

.form-card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 14px;
}

.field {
  grid-column: span 6;
}

.field--half {
  grid-column: span 3;
}

.field--third {
  grid-column: span 2;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.field label .req {
  color: var(--gold-deep);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fdfcf9;
  font: inherit;
  font-size: 1rem; /* 16px prevents iOS zoom on focus */
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Same height for every single-line field, including the month picker */
.field input:not([type="checkbox"]) {
  height: 42px;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field textarea[rows="2"] {
  min-height: 64px;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(10, 22, 48, 0.32);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.3);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8d95a7;
}

.field__error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 0;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}

.field .consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  box-shadow: none;
  accent-color: var(--navy-800);
}

.field .consent input:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 2px;
}

.consent a {
  color: var(--ink);
  text-underline-offset: 2px;
}

.hp {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 18px;
}

.form-actions .note {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

/* Stays in the accessibility tree when empty so the first message is announced. */
.form-status:empty {
  margin: 0;
  padding: 0;
}

.form-status.is-success {
  background: var(--ok-tint);
  color: var(--ok);
}

.form-status.is-info {
  background: rgba(10, 22, 48, 0.05);
  color: var(--ink);
}

.form-status.is-error {
  background: rgba(180, 35, 24, 0.07);
  color: var(--error);
}

.noscript-note {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--error);
}

@media (max-width: 600px) {
  .form-card {
    padding: 18px;
  }

  .form-grid {
    gap: 12px;
  }

  .contact__intro {
    font-size: 1rem;
  }

  .field--half,
  .field--third {
    grid-column: span 6;
  }

  .form-actions .btn {
    width: 100%;
  }
}

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

.site-footer {
  position: relative;
  background: var(--navy-950);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Compact footer: smaller logo and padding so it reads as a closing strip, not a section */
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 32px;
  padding-block: clamp(32px, 4vw, 44px);
}

.footer__logo {
  width: 112px;
  margin-bottom: 12px;
}

.footer__about {
  max-width: 280px;
}

.site-footer h2 {
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.site-footer address {
  font-style: normal;
}

.footer__links li + li {
  margin-top: 4px;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
  font-size: 0.78rem;
}

/* divider aligned with the content, not with the container padding */
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line-dark);
}

.footer__bottom ul {
  display: flex;
  gap: 24px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  /* Phone: logo on top, Company and Contact side by side; the page menu is in the header already */
  .footer__grid {
    gap: 20px 16px;
  }

  .footer__nav {
    display: none;
  }

  .footer__logo {
    width: 96px;
  }
}

/* ---------- Legal page (Privacy Policy) ---------- */

.legal {
  padding-top: calc(var(--header-space) + clamp(24px, 5vw, 56px));
  padding-bottom: clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 40%);
}

.legal__inner {
  max-width: 860px;
}

.legal__card {
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--line);
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.legal__updated {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.legal h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 14px;
}

.legal .bullets {
  margin-top: 14px;
}

.legal .bullets li {
  position: relative;
  padding-left: 22px;
}

.legal .bullets li + li {
  margin-top: 8px;
}

.legal .bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--ink-muted);
}

.legal a {
  color: var(--ink);
  text-underline-offset: 2px;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px var(--gutter);
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(28, 47, 94, 0.6), transparent 70%),
    var(--navy-900);
  color: var(--on-dark-muted);
  text-align: center;
}

.not-found img {
  width: 96px;
  margin: 0 auto 32px;
}

.not-found h1 {
  color: var(--white);
}

.not-found p {
  margin: 16px 0 32px;
}

/* ---------- Print: show everything, no animation states ---------- */

@media print {
  .reveal.is-pending {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header {
    display: none !important;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
