/* ==========================================================================
   Special Care Foreign Employment Agency — Main Stylesheet
   --------------------------------------------------------------------------
   Plain CSS, no build step. Mobile-first: base styles are for phones, and
   @media (min-width: ...) blocks add layout for larger screens.
   Breakpoints: 640px (large phone / small tablet), 900px (tablet / desktop
   nav), 1180px (full container width).

   Contents
   1.  Design tokens
   2.  Reset and base
   3.  Utilities (container, placeholders, visually-hidden)
   4.  Buttons
   5.  Header, utility strip and navigation
   6.  Footer
   7.  Floating WhatsApp bubble and mobile contact bar
   8.  Sections and headings
   9.  Homepage: hero, trust strip, about, services, vacancies,
       steps, why us, Facebook panel, CTA band
   10. Inner pages: page hero
   11. Forms
   12. Illustrations and animations
   13. Inner page sections (services, about, vacancies, FAQ, contact)
   14. Motion (scroll reveal) and reduced motion
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Brand — taken from the logo (assets/img/logo.png).
     The logo is royal blue with silver and black. --brand is its deep blue
     (8.6:1 contrast with white), --brand-dark is 15% darker.
     The logo has no second strong colour (silver is too light for buttons),
     so --accent is the warm gold recommended in the brief. */
  --brand:        #0D47A1;   /* logo deep blue */
  --brand-dark:   #0B3C89;
  --brand-light:  #E8F0FB;   /* tinted section backgrounds */
  --accent:       #C9962B;   /* gold — CTAs, underlines, highlights */
  --accent-dark:  #A87C1E;

  /* Neutrals */
  --ink:          #16181D;   /* body text */
  --ink-soft:     #5A6068;   /* secondary text */
  --line:         #E1E4E8;
  --surface:      #FFFFFF;
  --surface-alt:  #F6F7F9;

  /* Status */
  --success:      #1E7A4B;
  --warning:      #B4690E;
  --danger:       #B3261E;

  /* Type scale */
  --fs-hero:      clamp(2rem, 5vw, 3.25rem);
  --fs-h2:        clamp(1.5rem, 3vw, 2.125rem);
  --fs-h3:        1.25rem;
  --fs-body:      1rem;
  --fs-small:     0.875rem;

  /* Spacing — 8px scale */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem;  --s6: 4rem; --s7: 6rem;

  /* Other */
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg:    0 4px 12px rgba(0,0,0,.08), 0 16px 48px rgba(0,0,0,.10);
  --container:    1180px;
  --transition:   180ms ease;

  /* Fonts */
  --font-head:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout helpers (not colours) */
  --header-h:     4rem;      /* height of the main header bar */
  --utility-h:    2.25rem;   /* height of the desktop utility strip */
  --mobile-bar-h: 3.5rem;    /* height of the fixed mobile Call / WhatsApp bar */
  --whatsapp:     #25D366;   /* official WhatsApp green — used only for WhatsApp buttons */
}


/* ==========================================================================
   2. Reset and base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + var(--s2));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  /* Room for the fixed mobile contact bar (removed at 640px and up) */
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}

/* Stop the page scrolling behind the open mobile menu */
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--s2);
  color: var(--ink);
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0 0 var(--s2); max-width: 68ch; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

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

ul, ol { margin: 0; padding: 0; }

/* Elements hidden with the "hidden" attribute stay hidden, whatever their display style */
[hidden] { display: none !important; }

/* Visible focus ring everywhere — never remove without a replacement */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus { outline: none; }  /* main receives focus from the skip link only */

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--fill { fill: currentColor; stroke: none; }


/* ==========================================================================
   3. Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s2);
}
@media (min-width: 640px) {
  .container { padding-inline: var(--s3); }
}

.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;
}

/* Skip link — first focusable element on every page */
.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 1000;
  padding: var(--s1) var(--s2);
  background: var(--accent);
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--s1); }

/* --------------------------------------------------------------------------
   Placeholder for content the client has not supplied yet.
   Deliberately loud so it can never go live unnoticed.
   Search the HTML for "CLIENT TO" to find every one.
   -------------------------------------------------------------------------- */
.todo {
  display: inline;
  padding: 0 .35em;
  font-family: var(--font-body);
  font-size: .85em;
  font-weight: 500;
  color: var(--danger);
  background: var(--surface);
  border: 2px dashed var(--danger);
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.todo--on-dark {
  color: var(--surface);
  background: var(--danger);
  border-color: var(--surface);
}

/* Photograph placeholder — swap for a <picture> element when photos arrive */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-light);
}
.photo--placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--s3);
  text-align: center;
  color: var(--brand);
  border: 2px dashed var(--brand);
}
.photo--placeholder .icon { width: 40px; height: 40px; margin: 0 auto var(--s1); }
.photo--placeholder p { margin: 0; font-size: var(--fs-small); }


