/* NEXAAR — base styles */

:root {
  --blue: #3D5A99;
  --blue-dark: #0B1B34;
  --blue-mid: #1E3A66;
  --orange: #E74A23;
  --orange-dark: #C33C19;
  --ink: #171A21;
  --paper: #FFFFFF;
  --mist: #F5F6F8;
  --line: #E4E6EB;
  --muted: #5B6270;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__logo-dark { display: none; }
.nav__logo-light { display: block; }
.nav.scrolled .nav__logo-dark { display: block; }
.nav.scrolled .nav__logo-light { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav.scrolled .nav__links a:not(.btn) {
  color: var(--ink);
  opacity: 0.75;
}

.nav__links a:not(.btn):hover { opacity: 1; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 32px;
  height: 32px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: all 0.25s ease;
}

.nav.scrolled .nav__toggle span { background: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(231, 74, 35, 0.28);
}

.btn--orange:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 100% at 15% 0%, var(--blue-mid) 0%, var(--blue-dark) 55%, #060E1E 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -160px;
  top: -120px;
  background: radial-gradient(circle, rgba(231,74,35,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  color: #fff;
}

.hero p {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.hero__cta {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero__scroll span {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.3);
  display: block;
  position: relative;
  overflow: hidden;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--orange);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Section shell ---------- */

section { position: relative; }

.section {
  padding: 120px 0;
}

.section--tight { padding: 80px 0; }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  display: block;
}

.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  max-width: 640px;
}

.section-head {
  margin-bottom: 64px;
}

/* fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- What We Do ---------- */

.services {
  background: var(--paper);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper);
  padding: 40px 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.service-card:hover { background: var(--mist); }

.service-card__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
}

.service-card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 28px 0 12px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Where We Play ---------- */

.sectors {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.sectors__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.sectors__list {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--ink);
}

.sectors__list span.dot {
  color: var(--orange);
  font-size: 16px;
}

.sectors__presence {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.sectors__presence strong {
  color: var(--blue);
}

/* ---------- About ---------- */

.about {
  background: var(--paper);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.about h2 { max-width: 420px; }

.about__body p {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.7;
  color: #383D48;
}

.about__body p + p { margin-top: 22px; }

.about__facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.about__fact-label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.about__fact-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  color: var(--blue);
}

/* ---------- Contact ---------- */

.contact {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-dark) 100%);
  color: #fff;
}

.contact .kicker { color: var(--orange); }

.contact h2 { color: #fff; }

.contact__intro {
  margin-top: 20px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.6;
}

.contact__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}

.contact__direct {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 28px;
}

.contact__direct-label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  display: block;
}

.contact__direct-email {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 4px;
  display: inline-block;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__direct-email:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.contact__locations {
  margin-top: 32px;
  display: flex;
  gap: 40px;
}

.contact__locations div span {
  display: block;
}

.contact__locations .loc-city {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.contact__locations .loc-tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

form.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 8px 2px 12px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.form-note.is-success { color: #fff; }
.form-note.is-error { color: var(--orange); }

/* ---------- Footer ---------- */

.footer {
  background: #060E1E;
  color: rgba(255, 255, 255, 0.55);
  padding: 56px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand img {
  height: 26px;
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 14px;
  max-width: 260px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer__col a:hover { color: #fff; }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a { color: rgba(255, 255, 255, 0.4); }
.footer__bottom a:hover { color: #fff; }

.footer__legal-links {
  display: flex;
  gap: 20px;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 160px 0 64px;
  color: #fff;
}

.legal-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  color: #fff;
}

.legal-hero p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
}

.legal-body {
  padding: 72px 0 120px;
}

.legal-body .wrap {
  max-width: 800px;
}

.legal-body h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.75;
  color: #383D48;
}

.legal-body p + p { margin-top: 16px; }

.legal-body ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-body li { margin-bottom: 8px; }

.legal-body a.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.back-link:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .wrap { padding: 0 22px; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.35s ease;
  }

  .nav__links.is-open { right: 0; }

  .nav__links a:not(.btn) { color: #fff; opacity: 0.85; font-size: 18px; }
  .nav.scrolled .nav__links a:not(.btn) { color: #fff; }

  .nav__toggle { display: block; z-index: 110; }

  .nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav.scrolled .nav__toggle.is-open span { background: #fff; }

  .section { padding: 80px 0; }

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

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

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

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

  .contact__locations { flex-direction: column; gap: 16px; }

  .footer__top { flex-direction: column; }

  .footer__links { gap: 32px; }
}
