/* ==========================================================================
   Maysville Sdn Bhd — corporate site stylesheet
   Colors sampled from Maysville Company Profile 2026.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --navy:         #1C3A72;
  --navy-tint:    #324D7F;
  --navy-deep:    #142A54;
  --navy-mid:     #3E63A8;   /* validated categorical step */
  --red:          #BF0000;
  --red-dark:     #9A0000;
  --logo-red:     #BE1D2D;   /* logo only — never a UI accent */

  /* Surfaces */
  --white:        #FFFFFF;
  --off-white:    #F5F6FA;
  --cream:        #FFF3E1;
  --border:       #DDE2ED;
  --border-soft:  #EBEEF5;

  /* Ink */
  --ink:          #14213D;
  --ink-body:     #414D66;
  --ink-muted:    #616C86;   /* AA on white (5.25:1) and off-white (4.86:1) */
  --ink-invert:   #FFFFFF;
  --ink-invert-2: rgba(255,255,255,.78);

  /* Type */
  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap:      1200px;
  --wrap-slim: 880px;
  --gutter:    24px;
  --radius:    10px;
  --radius-lg: 16px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(20,33,61,.06), 0 2px 8px rgba(20,33,61,.05);
  --shadow-md: 0 2px 6px rgba(20,33,61,.07), 0 12px 28px rgba(20,33,61,.08);
  --shadow-lg: 0 8px 24px rgba(20,33,61,.10), 0 24px 56px rgba(20,33,61,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
/* Inline icons carry no width/height of their own, so give them a text-relative
   default. :where() has zero specificity — any component rule below wins. */
:where(svg) { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--navy); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--red); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .42em; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-slim { max-width: var(--wrap-slim); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt  { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--ink-invert-2); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--ink-invert); }
.section--cream { background: var(--cream); }

.grid { display: grid; gap: 26px; }
/* Grid/flex items default to min-width:auto, which stops them shrinking below
   their content and pushes wide children (charts, tables) past the viewport.
   Resetting to 0 lets the inner overflow-x:auto wrappers scroll instead. */
.grid > *, .split > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- Section heading ---------------------------------------------------- */
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.sec-head--center .eyebrow::before { display: none; }
.section--navy .eyebrow { color: #FF8A8A; }
.section--navy .eyebrow::before { background: #FF8A8A; }
.lead { font-size: 1.09rem; color: var(--ink-body); }
.section--navy .lead { color: var(--ink-invert-2); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  padding: 14px 26px; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s var(--ease); text-align: center;
}
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--off-white); }
.btn--onNavy { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--onNavy:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .88rem;
  color: var(--ink); padding: 10px 13px; border-radius: 6px;
  position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--red); background: var(--off-white); }
.nav a.is-active { color: var(--navy); font-weight: 700; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Dropdown */
.nav-item { position: relative; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 500; font-size: .88rem;
  color: var(--ink); padding: 10px 13px; border-radius: 6px;
  background: none; border: 0; cursor: pointer; font-family: var(--font-head);
}
.nav-toggle:hover { color: var(--red); background: var(--off-white); }
.nav-toggle svg { transition: transform .2s var(--ease); }
.nav-item.is-open .nav-toggle svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .2s var(--ease);
}
.nav-item.is-open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 12px; font-size: .87rem; border-radius: 6px; }
.nav-menu a span { display: block; font-size: .76rem; color: var(--ink-muted); font-weight: 400; font-family: var(--font-body); margin-top: 2px; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: all .25s var(--ease); }
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 24px; max-height: calc(100vh - var(--header-h));
    overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .22s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a, .nav-toggle { width: 100%; padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .nav-toggle { justify-content: space-between; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 14px;
    display: none; min-width: 0;
  }
  .nav-item.is-open .nav-menu { display: block; }
  .nav-menu a { font-size: .93rem; }
}

