/* ============================================================
   iTech Creators — Design System
   Ink navy on off-white, single warm amber accent.
   Editorial grotesque type. Big numbers as decoration.
   ============================================================ */

/* Font is loaded via <link rel="preconnect"> + <link rel="stylesheet">
   in includes/header.php — that removes the CSS @import request chain
   and lets the browser start the font download sooner. */

:root {
  /* Color */
  --ink:        #16243D;   /* deep ink navy */
  --ink-soft:   #2B3B57;   /* secondary text on paper */
  --ink-mute:   #5C6A82;   /* muted text */
  --line:       #E3DED4;   /* hairlines on paper */
  --line-ink:   rgba(255,255,255,0.12);

  --paper:      #F6F3EC;   /* warm off-white page bg */
  --paper-2:    #FFFFFF;   /* cards */
  --paper-3:    #EFEAE0;   /* tinted band */

  --amber:      #E8842C;   /* the one accent */
  --amber-deep: #C96A16;
  --amber-soft: #FBE9D4;

  --ink-paper:  #EDEFF4;   /* light text on ink */
  --ink-paper-mute: #9AA7BF;

  /* Type */
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* Spacing rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 150px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(22,36,61,.05), 0 2px 8px rgba(22,36,61,.05);
  --shadow-md: 0 4px 14px rgba(22,36,61,.07), 0 18px 50px -22px rgba(22,36,61,.28);
  --shadow-lg: 0 30px 80px -30px rgba(22,36,61,.40);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1340px; }
.section { padding: var(--section) 0; }
.section-tight { padding: clamp(48px,7vw,90px) 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; }
.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 40ch;
  text-wrap: pretty;
}
.body-col { max-width: 65ch; text-wrap: pretty; }
p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber-deep);
}
/* dashed/line decoration before the eyebrow label intentionally removed */
.eyebrow::before { display: none; }
.eyebrow.on-ink { color: var(--amber); }
.eyebrow.plain::before { display: none; }

.muted { color: var(--ink-mute); }
.amber-text { color: var(--amber-deep); }

/* big decorative numbers */
.bignum {
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.9;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 0.85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s, border-color .18s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 8px 20px -8px rgba(232,132,44,.6); }
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(232,132,44,.7); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #0F1A2E; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-ink { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-ink:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.06rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--amber-deep);
  transition: gap .18s ease;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .18s ease; }
.link-arrow:hover { gap: 11px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,236,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246,243,236,0.94); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.18rem; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  display: grid; place-items: center; color: #fff; flex-shrink: 0; position: relative; overflow: hidden;
}
.brand-mark span { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.04em; position: relative; z-index: 1; }
.brand-mark::after { content:""; position:absolute; right:-6px; bottom:-6px; width:18px; height:18px; background: var(--amber); border-radius: 50%; }
.brand small { font-weight: 500; color: var(--ink-mute); font-size: 0.7rem; letter-spacing: 0.02em; }
.brand > span:last-child { white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: 0.97rem; color: var(--ink-soft);
  transition: color .15s, background .15s; position: relative;
}
.nav-links a:hover { color: var(--ink); background: rgba(22,36,61,.05); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* dropdown */
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 10px; min-width: 280px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; z-index: 50;
}
/* Invisible hover bridge across the gap between the menu item and its dropdown,
   so the menu does not close while the cursor travels down into it. */
.dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; background: transparent;
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Keep the whole item hoverable as one piece while a dropdown is open */
.has-menu > a { position: relative; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 9px; background: none; }
.dropdown a:hover { background: var(--paper-3); }
.dropdown a strong { display: block; font-weight: 600; color: var(--ink); font-size: 0.97rem; }
.dropdown a span { font-size: 0.84rem; color: var(--ink-mute); }
.chev { width: 14px; height: 14px; opacity: .6; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 22px var(--gutter);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.mobile-nav a { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a.sub { font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); padding-left: 16px; }
.mobile-nav .mb-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ink-paper); padding: clamp(56px,8vw,96px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 36px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: #fff; }
.footer-brand .brand-mark span { color: var(--ink); }
.footer-brand p { color: var(--ink-paper-mute); max-width: 34ch; margin-top: 18px; font-size: 0.96rem; }
.footer-col h4, .footer-col .footer-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-paper-mute); margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-paper); font-size: 0.96rem; opacity: .85; transition: opacity .15s, color .15s; }
.footer-col a:hover { opacity: 1; color: var(--amber); }
.footer-legal {
  margin-top: clamp(48px,7vw,72px); padding-top: 28px; border-top: 1px solid var(--line-ink);
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline;
  font-size: 0.84rem; color: var(--ink-paper-mute);
}
.footer-legal strong { color: var(--ink-paper); font-weight: 600; }
.footer-legal .reg { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer-legal-links a { color: var(--ink-paper-mute); transition: color .15s; }
.footer-legal-links a:hover { color: var(--amber); }
@media (max-width: 640px) { .footer-legal-links { margin-left: 0; } }

/* ---------- Cards & surfaces ---------- */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(22,36,61,.16); }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-deep);
}
.tag-ink { background: rgba(22,36,61,.06); color: var(--ink-soft); }
.tag-dot::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Trust bar ---------- */
.trustbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2);
  overflow: hidden;
}
.trustbar > div {
  flex: 1 1 auto; padding: 16px 22px; min-width: 150px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.trustbar > div:last-child { border-right: none; }
.trustbar .ti-num { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.trustbar .ti-lbl { font-size: 0.85rem; color: var(--ink-mute); line-height: 1.25; }
.trustbar svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }

/* ---------- Ink section ---------- */
.on-ink-bg { background: var(--ink); color: var(--ink-paper); }
.on-ink-bg h1, .on-ink-bg h2, .on-ink-bg h3 { color: #fff; }
.on-ink-bg .lead { color: var(--ink-paper-mute); }
.on-ink-bg .muted { color: var(--ink-paper-mute); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: clamp(1.05rem,1.5vw,1.25rem); font-weight: 600; color: var(--ink);
  padding: 26px 48px 26px 0; position: relative; display: block; letter-spacing: -0.01em;
}
.faq-q .pm { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; transition: transform .25s; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position: absolute; background: var(--amber); border-radius: 2px; }
.faq-q .pm::before { width: 22px; height: 2.5px; top: 10px; }
.faq-q .pm::after { width: 2.5px; height: 22px; left: 10px; transition: transform .25s; }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 60px 26px 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Floating actions ---------- */
.float-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .2s;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; }

/* ---------- Misc utilities ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.gap-s { gap: 10px; } .gap-m { gap: 20px; } .gap-l { gap: 40px; }
.wrap-flex { flex-wrap: wrap; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.tcenter { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* avatar monogram (placeholder for real team photos) */
.avatar {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--r-md); display: grid; place-items: center;
  font-weight: 800; font-size: 2.4rem; color: #fff; letter-spacing: -0.03em; position: relative; overflow: hidden;
}
.avatar::after { content: "Team photo"; position: absolute; bottom: 10px; font-size: 0.62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }

/* section heading block */
.sec-head { max-width: 56ch; }
.sec-head .h2 { margin-top: 14px; }
.sec-head p { margin-top: 16px; }

@media (max-width: 1000px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar > div { border-right: none; border-bottom: 1px solid var(--line); flex-basis: 100%; }
  .trustbar > div:last-child { border-bottom: none; }
}

/* ---------- Accessibility & UX enhancements ---------- */

/* Skip-to-content link: visible only on keyboard focus */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-md);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Anchor targets clear the sticky header when jumped to (#build, #automate, …) */
:target, [id] { scroll-margin-top: 92px; }

/* Clear, consistent keyboard focus ring without affecting mouse users */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* main is focusable as a skip target without a persistent outline */
main:focus { outline: none; }

/* ============================================================
   Shared page components (added for the expanded site)
   ============================================================ */

/* Breadcrumbs */
.crumbs { display:flex; gap:10px; align-items:center; font-size:0.9rem; color:var(--ink-mute); flex-wrap:wrap; }
.crumbs a, .crumbs span { white-space:nowrap; }
.crumbs a:hover { color:var(--ink); }
.crumbs .cur { color:var(--ink); font-weight:600; }

/* Generic two-column intro grid (text + aside) */
.split-grid { display:grid; grid-template-columns:1.1fr 0.9fr; gap:clamp(40px,6vw,80px); align-items:center; }
@media (max-width:980px){ .split-grid { grid-template-columns:1fr; } }

/* Eyebrow chip used as a small section label (no leading dash) */
.kicker { display:inline-block; font-size:0.82rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--amber-deep); }
.on-ink-bg .kicker { color:var(--amber); }

