:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #18202b;
  --muted: #647182;
  --line: #dce3eb;
  --brand: #0b74b8;
  --brand-dark: #0b4a7a;
  --accent: #009fe2;
  --warn: #e4b04a;
  --shadow: 0 18px 60px rgba(22, 32, 43, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

body.plain-page {
  background: var(--surface);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open,
.plain-page .site-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 30px rgba(20, 32, 44, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand,
.plain-page .brand {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 0.1rem;
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.74;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 750;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.site-header.is-scrolled .site-nav a,
.site-header.is-open .site-nav a,
.plain-page .site-nav a {
  color: var(--ink);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a:focus-visible {
  background: #edf5fb;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle,
.plain-page .nav-toggle {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -0.42rem;
}

.nav-toggle-lines::after {
  top: 0.42rem;
}

.hero {
  position: relative;
  min-height: 92svh;
  isolation: isolate;
  overflow: hidden;
  background: #0d2130;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 24, 36, 0.92) 0%, rgba(8, 24, 36, 0.78) 36%, rgba(8, 24, 36, 0.24) 74%),
    linear-gradient(180deg, rgba(8, 24, 36, 0.22), rgba(8, 24, 36, 0.58));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100vw - 2.5rem));
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 7rem 0 4rem;
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.3rem, 4.15vw, 4.25rem);
  line-height: 1.04;
}

.hero-text {
  max-width: 650px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--accent);
  color: #06243a;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 3rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-facts div {
  padding: 1rem;
  background: rgba(8, 24, 36, 0.34);
}

.hero-facts dt {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0.15rem 0 0;
  color: #fff;
  font-weight: 720;
}

.hero-facts dd a {
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 0.2em;
}

.hero-facts dd a:hover,
.hero-facts dd a:focus-visible {
  color: var(--accent);
  outline: none;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max)) / 2));
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
}

.section-intro {
  background: var(--surface);
}

.section-intro .section-grid {
  align-items: center;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 220px;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(22, 32, 43, 0.05);
}

.service-card h3,
.process-list h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
}

.service-card p,
.process-list p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.section-process {
  background: #102536;
  color: #fff;
}

.section-process .eyebrow {
  color: var(--warn);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.process-list article {
  min-height: 230px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
}

.process-list p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  background: var(--surface);
}

.contact-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
}

.contact-copy p:last-child {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #edf5fb;
  color: var(--ink);
  font-style: normal;
}

.contact-card strong {
  margin-bottom: 0.4rem;
  font-size: 1.45rem;
}

.contact-card a {
  color: var(--brand-dark);
  font-weight: 780;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.helpdesk-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.7rem;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #fff !important;
  padding: 0.72rem 0.9rem;
  text-decoration: none;
}

.legal-main {
  padding: 8rem max(1.25rem, calc((100vw - var(--max)) / 2)) 5rem;
}

.legal-hero {
  max-width: 880px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.05;
}

.legal-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.legal-content {
  display: grid;
  max-width: 900px;
  gap: 2rem;
  margin-top: 3rem;
}

.legal-content section {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.18;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content p {
  margin: 0.75rem 0 0;
}

.legal-content ul {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--brand-dark);
  font-weight: 760;
  text-underline-offset: 0.22em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 760;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-grant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 180px);
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.footer-grant img {
  width: 128px;
  height: auto;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 4.8rem;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-header.is-scrolled .site-nav a,
  .site-header.is-open .site-nav a {
    color: var(--ink);
  }

  .section-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand small {
    display: none;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.35rem;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .nav-toggle {
    width: 2.55rem;
    height: 2.55rem;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 24, 36, 0.94), rgba(8, 24, 36, 0.72)),
      linear-gradient(180deg, rgba(8, 24, 36, 0.1), rgba(8, 24, 36, 0.6));
  }

  .hero-inner {
    width: min(var(--max), calc(100vw - 2rem));
    min-height: 94svh;
    padding-top: 6.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.02;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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