/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 44px;
  padding: .625rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

/* Primary — gold with dark text (white on gold fails contrast) */
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--ink); }

/* Secondary — outlined brand */
.btn--secondary { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--secondary:hover { background: var(--brand); color: var(--surface); }

/* Secondary on dark backgrounds (hero, CTA band) */
.btn--light { background: transparent; border-color: var(--surface); color: var(--surface); }
.btn--light:hover { background: var(--surface); color: var(--brand-dark); }

.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--ink); }
.btn--whatsapp:hover { background: var(--surface); border-color: var(--whatsapp); color: var(--ink); }

.btn--lg { min-height: 52px; padding: .875rem 1.75rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.link-arrow .icon { transition: transform var(--transition); }
.link-arrow:hover .icon { transform: translateX(3px); }


/* ==========================================================================
   5. Header, utility strip and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* --- Utility strip (desktop only) --- */
.utility-bar { display: none; }

@media (min-width: 900px) {
  /* Negative top lets the utility strip scroll away while the main bar stays stuck */
  .site-header { top: calc(-1 * var(--utility-h)); }
  html { scroll-padding-top: calc(var(--header-h) + var(--s2)); }

  .utility-bar {
    display: block;
    height: var(--utility-h);
    background: var(--brand-dark);
    color: var(--surface);
    font-size: var(--fs-small);
  }
  .utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--s3);
  }
  .utility-bar p { margin: 0; max-width: none; }
  .utility-bar__contact { display: flex; gap: var(--s3); list-style: none; }
  .utility-bar a {
    display: inline-flex;
    align-items: center;
    min-height: var(--utility-h);   /* the whole strip height is clickable */
    gap: .375rem;
    color: var(--surface);
    text-decoration: none;
  }
  .utility-bar a:hover { text-decoration: underline; }
}

/* --- Main bar --- */
.header-main__inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
/* Text monogram (not used now that logo.png is in place; kept as a fallback style) */
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .02em;
}
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
/* Footer: the logo has dark lettering, so it sits on a white disc */
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--brand); }
.brand__tag  { font-size: .75rem; color: var(--ink-soft); }

.header-main__cta { display: none; }
@media (min-width: 640px) {
  .header-main__cta { display: inline-flex; }
}

/* --- Hamburger toggle (under 900px) --- */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), background-color var(--transition);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Navigation: full-screen overlay under 900px --- */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--s3) var(--s2) var(--s5);
  background: var(--surface);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav.is-open { visibility: visible; opacity: 1; }

.nav__list { list-style: none; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--s1);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__link:hover { color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--brand); box-shadow: inset 3px 0 0 var(--accent); padding-left: var(--s2); }

.nav__cta { margin-top: var(--s3); width: 100%; }
@media (min-width: 640px) {
  .nav__cta { display: none; }
}

/* --- Navigation: inline on desktop --- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .nav {
    position: static;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .nav__list { display: flex; align-items: center; gap: .25rem; }
  .nav__link {
    position: relative;
    min-height: 44px;
    padding: 0 .875rem;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 0;
  }
  .nav__link[aria-current="page"] { box-shadow: none; padding-left: .875rem; }
  /* Gold underline on hover and on the current page — the site motif */
  .nav__link::after {
    content: "";
    position: absolute;
    left: .875rem;
    right: .875rem;
    bottom: 6px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { transform: scaleX(1); }

  .header-main__cta { margin-left: var(--s1); }
}

/* Soft shadow under the header once the page is scrolled (class added by main.js) */
.site-header.is-scrolled { box-shadow: var(--shadow); }


/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.82);
  font-size: .9375rem;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--surface); text-decoration: underline; }

.footer-main {
  display: grid;
  gap: var(--s5);
  padding-block: var(--s6);
}
@media (min-width: 640px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--s4); }
}

.footer-col h2 {
  margin-bottom: var(--s2);
  font-size: 1rem;
  font-weight: 600;
  color: var(--surface);
}
.footer-col p { margin-bottom: var(--s2); }
.footer-col ul { list-style: none; }
.footer-col li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