/* --- Hero (home) -------------------------------------------------------- */
.hero { position: relative; min-height: min(760px, 88vh); display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(102deg, var(--navy-deep) 8%, rgba(20,42,84,.90) 42%, rgba(28,58,114,.62) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(70px,9vw,120px) 0; max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #FF9A9A; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--font-head); font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  padding: 8px 16px; border-radius: 100px;
}
.hero-eyebrow b { color: #FF9A9A; font-weight: 700; }
.hero p { font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: rgba(255,255,255,.86); max-width: 620px; margin-bottom: 32px; }
.hero .btn-row { margin-bottom: 0; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--navy); padding: clamp(56px,7vw,88px) 0 clamp(48px,6vw,72px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.5) 0 1.4px, transparent 1.5px) 0 0/26px 26px,
    linear-gradient(120deg, transparent 55%, var(--navy-mid) 100%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 800px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.08rem; margin: 0; max-width: 640px; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.62); margin-bottom: 16px; font-family: var(--font-head); }
.crumbs a { color: rgba(255,255,255,.82); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: .5; }

/* --- Stat strip --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.stats--float { margin-top: -68px; position: relative; z-index: 5; }
.stat { padding: 30px 26px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--navy); line-height: 1.05; letter-spacing: -.03em; }
.stat-num sup { font-size: .5em; color: var(--red); vertical-align: super; margin-left: 2px; }
.stat-label { font-size: .84rem; color: var(--ink-muted); margin-top: 8px; line-height: 1.45; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .stats--float { margin-top: -40px; }
}
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--border); } .stat:last-child { border-bottom: 0; } }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: all .26s var(--ease); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--navy-mid); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff; margin-bottom: 20px; flex-shrink: 0;
}
.card-ico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.card--link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card--link:hover::after { transform: scaleX(1); }
.card-more { font-family: var(--font-head); font-weight: 600; font-size: .87rem; color: var(--navy); display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; }
.card-more svg { transition: transform .2s var(--ease); }
.card:hover .card-more { color: var(--red); }
.card:hover .card-more svg { transform: translateX(4px); }

/* Numbered card */
.card-num { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--red); margin-bottom: 12px; }

/* --- Feature list (checks) ---------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 16px; height: 16px;
  border-radius: 50%; background: var(--navy); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.checks--red li::before { background-color: var(--red); }
.section--navy .checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C3A72' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.checks--2col { columns: 2; column-gap: 40px; }
.checks--2col li { break-inside: avoid; }
@media (max-width: 720px) { .checks--2col { columns: 1; } }

/* --- Split (media + text) ----------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr 1fr; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--off-white); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media--tall img { aspect-ratio: 3/4; }
.split.is-reversed .split-media { order: 2; }
@media (max-width: 860px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split.is-reversed .split-media { order: 0; }
}

/* Badge over media */
.media-badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-md);
}
.media-badge b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.media-badge span { font-size: .78rem; color: var(--ink-muted); }

/* --- Client strip ------------------------------------------------------- */
.clients { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.client-chip {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy);
  background: #fff; border: 1px solid var(--border); border-radius: 100px;
  padding: 12px 26px; transition: all .22s var(--ease);
}
.client-chip:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* --- Spec block (services detail) --------------------------------------- */
.spec { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.spec + .spec { margin-top: 28px; }
.spec-head { display: flex; gap: 20px; align-items: flex-start; padding: 30px 32px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--off-white), #fff); }
/* Semantically an h2, but visually a block heading — without an explicit size
   it would inherit the 40px page-section scale. */
.spec-head h2 { margin: 0 0 6px; font-size: clamp(1.2rem, 2.1vw, 1.45rem); }
.spec-head p { margin: 0; font-size: .95rem; }
.spec-body { padding: 30px 32px; }
.spec-body h3 { color: var(--navy); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-head); }
@media (max-width: 620px) { .spec-head, .spec-body { padding: 24px 20px; } }

