@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* CMS regions stay empty until published content arrives. */
:where([data-cms]:not([data-cms="slides"]), [data-services-grid], [data-projects-grid], [data-testimonials-strip]) {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
[data-cms-ready] {
  opacity: 1;
  visibility: visible;
}
:is([data-cms], [data-services-grid], [data-projects-grid], [data-testimonials-strip], .cms-load-status, .slide-arrow, .slide-dots)[hidden] {
  display: none !important;
}
[data-cms="slides"][data-cms-ready] .slide-content {
  animation: cms-reveal 0.35s ease both;
}
@keyframes cms-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cms-load-status {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(13,31,60,0.12);
  font-size: 0.9rem;
}
.cms-load-status button {
  margin-left: 0.75rem;
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  cursor: pointer;
}
.cms-noscript { padding: 6rem 1.5rem 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  [data-cms-ready] { transition: none; }
  [data-cms="slides"][data-cms-ready] .slide-content { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   HERO SLIDESHOW
══════════════════════════════════════════════════════════════ */
.hero-slideshow {
  position: relative;
  width: 100%;
  min-height: max(920px, 94vh);
  overflow: hidden;
  background: var(--navy);
}
/* Global hero video background */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero-global-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,13,25,0.78) 0%, rgba(5,13,25,0.52) 48%, rgba(5,13,25,0.40) 100%);
  z-index: 1;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  z-index: 2;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
/* Per-slide video (used when individual Sanity slides have their own video) */
.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,13,25,0.74) 0%, rgba(5,13,25,0.48) 48%, rgba(5,13,25,0.36) 100%);
  z-index: 1;
}
.slide-content {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 160px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem 2rem;
}
.slide-eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.slide-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--blue-light);
  flex-shrink: 0;
}
.slide-content h1 {
  font-family: var(--font-condensed);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  color: var(--headline-color, var(--white));
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  max-width: 680px;
}
.slide-content h1 em {
  font-style: normal;
  color: var(--blue-light);
}
.slide-content p {
  color: rgba(255,255,255,0.62);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Arrow controls */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.slide-arrow:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.slide-prev { left: 1.5rem; }
.slide-next { right: 1.5rem; }

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--white); transform: scale(1.25); }
.dot:hover { background: rgba(255,255,255,0.7); }

/* ══════════════════════════════════════════════════════════════
   SIMPLE CENTERED FORM (Careers + Contact)
══════════════════════════════════════════════════════════════ */
.simple-form-wrap {
  padding: 4.5rem 2rem;
  display: flex;
  justify-content: center;
}
.simple-form-wrap .contact-form-panel {
  width: 100%;
  max-width: 680px;
}

/* Select on dark panel */
.contact-form-panel select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  outline: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.contact-form-panel select:focus { border-color: var(--blue-light); }
.contact-form-panel select option { background: var(--navy-mid); color: var(--white); }

/* Resume upload button */
.btn-upload-resume {
  background: transparent;
  color: var(--blue-light);
  border: 2px solid var(--blue-light);
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-upload-resume:hover { background: var(--blue-light); color: var(--white); }
.resume-filename {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
  font-family: var(--font-condensed);
  letter-spacing: 0.06em;
}

/* ─── VARIABLES ───────────────────────────────────────────── */
:root {
  --navy:       #0d1f3c;
  --navy-mid:   #162d52;
  --blue:       #1e4d8c;
  --blue-light: #2e6ab5;
  --blue-pale:  #e8f0fb;
  --white:      #ffffff;
  --gray-light: #f2f4f7;
  --gray-mid:   #ccd0d8;
  --gray-text:  #6b7280;
  --gray-dark:  #374151;
  --border:     #ccd0d8;

  --font-site:      'Montserrat', Arial, sans-serif;
  --font-condensed: var(--font-site);
  --font-body:      var(--font-site);
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--gray-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent state (at top of every page) — no divider line */
.nav:not(.scrolled) {
  border-bottom-color: transparent;
}
/* Homepage: slight navy tint so logo reads clearly over video */
body[data-page="home"] .nav:not(.scrolled) {
  background: rgba(13,31,60,0.28);
}
.nav:not(.scrolled) .nav-logo-img {
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}
.nav:not(.scrolled) .nav-links li a {
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.nav:not(.scrolled) .nav-links li a:hover,
.nav:not(.scrolled) .nav-links li a.active {
  color: var(--white);
}

/* Scrolled: solid white for all pages */
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(13,31,60,0.12);
}
.nav.scrolled .nav-links li a {
  color: var(--navy);
  text-shadow: none;
}
.nav.scrolled .nav-links li a.active {
  color: var(--navy);
}

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  z-index: 1000;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav.scrolled .nav-hamburger span {
  background: var(--navy);
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}
.nav-links li a {
  font-family: var(--font-condensed);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray-dark);
  padding: 0.5rem 0.8rem;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--blue-light);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links li a:hover { color: var(--blue-light); }
.nav-links li a.active { color: var(--navy); }
.nav-links li a.active::after { transform: scaleX(1); }

.nav-logo {
  font-size: unset;
  font-weight: unset;
  color: unset;
  letter-spacing: unset;
  text-transform: unset;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
}
/* Text-only logo variant (services page) */
.logo-main {
  font-family: var(--font-condensed);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-condensed);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  line-height: 1;
}
.nav.scrolled .logo-main { color: var(--navy); }
.nav.scrolled .logo-sub  { color: var(--blue); }

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

.nav-cta {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-condensed);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue); }

/* ─── PAGE ROUTING ─────────────────────────────────────────── */
[data-page] { display: block; }
[data-page][hidden] { display: none !important; }

