/* ═══════════════════════════════════════════════════
   Acclimatise Group — Design System
   Pantone 485 red: #DA291C   Navy: #0D1F40
═══════════════════════════════════════════════════ */

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

:root {
  --red:        #E0335A;   /* Cherry blossom vivid — trial 2 */
  --red-dark:   #b82448;
  --red-glow:   rgba(224,51,90,.25);
  --navy:       #0D1F40;
  --navy-mid:   #142850;
  --navy-light: #1c3461;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --text:       #1a1a2e;
  --muted:      #5a6782;
  --border:     #dde3ef;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(13,31,64,.12);
  --shadow-lg:  0 12px 48px rgba(13,31,64,.20);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Section labels ──────────────────────────── */
.section-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}



.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .35s, box-shadow .35s;
}

header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 36px);
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.7);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: color .2s, text-shadow .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  text-shadow: 0 0 18px rgba(218,41,28,.55), 0 0 6px rgba(218,41,28,.3);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s;
}
.btn-login:hover {
  background: var(--red-dark);
  color: var(--white);
}

.nav-profile-btn {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  transition: all .2s;
  text-decoration: none;
}
.nav-profile-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.btn-register {
  color: #4fc978;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(79,201,120,.4);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.btn-register:hover {
  background: rgba(79,201,120,.1);
  color: #4fc978;
  border-color: #4fc978;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  /* Fallback gradient — replaced by bg image if provided */
  background:
    radial-gradient(ellipse 60% 70% at 50% 35%, rgba(30,60,120,.55) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(10,20,50,.9) 0%, transparent 80%),
    linear-gradient(180deg, #050d1a 0%, #0a1628 40%, #0d2245 70%, #0a1220 100%);
}

/* When the user provides the stock photo, uncomment:
.hero {
  background-image:
    radial-gradient(ellipse 60% 70% at 50% 35%, rgba(30,60,120,.4) 0%, transparent 70%),
    url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
*/

/* Animated light beam */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 90vh;
  background: radial-gradient(ellipse 50% 100% at 50% 0%,
    rgba(80,120,220,.22) 0%,
    rgba(40,80,180,.10) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Subtle vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  margin-bottom: 32px;
  /* gentle float */
  animation: floatUp .9s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes floatUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  animation: fadeUp .9s .25s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-tagline {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  margin-bottom: 6px;
  animation: fadeUp .9s .4s ease-out forwards;
  opacity: 0;
  transform: translateY(16px);
}

.hero-motto {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 44px;
  animation: fadeUp .9s .55s ease-out forwards;
  opacity: 0;
  transform: translateY(12px);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .9s .7s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: bounce 2s 1.5s infinite;
}

.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35));
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════
   RED ACCENT BAR
═══════════════════════════════════════════════ */
.accent-bar {
  background: linear-gradient(135deg, #16213e 0%, #1a2a50 50%, #16213e 100%);
  border-top: 3px solid var(--red);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.accent-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  width: 100%;
}

.accent-stat {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,.2);
}
.accent-stat:last-child { border-right: none; }

.accent-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--red);
}

.accent-stat span {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}

/* ═══════════════════════════════════════════════
   MISSION
═══════════════════════════════════════════════ */
.mission {
  padding: 96px 32px;
  text-align: center;
}

.mission .section-sub {
  margin: 0 auto 48px;
  font-size: 18px;
  line-height: 1.8;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pillar {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border-top: 4px solid var(--red);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.pillar h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
.services {
  background: var(--navy);
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,41,28,.12) 0%, transparent 70%);
  pointer-events: none;
}

.services .section-label { color: rgba(218,41,28,.9); }
.services .section-title { color: var(--white); }
.services .section-sub   { color: rgba(255,255,255,.55); }

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s;
}

.service-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════════ */
.clients {
  padding: 96px 32px;
  background: var(--white);
}

.clients-header {
  text-align: center;
  margin-bottom: 56px;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  opacity: .7;
  transition: opacity .2s, box-shadow .2s;
  min-height: 140px;
}

.client-item:hover {
  opacity: 1;
  box-shadow: var(--shadow);
}

.client-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter .2s;
}

.client-item:hover img { filter: grayscale(0%); }

.client-item span { display: none; }

