/* ========== Base ========== */
:root{
  --navy:#0D1B2A;
  --navy-600:#1B263B;
  --slate:#334155;
  --muted:#94A3B8;
  --bg:#F7F9FC;
  --card:#FFFFFF;
  --accent:#1273EB;
  --accent-600:#0E63CB;
  --gold:#F1C40F;
  --radius:12px;
  --shadow:0 6px 24px rgba(13,27,42,.08);
  --shadow-soft:0 3px 14px rgba(13,27,42,.06);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--slate);
  background:var(--bg);
  line-height:1.55;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  color:var(--accent-600);
}

.container{
  width:min(1200px,92%);
  margin-inline:auto;
}

.narrow{
  width:min(800px,92%);
  margin-inline:auto;
}

.visually-hidden{
  position:absolute !important;
  height:1px;
  width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  background:#fff;
  padding:.5rem .75rem;
  border-radius:8px;
  box-shadow:var(--shadow);
}

/* ========== Header ========== */
.site-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid #E5EAF1;
  line-height:1;
}

.header-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:84px;
  padding:.15rem 0;
}

.brand,
.brand a{
  display:flex;
  align-items:center;
  margin:0;
  padding:0;
  line-height:1;
}

.brand-logo,
.brand img{
  display:block;
  height:65px !important;
  width:auto !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:var(--navy);
  color:#fff;
  font-weight:700;
}

.brand-text{
  letter-spacing:.3px;
}

.nav{
  display:block;
}

.nav-list{
  display:flex;
  gap:1.25rem;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-link{
  color:var(--slate);
  padding:.2rem .25rem;
  border-bottom:2px solid transparent;
  font-weight:600;
}

.nav-link:hover,
.nav-link:focus{
  border-bottom-color:var(--accent);
  color:var(--navy);
}

.nav-link.is-active{
  border-bottom-color:var(--navy);
  color:var(--navy);
}

.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:.4rem;
}

.nav-toggle-bar{
  display:block;
  width:24px;
  height:2px;
  background:var(--navy);
  margin:5px 0;
  border-radius:2px;
}

/* ========== Sections ========== */
.section{
  padding:48px 0;
}

.section-tight{
  padding:54px 0;
}

.section-alt{
  background:#fff;
}

section[id]{
  scroll-margin-top:130px;
}

/* ========== Hero ========== */
.hero{
  background:radial-gradient(circle at 20% 20%, #1B263B 0%, #0D1B2A 60%);
  color:#E8EEF6;
  padding:80px 0 80px 0;
}

.hero .lead{
  color:#C7D3E0;
}

.hero .btn{
  margin-right:.5rem;
}

.hero-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:1.25rem;
}

.pill-list{
  margin:22px 0 0 0;
  padding:0;
  list-style:none;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}

.pill-list li{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.25);
  color:#E8EEF6;
  padding:.45rem .75rem;
  border-radius:999px;
  font-size:.85rem;
  letter-spacing:.3px;
  backdrop-filter:blur(6px);
}

/* ========== Layout helpers ========== */
.grid-2{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:36px;
  align-items:start;
}

/* creates the gap between the two right-hand hero boxes */
.grid-2 > div:last-child{
  display:flex;
  flex-direction:column;
  gap:18px;
}

@media (max-width:900px){
  .grid-2{
    grid-template-columns:1fr;
  }

  .grid-2 > div:last-child{
    gap:18px;
  }
}

/* ========== Cards / Asides ========== */
.aside-card{
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.25);
  color:#ffffff;
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow-soft);
}

.aside-card.subtle{
  background:#0F2236;
  border-color:#17324E;
  color:#C7D3E0;
}

.hero .aside-card{
  background:rgba(255,255,255,0.30);
  color:#ffffff;
  border:1px solid rgba(255,255,255,0.5);
  backdrop-filter:blur(4px);
}

.hero .aside-card,
.hero .aside-card h3,
.hero .aside-card h4,
.hero .aside-card p,
.hero .aside-card li{
  color:#ffffff;
}

.cards{
  display:grid;
  gap:22px;
  grid-template-columns:repeat(4,1fr);
}