/* Footer logo "patch": a white badge holding a larger logo and the name */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
  padding: .75rem 1.25rem .75rem .75rem;
  background: var(--surface);
  border-bottom: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  transition: transform var(--transition);
}
.site-footer a.footer-brand:hover { text-decoration: none; transform: translateY(-2px); }
.footer-brand .brand__logo { width: 88px; height: 88px; }
.footer-brand .brand__name { font-size: 1.25rem; color: var(--brand); }
.footer-brand .brand__tag  { font-size: .8125rem; color: var(--ink-soft); }

.footer-licence {
  padding: var(--s1) var(--s2);
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.06);
  color: var(--surface);
}

.social { display: flex; gap: var(--s1); list-style: none; }
.footer-col .social a {
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  transition: background-color var(--transition), border-color var(--transition);
}
.footer-col .social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: var(--s2);
}
.contact-list .icon { margin-top: 2px; color: var(--accent); }
.contact-list a { min-height: 0; }
.contact-list address { font-style: normal; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-small);
}
.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding-block: var(--s3);
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom p a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 0 var(--s2); list-style: none; }
.footer-bottom__links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) {
  .footer-bottom__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom__left { display: flex; align-items: center; gap: var(--s3); }
}


/* ==========================================================================
   7. Floating WhatsApp bubble and mobile contact bar
   ========================================================================== */
.whatsapp-bubble {
  position: fixed;
  right: var(--s3);
  bottom: var(--s3);
  z-index: 90;
  display: none;           /* the mobile bar replaces it under 640px */
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.whatsapp-bubble:hover { color: var(--ink); transform: scale(1.06); }
.whatsapp-bubble .icon { width: 30px; height: 30px; }

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  box-shadow: 0 -2px 12px rgba(0,0,0,.10);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  height: var(--mobile-bar-h);
  font-weight: 500;
  text-decoration: none;
}
.mobile-bar__call { background: var(--brand); color: var(--surface); }
.mobile-bar__call:hover { background: var(--brand-dark); color: var(--surface); }
.mobile-bar__whatsapp { background: var(--whatsapp); color: var(--ink); }
.mobile-bar__whatsapp:hover { color: var(--ink); }

@media (min-width: 640px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .whatsapp-bubble { display: grid; }
}


/* ==========================================================================
   8. Sections and headings
   ========================================================================== */
.section { padding-block: var(--s6); }
.section--alt   { background: var(--surface-alt); }
.section--tint  { background: var(--brand-light); }
@media (min-width: 900px) {
  .section { padding-block: var(--s7); }
}

.section-head { margin-bottom: var(--s5); }
.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.0625rem; }

.eyebrow {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* The repeating brand motif: a 3px gold underline under every section heading */
.section-title { position: relative; padding-bottom: var(--s2); margin-bottom: var(--s2); }
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head--center .section-title::after { left: 50%; transform: translateX(-50%); }

.section-actions { margin-top: var(--s5); text-align: center; }

/* Generic card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
a.card:hover,
.card--lift:hover { transform: translateY(-3px); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s2);
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand);
}


/* ==========================================================================
   9. Homepage
   ========================================================================== */

/* --- 9.1 Hero --- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding-block: var(--s6) var(--s6);
  background: var(--brand-dark);
  color: var(--surface);
  overflow: hidden;
}
/* The hero photograph fills the section behind the text */
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Dark overlay keeps white text readable on any photograph */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 60, 137, .72); /* --brand-dark at 72% */
}
/* Faint dot pattern for depth */
.hero::after,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: var(--s4);
  align-items: center;
}
.hero__content { max-width: 640px; }
.hero h1 { color: var(--surface); margin-bottom: var(--s3); }
.hero .eyebrow { color: var(--accent); }
.hero__lead { font-size: 1.125rem; color: rgba(255,255,255,.9); margin-bottom: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero__actions .btn { flex: 1 1 100%; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-top: var(--s4);
  list-style: none;
  font-size: var(--fs-small);
  color: rgba(255,255,255,.85);
}
.hero__badges li { display: flex; align-items: center; gap: .375rem; }
.hero__badges .icon { color: var(--accent); }

/* Animated illustration beside the hero text */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.hero__art svg { width: 100%; height: auto; }
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero-chip .icon-badge { width: 32px; height: 32px; margin: 0; }
.hero-chip .icon { width: 18px; height: 18px; }
.hero-chip--1 { top: 6%; left: 0; }
.hero-chip--2 { top: 44%; right: 0; animation-delay: -2s; }
.hero-chip--3 { bottom: 6%; left: 10%; animation-delay: -4s; }

@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .hero-chip { font-size: var(--fs-small); padding: .625rem .875rem; }
}
@media (min-width: 900px) {
  .hero { min-height: 640px; padding-block: var(--s6) calc(var(--s6) + 40px); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: var(--s5); }
}