/* ═══════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 96px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 200px;
  background: radial-gradient(ellipse, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band .section-title { color: var(--white); }
.cta-band p {
  color: rgba(255,255,255,.65);
  font-size: 18px;
  margin-bottom: 36px;
}

.cta-band-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════
   INNER PAGE HERO
═══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(105deg, var(--navy) 0%, #0f2347 55%, #16213e 100%);
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal grid pattern */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Red glow top-left */
.page-hero::after {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(218,41,28,.14) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.page-hero-text {
  max-width: 600px;
}

/* Breadcrumb */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
}

.page-breadcrumb a {
  color: rgba(255,255,255,.4);
  transition: color .2s;
}

.page-breadcrumb a:hover { color: rgba(255,255,255,.75); }

.page-breadcrumb-sep {
  font-size: 11px;
  opacity: .4;
}

.page-breadcrumb-current {
  color: var(--red);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 0;
}

/* Left-aligned red bar */
.page-hero h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 18px 0 16px;
}

.page-hero .subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* Large faded watermark logo */
.page-hero-watermark {
  position: absolute;
  right: -20px;
  bottom: -20px;
  height: 220px;
  width: auto;
  opacity: .06;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 1;
}

/* Bottom border accent */
.page-hero-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(218,41,28,0) 60%);
}

/* ═══════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════ */
.about-body { padding: 80px 32px; }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.about-intro-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.about-intro-text h2 span { color: var(--red); }