/* Reg tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag {
  font-family: var(--font-body); font-size: .78rem; color: var(--ink-body);
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 5px; padding: 6px 12px;
}
.tag b { color: var(--navy); font-weight: 600; }

/* --- Timeline / chart --------------------------------------------------- */
.chart-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.chart-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.chart-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.06rem; margin: 0 0 4px; }
.chart-sub { font-size: .86rem; color: var(--ink-muted); margin: 0; }
.chart-hero { text-align: right; }
.chart-hero b { display: block; font-family: var(--font-head); font-size: clamp(2rem,4vw,2.9rem); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.chart-hero span { font-size: .8rem; color: var(--ink-muted); }
.chart-card, .chart-head { min-width: 0; }
.chart-wrap { position: relative; width: 100%; min-width: 0; overflow-x: auto; }
.chart-svg { width: 100%; min-width: 560px; height: auto; display: block; }
.chart-note { font-size: .8rem; color: var(--ink-muted); margin: 16px 0 0; }

.tt {
  position: absolute; pointer-events: none; z-index: 10; opacity: 0;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 9px 13px;
  font-size: .82rem; line-height: 1.45; white-space: nowrap;
  box-shadow: var(--shadow-md); transition: opacity .14s var(--ease);
  transform: translate(-50%, -125%);
}
.tt.is-on { opacity: 1; }
.tt b { display: block; color: #fff; font-family: var(--font-head); font-size: .95rem; }
.tt span { color: rgba(255,255,255,.7); }

/* Data table toggle */
.table-toggle { margin-top: 18px; }
.table-toggle summary { cursor: pointer; font-size: .85rem; color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.table-toggle summary:hover { color: var(--red); }
.table-toggle[open] summary { margin-bottom: 14px; }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 540px; }
thead th {
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600;
  text-align: left; padding: 15px 20px; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
}
tbody td { padding: 15px 20px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #FAFBFD; }
tbody td:first-child { color: var(--ink); font-weight: 500; }

/* --- Award / policy lists ----------------------------------------------- */
.award { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.award:last-child { border-bottom: 0; }
.award-year {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--red);
  min-width: 60px; flex-shrink: 0; letter-spacing: -.02em;
}
.award-body h3 { margin: 0 0 3px; font-size: 1rem; }
.award-body p { margin: 0; font-size: .89rem; color: var(--ink-muted); }

.policy {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; transition: all .22s var(--ease);
}
.policy:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-sm); }
.policy-ico { width: 40px; height: 40px; border-radius: 9px; background: var(--cream); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.policy-ico svg { width: 20px; height: 20px; stroke-width: 1.8; }
.policy h3 { margin: 0 0 4px; font-size: .98rem; }
.policy p { margin: 0; font-size: .87rem; color: var(--ink-muted); }

/* --- Vacancies ---------------------------------------------------------- */
.vacancy {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 30px; transition: all .24s var(--ease);
  display: flex; gap: 26px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
}
.vacancy + .vacancy { margin-top: 18px; }
.vacancy:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vacancy-main { flex: 1 1 380px; min-width: 0; }
.vacancy h3 { margin: 0 0 10px; font-size: 1.22rem; }
.vacancy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .79rem; font-family: var(--font-body); color: var(--ink-body);
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 13px;
}
.pill svg { width: 13px; height: 13px; stroke-width: 2; color: var(--navy); }
.pill--closing { background: #FFF6F6; border-color: #F5CFCF; color: var(--red-dark); }
.vacancy-req { margin: 14px 0 0; }
.vacancy-req summary { cursor: pointer; font-size: .87rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.vacancy-req summary:hover { color: var(--red); }
.vacancy-req ul { margin: 14px 0 0; font-size: .92rem; }
.vacancy-side { flex: 0 0 auto; }

.empty-state {
  text-align: center; padding: 60px 30px; background: var(--off-white);
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
}
.empty-state svg { width: 46px; height: 46px; color: var(--ink-muted); margin: 0 auto 18px; stroke-width: 1.4; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 460px; margin-inline: auto; color: var(--ink-muted); }

/* --- Forms -------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .87rem; color: var(--ink); margin-bottom: 8px; }
.field .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: .79rem; color: var(--ink-muted); margin-top: 7px; font-weight: 400; font-family: var(--font-body); }
.input, .textarea, .select {
  width: 100%; font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--border); border-radius: 7px;
  padding: 13px 15px; transition: all .18s var(--ease);
}
.input:hover, .textarea:hover, .select:hover { border-color: #C4CCDD; }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,58,114,.12); }
.textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.select { appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616C86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* File upload */
.file-drop {
  position: relative; border: 2px dashed var(--border); border-radius: var(--radius);
  background: var(--off-white); padding: 30px 22px; text-align: center;
  transition: all .2s var(--ease); cursor: pointer;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--navy); background: #EEF2FA; }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop svg { width: 32px; height: 32px; color: var(--navy); margin: 0 auto 12px; stroke-width: 1.6; }
.file-drop b { display: block; font-family: var(--font-head); font-size: .93rem; color: var(--ink); margin-bottom: 4px; }
.file-drop span { font-size: .8rem; color: var(--ink-muted); }
.file-chosen { display: none; align-items: center; gap: 12px; text-align: left; }
.file-drop.has-file .file-drop-idle { display: none; }
.file-drop.has-file .file-chosen { display: flex; }
.file-chosen svg { margin: 0; width: 26px; height: 26px; color: var(--navy); flex-shrink: 0; }
.file-chosen div { min-width: 0; }
.file-chosen b { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Inline validation state */
.input.has-error, .textarea.has-error, .select.has-error {
  border-color: var(--red);
  background: #FFFAFA;
}
.input.has-error:focus, .textarea.has-error:focus, .select.has-error:focus {
  box-shadow: 0 0 0 3px rgba(191,0,0,.13);
}
.file-drop.has-error { border-color: var(--red); background: #FFFAFA; }
.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 8px 0 0; font-size: .82rem; color: var(--red-dark); font-weight: 500;
}
.field-error::before {
  content: "!"; flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; margin-top: 1px;
  border-radius: 50%; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 700; font-family: var(--font-head);
}
.alert code {
  background: rgba(0,0,0,.06); border-radius: 3px;
  padding: 1px 5px; font-size: .92em;
}
button[disabled] { opacity: .65; cursor: progress; }

/* Honeypot — must stay invisible to humans, reachable by bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--ink-muted); margin-top: 18px; }

/* Alerts */
.alert {
  display: flex; gap: 14px; padding: 18px 22px; border-radius: var(--radius);
  margin-bottom: 26px; font-size: .93rem;
  /* Keeps the sticky header from covering it when scrolled to after a failed submit */
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.alert svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 1px; stroke-width: 2; }
.alert p { margin: 0; }
.alert--ok   { background: #EDF7EE; border: 1px solid #C6E5C9; color: #1E5B25; }
.alert--ok svg { color: #2E7D32; }
.alert--err  { background: #FDEDED; border: 1px solid #F5C6C6; color: #8C1D1D; }
.alert--err svg { color: var(--red); }
.alert--info { background: #EEF3FC; border: 1px solid #CCDBF2; color: #1B3D73; }
.alert--info svg { color: var(--navy); }
/* Amber, not red: the submission partly succeeded — the details arrived, the
   attachment did not. A red alert would read as "nothing went through". */
.alert--warn { background: #FFF8E1; border: 1px solid #F0DFA8; color: #7A5B00; }
.alert--warn svg { color: #B58900; }

/* A recovery alert carries a button, so it needs room the plain ones do not. */
.alert .btn { margin-top: 2px; }

/* --- Contact ------------------------------------------------------------ */
.office { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all .24s var(--ease); height: 100%; }
.office:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.office-tag { display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--navy); border-radius: 4px; padding: 5px 10px; margin-bottom: 16px; }
.office-tag--red { background: var(--red); }
.office h3 { font-size: 1.06rem; margin-bottom: 12px; }
.office address { font-style: normal; font-size: .92rem; color: var(--ink-body); margin-bottom: 16px; line-height: 1.65; }
.office-contact { display: flex; flex-direction: column; gap: 9px; font-size: .9rem; }
.office-contact a { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.office-contact svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; stroke-width: 2; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 130%); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%; border: 44px solid rgba(255,255,255,.05);
}
.cta-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-inner h2 { color: #fff; margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.8); margin: 0; max-width: 540px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.68); font-size: .91rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 42px; padding: clamp(48px,6vw,72px) 0 44px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo { background: #fff; border-radius: 8px; padding: 12px 16px; display: inline-block; margin-bottom: 20px; }
.footer-logo img { height: 34px; }
.site-footer h2 { color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-head); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; color: #FF9A9A; flex-shrink: 0; margin-top: 4px; stroke-width: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .84rem; }
.footer-iso { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-iso span { font-size: .74rem; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; padding: 5px 10px; color: rgba(255,255,255,.8); }

/* --- Quote (MD message) ------------------------------------------------- */
.quote { position: relative; max-width: 900px; margin-inline: auto; text-align: center; padding-top: 12px; }
.quote-mark {
  font-family: var(--font-head); font-size: 6rem; font-weight: 800; line-height: .5;
  color: rgba(255,255,255,.18); margin-bottom: 18px;
}
.quote blockquote {
  margin: 0 0 30px; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.24rem, 2.7vw, 1.85rem); line-height: 1.45;
  color: #fff; letter-spacing: -.015em;
}
.quote-by b { display: block; font-family: var(--font-head); color: #fff; font-size: 1.02rem; }
.quote-by span { font-size: .89rem; color: rgba(255,255,255,.66); }

/* --- 404 ---------------------------------------------------------------- */
.notfound { text-align: center; padding: clamp(70px, 12vw, 130px) 0; }
.notfound-code {
  font-family: var(--font-head); font-size: clamp(4.5rem, 15vw, 9rem); font-weight: 800;
  line-height: .9; color: var(--off-white); letter-spacing: -.05em; margin-bottom: 8px;
  -webkit-text-stroke: 2px var(--border);
}
.notfound h1 { margin-bottom: 14px; }
.notfound p { max-width: 520px; margin-inline: auto; }

/* --- Touch devices ------------------------------------------------------ */
@media (pointer: coarse), (max-width: 900px) {

  /* iOS Safari zooms the whole page in when a field with text under 16px
     receives focus, then leaves the user zoomed. 16px stops that. */
  .input, .textarea, .select { font-size: 16px; }

  /* Fingers are not cursors: give standalone links a comfortable target.
     Links inside running prose are left alone — enlarging those would break
     the line spacing, and WCAG exempts inline text links. */
  .site-footer li a,
  .office-contact a,
  .crumbs a,
  .card-more {
    display: inline-flex; align-items: center; min-height: 32px;
  }
  .footer-contact li a { min-height: 30px; }

  /* Tap-to-email and tap-to-call: these are the whole content of their card,
     not words inside a sentence, so they get a full-size target. */
  .tap-link { display: inline-flex; align-items: center; min-height: 34px; }

  .vacancy-req summary,
  .table-toggle summary {
    display: flex; align-items: center; min-height: 34px;
  }

  .nav a, .nav-toggle { min-height: 48px; display: flex; align-items: center; }

  /* Stop the grey flash on tap without removing the focus ring */
  a, button, summary, label { -webkit-tap-highlight-color: rgba(28,58,114,.12); }
}

/* --- Motion ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 26px; }
.mt-4 { margin-top: 38px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* The skip link is the one .sr-only element a keyboard user must be able to
   SEE once focused, so it un-hides itself on focus. */
a.sr-only:focus {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  width: auto; height: auto; margin: 0; padding: 13px 22px;
  clip: auto; clip-path: none; overflow: visible; white-space: normal;
  background: var(--navy); color: #fff; border-radius: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-lg); outline: 3px solid var(--red); outline-offset: 2px;
}
.placeholder-flag {
  display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-family: var(--font-head);
  font-weight: 600; color: #8A6D00; background: #FFF8E1; border: 1px solid #F0DFA8;
  border-radius: 4px; padding: 4px 10px;
}