/* --- 9.2 Trust strip --- */
.trust { position: relative; z-index: 2; padding-top: var(--s4); }
.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  list-style: none;
}
.trust__item {
  padding: var(--s3) var(--s2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}
.trust__value {
  display: block;
  margin-bottom: .25rem;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand);
}
.trust__label { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 900px) {
  /* Overlap the hero by 40px */
  .trust { margin-top: -40px; padding-top: 0; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
  .trust__item { box-shadow: var(--shadow); padding: var(--s4) var(--s3); }
}

/* --- 9.3 About preview --- */
.split {
  display: grid;
  gap: var(--s5);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}

/* --- 9.4 Services --- */
.grid-3 {
  display: grid;
  gap: var(--s3);
  list-style: none;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}
.service-card:hover { color: var(--ink); border-color: var(--brand); }
.service-card h3 { margin-bottom: var(--s1); }
.service-card p { color: var(--ink-soft); margin-bottom: var(--s2); }
.service-card .link-arrow { margin-top: auto; color: var(--brand); min-height: 0; }

/* --- 9.5 Vacancy cards (shared with vacancies.html) --- */
.job-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.job-card { overflow: hidden; }
.job-card__media {
  position: relative;
  margin: calc(-1 * var(--s3)) calc(-1 * var(--s3)) var(--s2);
  aspect-ratio: 16 / 9;
  background: var(--brand-light);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.job-card__media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.job-card:hover .job-card__media > img { transform: scale(1.04); }
/* Country badge (flag + name) over the picture */
.job-card__country {
  position: absolute;
  top: var(--s1);
  left: var(--s1);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .75rem .3rem .35rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.flag-img {
  display: block;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line);
  object-fit: cover;
}
.job-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s2);
}
.job-card h3 { margin-bottom: var(--s2); }
.job-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.job-card__meta dt { color: var(--ink-soft); }
.job-card__meta dd { margin: 0; font-weight: 500; }
.job-card .btn { margin-top: auto; }

.tag {
  display: inline-block;
  padding: .125rem .625rem;
  font-size: .8125rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
}
.tag--sample { background: var(--surface); color: var(--danger); border: 1px dashed var(--danger); }

/* Country code badge — stands in for a flag image */
.flag {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 1.5rem;
  padding: 0 .25rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--brand);
  color: var(--surface);
}

/* Loading, empty and error messages for JSON-driven sections */
.notice {
  grid-column: 1 / -1;
  padding: var(--s4) var(--s3);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.notice p { margin-inline: auto; }
.notice--error { border-left: 4px solid var(--danger); }

/* --- 9.7 How it works --- */
.steps {
  position: relative;
  display: grid;
  gap: var(--s4);
  list-style: none;
  counter-reset: step;
}
/* Vertical connector line on mobile */
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: var(--line);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s2);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 0 0 6px var(--surface-alt);
}
.step h3 { margin-bottom: var(--s1); padding-top: .625rem; }
.step p { color: var(--ink-soft); margin: 0; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
  /* Horizontal connector line on desktop */
  .steps::before {
    top: 24px;
    bottom: auto;
    left: 12.5%;
    right: 12.5%;
    width: auto;
    height: 2px;
  }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .step h3 { padding-top: var(--s1); }
}

/* --- 9.8 Why choose us --- */
.features {
  display: grid;
  gap: var(--s3);
  list-style: none;
}
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
.feature h3 { margin-bottom: var(--s1); }
.feature p { color: var(--ink-soft); margin: 0; }

/* --- 9.9 Testimonials --- */
.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}
.quote .icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: var(--s2); }
.quote blockquote { margin: 0 0 var(--s3); font-size: 1.0625rem; }
.quote figcaption { margin-top: auto; font-size: var(--fs-small); color: var(--ink-soft); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 500; }

/* --- 9.10 CTA band --- */
.cta-band {
  padding-block: var(--s6);
  background: var(--brand);
  color: var(--surface);
  text-align: center;
}
.cta-band h2 { color: var(--surface); }
.cta-band p { margin-inline: auto; margin-bottom: var(--s4); color: rgba(255,255,255,.9); font-size: 1.0625rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }


/* ==========================================================================
   10. Inner pages: compact page hero
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--s5);
  background: var(--brand);
  color: var(--surface);
}
.page-hero .container > * { max-width: 640px; }
/* Plane flying across the page header, over the heading.
   The dashed trail is drawn behind the text (z-index -1); the plane flies
   in front, exactly along the gold trail. main.js copies the trail's curve,
   scaled to the header's real size, into the plane's offset-path, and
   recalculates it when the screen size changes. */
.page-hero__trail {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .7;
  pointer-events: none;
}
.page-hero__plane {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 34px;
  height: 20px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
  visibility: hidden;            /* shown by main.js once its path is set */
  offset-anchor: center;
  offset-rotate: auto;           /* nose points along the path */
  animation: fly-along 10s linear infinite;
}
.page-hero__plane.is-ready { visibility: visible; }
.page-hero__plane svg { display: block; width: 100%; height: 100%; }
@keyframes fly-along {
  0%   { offset-distance: 0%; }
  80%  { offset-distance: 100%; }   /* flight takes 8 seconds... */
  100% { offset-distance: 100%; }   /* ...then a 2 second pause off-screen */
}
@media (min-width: 900px) {
  .page-hero__plane { width: 44px; height: 26px; }
}
/* Very old browsers without offset-path: no plane (the trail still shows) */
@supports not (offset-path: path("M0 0")) {
  .page-hero__plane { display: none; }
}
.page-hero h1 {
  position: relative;
  padding-bottom: var(--s2);
  color: var(--surface);
  font-size: var(--fs-h2);
}
.page-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.page-hero p { margin: 0; color: rgba(255,255,255,.9); font-size: 1.0625rem; }
@media (min-width: 900px) {
  .page-hero { padding-block: var(--s6); }
}


/* ==========================================================================
   11. Forms (apply.html, contact.html, employers.html)
   ========================================================================== */
.form-layout {
  display: grid;
  gap: var(--s5);
  align-items: start;
}
@media (min-width: 900px) {
  .form-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .form-aside { position: sticky; top: calc(var(--header-h) + var(--s3)); }
}

.form-card {
  padding: var(--s3) var(--s2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 640px) {
  .form-card { padding: var(--s4); }
}

/* "You are applying for" panel */
.job-panel {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  margin-bottom: var(--s3);
  padding: var(--s2) var(--s3);
  background: var(--brand-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.job-panel .icon { color: var(--brand); margin-top: 2px; }
.job-panel p { margin: 0; }
.job-panel strong { color: var(--brand); }

.form-section {
  margin: 0 0 var(--s4);
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-section legend {
  width: 100%;
  margin-bottom: var(--s2);
  padding-bottom: var(--s1);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.form-grid { display: grid; gap: 0 var(--s3); }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: var(--s3); min-width: 0; }
.field > label,
.field > .field__label {
  display: block;
  margin-bottom: .375rem;
  font-weight: 500;
}
.req { color: var(--danger); }
.field__hint { margin: .25rem 0 0; font-size: var(--fs-small); color: var(--ink-soft); }

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .625rem .875rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink-soft); /* inputs need a clearly visible border (3:1 minimum) */
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); outline: none; }
.input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
textarea.input { min-height: 120px; resize: vertical; }
select.input { cursor: pointer; }
input[type="file"].input { padding: .5rem; }

/* Radio and checkbox groups */
.choices { display: flex; flex-wrap: wrap; gap: var(--s1); }
.choice {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 44px;
  padding: .5rem .875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice:hover { border-color: var(--brand); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.choice--plain { padding: .25rem 0; border: 0; }

/* Validation */
.field__error {
  display: none;
  margin: .375rem 0 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--danger);
}
.field.has-error .field__error { display: block; }
.field.has-error .input,
.field.has-error .choice { border-color: var(--danger); }
.field.has-error .input { border-width: 2px; }

/* Honeypot — hidden from people, visible to spam bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Form-level messages */
.alert {
  margin-bottom: var(--s3);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  border-left: 4px solid var(--danger);
  background: var(--surface-alt);
}
.alert p { margin: 0; }
.alert--success { border-left-color: var(--success); }

/* Messages shown after a no-JavaScript submission (via the #anchor in the URL) */
.form-result { display: none; }
.form-result:target { display: block; }

.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.form-submit .btn { min-width: 220px; }
@media (max-width: 639px) {
  .form-submit .btn { width: 100%; }
}

/* Spinner inside the submit button while sending */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.is-sending .spinner { display: inline-block; }
.btn[disabled] { opacity: .75; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success panel that replaces the form */
.success-panel {
  padding: var(--s5) var(--s3);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--success);
  border-radius: var(--radius-lg);
}
.success-panel .icon { width: 56px; height: 56px; margin: 0 auto var(--s2); color: var(--success); }
.success-panel p { margin-inline: auto; }
.success-panel .btn { margin-top: var(--s2); }

.aside-title { font-size: var(--fs-h3); }

/* --- Facebook panel (homepage) --- */
.fb-panel {
  display: grid;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4) var(--s3);
  background: var(--brand-light);
  border-radius: var(--radius-lg);
}
.fb-panel__actions { justify-content: flex-start; }
.fb-panel__stats { display: grid; gap: var(--s2); list-style: none; }
.fb-panel__stats li {
  padding: var(--s2) var(--s3);
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.fb-panel__stats strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--brand); }
.fb-panel__stats span { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 900px) {
  .fb-panel { grid-template-columns: 1.2fr 1fr; gap: var(--s6); padding: var(--s6); }
}
.aside-list { list-style: none; }
.aside-talk { margin: 0; }
.form-submit .field__hint { margin: 0; }
.success-panel .btn .icon { width: 24px; height: 24px; margin: 0; color: currentColor; }
.aside-list li { display: flex; gap: .75rem; margin-bottom: var(--s2); }
.aside-list .icon { color: var(--brand); margin-top: 2px; }