@media (max-width:1100px){
  .cards{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:640px){
  .cards{
    grid-template-columns:1fr;
  }
}

.card{
  background:var(--card);
  border:1px solid #E5EAF1;
  border-radius:16px;
  padding:24px;
  box-shadow:0 10px 30px rgba(13,27,42,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(13,27,42,.12);
}

.card-icon{
  color:var(--accent);
  margin-bottom:24px;
}

/* ========== Buttons ========== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border-radius:10px;
  padding:.75rem 1.1rem;
  font-weight:700;
  border:2px solid transparent;
  cursor:pointer;
  transition:all .15s ease;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  box-shadow:0 6px 18px rgba(18,115,235,.25);
}

.btn-primary:hover{
  background:var(--accent-600);
  border-color:var(--accent-600);
  box-shadow:0 10px 24px rgba(18,115,235,.35);
  color:#fff;
}

.btn-ghost{
  background:transparent;
  color:#E8EEF6;
  border-color:rgba(255,255,255,.35);
}

.btn-ghost:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

/* ========== Typography ========== */
h1{
  font-size:clamp(2rem, 3vw, 2.6rem);
  line-height:1.2;
  margin:0 0 .6rem 0;
  color:#fff;
}

h2{
  font-size:clamp(1.6rem, 2.3vw, 2rem);
  color:var(--navy);
  margin:0 0 .75rem 0;
}

h3{
  font-size:1.15rem;
  color:var(--navy);
  margin:.25rem 0 .5rem 0;
}

h4{
  margin:.25rem 0 .4rem 0;
}

.lead{
  font-size:1.1rem;
}

.section-intro{
  max-width:700px;
  margin-bottom:25px;
  color:var(--slate);
}

/* ========== Jobs ========== */
.jobs-list{
  display:grid;
  gap:22px;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  margin-top:25px;
}

.job-card{
  background:#fff;
  border:1px solid #E5EAF1;
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
}

.job-card h3{
  margin-top:0;
  color:var(--navy);
}

.job-meta{
  list-style:none;
  margin:8px 0 12px 0;
  padding:0;
  color:var(--muted);
}

.job-meta li{
  margin-bottom:4px;
}

/* ========== Contact ========== */
.contact .contact-block{
  margin-bottom:18px;
}

.contact-form{
  background:#fff;
  border:1px solid #E5EAF1;
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}

.contact-form label{
  font-weight:600;
  margin-top:10px;
  display:block;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  margin-top:6px;
  padding:.7rem .8rem;
  border:1px solid #D6DEEA;
  border-radius:8px;
  font:inherit;
  color:var(--slate);
  background:#FBFDFF;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:3px solid rgba(18,115,235,.2);
  border-color:var(--accent);
}

.form-note{
  font-size:.9rem;
  color:#6B7B8F;
  margin-top:10px;
}

/* ========== Logos ========== */
.eyebrow{
  font-size:.9rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.logo-row{
  list-style:none;
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  margin:10px 0 0 0;
  padding:0;
}

.logo-row li{
  border:1px solid #E5EAF1;
  color:#6B7B8F;
  padding:.5rem .8rem;
  border-radius:10px;
  background:#fff;
}

/* ========== Footer ========== */
.site-footer{
  background:#0B1625;
  color:#C7D3E0;
  padding:28px 0;
  margin-top:36px;
  border-top:2px solid #0A1220;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.footer-brand{
  font-weight:800;
  color:#E8EEF6;
}

.footer-links a{
  color:#C7D3E0;
  margin-right:14px;
}

.footer-links a:hover{
  color:#fff;
}

.footer-meta{
  color:#9DB1C6;
  font-size:.95rem;
}

/* ========== Responsive nav ========== */
@media (max-width:900px){
  .header-inner{
    min-height:76px;
    padding:.15rem 0;
  }

  .brand-logo,
  .brand img{
    height:64px;
  }

  .nav-toggle{
    display:block;
    z-index:1002;
    position:relative;
  }

  .nav{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:220px;
    background:#fff;
    border:1px solid #E5EAF1;
    border-radius:12px;
    box-shadow:var(--shadow);
    padding:8px 0;
    z-index:1001;
  }

  .nav.is-open{
    display:block;
  }

  .nav-list{
    flex-direction:column;
    gap:0;
  }

  .nav-list li{
    width:100%;
  }

  .nav-link{
    display:block;
    padding:12px 16px;
    border-bottom:none;
  }

  .nav-link:hover,
  .nav-link:focus{
    background:#F3F6FA;
    color:var(--navy);
  }
}

/* ========== Small screens ========== */
@media (max-width:640px){
  .brand-logo,
  .brand img{
    height:50px !important;
    width:auto !important;
    max-width:none !important;
    max-height:none !important;
  }

  .section{
    padding:48px 0;
  }

  .section-tight{
    padding:42px 0;
  }

  .hero{
    padding:72px 0 64px 0;
  }

  .hero-ctas{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-ctas .btn{
    width:100%;
  }
}