/* ─── FADE-IN ──────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary  { background: var(--blue);  color: var(--white); }
.btn-primary:hover { background: var(--blue-light); }
.btn-dark     { background: var(--navy);  color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); }
.btn-outline  {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ─── LABELS / HEADINGS ────────────────────────────────────── */
.section-label {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  line-height: 1.08;
  color: var(--navy);
  text-transform: uppercase;
}
.section-title.xl  { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section-title.lg  { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-title.md  { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.section-title.white { color: var(--white); }

/* ─── IMAGES ──────────────────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ─── IMAGE PLACEHOLDERS ────────────────────────────────────── */
.img-placeholder {
  background: var(--gray-light);
  border: 2px dashed var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  font-weight: 600;
}

/* Image classes for when placeholders are replaced */
.hero-img,
.about-img,
.service-img,
.project-img,
.team-img,
.careers-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── PAGE HERO (inner page banners) ───────────────────────── */
/* Hero background must always be visible — never fade-in the container */
.page-hero.fade-in { opacity: 1; transform: none; }
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(64px + 3.5rem) 2rem 3.5rem;
  text-align: center;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Dark overlay so text stays readable over any image */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,13,25,0.78) 0%, rgba(5,13,25,0.62) 100%);
  z-index: 0;
}
.page-hero h1,
.page-hero .breadcrumb {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.65rem;
}
.breadcrumb {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.breadcrumb span { color: var(--blue-light); }

/* ─── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  background: #1b3f72;
  padding: 4.5rem 2rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-condensed);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── TEXT LINK ────────────────────────────────────────────── */
.text-link {
  font-family: var(--font-condensed);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--blue-light); }

/* ─── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  background: #0a0f1a;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  padding: 4rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo-main {
  font-family: var(--font-condensed);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
}
.footer-logo-sub {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  margin-bottom: 0.9rem;
}
.footer-tagline {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.footer-contact-col h4 {
  font-family: var(--font-condensed);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; }
.footer-hours { font-size: 0.76rem; color: rgba(255,255,255,0.35); margin-top: 0.35rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
  font-family: var(--font-condensed);
  letter-spacing: 0.07em;
}

/* ══════════════════════════════════════════════════════════════
   PAGE 1 — HOME
══════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
  background: #0a0f1a;
  padding: 5.5rem 2rem;
  min-height: 570px;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--blue-light);
}
.hero h1 {
  font-family: var(--font-condensed);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  color: var(--white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}
.hero p {
  color: rgba(255,255,255,0.58);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2.25rem;
  max-width: 420px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero geometric shapes */
.hero-graphic {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.geo-rect-a {
  position: absolute;
  width: 230px; height: 290px;
  border: 2px solid rgba(46,106,181,0.35);
  top: 20px; right: 40px;
}
.geo-rect-b {
  position: absolute;
  width: 230px; height: 290px;
  border: 2px solid rgba(46,106,181,0.15);
  top: 44px; right: 66px;
}
.geo-rect-c {
  position: absolute;
  width: 150px; height: 150px;
  background: rgba(46,106,181,0.07);
  border: 2px solid rgba(46,106,181,0.22);
  top: 68px; right: 90px;
}
.geo-ring {
  position: absolute;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(46,106,181,0.4);
  bottom: 64px; right: 28px;
}
.geo-dot {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--blue-light);
  top: 28px; right: 28px;
}
.geo-line {
  position: absolute;
  width: 2px; height: 72px;
  background: rgba(46,106,181,0.28);
  bottom: 42px; right: 190px;
}

/* About snippet */
.about-snippet-wrap {
  background: var(--gray-light);
  padding: 5.5rem 2rem;
}
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-snippet-text .section-title { margin-bottom: 1.25rem; }
.about-snippet-text p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}
.about-card {
  background: var(--navy-mid);
  padding: 3rem;
  color: var(--white);
}
.about-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}
.about-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }

/* Services preview */
.services-preview {
  padding: 5.5rem 2rem;
  background: var(--white);
}
.services-preview-header {
  text-align: center;
  margin-bottom: 3rem;
}
.services-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card-home {
  border: 1px solid var(--border);
  padding: 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card-home:hover {
  box-shadow: 0 4px 24px rgba(13,31,60,0.09);
  border-color: var(--blue-light);
}
.service-icon-sq {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.service-card-home h3 {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-card-home p {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   PAGE 2 — SERVICES
══════════════════════════════════════════════════════════════ */
.services-intro {
  padding: 4.5rem 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.services-intro p { color: var(--gray-text); margin-top: 1rem; }

.services-full-grid {
  padding: 0 2rem 5.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.service-full-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.service-full-card:hover { box-shadow: 0 4px 24px rgba(13,31,60,0.08); }
.service-full-card .img-placeholder { height: 200px; }
.service-full-card > .service-img { height: 200px; }
.service-full-card-body { padding: 1.75rem; }
.service-full-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}
.service-full-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* Process */
.process-section {
  background: #0a0f1a;
  padding: 5.5rem 2rem;
}
.process-section .section-label { text-align: center; }
.process-section .section-title { text-align: center; margin-bottom: 3.5rem; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.process-step { text-align: center; }
.process-num {
  font-family: var(--font-condensed);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 1rem;
}
.process-step h4 {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.process-step p { font-size: 0.85rem; color: rgba(255,255,255,0.48); }

/* FAQ */
.faq-section {
  padding: 5.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq-header { text-align: center; margin-bottom: 0.5rem; }
.faq-intro {
  text-align: center;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-light); }
.faq-toggle {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--blue-light);
  flex-shrink: 0;
  font-family: var(--font-condensed);
  font-weight: 400;
  width: 24px;
  text-align: center;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.faq-answer.open { max-height: 220px; }
.faq-answer p {
  color: var(--gray-text);
  font-size: 0.92rem;
  line-height: 1.8;
  padding-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   PAGE 3 — ABOUT
══════════════════════════════════════════════════════════════ */
.mission-section {
  padding: 5.5rem 2rem;
  max-width: 920px;
  margin: 0 auto;
}
.mission-text .section-title { margin-bottom: 1.5rem; }
.mission-text p { color: var(--gray-text); margin-bottom: 1rem; }
.mission-img { height: 420px; }

.stats-row {
  background: var(--navy-mid);
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat-item {
  padding: 1.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-condensed);
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.team-section {
  padding: 5.5rem 2rem;
  background: var(--gray-light);
}
.team-header { text-align: center; margin-bottom: 3rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
}
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 2px solid var(--gray-mid);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  overflow: hidden;
}
.team-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.team-title {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}
.team-bio { font-size: 0.87rem; color: var(--gray-text); }

.values-section {
  padding: 5.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.values-header { text-align: center; margin-bottom: 3rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.value-card {
  padding: 2rem;
  border-left: 3px solid var(--blue-light);
}
.value-num {
  font-family: var(--font-condensed);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.value-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.value-card p { font-size: 0.88rem; color: var(--gray-text); }

/* ══════════════════════════════════════════════════════════════
   PAGE 4 — PROJECTS
══════════════════════════════════════════════════════════════ */
.projects-filter-bar {
  padding: 2.5rem 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  color: var(--gray-text);
  transition: color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--navy); }
.filter-btn.active { color: var(--navy); border-color: var(--blue-light); }

.projects-grid {
  padding: 2rem 2rem 5.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  outline: none;
  text-align: left;
}
.project-card:hover,
.project-card:focus-visible {
  box-shadow: 0 8px 32px rgba(13,31,60,0.14);
  transform: translateY(-3px);
  border-color: var(--blue-light);
}
.project-card-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
  height: 280px;
}
.project-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card-img-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card:hover .project-card-img-wrap img {
  transform: scale(1.05);
}
.project-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--blue-pale);
  color: var(--blue);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.65rem;
  align-self: flex-start;
}
.project-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card p {
  font-size: 0.84rem;
  color: var(--gray-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.project-card-view {
  margin-top: 1rem;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.project-card:hover .project-card-view,
.project-card:focus-visible .project-card-view {
  opacity: 1;
  transform: translateY(0);
}

/* Project modal */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,13,25,0.82);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.project-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.project-modal {
  background: var(--white);
  border-radius: 8px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.project-modal-overlay.open .project-modal {
  transform: translateY(0) scale(1);
}
.project-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
}
.project-modal-close:hover { background: var(--gray-light); }
.project-modal-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}
.project-modal-img-placeholder {
  width: 100%;
  height: 340px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  color: var(--gray-mid);
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-modal-body { padding: 2rem 2.25rem 2.5rem; }
.project-modal-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--blue-pale);
  color: var(--blue);
  padding: 0.22rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.9rem;
}
.project-modal-title {
  font-family: var(--font-condensed);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.project-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0;
}
.project-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--gray-text);
}
.project-modal-meta-item svg { flex-shrink: 0; color: var(--blue-light); }
.project-modal-desc {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

/* Testimonials */
.testimonials-strip {
  background: var(--navy-mid);
  padding: 5.5rem 2rem;
}
.testimonials-header { text-align: center; margin-bottom: 3rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 2rem;
}
.testimonial-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(46,106,181,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-light);
  flex-shrink: 0;
}
.review-name {
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.review-stars { color: var(--blue-light); font-size: 0.82rem; letter-spacing: 0.04em; }
.review-badge {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(46,106,181,0.18);
  color: var(--blue-light);
  padding: 0.15rem 0.5rem;
  margin-top: 0.3rem;
}
.review-text {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.78;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   PAGE 5 — CAREERS
══════════════════════════════════════════════════════════════ */
.careers-intro-wrap {
  padding: 5.5rem 2rem;
  max-width: 920px;
  margin: 0 auto;
}
.careers-intro-text .section-title { margin-bottom: 1.25rem; }
.careers-intro-text p { color: var(--gray-text); margin-bottom: 1rem; }
.careers-img { height: 380px; }

.perks-section {
  background: var(--gray-light);
  padding: 5.5rem 2rem;
}
.perks-header { text-align: center; margin-bottom: 3rem; }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.perk-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.perk-icon {
  width: 48px; height: 48px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.perk-card h3 {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.perk-card p { font-size: 0.84rem; color: var(--gray-text); }

.positions-section {
  padding: 5.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.positions-header { margin-bottom: 2rem; }
.position-card {
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: box-shadow 0.2s;
}
.position-card:hover { box-shadow: 0 2px 16px rgba(13,31,60,0.07); }
.position-left h3 {
  font-family: var(--font-condensed);
  font-size: 1.18rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.position-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.position-tag {
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--gray-text);
}
.position-desc { font-size: 0.87rem; color: var(--gray-text); }

/* ══════════════════════════════════════════════════════════════
   PAGE 6 — CONTACT
══════════════════════════════════════════════════════════════ */
.contact-info-strip {
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}
.contact-info-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon-wrap {
  width: 44px; height: 44px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
}
.contact-info-text .ci-label {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 0.25rem;
}
.contact-info-text .ci-value {
  font-family: var(--font-condensed);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.contact-info-text .ci-sub {
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 300;
  font-family: var(--font-body);
}

.contact-form-section {
  padding: 5.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}
.contact-tabs {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-right: none;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
}
.contact-tabs-label {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-text);
  padding: 0.75rem 1.5rem 0.5rem;
}
.contact-tab-btn {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  text-align: left;
  color: var(--gray-text);
  border-left: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.contact-tab-btn:hover { color: var(--navy); background: rgba(13,31,60,0.04); }
.contact-tab-btn.active {
  color: var(--navy);
  background: var(--white);
  border-color: var(--blue-light);
}

.contact-form-panel {
  background: var(--navy-mid);
  padding: 3rem;
  border: 1px solid var(--border);
}
.contact-form-panel h3 {
  font-family: var(--font-condensed);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.form-subtitle {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group label {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue-light); }
.form-group textarea { resize: vertical; min-height: 120px; }

.hours-section {
  padding: 0 2rem 5.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hours-section h3 {
  font-family: var(--font-condensed);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.hours-table {
  width: 100%;
  max-width: 460px;
  border-collapse: collapse;
}
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td {
  padding: 0.7rem 0;
  font-size: 0.9rem;
  color: var(--gray-text);
}
.hours-table td:first-child {
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy);
  width: 180px;
  text-transform: uppercase;
}
.hours-closed {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b91c1c;
}
.hours-note {
  padding-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--gray-text);
  font-style: italic;
}

/* ── CMS: Form feedback messages ─────────────────────────────── */
.form-msg {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-msg.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}
.form-msg.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* ── CMS: Job listings ───────────────────────────────────────── */
.jobs-section {
  padding: 4rem 2rem;
  background: var(--gray-light);
  text-align: center;
}
.jobs-list-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}
.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.job-card-header h3 {
  font-family: var(--font-condensed);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin: 0;
}
.job-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.job-tag {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}
.job-tag.department {
  background: var(--blue-pale);
  color: var(--blue);
}
.job-tag.type {
  background: var(--navy-mid);
  color: var(--white);
}
.job-card > p {
  color: var(--gray-text);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ── Employment Application Form ─────────────────────────────── */
.emp-app-wrap {
  background: var(--navy);
  padding: 4rem 2rem 5rem;
}
.emp-app-panel {
  background: var(--navy-mid);
  max-width: 750px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 3rem;
  border-radius: 10px;
}
.emp-app-heading {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 2px;
  margin: 0 0 0.4rem 0;
}
.emp-app-subheading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 2rem 0;
}
.emp-section-label {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2e6ab5;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1.25rem 0;
}
.emp-field-group {
  margin-bottom: 1rem;
}
.emp-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.emp-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.emp-input::placeholder {
  color: rgba(255,255,255,0.25);
}
.emp-input:focus {
  border-color: #2e6ab5;
}
.emp-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.emp-three-col .emp-field-group {
  margin-bottom: 0;
}
.emp-toggle-group {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.emp-toggle-option input[type="radio"] {
  display: none;
}
.emp-toggle-btn {
  display: block;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.emp-toggle-option input[type="radio"]:checked + .emp-toggle-btn {
  background: #2e6ab5;
  color: white;
}
.emp-upload-zone {
  width: 100%;
  min-height: 140px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 0.5rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.emp-upload-zone:hover {
  border-color: #2e6ab5;
}
.emp-upload-label {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.emp-upload-formats {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.emp-filename {
  font-size: 0.82rem;
  color: #2e6ab5;
  margin-top: 0.75rem;
  min-height: 1.2em;
}
.emp-submit-btn {
  width: 100%;
  margin-top: 2rem;
  background: #1e4d8c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.9rem 1rem;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.emp-submit-btn:hover {
  background: #2e6ab5;
}
.emp-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.emp-msg {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}
.emp-msg.success { color: #4ade80; }
.emp-msg.error   { color: #f87171; }
@media (max-width: 580px) {
  .emp-three-col {
    grid-template-columns: 1fr;
  }
  .emp-app-panel {
    padding: 1.75rem 1.25rem 2rem;
  }
}

/* ── Apply Now Button ────────────────────────────────────────── */
.apply-btn-wrapper {
  text-align: center;
  padding: 3rem 2rem;
}

.apply-subtext {
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.btn-apply-open {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 1rem 3rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s, transform .1s;
}

.btn-apply-open:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

/* ── Application Modal ───────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--navy);
  border-radius: 10px;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255,255,255,0.2);
}

.modal-header {
  padding: 2rem 2rem 0;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.modal-header p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

.modal-body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

@media (max-width: 600px) {
  .modal-container { max-height: 95vh; }
  .modal-header { padding: 1.5rem 1.5rem 0; }
  .modal-body { padding: 1rem 1.5rem 1.5rem; }
}

/* ── Dynamic Work Experience ─────────────────────────────────── */
.experience-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.btn-add-experience {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--blue-light);
  color: var(--blue-light);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}

.btn-add-experience:hover {
  background: var(--blue-light);
  color: var(--white);
}

.btn-add-experience .plus {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
}

.experience-entry-form {
  display: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown .2s ease;
}

.experience-entry-form.active {
  display: block;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.experience-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.experience-entry-header button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color .2s;
}

.experience-entry-header button:hover {
  color: var(--white);
}

.experience-entry-form .emp-toggle-group {
  display: flex;
  width: 100%;
}

.experience-entry-form .emp-toggle-option {
  flex: 1;
}

.experience-entry-form .emp-toggle-btn {
  text-align: center;
}

.experience-entry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.experience-entry-actions button:first-child {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all .2s;
}

.experience-entry-actions button:first-child:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.experience-entry-actions button:last-child {
  background: var(--blue);
  border: none;
  color: var(--white);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s;
}

.experience-entry-actions button:last-child:hover {
  background: var(--blue-light);
}

.experience-saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

.experience-saved-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.experience-company {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.experience-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.experience-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color .2s;
  padding: 0.25rem;
}

.experience-remove:hover {
  color: #e55;
}

.no-experience-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ── RESPONSIVE OVERRIDES ─────────────────────────────────────
   Placed at end of file so same-specificity component rules above
   don't win the cascade by later source order. ────────────────── */

/* ── TABLET BREAKPOINT 769px – 1024px ───────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card-img-wrap { height: 230px; }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .services-grid-home { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 3rem 1.5rem; }
  .about-snippet { gap: 2.5rem; }
  .mission-section { gap: 3rem; padding: 4rem 1.5rem; }
  .careers-intro-wrap { gap: 2.5rem; padding: 4rem 1.5rem; }
  .services-full-grid { grid-template-columns: 1fr; }
}

/* ── MOBILE BREAKPOINT ≤ 768px ───────────────────────────── */
@media (max-width: 768px) {
  /* --- Nav --- */
  .nav { padding: 0 1rem; }
  .nav-logo-img { height: 40px; max-width: 170px; }

  .nav-hamburger { display: flex; }

  /* Desktop links become a fixed dropdown drawer */
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 997;
    background: var(--navy);
    flex-direction: column;
    padding: 0.5rem 0 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.82) !important;
    text-shadow: none !important;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
  }
  .nav-links li a:hover,
  .nav-links li a.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.06);
  }
  .nav-links li a::after { display: none !important; }

  /* --- Hero slideshow --- */
  .hero-slideshow { min-height: 100svh; min-height: 100vh; }
  .slide-content {
    bottom: 120px;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .slide-content h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .slide-content p { font-size: 0.95rem; margin-bottom: 1.5rem; max-width: 100%; }
  .slide-content .btn { width: 100%; text-align: center; }
  .slide-arrow { display: none; }
  .slide-dots { bottom: 6.25rem; }

  /* --- Page hero (inner pages) --- */
  .page-hero { min-height: 200px; padding: calc(64px + 1.75rem) 1.25rem 2rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }

  /* --- Section spacing --- */
  .cta-band { padding: 3.5rem 1.25rem; }
  .cta-band h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .cta-band .btn { width: 100%; text-align: center; box-sizing: border-box; }

  /* --- Home: About snippet --- */
  .about-snippet-wrap { padding: 3.5rem 1.25rem; }
  .about-snippet { grid-template-columns: 1fr; gap: 2rem; }

  /* --- Stats --- */
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 2rem 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 1.25rem; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .stat-num { font-size: 2.4rem; }

  /* --- About page: Mission --- */
  .mission-section { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 1.25rem; }
  .mission-img { height: 250px; }

  /* --- About page: Team --- */
  .team-section { padding: 3.5rem 1.25rem; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  /* --- About page: Values --- */
  .values-section { padding: 3.5rem 1.25rem; }
  .values-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* --- Services page --- */
  .services-intro { padding: 3rem 1.25rem; }
  .services-full-grid { grid-template-columns: 1fr; padding: 0 1.25rem 3.5rem; }
  .services-grid-home { grid-template-columns: 1fr; }
  .process-section { padding: 3.5rem 1.25rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .process-steps::before { display: none; }
  .faq-section { padding: 3.5rem 1.25rem; }

  /* --- Projects page --- */
  .projects-filter-bar { padding: 2rem 1.25rem 0; }
  .projects-grid { grid-template-columns: 1fr; padding: 1.5rem 1.25rem 4rem; gap: 1.25rem; }
  .project-card-img-wrap { height: 220px; }
  .project-modal-overlay { padding: 0; align-items: flex-end; }
  .project-modal {
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
    max-width: 100%;
  }
  .project-modal-img, .project-modal-img-placeholder { height: 200px; }
  .project-modal-body { padding: 1.25rem 1.25rem 2rem; }
  .project-modal-title { font-size: 1.25rem; }
  .project-modal-close { width: 40px; height: 40px; top: 0.6rem; right: 0.6rem; }

  /* --- Testimonials --- */
  .testimonials-strip { padding: 3.5rem 1.25rem; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* --- Careers page --- */
  .careers-intro-wrap { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 1.25rem; }
  .careers-img { height: 230px; }
  .perks-section { padding: 3.5rem 1.25rem; }
  .perks-grid { grid-template-columns: 1fr; }
  .positions-section { padding: 3rem 1.25rem; }
  .position-card { grid-template-columns: 1fr; padding: 1.25rem; gap: 1rem; }

  /* --- Contact page --- */
  .contact-info-strip { padding: 2rem 1.25rem; }
  .contact-info-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-form-section { grid-template-columns: 1fr; }
  .contact-tabs { border-right: 1px solid var(--border); border-bottom: none; flex-direction: row; flex-wrap: wrap; }
  .simple-form-wrap { padding: 3rem 1.25rem; }
  .hours-section { padding: 0 1.25rem 3.5rem; }

  /* --- Forms --- */
  .form-row { grid-template-columns: 1fr; }

  /* --- Footer --- */
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
  .footer-bottom { padding: 1rem 1.25rem; font-size: 0.7rem; }

  /* --- Employment form --- */
  .emp-three-col { grid-template-columns: 1fr; }
  .emp-app-panel { padding: 1.75rem 1.25rem 2rem; }

  /* --- Typography fallback (component-specific rules above still win) --- */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  /* --- iOS zoom prevention --- */
  input, select, textarea { font-size: 16px; }

  /* --- Minimum touch targets --- */
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── SMALL PHONE BREAKPOINT ≤ 480px ──────────────────────── */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-item:last-child { border-bottom: none; }
  .process-steps { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   2026 UI / UX POLISH
   Shared typography, navigation, cards, contact, and forms.
══════════════════════════════════════════════════════════════ */
:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 8px 24px rgba(13,31,60,0.08);
  --shadow-md: 0 18px 50px rgba(13,31,60,0.14);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.btn,
.nav-link,
.section-label,
.footer-logo-main,
.footer-logo-sub {
  font-family: var(--font-condensed);
}

.btn,
.nav-link,
.section-label {
  letter-spacing: 0.035em;
}

p { text-wrap: pretty; }

a,
button,
input,
select,
textarea {
  border-radius: var(--radius-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

/* Shared navigation */
.nav {
  position: absolute;
  height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 30px rgba(13,31,60,0.09);
}

.nav-logo-img {
  height: 50px;
  max-width: 230px;
}

.nav-links { gap: 0.25rem; }

.nav-links li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links li a::after { bottom: 2px; }
.nav-links li a:hover { background: rgba(232,240,251,0.75); }

.nav-links .nav-contact {
  background: var(--blue);
  color: var(--white) !important;
  margin-left: 0.3rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.nav-links .nav-contact.active,
.nav:not(.scrolled) .nav-links .nav-contact.active,
.nav.scrolled .nav-links .nav-contact.active {
  background: var(--blue);
  color: var(--white) !important;
}

.nav-links .nav-contact:hover,
.nav:not(.scrolled) .nav-links .nav-contact:hover,
.nav.scrolled .nav-links .nav-contact:hover {
  background: var(--blue-light);
  color: var(--white) !important;
}

.nav-links .nav-contact::after { display: none; }

.nav-hamburger {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(13,31,60,0.16);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-hamburger:hover { background: rgba(232,240,251,0.2); }
.nav.scrolled .nav-hamburger {
  background: var(--white);
  border-color: var(--gray-mid);
}
.nav.scrolled .nav-hamburger:hover { background: var(--blue-pale); }

.nav-backdrop { display: none; }

/* Shared buttons and cards */
.btn,
.btn-apply-open,
.emp-submit-btn {
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 0.8rem 1.8rem;
  letter-spacing: 0.09em;
  box-shadow: 0 8px 18px rgba(13,31,60,0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn-apply-open:hover,
.emp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13,31,60,0.18);
}

.service-full-card,
.about-card,
.value-card,
.team-card,
.perk-card,
.project-card,
.testimonial-card,
.position-card,
.job-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-full-card:hover,
.value-card:hover,
.perk-card:hover,
.project-card:hover,
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.img-placeholder {
  border-radius: var(--radius-sm);
  background: var(--gray-light);
}

.page-hero { padding-top: calc(72px + 3.5rem); }
.page-hero h1 { letter-spacing: 0.025em; }

.section-title {
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-label { letter-spacing: 0.18em; }

.cta-band { background: var(--blue); }
.cta-band p { color: rgba(255,255,255,0.82); }

/* Redesigned footer */
footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-top: 4px solid var(--blue-light);
}

footer::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -250px;
  border-radius: 50%;
  background: rgba(46,106,181,0.16);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.7fr);
  gap: clamp(3rem, 8vw, 7rem);
  max-width: 1240px;
  padding: clamp(3.5rem, 7vw, 5.5rem) 2rem clamp(3rem, 6vw, 4.5rem);
  align-items: start;
}

.footer-logo-main {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.footer-logo-sub {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.2em;
}

.footer-tagline {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  line-height: 1.75;
}

.footer-contact-col {
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.045);
  box-shadow: 0 18px 40px rgba(5,13,25,0.2);
}

.footer-contact-col h4 {
  margin-bottom: 0.25rem;
  padding-bottom: 0.9rem;
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.12);
  font-size: 0.78rem;
}

.footer-contact-item {
  margin: 0;
  padding: 1rem 0;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
}

.footer-contact-item:last-child {
  padding-bottom: 0.25rem;
  border-bottom: 0;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  margin: 0;
  color: var(--blue-light);
}

.footer-contact-item a,
.footer-contact-item a:visited,
.footer-contact-item a:hover,
.footer-contact-item a:active {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 2rem 1.5rem;
  text-align: left;
  color: rgba(255,255,255,0.52);
  border-top-color: rgba(255,255,255,0.12);
  line-height: 1.6;
  letter-spacing: 0.025em;
}

/* Contact page */
.contact-info-strip {
  background: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem) 2rem;
}

.contact-info-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  gap: 1rem;
}

.contact-info-item {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  background: var(--gray-light);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(13,31,60,0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue-light);
  box-shadow: var(--shadow-sm);
}

.contact-icon-wrap {
  border-radius: var(--radius-sm);
  color: var(--white);
}

.contact-info-text { min-width: 0; }

.contact-info-text .ci-value {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.contact-info-text .ci-sub {
  font-weight: 400;
  margin-top: 0.2rem;
}

.contact-workspace {
  background: var(--gray-light);
  padding: clamp(4rem, 8vw, 7rem) 2rem;
}

.contact-workspace-heading {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.contact-workspace-heading p {
  color: var(--gray-text);
  max-width: 620px;
  margin: 1rem auto 0;
}

.contact-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-form-panel.contact-form-card {
  background: var(--white);
  color: var(--gray-dark);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}

.contact-form-card .contact-card-heading {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-mid);
}

.contact-form-card h3 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0;
}

.contact-form-card .form-subtitle {
  color: var(--gray-text);
  margin: 0.4rem 0 0;
}

.contact-form-card .form-group { margin-bottom: 1.15rem; }

.contact-form-card .form-group label {
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: none;
  margin-bottom: 0.45rem;
}

.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
  min-height: 50px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: 1rem;
}

.contact-form-card .form-group input::placeholder,
.contact-form-card .form-group textarea::placeholder { color: var(--gray-text); }

.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px var(--blue-pale);
}

.contact-form-card .form-group textarea { min-height: 150px; }
.contact-submit { width: 100%; }

.contact-form-note {
  margin-top: 0.85rem;
  color: var(--gray-text);
  font-size: 0.78rem;
  text-align: center;
}

.contact-form-card .form-msg.success {
  background: var(--blue-pale);
  color: var(--navy);
}

.hours-section {
  position: static;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.hours-heading {
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.hours-section h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0;
  margin-bottom: 0.45rem;
}

.hours-heading p {
  color: rgba(255,255,255,0.62);
  font-size: 0.86rem;
  line-height: 1.55;
}

.hours-table { max-width: none; }
.hours-table tr { border-color: rgba(255,255,255,0.12); }

.hours-table td {
  color: rgba(255,255,255,0.78);
  padding: 0.82rem 0;
  font-size: 0.88rem;
}

.hours-table td:first-child {
  width: 40%;
  color: var(--white);
}

.hours-closed {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.hours-limited {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--navy);
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Employment application */
.modal-overlay {
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(13,31,60,0.78);
  backdrop-filter: blur(8px);
}

.modal-overlay.active { animation: modalBackdropIn 0.2s ease both; }

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  max-width: 880px;
  max-height: calc(100dvh - clamp(1.5rem, 6vw, 4rem));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(13,31,60,0.45);
  animation: modalPanelIn 0.25s ease both;
}

@keyframes modalPanelIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3.25rem) 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-mid);
}

.modal-header .section-label { margin-bottom: 0.35rem; }

.modal-header h2 {
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.modal-header p {
  max-width: 620px;
  margin-top: 0.65rem;
  color: rgba(255,255,255,0.66);
  font-size: 0.92rem;
}

.modal-close {
  top: 1.1rem;
  right: 1.1rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 1rem;
}

.modal-body {
  padding: 0 clamp(1.5rem, 5vw, 3.25rem) clamp(2rem, 5vw, 3.25rem);
  overscroll-behavior: contain;
  scrollbar-color: var(--blue-light) var(--navy-mid);
}

.emp-section-label {
  font-family: var(--font-condensed);
  color: var(--blue-light);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  padding: 1.7rem 0 0.75rem;
  margin: 0 0 1.25rem;
}

.emp-field-group { margin-bottom: 1.2rem; }

.emp-field-hint {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.66);
  font-size: 0.78rem;
  line-height: 1.5;
}

.emp-label {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.emp-input {
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.emp-input::placeholder { color: rgba(255,255,255,0.42); }

.emp-input:hover { border-color: rgba(255,255,255,0.32); }

.emp-input:focus {
  border-color: var(--blue-light);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(46,106,181,0.2);
}

.emp-three-col { grid-template-columns: 1.3fr 0.75fr 0.9fr; }

.emp-toggle-group {
  border-radius: var(--radius-sm);
  border-color: rgba(255,255,255,0.25);
}

.emp-toggle-btn {
  min-width: 88px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
}

.emp-toggle-option input[type="radio"]:focus-visible + .emp-toggle-btn {
  outline: 3px solid var(--blue-light);
  outline-offset: -3px;
}

.experience-section-header {
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
}

.btn-add-experience,
.experience-entry-actions button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font-condensed);
}

.experience-entry-form,
.experience-saved-card,
.emp-upload-zone { border-radius: var(--radius-md); }

.experience-entry-form { padding: clamp(1rem, 3vw, 1.5rem); }

.emp-upload-zone {
  min-height: 155px;
  background: rgba(255,255,255,0.035);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.emp-upload-zone:hover,
.emp-upload-zone:focus-visible {
  background: rgba(255,255,255,0.065);
  border-color: var(--blue-light);
}

.emp-upload-label,
.emp-submit-btn,
.btn-apply-open { font-family: var(--font-condensed); }

.emp-submit-btn { margin-top: 1.5rem; }

/* Desktop and tablet refinements */
@media (max-width: 1024px) {
  .nav { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-links li a { padding-left: 0.65rem; padding-right: 0.65rem; }
  .contact-content-grid { grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr); }
}

/* Mobile navigation and compact-tablet layout */
@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }

  body.nav-open .nav:not(.scrolled) {
    background: var(--navy);
    border-bottom-color: rgba(255,255,255,0.1);
  }

  .nav {
    height: 68px;
    padding: 0 1rem;
  }

  .nav-logo-img {
    height: 44px;
    max-width: 190px;
  }

  .nav-hamburger {
    display: flex;
    width: 48px;
    height: 44px;
    padding: 0;
    z-index: 1002;
  }

  .nav-hamburger span {
    width: 20px;
    height: 2px;
  }

  .nav-hamburger span:nth-child(2) { width: 14px; }

  .nav-hamburger.open {
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,0.14);
  }

  .nav-hamburger.open span { background: var(--white) !important; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 997;
    background: rgba(13,31,60,0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    display: grid;
    position: fixed;
    inset: 78px 1rem auto;
    z-index: 1000;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 94px);
    padding: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid rgba(204,208,216,0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(13,31,60,0.28);
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .nav-links::before {
    content: 'Menu';
    position: static;
    grid-column: 1 / -1;
    font-family: var(--font-condensed);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-text);
    padding: 0.1rem 0.2rem 0.25rem;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    border: none;
  }

  .nav-links li a {
    min-height: 58px;
    width: 100%;
    justify-content: center;
    padding: 0.8rem 0.7rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-mid);
    background: var(--gray-light);
    color: var(--navy) !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    border-color: var(--navy-mid);
    background: var(--navy-mid);
    color: var(--white) !important;
  }

  .nav-links li:last-child { grid-column: 1 / -1; }

  .nav-links .nav-contact,
  .nav-links .nav-contact.active {
    justify-content: center;
    margin: 0;
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white) !important;
  }

  .nav-links .nav-contact:hover { background: var(--blue-light); }

  .page-hero {
    min-height: 245px;
    padding: calc(68px + 2rem) 1.25rem 2.5rem;
  }

  .hero-slideshow {
    min-height: 680px;
    height: 100svh;
    max-height: 860px;
  }

  .slide-content {
    top: 68px;
    bottom: 130px;
  }

  .slide-content h1 { font-size: clamp(2.2rem, 11vw, 3.35rem); }

  .contact-info-strip { padding: 1.25rem; }
  .contact-info-row { grid-template-columns: 1fr; }
  .contact-info-item { padding: 1rem; }
  .contact-workspace { padding: 3.5rem 1.25rem; }
  .contact-content-grid { grid-template-columns: 1fr; }
  .contact-form-card .form-row { grid-template-columns: 1fr; gap: 0; }
  .hours-section { padding: 1.5rem; }

  .footer-main { padding: 3rem 1.25rem 2.5rem; }
  .footer-contact-col { min-width: 0; }

  .modal-overlay { padding: 0; align-items: stretch; }

  .modal-container {
    max-width: none;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .modal-header {
    padding: 1.5rem 4.6rem 1.25rem 1.25rem;
  }

  .modal-header h2 { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .modal-header p { font-size: 0.86rem; }
  .modal-close { top: 1rem; right: 1rem; }
  .modal-body { padding: 0 1.25rem 2.5rem; }
  .emp-three-col { grid-template-columns: 1fr; gap: 0; }
  .emp-three-col .emp-field-group { margin-bottom: 1.2rem; }
  .emp-three-col .emp-field-group:last-child { margin-bottom: 0; }
  .emp-toggle-group { display: flex; width: 100%; }
  .emp-toggle-option { flex: 1; }
  .emp-toggle-btn { width: 100%; }
  .experience-section-header { align-items: stretch; }
  .experience-section-header .emp-section-label { width: 100%; }
  .btn-add-experience { width: 100%; justify-content: center; }
  .experience-entry-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .experience-entry-actions button { width: 100%; }

  .mission-img,
  .careers-img { min-height: 240px; height: 280px; }
}

@media (max-width: 480px) {
  .contact-workspace-heading { text-align: left; }
  .contact-workspace-heading p { margin-left: 0; }
  .contact-form-panel.contact-form-card { padding: 1.25rem; }
  .hours-table td:first-child { width: 36%; }
  .hours-table td { font-size: 0.82rem; }
  .footer-bottom { font-size: 0.68rem; }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.25rem 1.25rem 2.5rem;
  }

  .footer-contact-col { padding: 1.25rem; }

  .footer-bottom {
    margin: 0 1.25rem;
    padding: 1.1rem 0 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   UNIVERSAL SITE SYSTEM
   This final layer intentionally owns typography and navigation
   so every page renders the same header and font treatment.
══════════════════════════════════════════════════════════════ */
html,
body,
body *,
button,
input,
select,
textarea {
  font-family: var(--font-site) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

body p,
body input,
body select,
body textarea {
  letter-spacing: 0;
}

.nav,
.nav:not(.scrolled),
.nav.scrolled {
  height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background: rgba(7,18,35,0.74) !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-logo-img,
.nav:not(.scrolled) .nav-logo-img,
.nav.scrolled .nav-logo-img {
  width: auto;
  height: 52px;
  max-width: 230px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.28));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav .nav-links li a,
.nav:not(.scrolled) .nav-links li a,
.nav.scrolled .nav-links li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--white) !important;
  text-shadow: none !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
}

.nav .nav-links li a:hover,
.nav:not(.scrolled) .nav-links li a:hover,
.nav.scrolled .nav-links li a:hover {
  background: rgba(232,240,251,0.18);
  color: var(--white) !important;
}

.nav .nav-links li a.active,
.nav:not(.scrolled) .nav-links li a.active,
.nav.scrolled .nav-links li a.active {
  background: transparent;
  color: var(--white) !important;
}

.nav .nav-links li a::after,
.nav:not(.scrolled) .nav-links li a::after,
.nav.scrolled .nav-links li a::after {
  left: 0.8rem;
  right: 0.8rem;
  bottom: 2px;
  height: 2px;
  background: var(--blue-light);
}

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

.nav .nav-links .nav-contact,
.nav .nav-links .nav-contact.active,
.nav:not(.scrolled) .nav-links .nav-contact,
.nav:not(.scrolled) .nav-links .nav-contact.active,
.nav.scrolled .nav-links .nav-contact,
.nav.scrolled .nav-links .nav-contact.active {
  margin-left: 0.45rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  border-color: var(--blue);
  background: var(--blue) !important;
  color: var(--white) !important;
}

.nav .nav-links .nav-contact:hover,
.nav:not(.scrolled) .nav-links .nav-contact:hover,
.nav.scrolled .nav-links .nav-contact:hover {
  border-color: var(--blue-light);
  background: var(--blue-light) !important;
}

.nav .nav-links .nav-contact::after { display: none !important; }

@media (max-width: 1100px) and (min-width: 901px) {
  .nav,
  .nav:not(.scrolled),
  .nav.scrolled {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav .nav-links li a,
  .nav:not(.scrolled) .nav-links li a,
  .nav.scrolled .nav-links li a {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.8rem;
  }

  .nav .nav-links .nav-contact { margin-left: 0.2rem; }
}

@media (max-width: 900px) {
  .nav,
  .nav:not(.scrolled),
  .nav.scrolled,
  body.nav-open .nav,
  body.nav-open .nav:not(.scrolled) {
    height: 68px;
    padding: 0 1rem;
    background: rgba(7,18,35,0.97) !important;
  }

  .nav-logo-img,
  .nav:not(.scrolled) .nav-logo-img,
  .nav.scrolled .nav-logo-img {
    height: 44px;
    max-width: 190px;
  }

  .nav-hamburger,
  .nav.scrolled .nav-hamburger,
  .nav:not(.scrolled) .nav-hamburger {
    display: flex;
    width: 46px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
  }

  .nav-hamburger span,
  .nav.scrolled .nav-hamburger span,
  .nav:not(.scrolled) .nav-hamburger span {
    width: 20px;
    height: 2px;
    background: var(--white) !important;
  }

  .nav-hamburger span:nth-child(2) { width: 14px; }

  .nav-hamburger.open,
  .nav.scrolled .nav-hamburger.open {
    border-color: var(--blue-light);
    background: var(--blue);
  }

  .nav-links {
    display: grid;
    position: fixed;
    inset: 78px 1rem auto;
    z-index: 1000;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 94px);
    padding: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    background: var(--navy-mid);
    box-shadow: 0 24px 70px rgba(0,0,0,0.38);
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    visibility: hidden;
  }

  .nav-links::before {
    content: 'Menu';
    position: static;
    grid-column: 1 / -1;
    padding: 0.1rem 0.2rem 0.25rem;
    color: rgba(255,255,255,0.58);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav-links li { width: 100%; border: 0; }
  .nav-links li:last-child { grid-column: 1 / -1; }

  .nav .nav-links li a,
  .nav:not(.scrolled) .nav-links li a,
  .nav.scrolled .nav-links li a {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    margin: 0;
    padding: 0.75rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9px;
    background: rgba(255,255,255,0.055);
    color: var(--white) !important;
    font-size: 0.84rem !important;
    text-align: center;
  }

  .nav .nav-links li a:hover,
  .nav .nav-links li a.active,
  .nav:not(.scrolled) .nav-links li a:hover,
  .nav:not(.scrolled) .nav-links li a.active,
  .nav.scrolled .nav-links li a:hover,
  .nav.scrolled .nav-links li a.active {
    border-color: var(--blue-light);
    background: var(--blue);
  }

  .nav .nav-links li a::after { display: none !important; }

  .nav .nav-links .nav-contact,
  .nav .nav-links .nav-contact.active,
  .nav:not(.scrolled) .nav-links .nav-contact,
  .nav:not(.scrolled) .nav-links .nav-contact.active,
  .nav.scrolled .nav-links .nav-contact,
  .nav.scrolled .nav-links .nav-contact.active {
    margin: 0;
    border-color: var(--blue-light);
    background: var(--blue) !important;
  }

  .page-hero { padding-top: calc(68px + 2rem); }
}