/* ==========================================================================
   12. Illustrations (inline SVG) and their animations
   --------------------------------------------------------------------------
   Every drawing uses these colour classes, so the artwork follows the
   brand tokens automatically if the colours change.
   ========================================================================== */
.art { display: block; width: 100%; height: auto; overflow: visible; }

.fill-brand       { fill: var(--brand); }
.fill-brand-dark  { fill: var(--brand-dark); }
.fill-brand-light { fill: var(--brand-light); }
.fill-accent      { fill: var(--accent); }
.fill-surface     { fill: var(--surface); }
.fill-line        { fill: var(--line); }
.fill-soft        { fill: var(--ink-soft); }
.fill-success     { fill: var(--success); }
.fill-none        { fill: none; }
.stroke-brand     { stroke: var(--brand); }
.stroke-accent    { stroke: var(--accent); }
.stroke-surface   { stroke: var(--surface); }
.stroke-line      { stroke: var(--line); }
.stroke-light     { stroke: var(--brand-light); }
.stroke-success   { stroke: var(--success); }
.stroke-faint     { stroke: rgba(255,255,255,.14); }
.art [class*="stroke-"] { stroke-linecap: round; stroke-linejoin: round; }

/* Moving dashed line (flight routes) */
.anim-dash { stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; }
/* Gentle up-and-down float */
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-float-slow { animation: float 8s ease-in-out infinite -3s; }
/* Expanding ring behind a location pin */
.anim-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.anim-pulse-2 { animation-delay: -.8s; }
.anim-pulse-3 { animation-delay: -1.6s; }
/* Slow rotation (orbit rings) */
.anim-spin { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
/* Stamp landing on a passport */
.anim-stamp { transform-box: fill-box; transform-origin: center; animation: stamp 4s ease-in-out infinite; }
/* Line drawing itself (heartbeat, ticks) */
.anim-draw { stroke-dasharray: 220; animation: draw 3s ease-in-out infinite; }
/* Bars growing (training chart) */
.anim-grow { transform-box: fill-box; transform-origin: bottom; animation: grow 3s ease-in-out infinite; }
.anim-grow-2 { animation-delay: -1s; }
.anim-grow-3 { animation-delay: -2s; }
/* Plane crossing the frame */
.anim-fly { animation: fly 7s linear infinite; }
/* Soft blink (status lights) */
.anim-blink { animation: blink 3s ease-in-out infinite; }

@keyframes dash   { to { stroke-dashoffset: -48; } }
@keyframes float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse  { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes stamp  {
  0%, 15%  { transform: scale(1.8) rotate(-12deg); opacity: 0; }
  28%      { transform: scale(.94) rotate(-12deg); opacity: 1; }
  34%, 85% { transform: scale(1) rotate(-12deg); opacity: 1; }
  100%     { transform: scale(1) rotate(-12deg); opacity: 0; }
}
@keyframes draw   { 0% { stroke-dashoffset: 220; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes grow   { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes fly    { 0% { transform: translate(-80px, 30px); } 100% { transform: translate(480px, -40px); } }
@keyframes blink  { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Framed illustration panel (services, about) */
.illus {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-light);
  border: 1px solid var(--line);
}
.illus::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13,71,161,.08) 1px, transparent 1px); /* --brand dots */
  background-size: 20px 20px;
}
.illus .art { position: relative; }


/* ==========================================================================
   13. Inner page sections
   ========================================================================== */

/* --- Alternating service blocks (services.html) --- */
.service-block {
  display: grid;
  gap: var(--s4);
  align-items: center;
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
@media (min-width: 900px) {
  .service-block { grid-template-columns: 1fr 1fr; gap: var(--s6); padding-block: var(--s6); }
  .service-block--reverse .service-block__art { order: 2; }
}

.checklist { list-style: none; display: grid; gap: .625rem; margin-top: var(--s3); }
.checklist li { display: flex; gap: .625rem; align-items: flex-start; }
.checklist .icon { color: var(--success); margin-top: 1px; }
@media (min-width: 640px) {
  .checklist--2 { grid-template-columns: 1fr 1fr; }
}

/* In-page jump links */
.chip-nav { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin-top: var(--s3); }
.chip-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: var(--surface);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}
.chip-nav a:hover { background: var(--surface); color: var(--brand); }

/* --- Numbered timeline (employer recruitment process) --- */
.timeline { list-style: none; counter-reset: tl; display: grid; gap: var(--s2); }
.timeline li {
  position: relative;
  counter-increment: tl;
  padding: var(--s2) var(--s2) var(--s2) 4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.timeline li::before {
  content: counter(tl);
  position: absolute;
  left: var(--s2);
  top: var(--s2);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
}
.timeline strong { display: block; font-family: var(--font-head); font-weight: 600; }
.timeline span { color: var(--ink-soft); font-size: var(--fs-small); }
@media (min-width: 640px) {
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1180px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}

.card-actions { margin: var(--s3) 0 0; }
.timeline-title { margin-top: var(--s6); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; }
.tag-list .tag { padding: .375rem .875rem; font-size: var(--fs-small); }

/* --- About page --- */
.md-message {
  display: grid;
  gap: var(--s4);
  align-items: start;
}
@media (min-width: 900px) {
  .md-message { grid-template-columns: 320px 1fr; gap: var(--s6); }
}
.md-message blockquote { margin: 0; font-size: 1.125rem; }
.signature { margin-top: var(--s3); font-family: var(--font-head); font-weight: 600; }
.signature span { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--ink-soft); }

.mv-grid { display: grid; gap: var(--s3); }
@media (min-width: 900px) {
  .mv-grid { grid-template-columns: 1fr 1fr; }
}
.mv-grid .card { padding: var(--s4); }

.licence-panel {
  padding: var(--s4) var(--s3);
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
}
.licence-panel dl { display: grid; gap: var(--s3); margin: var(--s3) 0 0; }
.licence-panel dt { font-size: var(--fs-small); color: var(--ink-soft); }
.licence-panel dd { margin: .25rem 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; color: var(--brand); }
@media (min-width: 900px) {
  .licence-panel { padding: var(--s5); }
  .licence-panel dl { grid-template-columns: repeat(3, 1fr); }
}

/* --- Vacancies page filters --- */
.filters {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s4);
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.filters .field { margin: 0; }
@media (min-width: 640px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__keyword { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .filters__keyword { grid-column: auto; }
}
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
  margin-bottom: var(--s3);
  color: var(--ink-soft);
}
.results-bar p { margin: 0; }

.job-card__more { margin: 0 0 var(--s3); font-size: var(--fs-small); }
.job-card__more summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--brand);
  cursor: pointer;
}
.job-card__more h4 { margin: var(--s1) 0 .25rem; font-size: .875rem; }
.job-card__more ul { padding-left: 1.125rem; color: var(--ink-soft); }