/* Checklist (used in service / why / country pages) */
.checklist { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.checklist li { display:flex; gap:12px; align-items:flex-start; }
.checklist li::before {
  content:""; flex-shrink:0; width:22px; height:22px; margin-top:2px; border-radius:50%;
  background:var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C96A16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.on-ink-bg .checklist li::before { background-color:rgba(232,132,44,.18); }

/* Callout box */
.callout { background:var(--amber-soft); border:1px solid #F1D2AE; border-radius:var(--r-md); padding:24px 28px; }
.callout strong { color:var(--amber-deep); }

/* Feature grid cards with icon */
.feature { }
.feature .f-ic { width:46px; height:46px; border-radius:12px; background:var(--amber-soft); color:var(--amber-deep); display:grid; place-items:center; margin-bottom:16px; }
.feature .f-ic svg { width:23px; height:23px; }
.feature h3 { font-size:1.15rem; font-weight:700; margin-bottom:8px; letter-spacing:-0.01em; }
.feature p { margin:0; color:var(--ink-mute); font-size:0.98rem; }

/* ---------- Savings calculator ---------- */
.calc { background:var(--paper-2); border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(24px,3vw,34px); box-shadow:var(--shadow-md); }
.calc-controls { display:grid; grid-template-columns:1.4fr 0.8fr; gap:18px; }
.calc-field { display:flex; flex-direction:column; gap:7px; }
.calc-field span { font-weight:600; font-size:0.9rem; }
.calc-field select, .calc-field input {
  font-family:var(--sans); font-size:1rem; padding:13px 15px; border:1.5px solid var(--line);
  border-radius:10px; background:var(--paper); color:var(--ink);
}
.calc-field select:focus, .calc-field input:focus { outline:none; border-color:var(--amber); box-shadow:0 0 0 3px var(--amber-soft); }
.calc-out { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:22px; }
.calc-col { background:var(--paper-3); border-radius:var(--r-md); padding:20px 22px; }
.calc-col.hi { background:var(--ink); color:var(--ink-paper); }
.calc-col.hi .calc-lbl { color:var(--ink-paper-mute); }
.calc-lbl { display:block; font-size:0.82rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-mute); }
.calc-amt { display:block; font-weight:800; font-size:clamp(1.7rem,3.4vw,2.4rem); letter-spacing:-0.03em; font-variant-numeric:tabular-nums; margin-top:8px; line-height:1; }
.calc-col small { color:inherit; opacity:.7; font-size:0.8rem; }
.calc-save { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.calc-save .calc-amt { font-size:clamp(2rem,4.4vw,3rem); margin-top:0; }
.calc-pct { font-weight:700; color:var(--amber-deep); font-size:1.05rem; }
.calc-note { margin:16px 0 0; font-size:0.8rem; color:var(--ink-mute); }
@media (max-width:560px){ .calc-controls, .calc-out { grid-template-columns:1fr; } }

/* ---------- Comparison table ---------- */
.cmp-table { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; background:var(--paper-2); }
.cmp-table th, .cmp-table td { text-align:left; padding:16px 20px; border-bottom:1px solid var(--line); vertical-align:top; font-size:0.98rem; }
.cmp-table thead th { background:var(--paper-3); font-size:0.82rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-mute); }
.cmp-table tr:last-child td, .cmp-table tbody tr:last-child td { border-bottom:none; }
.cmp-table .col-hi { background:var(--amber-soft); font-weight:600; }
.cmp-table th.col-hi { background:var(--amber); color:#fff; }
.cmp-table td:first-child { font-weight:600; }
.cmp-wrap { overflow-x:auto; }

/* ---------- Article / guide layout ---------- */
.article { max-width:760px; margin:0 auto; }
.article h2 { font-size:clamp(1.6rem,2.8vw,2.2rem); margin:48px 0 14px; }
.article h3 { font-size:1.3rem; margin:32px 0 10px; }
.article p, .article li { color:var(--ink-soft); }
.article ul, .article ol { padding-left:22px; display:flex; flex-direction:column; gap:8px; margin:0 0 1em; }
.article .toc { background:var(--paper-3); border-radius:var(--r-md); padding:22px 26px; margin:0 0 36px; }
.article .toc h4 { font-size:0.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-mute); margin:0 0 12px; }
.article .toc ol { padding-left:18px; gap:6px; margin:0; }
.article .toc a { color:var(--amber-deep); font-weight:600; }

/* ---------- Resource / link cards ---------- */
.res-card { display:flex; flex-direction:column; align-items:flex-start; height:100%; }
.res-card .tag { margin-bottom:14px; }
.res-card h3 { font-size:1.2rem; font-weight:700; margin:0 0 8px; }
.res-card p { color:var(--ink-mute); margin:0 0 16px; flex:1; }

/* ---------- Country page hero ---------- */
.country-flag { font-size:2.6rem; line-height:1; }
.fact-row { display:flex; flex-wrap:wrap; gap:14px; margin-top:24px; }
.fact { background:var(--paper-2); border:1px solid var(--line); border-radius:var(--r-md); padding:14px 18px; flex:1 1 160px; }
.fact .fact-k { display:block; font-size:0.78rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-mute); font-weight:600; }
.fact .fact-v { font-weight:700; }

/* ---------- Careers / job pages ---------- */
.job-meta { display:flex; flex-wrap:wrap; gap:14px; margin-top:24px; }
.job-meta .fact { flex:1 1 130px; }
.job-list { display:flex; flex-direction:column; gap:14px; }
.job-card { display:grid; grid-template-columns:1fr auto; gap:18px 24px; align-items:center; background:var(--paper-2); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px 26px; box-shadow:var(--shadow-sm); transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.job-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:var(--amber); }
.job-card h3 { font-size:1.24rem; margin:0 0 6px; }
.job-card .job-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.job-card .job-tags .tag { font-size:0.78rem; }
.job-card .job-apply { white-space:nowrap; }
@media (max-width:640px){ .job-card { grid-template-columns:1fr; } .job-card .job-apply { justify-self:start; } }

/* ---------- Job application form ---------- */
.jobform { background:var(--paper-2); border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(24px,3vw,34px); box-shadow:var(--shadow-md); }
.jform-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.jform-field { display:flex; flex-direction:column; gap:7px; font-size:0.9rem; font-weight:600; color:var(--ink-soft); }
.jform-field.jform-wide { grid-column:1 / -1; }
.jform-field input, .jform-field select, .jform-field textarea { font:inherit; font-weight:400; padding:12px 14px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--paper); color:var(--ink); width:100%; }
.jform-field input:focus, .jform-field select:focus, .jform-field textarea:focus { outline:2px solid var(--amber); outline-offset:1px; border-color:var(--amber); }
.jform-field input.invalid, .jform-field textarea.invalid { border-color:#c0392b; background:#fdf3f2; }
.jform-note { font-size:0.82rem; margin-top:12px; }
.jform-ok { padding:22px; background:var(--amber-soft); border-radius:var(--r-md); }
.jform-ok strong { font-size:1.1rem; display:block; }
.jform-ok p { margin:6px 0 0; color:var(--ink-soft); }
@media (max-width:560px){ .jform-grid { grid-template-columns:1fr; } }

/* Honeypot: off-screen, never seen or tabbed to by real users */
.hp-field { position:absolute !important; left:-9999px !important; top:auto; width:1px; height:1px; overflow:hidden; }
/* Inline form error message */
.form-err { margin-top:14px; padding:12px 16px; border-radius:10px; background:#FCEBEA; border:1px solid #E7B7B2; color:#8A2B22; font-size:0.92rem; }

/* ============================================================
   App-like mobile foundation
   ============================================================ */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-top:76px; }
* { -webkit-tap-highlight-color: transparent; }
@media (hover:none) { a, button, .btn, .seg-btn, .faq-q { touch-action: manipulation; } }

/* HR contact CTA (job pages) */
.hr-card { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:center; }
.hr-btn { display:inline-flex; align-items:center; gap:10px; padding:13px 20px; border-radius:12px; border:1px solid var(--line); background:var(--paper-2); color:var(--ink); font-weight:600; text-decoration:none; min-height:48px; box-shadow:var(--shadow-sm); }
.hr-btn:hover { border-color:var(--amber); color:var(--amber-deep); }
.hr-btn svg { width:20px; height:20px; }
.hr-btn.wa { background:#25D366; border-color:#25D366; color:#fff; }
.hr-btn.wa:hover { color:#fff; opacity:.94; }
.hr-btn.mail { background:var(--ink); border-color:var(--ink); color:#fff; }
.hr-btn.mail:hover { color:#fff; opacity:.94; }

/* Sticky bottom action bar — the always-visible mobile CTA */
.mobile-bar { display:none; }
@media (max-width:760px) {
  .mobile-bar {
    position:fixed; left:0; right:0; bottom:0; z-index:60;
    display:flex; gap:10px; align-items:center;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.92); -webkit-backdrop-filter:saturate(180%) blur(12px); backdrop-filter:saturate(180%) blur(12px);
    border-top:1px solid var(--line); box-shadow:0 -6px 24px rgba(22,36,61,.12);
  }
  .mobile-bar .mb-cta { flex:1; text-align:center; background:var(--amber); color:#fff; font-weight:700;
    padding:14px 16px; border-radius:12px; font-size:1rem; line-height:1; text-decoration:none; }
  .mobile-bar .mb-cta.ink { background:var(--ink); }
  .mobile-bar .mb-ic { width:52px; height:52px; flex:0 0 auto; display:grid; place-items:center;
    border:1px solid var(--line); border-radius:12px; background:var(--paper-2); color:var(--ink); }
  .mobile-bar .mb-ic svg { width:23px; height:23px; }
  .mobile-bar .mb-ic.wa { background:#25D366; border-color:#25D366; color:#fff; }
  /* keep page content clear of the fixed bar */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* the bottom bar replaces the header CTA on mobile — declutter */
  .nav-actions .btn-primary { display:none; }
  /* comfortable tap targets */
  .btn { min-height:48px; }
  .cta-band { margin-bottom:0; }
}
@media print { .mobile-bar { display:none !important; } body { padding-bottom:0; } }
