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

:root {
  --ink: #0c1b2a;
  --navy: #0e2a4a;
  --blue: #1a7ae8;
  --blue-deep: #0f5fc4;
  --sky: #6eb6ff;
  --mist: #e7f0fa;
  --paper: #f3f7fb;
  --white: #ffffff;
  --muted: #5a6b7d;
  --line: rgba(14, 42, 74, 0.12);
  --shadow: 0 18px 50px rgba(12, 27, 42, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 122, 232, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(110, 182, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #eef4fa 0%, var(--paper) 40%, #f7fafc 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .site-footer {
  margin-top: auto;
}

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

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--navy);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 251, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(12, 27, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  padding-block: 0.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  flex-shrink: 0;
}

.brand img {
  height: 66px;
  width: auto;
  max-width: min(210px, 56vw);
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(26, 122, 232, 0.1);
  color: var(--blue-deep);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(26, 122, 232, 0.28);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(8, 18, 32, 0.88) 0%, rgba(10, 28, 52, 0.72) 48%, rgba(8, 18, 32, 0.55) 100%),
    url("../images/slider-01.jpg") center / cover no-repeat;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  animation: heroZoom 24s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 360px at 18% 78%, rgba(26, 122, 232, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(8, 18, 32, 0.2) 0%, rgba(8, 18, 32, 0.65) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.hero-brand {
  font-family: var(--font);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 14ch;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s var(--ease) both;
}

.hero-lead {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: #f3f7fb;
  font-weight: 500;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.22s var(--ease) both;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

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

/* —— Page banner —— */
.page-banner {
  position: relative;
  padding: 5.5rem 0 3.25rem;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(12, 27, 42, 0.88), rgba(14, 42, 74, 0.72)),
    url("../images/all-title-bg.jpg") center / cover no-repeat;
}

.page-banner h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  animation: rise 0.7s var(--ease) both;
}

.page-banner p {
  margin: 0;
  color: #f3f7fb;
  max-width: 48ch;
  animation: rise 0.7s 0.1s var(--ease) both;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.65rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split .media-frame,
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
}

.split .media-frame img {
  box-shadow: none;
  aspect-ratio: auto;
  height: 100%;
}

.prose-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.prose-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.55rem;
  color: var(--ink);
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 122, 232, 0.15);
}

/* —— Services —— */
.services-band {
  background:
    linear-gradient(180deg, rgba(14, 42, 74, 0.03), transparent),
    var(--white);
  border-block: 1px solid var(--line);
}

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

.service-item {
  padding: 0;
  border: none;
  background: transparent;
}

.service-item img,
.service-item .media-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1rem;
}

.service-item .media-frame img {
  margin-bottom: 0;
  aspect-ratio: auto;
  height: 100%;
}

.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.service-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* —— Clients —— */
.clients {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: center;
}

.clients figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.clients img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: none;
}

.clients figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}

/* —— CTA band —— */
.cta-band {
  background:
    linear-gradient(120deg, var(--navy), #123a66 55%, var(--blue-deep));
  color: var(--white);
  padding: 3rem 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 36ch;
  font-family: var(--font);
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* —— Contact —— */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form,
.contact-aside {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: 0 10px 35px rgba(12, 27, 42, 0.05);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 122, 232, 0.15);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #0f7a45;
}

.form-status.is-error {
  color: #b42318;
}

.contact-aside h3 {
  margin-bottom: 0.85rem;
}

.contact-aside p {
  color: var(--muted);
}

.contact-aside a {
  font-weight: 600;
}

.map-wrap {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* —— Policy / jobs —— */
.policy,
.jobs-panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 10px 35px rgba(12, 27, 42, 0.05);
}

.policy h2,
.policy h3 {
  margin-top: 1.75rem;
}

.policy h2:first-child,
.policy h3:first-child {
  margin-top: 0;
}

.jobs-panel a {
  font-weight: 700;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Scroll image animation —— */
.media-frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  opacity: 0;
  transition:
    transform 1.15s var(--ease),
    opacity 0.85s var(--ease);
  will-change: transform, opacity;
}

.media-frame.is-inview img {
  transform: scale(1);
  opacity: 1;
}

.service-item .media-frame {
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 2px);
}

.service-item .media-frame + h3 {
  margin-top: 0;
}

.jobs-panel .media-frame {
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.clients figure {
  transform: translateY(14px);
  opacity: 0;
  transition:
    transform 0.55s var(--ease),
    opacity 0.55s var(--ease);
}

.clients.is-inview figure,
.clients.is-visible figure {
  transform: none;
  opacity: 1;
}

.clients.is-inview figure:nth-child(1),
.clients.is-visible figure:nth-child(1) { transition-delay: 0.02s; }
.clients.is-inview figure:nth-child(2),
.clients.is-visible figure:nth-child(2) { transition-delay: 0.06s; }
.clients.is-inview figure:nth-child(3),
.clients.is-visible figure:nth-child(3) { transition-delay: 0.1s; }
.clients.is-inview figure:nth-child(4),
.clients.is-visible figure:nth-child(4) { transition-delay: 0.14s; }
.clients.is-inview figure:nth-child(5),
.clients.is-visible figure:nth-child(5) { transition-delay: 0.18s; }
.clients.is-inview figure:nth-child(6),
.clients.is-visible figure:nth-child(6) { transition-delay: 0.22s; }
.clients.is-inview figure:nth-child(7),
.clients.is-visible figure:nth-child(7) { transition-delay: 0.26s; }
.clients.is-inview figure:nth-child(8),
.clients.is-visible figure:nth-child(8) { transition-delay: 0.3s; }
.clients.is-inview figure:nth-child(9),
.clients.is-visible figure:nth-child(9) { transition-delay: 0.34s; }
.clients.is-inview figure:nth-child(10),
.clients.is-visible figure:nth-child(10) { transition-delay: 0.38s; }

.clients figure:hover {
  transform: translateY(-2px);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.75rem;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sky);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.copyright {
  padding-top: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* —— Motion reduce —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; transform: none; inset: 0; }
  .reveal,
  .hero-brand,
  .hero-lead,
  .hero-actions,
  .page-banner h1,
  .page-banner p {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .media-frame img,
  .clients figure {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .split,
  .split-reverse,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .clients {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(12, 27, 42, 0.08);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-inner {
    padding-top: 5.5rem;
  }

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

@media (max-width: 480px) {
  .service-grid,
  .clients {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 54px;
    max-width: min(160px, 58vw);
  }

  .nav {
    min-height: 4.5rem;
  }
}