/* --- FAQ accordion (contact.html) --- */
.faq-groups { display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .faq-groups { grid-template-columns: 1fr 1fr; }
}
.faq-group h3 { margin-bottom: var(--s2); }
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item h4 { margin: 0; }
.accordion__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  width: 100%;
  min-height: 56px;
  padding: var(--s2) 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.accordion__button:hover { color: var(--brand); }
.accordion__button .icon { color: var(--accent-dark); transition: transform var(--transition); }
.accordion__button[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion__panel { padding-bottom: var(--s3); color: var(--ink-soft); }
.accordion__panel p:last-child { margin-bottom: 0; }

/* --- Contact page --- */
.contact-cards { display: grid; gap: var(--s2); list-style: none; }
.contact-card {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  padding: var(--s3);
}
.contact-card .icon-badge { margin: 0; flex-shrink: 0; }
.contact-card h3 { margin-bottom: .25rem; font-size: 1rem; }
.contact-card p { margin: 0; }
.contact-card p a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-card, .contact-list { overflow-wrap: break-word; min-width: 0; }
.contact-card address { font-style: normal; }

.map {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--brand-light);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .map { aspect-ratio: 21 / 8; }
}

/* --- Long-form text (privacy.html) --- */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--s5); font-size: 1.375rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--s2); }
.prose li { margin-bottom: .5rem; }
.prose .updated { color: var(--ink-soft); font-size: var(--fs-small); }