.about-intro-text p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-graphic {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-graphic img {
  max-width: 220px;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Built to Match section */
.about-match {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  margin-bottom: 72px;
  text-align: center;
}
.about-match .section-label { color: rgba(218,41,28,.9); }
.about-match .section-title { color: var(--white); margin-bottom: 32px; }

.about-match-body {
  max-width: 760px;
  margin: 0 auto;
}
.about-match-body p {
  font-size: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-match-closer {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--white) !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

/* About narrative */
.about-narrative {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 56px;
  margin-bottom: 72px;
}
.about-narrative h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.about-narrative p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.about-narrative p:last-child { margin-bottom: 0; }

/* Why Acclimatise grid */
.about-why { margin-bottom: 80px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-item {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border-left: 4px solid var(--red);
}
.why-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   CONTACT PAGE — REVAMP
═══════════════════════════════════════════════ */
.contact-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a1030 100%);
  padding: 140px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(218,41,28,.18) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.contact-hero p {
  font-size: 18px;
  color: rgba(255,255,255,.6);
  position: relative;
  z-index: 1;
}

/* Three contact-method cards */
.contact-methods {
  padding: 64px 32px 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.contact-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(218,41,28,.12);
  transform: translateY(-4px);
  text-decoration: none;
  color: var(--text);
}

.contact-card--static:hover {
  cursor: default;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: background .25s;
}

.contact-card:hover .contact-card-icon {
  background: var(--red);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.contact-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.contact-card-note {
  font-size: 13px;
  color: var(--muted);
}

/* Full-width form */
.contact-form-section {
  padding: 64px 32px 96px;
}

.contact-form-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form-header p {
  color: var(--muted);
  font-size: 16px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-lg {
  padding: 15px 36px;
  font-size: 15px;
}

.optional {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-group input[type="file"] { padding: 10px; cursor: pointer; }

.form-success {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 600;
  margin-top: 16px;
  font-size: 15px;
}

.form-error {
  display: none;
  background: #fdecea;
  color: var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 600;
  margin-top: 16px;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════
   JOBS PAGE
═══════════════════════════════════════════════ */
.jobs-body { padding: 56px 32px 96px; }

.jobs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────── */
.jobs-sidebar {
  position: sticky;
  top: 96px;
}

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

.sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Status tiles */
.status-tiles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--off-white);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: all .18s;
  width: 100%;
}

.status-tile:hover {
  background: var(--white);
  border-color: var(--border);
}

.status-tile.active {
  background: var(--white);
  border-color: var(--navy);
  font-weight: 700;
  color: var(--navy);
}

.status-tile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-all    { background: var(--muted); }
.dot-open   { background: #16a34a; }
.dot-soon   { background: #d97706; }
.dot-closed { background: #dc2626; }

.status-tile-label { flex: 1; }

.status-tile-count {
  font-size: 12px;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
}

.status-tile.active .status-tile-count {
  background: var(--navy);
  color: var(--white);
}

/* Clearance / location filter buttons */
.sidebar-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-filter-btn {
  padding: 9px 14px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  transition: all .18s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-filter-btn:hover {
  background: var(--off-white);
  color: var(--text);
}

.sidebar-filter-btn.active {
  background: var(--off-white);
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 700;
}

/* Top search bar */
.jobs-top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.jobs-top-bar .search-input { flex: 1; min-width: 200px; }
.jobs-top-bar .jobs-meta    { margin-bottom: 0; white-space: nowrap; }

@media (max-width: 860px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .jobs-sidebar { position: static; }
  .status-tiles { flex-direction: row; flex-wrap: wrap; }
  .status-tile  { flex: 1; min-width: 120px; }
}

.search-input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.no-jobs {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
}

.no-jobs-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .4;
}

.no-jobs p {
  color: var(--muted);
  font-size: 16px;
}

/* Filter bar layout */
.jobs-filter-bar {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
}

/* Select filter */
.search-select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  white-space: nowrap;
}
.search-select:focus { border-color: var(--red); }

/* Results meta */
.jobs-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Loading spinner */
.jobs-loading {
  text-align: center;
  padding: 72px 48px;
  color: var(--muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badges ─────────────────────────────────────── */
.job-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit !important;
  text-decoration: none !important;
}

.badge-baseline { background: #dbeafe; color: #1d4ed8 !important; }
.badge-nv1      { background: #ffedd5; color: #c2410c !important; }
.badge-nv2      { background: #fee2e2; color: #b91c1c !important; }
.badge-pv       { background: #f3e8ff; color: #7e22ce !important; }
.badge-default  { background: var(--off-white); color: var(--muted) !important; }
.badge-contract { background: #dcfce7; color: #15803d !important; }

.due-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none !important;
}
.due-soon    { background: #fef9c3; color: #a16207 !important; }
.due-overdue { background: #fee2e2; color: #b91c1c !important; }

/* ── Job card ───────────────────────────────────── */
.job-card {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 12px;
  text-decoration: none !important;
  color: var(--text) !important;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
}

.job-card:hover {
  border-left-color: var(--red);
  border-color: var(--border);
  border-left-color: var(--red);
  box-shadow: 0 4px 20px rgba(13,31,64,.10);
  transform: translateY(-2px);
  text-decoration: none !important;
  color: var(--text) !important;
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.job-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.job-card-arrow {
  font-size: 18px;
  color: var(--red);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.job-card:hover .job-card-arrow { opacity: 1; transform: translateX(4px); }

.job-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy) !important;
  margin-bottom: 10px;
  line-height: 1.3;
}

.job-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted) !important;
  margin-bottom: 10px;
}

.job-card-meta span { color: var(--muted) !important; }

.job-card-desc {
  font-size: 14px;
  color: var(--muted) !important;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Responsive filter bar */
@media (max-width: 860px) {
  .jobs-filter-bar { grid-template-columns: 1fr 1fr; }
  .jobs-filter-bar .btn { grid-column: 1 / -1; text-align: center; }
  .search-input { grid-column: 1 / -1; }
}

.job-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.job-card-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.job-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Job detail page */
.job-detail-body { padding: 64px 32px 96px; }

.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.job-detail-description p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.job-sidebar-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: sticky;
  top: 100px;
}

.job-sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.job-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.job-sidebar-list li span {
  color: var(--muted);
  flex-shrink: 0;
}

.job-sidebar-list li strong {
  color: var(--navy);
  text-align: right;
}

@media (max-width: 900px) {
  .job-detail-layout { grid-template-columns: 1fr; }
  .job-sidebar-card { position: static; }
}

/* ═══════════════════════════════════════════════
   VACANCY / RESUME PAGES
═══════════════════════════════════════════════ */
.form-page-body { padding: 72px 32px; }

.form-page-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.form-side-info {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: sticky;
  top: 92px;
}

.form-side-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.form-side-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.form-side-info ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.form-main h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer { background: var(--navy); }

.footer-main {
  border-top: 3px solid var(--red);
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color .2s, padding-left .2s;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
  text-decoration: none;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-icon {
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  opacity: .7;
}

.footer-contact a,
.footer-contact address {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  font-style: normal;
  line-height: 1.6;
  transition: color .2s;
}

.footer-contact a:hover { color: var(--white); text-decoration: none; }

/* Bottom bar */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

.footer-bar-inner a {
  color: rgba(255,255,255,.35);
  transition: color .2s;
}

.footer-bar-inner a:hover { color: rgba(255,255,255,.7); text-decoration: none; }

/* ═══════════════════════════════════════════════
   SERVICE PAGES
═══════════════════════════════════════════════ */
.service-intro {
  padding: 80px 32px;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 72px;
  align-items: center;
}

.service-intro-text .section-label { margin-bottom: 12px; }

.service-intro-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.service-intro-image {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-intro-image img {
  max-width: 160px;
  height: auto;
}

.service-capabilities {
  background: var(--off-white);
  padding: 80px 32px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border-left: 4px solid var(--red);
  transition: box-shadow .2s, transform .2s;
}

.capability-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.capability-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.capability-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.capability-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.service-why {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 32px;
}

.service-why-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: center;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.7);
}

.why-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.service-why-cta {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.service-why-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-why-cta p {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
  line-height: 1.7;
}

.service-why-cta .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .service-intro-grid  { grid-template-columns: 1fr; }
  .service-intro-image { display: none; }
  .service-why-inner   { grid-template-columns: 1fr; }
  .capability-grid     { grid-template-columns: 1fr 1fr; }
}

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

/* Footer responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mission-pillars    { grid-template-columns: 1fr 1fr; }
  .about-intro        { grid-template-columns: 1fr; }
  .about-graphic      { display: none; }
  .contact-cards      { grid-template-columns: 1fr; }
  .contact-form-card  { padding: 36px 24px; }
  .contact-form-grid  { grid-template-columns: 1fr; }
  .form-page-layout   { grid-template-columns: 1fr; }
  .form-side-info     { position: static; }
  .accent-bar-inner   { flex-wrap: wrap; }
  .accent-stat        { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
  .clients-logos      { grid-template-columns: 1fr; }
  .why-grid           { grid-template-columns: 1fr 1fr; }
  .about-match        { padding: 44px 32px; }
  .about-narrative    { padding: 40px 32px; }
}

@media (max-width: 600px) {
  .why-grid           { grid-template-columns: 1fr; }
  .about-hero-actions { flex-direction: column; align-items: flex-start; }
  .about-match        { padding: 36px 20px; }
  .about-narrative    { padding: 32px 20px; }
}


@media (max-width: 768px) {
  /* Hide the whole nav menu by default; show toggle on the right */
  .nav-menu { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  /* Unified dropdown panel — no calculated heights */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--navy);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  /* Nav links stack vertically */
  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 8px 0 0;
  }
  .nav-links a { padding: 14px 32px; }
  .nav-links a::after { display: none; }

  /* Login / register buttons below the links */
  .nav-right {
    flex-direction: column;
    padding: 12px 24px 28px;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .btn-login, .btn-register {
    display: block;
    width: 100%;
    text-align: center;
  }

  .mission-pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-band-actions { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════
   AUTH GATE  (injected as sibling section)
═══════════════════════════════════════════════ */
.auth-gate-section {
  background: var(--off-white);
  padding: 64px 24px 80px;
  animation: agFadeIn .3s ease both;
}
.auth-gate-section.auth-gate--out {
  animation: agFadeOut .3s ease both;
}
@keyframes agFadeIn  { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@keyframes agFadeOut { to   { opacity:0; transform:translateY(-10px); } }

.auth-gate-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.auth-gate-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(13,31,64,.18);
  padding: 48px 44px 40px;
  text-align: center;
}

/* Lock icon */
.auth-gate-icon {
  width: 64px;
  height: 64px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--navy);
  overflow: hidden;
  flex-shrink: 0;
}

.auth-gate-card h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}

.auth-gate-card > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 28px;
}

/* Form fields */
#authGateForm {
  text-align: left;
}

.agf-field {
  margin-bottom: 16px;
}

.agf-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}

.agf-field input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}
.agf-field input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}

/* Password row */
.agf-pw { position: relative; }
.agf-pw input { padding-right: 44px; }
.agf-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.agf-eye:hover { color: var(--navy); }

/* Error */
.agf-error {
  font-size: 13px;
  color: var(--red);
  background: rgba(218,41,28,.07);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 10px 13px;
  margin-bottom: 14px;
}

/* Submit */
.agf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  margin-top: 6px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  box-sizing: border-box;
}
.agf-btn:hover    { background: var(--red-dark); }
.agf-btn:disabled { opacity: .65; cursor: not-allowed; }

#gateSpinner { animation: agSpin .75s linear infinite; }
@keyframes agSpin { to { transform: rotate(360deg); } }

/* Footer note */
.agf-footer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .auth-gate-card { padding: 36px 22px 30px; }
}

/* ═══════════════════════════════════════════════
   NEWS PAGE
═══════════════════════════════════════════════ */
.news-section {
  background: var(--off-white);
  padding: 60px 0 80px;
}

.news-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.news-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.news-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.news-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.news-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.news-refresh:hover {
  border-color: var(--red);
  color: var(--red);
}
.news-refresh svg {
  flex-shrink: 0;
  transition: transform .4s;
}
.news-refresh:hover svg { transform: rotate(180deg); }

.news-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 22px;
  margin-bottom: 28px;
}

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
  min-height: 200px;
}

/* Card */
.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13,31,64,.07);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent, var(--navy-mid)) 0%, var(--navy) 100%);
  flex-shrink: 0;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-img.no-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.04) 0px,
    rgba(255,255,255,.04) 1px,
    transparent 1px,
    transparent 12px
  );
}

