:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #0f2236;
  --muted: #56677b;
  --primary: #0b5cad;
  --primary-dark: #084886;
  --navy: #0a2540;
  --accent: #0f9d8a;
  --border: #dbe4ee;
  --error: #c62828;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 37, 64, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { letter-spacing: -.02em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Top bar + header */
.topbar { background: var(--navy); color: #c9d6e4; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .container { align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.visitor-greeting { margin: 0; color: #fff; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.link-btn { font: inherit; background: none; border: 0; padding: 0 0 0 6px; color: #7fe0d2; text-decoration: underline; cursor: pointer; }
.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; }
[hidden] { display: none !important; }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; color: var(--primary); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin-top: 2px; }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: var(--accent); }
.nav { display: flex; align-items: center; }
.nav a { margin-left: 26px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.nav a.btn { color: #fff; padding: 10px 22px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--primary); color: #fff; border: 2px solid var(--primary);
  padding: 12px 26px; border-radius: 10px; font-size: 1rem; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light { background: #fff; border-color: #fff; color: var(--primary); }
.btn-light:hover { background: #e9f1fb; border-color: #e9f1fb; color: var(--primary-dark); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.eyebrow.center { text-align: center; }

/* Hero */
.hero {
  position: relative; color: #fff; padding: 120px 0 110px;
  background:
    linear-gradient(100deg, rgba(8, 30, 56, .94) 0%, rgba(8, 40, 80, .82) 45%, rgba(8, 50, 100, .35) 100%),
    var(--img) center / cover no-repeat;
}
.hero .eyebrow { color: #7fe0d2; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 18px; max-width: 760px; font-weight: 800; }
.hero .lead { font-size: 1.15rem; color: #d6e2ef; max-width: 620px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.hero-affil { display: inline-block; margin: -14px 0 28px; padding: 6px 14px; border-radius: 999px; background: rgba(127, 224, 210, .14); border: 1px solid rgba(127, 224, 210, .4); color: #c8f3ec; font-size: .92rem; font-weight: 600; }
.hero-points { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: #e6eef7; font-size: .95rem; }
.hero-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 10px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 620px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* Role cards (clickable filters) */
.role-card { padding: 0; overflow: hidden; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; }
.role-card img { width: 100%; height: 190px; object-fit: cover; transition: transform .4s; }
.role-card:hover, .role-card:focus-visible { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.role-card:hover img { transform: scale(1.04); }
.role-body { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 22px; }
.role-title { font-weight: 700; font-size: 1.1rem; }
.role-desc { color: var(--muted); font-size: .94rem; }
.role-link { margin-top: 8px; color: var(--primary); font-weight: 600; font-size: .92rem; }

/* Open positions */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input { flex: 2 1 240px; }
.filters select { flex: 1 1 170px; width: auto; min-width: 0; max-width: 100%; }
.jobs-count { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.jobs-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.job { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--primary); transition: box-shadow .2s; }
.job:hover { box-shadow: var(--shadow); }
.job h3 { margin: 0; font-size: 1.08rem; }
.job p { margin: 0; color: var(--muted); font-size: .94rem; }
.job-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-meta { font-size: .86rem !important; margin-top: 2px !important; }
.job-pay { font-weight: 700; color: var(--accent) !important; font-size: 1rem !important; }
.tag { white-space: nowrap; background: #e8f1fb; color: var(--primary); font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.job details { font-size: .92rem; color: var(--muted); }
.job summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.job ul { margin: 8px 0 0; padding-left: 20px; }
.job-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.job-id { font-size: .8rem; color: var(--muted); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 32px 0; }
.jobs-note { text-align: center; color: var(--muted); margin: 32px 0 0; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 24px; }
.split-img img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 10 / 11; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps h3 { margin: 0 0 2px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }
.step-num { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #e3f5f2; color: var(--accent); font-weight: 800; display: grid; place-items: center; }

/* CTA */
.cta {
  color: #fff; text-align: center; padding: 100px 0;
  background: linear-gradient(rgba(8, 40, 80, .86), rgba(8, 40, 80, .86)), var(--img) center / cover no-repeat;
}
.cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 10px; }
.cta p { margin: 0 0 30px; color: #d6e2ef; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--navy); color: #a9bbcf; font-size: .92rem; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 36px; }
.footer-grid p { max-width: 380px; margin: 14px 0 0; }
.footer-grid h4 { color: #fff; margin: 4px 0 12px; font-size: .95rem; }
.footer-grid a:not(.logo), .footer-grid span { display: block; color: #a9bbcf; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:not(.logo):hover { color: #fff; }
.footer-grid span strong { color: #fff; font-weight: 600; }
.footer-grid span + span { margin-top: 12px; }
.footer-grid p span { display: inline; margin: 0; color: inherit; }
.footer-affil { color: #7fe0d2; font-weight: 600; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .8rem; color: #8299b2; }
.footer-legal p { margin: 0 0 8px; }

/* Forms */
input, select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11, 92, 173, .18); border-color: var(--primary); }
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .93rem; }
label .req { color: var(--error); }
.label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .93rem; }
.label .req { color: var(--error); }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; padding: 10px 18px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.choice input { width: auto; margin: 0; }
.choice:has(input:checked) { border-color: var(--primary); background: #f3f8fe; color: var(--primary); }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 18px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { width: auto; margin-top: 5px; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.alert-error { background: #fdecea; color: var(--error); }

.page-banner {
  color: #fff; padding: 72px 0 140px; text-align: center;
  background: linear-gradient(rgba(8, 30, 56, .86), rgba(8, 40, 80, .8)), var(--img) center / cover no-repeat;
}
.page-banner h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-banner p { margin: 0 auto; max-width: 560px; color: #d6e2ef; }
.page-banner .eyebrow { color: #7fe0d2; }
.form-wrap { position: relative; max-width: 760px; margin: -96px auto 72px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 40px; box-shadow: var(--shadow); }
.form-section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 8px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.secure { color: var(--muted); font-size: .85rem; }
.success { text-align: center; padding: 24px 0; }
.success .icon { width: 64px; height: 64px; border-radius: 50%; background: #e3f5f2; color: var(--accent); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 12px; }


/* Locations */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.site-card { position: relative; padding: 30px; border-top: 4px solid var(--accent); }
.site-card h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.site-addr { margin: 0 0 6px; color: var(--muted); }
.site-count { margin: 0 0 18px; font-weight: 600; color: var(--accent); min-height: 1.6em; }
.site-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: #e8f1fb; color: var(--primary); }
.site-badge-new, .tag-new { background: #e3f5f2; color: #0b7a6b; }
.areas { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin-top: 44px; }
.areas-title { font-size: .95rem; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chip span { color: var(--muted); font-size: .8rem; margin-left: 2px; }
.chip:hover, .chip:focus-visible { border-color: var(--primary); color: var(--primary); background: #f3f8fe; }

.roles-more { text-align: center; color: var(--muted); margin: 28px 0 0; }
.link-inline { font: inherit; background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Job extras */
.job-ours { border-top-color: var(--accent); }
.job-facility { font-size: .88rem !important; color: var(--text) !important; font-weight: 500; }
.job-facility .tag { margin-left: 4px; }
.job-addr { margin: 10px 0 0 !important; font-size: .85rem !important; }
.jobs-more { text-align: center; margin-top: 24px; }

/* About */
.split-rev { grid-template-columns: 1.1fr 1fr; }
.split-rev .split-img img { aspect-ratio: 4 / 3; }
.about-lead { font-size: 1.08rem; }
#about p { color: var(--muted); }
#about p strong { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.stats div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stats dt { font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.banner-affil { margin-top: 10px !important; color: #7fe0d2 !important; font-weight: 600; }

/* Email sign-in gate (mandatory; see visitor.js) */
html.gate-open, html.gate-open body { overflow: hidden; }
.gate {
  display: none; position: fixed; inset: 0; z-index: 1000; padding: 32px 20px;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(6, 22, 40, .7); -webkit-backdrop-filter: blur(12px) saturate(.85); backdrop-filter: blur(12px) saturate(.85);
}
html.gate-open .gate { display: flex; }
.gate-card {
  margin: auto; width: 100%; max-width: 1040px; min-height: 620px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface); border-radius: 24px; overflow: hidden; outline: none;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: gate-in .45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes gate-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .gate-card { animation: none; } }
.gate-aside {
  color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: linear-gradient(165deg, rgba(8, 30, 56, .95) 0%, rgba(8, 44, 88, .86) 55%, rgba(8, 60, 110, .7) 100%), var(--img) center / cover no-repeat;
}
.gate-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.gate-brand .logo-mark { color: var(--accent); }
.gate-aside .eyebrow { color: #7fe0d2; }
.gate-headline { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 22px; }
.gate-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #dbe6f2; }
.gate-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; }
.gate-sites { display: grid; gap: 12px; font-size: .86rem; color: #b9cadb; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 22px; }
.gate-sites p { margin: 0; }
.gate-sites strong { display: block; color: #fff; font-weight: 600; }
.gate-affil { color: #7fe0d2 !important; font-weight: 600; }
.gate-main { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.gate-main h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); line-height: 1.15; margin: 0 0 12px; }
.gate-desc { color: var(--muted); margin: 0 0 30px; font-size: 1.02rem; }
.gate-main input { padding: 16px 18px; font-size: 1.08rem; border-radius: 12px; }
.gate-main input[aria-invalid="true"] { border-color: var(--error); }
.gate-error { color: var(--error); font-size: .9rem; margin: 8px 0 0; }
.gate-btn { width: 100%; margin-top: 16px; padding: 16px; font-size: 1.08rem; border-radius: 12px; }
.gate-fine { color: var(--muted); font-size: .84rem; margin: 18px 0 0; }

@media (max-width: 1100px) {
  .nav-extra { display: none; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-img img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .split-rev .split-img { order: -1; }
  .areas { grid-template-columns: 1fr; }
  .gate-card { grid-template-columns: 1fr; max-width: 800px; min-height: 0; }
  .gate-aside { padding: 32px 36px; gap: 22px; }
  .gate-sites { display: none; }
  .gate-main { padding: 40px 36px 44px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .topbar .container > span { display: none; }
  .topbar .container { justify-content: flex-end; }
  .topbar-contact { display: none; }
  .topbar-right { flex: 1; justify-content: flex-end; }
  .logo-text small { display: none; }
  .nav a.btn { white-space: nowrap; }
  .stats dt { font-size: 1.5rem; }
  .gate { padding: 0; }
  .gate-card { max-width: none; min-height: 100%; border-radius: 0; grid-template-rows: auto 1fr; animation: none; }
  .gate-aside { padding: 24px 22px; }
  .gate-aside .gate-points { display: none; }
  .gate-headline { font-size: 1.45rem; margin: 0; }
  .gate-main { padding: 30px 22px 36px; justify-content: flex-start; }
  .gate-desc { margin-bottom: 22px; }
  .nav a:not(.btn) { display: none; }
  .nav a.btn { margin-left: 0; padding: 9px 16px; }
  .logo { font-size: 1rem; }
  .row { grid-template-columns: 1fr; }
  .jobs-list { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px 18px; margin: -96px 16px 48px; }
}
.footer-legal:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* Trust strip under the hero */
.trustbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.trustbar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 20px 22px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); }
.trust-item strong { font-size: .95rem; color: var(--navy); }
.footer-legal a { color: #a9bbcf; }
.footer-legal a:hover { color: #fff; }
.gate-fine a, .checkbox a { color: var(--primary); }

/* Privacy policy and 404 pages */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 20px 80px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 6px; }
.prose-meta { color: var(--muted); margin: 0 0 32px; }
.prose h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.prose p, .prose li { color: #33475c; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose code { background: #e8eef5; padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.notfound { max-width: 640px; margin: 0 auto; padding: 120px 20px; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 12px; }
.notfound p { color: var(--muted); margin: 0 0 32px; }

@media (max-width: 860px) {
  .trustbar .container { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 0 16px 18px; }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid a, .footer-grid span { overflow-wrap: anywhere; }
}