/* --- 404 page --- */
.error-page { text-align: center; }
.error-page .art { max-width: 420px; margin: 0 auto var(--s4); }
.error-page p { margin-inline: auto; }


/* --- Real photographs --- */
.photo picture, .photo img { display: block; width: 100%; height: 100%; }
.photo img { object-fit: cover; }
.photo--frame { box-shadow: var(--shadow-lg); }

/* Photo gallery (homepage strip and About page) */
.gallery { display: grid; gap: var(--s2); list-style: none; grid-template-columns: 1fr 1fr; }
.gallery__item figure { position: relative; margin: 0; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--brand-light); }
.gallery__item picture, .gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s3) var(--s2) var(--s1);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--surface);
  background: linear-gradient(to top, rgba(11,60,137,.9), rgba(11,60,137,0)); /* --brand-dark fade, readable caption */
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
  .gallery--home { grid-template-columns: repeat(4, 1fr); }
  .gallery__item figcaption { font-size: var(--fs-small); }
}

/* CEO statement */
.ceo { display: grid; gap: var(--s4); align-items: center; }
.ceo__photo { max-width: 360px; aspect-ratio: 4 / 5; }
.ceo__photo img { object-position: 50% 0; }
.ceo__quote { margin: 0; font-size: 1.125rem; border-left: 4px solid var(--accent); padding-left: var(--s3); }
@media (min-width: 900px) {
  .ceo { grid-template-columns: 360px 1fr; gap: var(--s6); }
  .ceo__quote { font-size: 1.25rem; }
}

/* Team */
.team { display: grid; gap: var(--s3); list-style: none; grid-template-columns: 1fr 1fr; }
.team__member { text-align: center; }
.team__photo { display: block; width: 140px; height: 140px; margin: 0 auto var(--s2); border-radius: 50%; overflow: hidden; border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__photo--top img { object-position: 50% 12%; }
.team__member h3 { margin-bottom: .25rem; font-size: 1.125rem; }
.team__member p { margin: 0 auto; color: var(--ink-soft); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .team { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
  .team__photo { width: 170px; height: 170px; }
}

/* ==========================================================================
   13b. Phone adjustments (under 640px)
   ========================================================================== */
@media (max-width: 639px) {
  /* Slightly tighter vertical rhythm so phones scroll less */
  .section { padding-block: var(--s5); }
  .section-head { margin-bottom: var(--s4); }
  .page-hero { padding-block: var(--s4) var(--s5); }

  /* Full-width buttons are easier to tap with a thumb */
  .cta-band__actions .btn,
  .section-actions .btn,
  .fb-panel__actions .btn,
  .card-actions .btn,
  .filters .btn { width: 100%; }

  .hero { padding-block: var(--s5); }
  .hero__lead { font-size: 1.0625rem; }
  .hero__badges { flex-direction: column; gap: var(--s1); }

  .trust__value { font-size: 1.125rem; }
  .trust__item { padding: var(--s2) var(--s1); }

  .fb-panel { padding: var(--s3) var(--s2); }
  .licence-panel { padding: var(--s3) var(--s2); }
  .form-card { padding: var(--s3) var(--s2); }
  .service-block { padding-block: var(--s4); }
  .timeline li { padding-left: 3.5rem; }
  .timeline li::before { left: .75rem; }

  .footer-main { gap: var(--s4); padding-block: var(--s5); }
  .footer-brand { width: 100%; }

  .contact-card { gap: .75rem; padding: var(--s2); }
  .contact-card .icon-badge { width: 40px; height: 40px; }
}

/* ==========================================================================
   14. Motion
   ========================================================================== */
/* Fade-and-rise on scroll. The "js" class is added by main.js, so content
   stays visible if JavaScript fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  /* Illustrations stay still */
  .art *,
  .hero-chip,
  .page-hero__trail * { animation: none !important; }
  .page-hero__plane { display: none; }
  a.card:hover, .card--lift:hover { transform: none; }
}