.news-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: white;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.news-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.news-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title a {
  color: inherit;
  text-decoration: none;
}
.news-card-title a:hover { color: var(--red); }

.news-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s, color .2s;
}
.news-read-more:hover {
  color: var(--red-dark);
  gap: 8px;
}

/* Load more */
.news-load-more-wrap {
  text-align: center;
  margin-top: -16px;
}

/* Article count */
.news-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 20px;
}

/* Empty / Error */
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--muted);
  font-size: 15px;
}

.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.news-error svg { opacity: .35; }
.news-error p { font-size: 15px; }

/* Skeleton */
.news-skeleton {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(13,31,64,.07);
  position: relative;
}
.news-skeleton::before {
  content: '';
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--border);
}
.news-skeleton::after {
  content: '';
  display: block;
  margin: 22px 24px;
  height: 130px;
  background:
    linear-gradient(var(--border) 12px, transparent 0px) 0 0 / 60% 12px,
    linear-gradient(var(--border) 10px, transparent 0px) 0 24px / 48px 10px,
    linear-gradient(var(--border) 14px, transparent 0px) 0 46px / 100% 14px,
    linear-gradient(var(--border) 14px, transparent 0px) 0 68px / 90% 14px,
    linear-gradient(var(--border) 14px, transparent 0px) 0 90px / 100% 14px,
    linear-gradient(var(--border) 12px, transparent 0px) 0 116px / 35% 12px;
  background-repeat: no-repeat;
  animation: news-shimmer 1.6s ease-in-out infinite;
}

