:root {
  --navy-950: #050f2c;
  --navy-900: #071944;
  --navy-800: #0e2858;
  --navy-700: #173a72;
  --gold: #75631f;
  --gold-light: #d9ca86;
  --ink: #111827;
  --muted: #586273;
  --line: #dbe1ea;
  --surface: #f4f6f9;
  --white: #ffffff;
  --container: 1180px;
  --shadow: 0 24px 70px rgba(5, 15, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 6px;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(7, 25, 68, 0.1);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(5, 15, 44, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: block;
  width: 184px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: #263248;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--navy-700);
}

.main-nav .nav-contact {
  padding: 10px 17px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 5px;
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact:focus-visible {
  color: var(--white);
  background: var(--navy-700);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-content: center;
  gap: 5px;
  padding: 0;
  color: var(--navy-900);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.menu-button span:not(.sr-only) {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  min-height: 760px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

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

.hero-image {
  background-image: url("assets/armasko-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 15, 44, 0.98) 0%, rgba(5, 15, 44, 0.92) 38%, rgba(5, 15, 44, 0.38) 72%, rgba(5, 15, 44, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 15, 44, 0.48), transparent 45%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  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: 56px 56px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 112px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold-light);
}

.section-label {
  color: var(--gold);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 5.6vw, 5.35rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: var(--navy-950);
  background: var(--gold-light);
}

.button-primary:hover {
  background: #eadb94;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.54);
}

.section {
  padding: 108px 0;
}

.intro-grid,
.section-heading-row,
.approach-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.13;
  letter-spacing: -0.032em;
}

.intro-copy {
  padding-top: 40px;
  color: var(--muted);
  font-size: 1.07rem;
}

.intro-copy p {
  margin: 0 0 18px;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 27px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
}

.fact:last-child {
  border-right: 0;
}

.fact-value {
  color: var(--navy-900);
  font-size: 1.25rem;
  font-weight: 800;
}

.fact-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-dark {
  color: var(--white);
  background: var(--navy-950);
}

.section-label-light {
  color: var(--gold-light);
}

.section-dark h2,
.contact h2 {
  color: var(--white);
}

.section-heading-row > p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.02rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 62px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.capability-card {
  min-height: 290px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--navy-950);
  transition: background-color 180ms ease;
}

.capability-card:hover {
  background: var(--navy-900);
}

.card-number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.capability-card h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.27rem;
}

.capability-card p {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
}

.approach {
  background: var(--surface);
}

.approach-heading {
  position: sticky;
  top: 128px;
}

.approach-heading > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-list > li > span {
  padding-top: 3px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.process-list h3 {
  margin: 0 0 5px;
  color: var(--navy-900);
  font-size: 1.1rem;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.contact {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(167, 149, 76, 0.2), transparent 28%),
    var(--navy-900);
}

.contact h2 {
  max-width: 680px;
}

.contact-grid > div > p:not(.section-label) {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.7);
}

.button-gold {
  color: var(--navy-950);
  background: var(--gold-light);
}

.contact-details {
  display: grid;
  gap: 26px;
  margin: 10px 0 0;
  padding: 0;
  font-style: normal;
}

.contact-details div {
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-details span {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.site-footer {
  padding: 38px 0;
  color: #657084;
  background: var(--white);
}

.footer-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.footer-grid > div img {
  width: 150px;
  height: 46px;
  margin-bottom: 12px;
  object-fit: cover;
  object-position: center;
}

.footer-grid p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .menu-button {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 24px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

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

  .main-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-contact {
    margin-top: 14px;
    padding: 12px 16px;
    text-align: center;
    border-bottom: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 15, 44, 0.97), rgba(5, 15, 44, 0.72));
  }

  .intro-grid,
  .section-heading-row,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .approach-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand {
    width: 154px;
    height: 46px;
  }

  .main-nav {
    inset: 70px 0 auto;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 98px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 80px 0;
  }

  .fact-row {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .fact {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

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

  .card-number {
    margin-bottom: 24px;
  }

  .process-list li {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