@keyframes news-shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}

/* Responsive */
@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-controls { flex-direction: column; align-items: flex-start; }
  .news-tabs { gap: 6px; }
  .news-tab { padding: 7px 14px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════
   HERO EYEBROW
═══════════════════════════════════════════════ */
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(218,41,28,.9);
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════
   TEASER PAGE  (roles-teaser.html)
═══════════════════════════════════════════════ */
.teaser-section {
  padding: 72px 24px 96px;
  background: var(--off-white);
  min-height: 55vh;
}

.teaser-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 52px 48px;
  max-width: 600px;
  margin: 0 auto;
}

.teaser-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.teaser-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.teaser-card .subhead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.teaser-field {
  margin-bottom: 20px;
}

.teaser-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.teaser-field select {
  display: block;
  width: 100%;
  padding: 12px 42px 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d1f40' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s;
  cursor: pointer;
}

.teaser-field select:focus {
  outline: none;
  border-color: var(--navy);
}

.teaser-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 28px;
}

.teaser-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.teaser-btn:disabled {
  opacity: .6;
  pointer-events: none;
}

.teaser-reassurance {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.6;
  text-align: center;
}

.teaser-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 12px;
  font-weight: 600;
}

/* Result panel */
.result-count-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.result-count-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.result-count-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.result-bridge {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.result-no-match h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.result-no-match p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.teaser-back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 16px;
  display: block;
}
.teaser-back-btn:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════
   CAPTURE PAGE  (cv-capture.html)
═══════════════════════════════════════════════ */
.capture-section {
  padding: 72px 24px 96px;
  background: var(--off-white);
}

.capture-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 52px 48px;
  max-width: 640px;
  margin: 0 auto;
}

.capture-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.capture-card .subhead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.consent-block {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 28px 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}

.consent-row label {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  cursor: pointer;
}

.consent-notice {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.65;
}

.capture-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 8px;
}

.capture-submit-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.capture-submit-btn:disabled {
  opacity: .6;
  pointer-events: none;
}

.capture-form-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 12px;
  font-weight: 600;
}

/* Confirmation state */
.capture-confirm {
  text-align: center;
  padding: 48px 24px;
}

.capture-confirm-icon {
  width: 72px;
  height: 72px;
  background: rgba(13,31,64,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--navy);
}

.capture-confirm h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.capture-confirm p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 600px) {
  .teaser-card,
  .capture-card { padding: 36px 24px; }
  .result-count-num { font-size: 44px; }
}

