/* AVOTECH — industrial navy / electric blue / steel silver */
:root {
  --navy-950: #040a14;
  --navy-900: #071527;
  --navy-800: #0b1f3a;
  --navy-700: #123056;
  --blue-500: #1a8cff;
  --blue-400: #3aa0ff;
  --blue-300: #6bb8ff;
  --steel-100: #e8eef6;
  --steel-200: #c5d0e0;
  --steel-400: #8a9bb3;
  --silver: #d7dee8;
  --white: #f7fafc;
  --accent: var(--blue-400);
  --text: var(--steel-100);
  --muted: var(--steel-400);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --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-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

p {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.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;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(4, 10, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(58, 160, 255, 0.12);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  height: 2.35rem;
  width: auto;
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--steel-400);
  text-transform: uppercase;
}

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

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--steel-200);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(197, 208, 224, 0.25);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--steel-100);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), #0d6fd8);
  color: #fff;
  box-shadow: 0 10px 30px rgba(26, 140, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(26, 140, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--steel-100);
  border-color: rgba(197, 208, 224, 0.35);
}

.btn-ghost:hover {
  border-color: var(--blue-400);
  color: #fff;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero — one composition */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 10, 20, 0.92) 0%, rgba(7, 21, 39, 0.78) 42%, rgba(7, 21, 39, 0.35) 100%),
    linear-gradient(to top, rgba(4, 10, 20, 0.95) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 70% 40%, rgba(26, 140, 255, 0.18), transparent 55%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(197, 208, 224, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 208, 224, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black 20%, transparent 75%);
}

.hero-content {
  width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 4rem) 0 5.5rem;
}

.hero-content > * {
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 0 40px rgba(58, 160, 255, 0.25);
  margin-bottom: 1.1rem;
}

.hero-brand em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 20%, var(--blue-300) 55%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 650;
  color: var(--steel-100);
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.hero-lead {
  color: var(--steel-200);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: #fff;
}

.section-lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section--alt {
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(26, 140, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #071527 0%, #040a14 100%);
}

.section--steel {
  background:
    linear-gradient(180deg, rgba(18, 48, 86, 0.35), transparent 40%),
    linear-gradient(180deg, #0a1830, #071527);
}

/* About strip on home */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  color: var(--steel-200);
}

.about-visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 6px;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 10, 20, 0.65), transparent 50%);
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
}

.pillar {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(58, 160, 255, 0.35);
}

.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.pillar span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Services overview */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(197, 208, 224, 0.12);
}

.service-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(197, 208, 224, 0.12);
  transition: background 0.25s ease, padding 0.25s var(--ease);
}

.service-row:hover {
  background: rgba(26, 140, 255, 0.05);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--blue-300);
  letter-spacing: 0.08em;
}

.service-row h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.service-row p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

.service-row .arrow {
  color: var(--blue-400);
  font-size: 1.25rem;
  transition: transform 0.25s var(--ease);
}

.service-row:hover .arrow {
  transform: translateX(4px);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.why-item {
  padding-top: 1.15rem;
  border-top: 2px solid rgba(58, 160, 255, 0.45);
}

.why-item h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(26, 140, 255, 0.22), transparent 55%),
    linear-gradient(120deg, #0b1f3a, #071527 55%, #0a2242);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("../assets/generator.jpg");
  background-size: cover;
  background-position: center;
  mix-blend-mode: luminosity;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 16ch;
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: var(--steel-200);
  max-width: 36ch;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(26, 140, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #0b1f3a, #040a14);
  border-bottom: 1px solid rgba(197, 208, 224, 0.08);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 48ch;
}

/* Service detail blocks */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(197, 208, 224, 0.1);
}

.service-block:last-child {
  border-bottom: 0;
}

.service-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.service-block .tagline {
  color: var(--blue-300);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.service-block .highlight {
  color: var(--steel-200);
  margin: 1.25rem 0 0;
  max-width: 60ch;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
}

.check-grid li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--steel-200);
  font-size: 0.98rem;
}

.check-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--blue-400);
  border-radius: 1px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-facts {
  display: grid;
  gap: 1.5rem;
}

.contact-fact {
  padding-top: 1rem;
  border-top: 1px solid rgba(58, 160, 255, 0.3);
}

.contact-fact dt {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 0.35rem;
}

.contact-fact dd {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}

.contact-fact a:hover {
  color: var(--blue-300);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--steel-200);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(197, 208, 224, 0.22);
  background: rgba(7, 21, 39, 0.7);
  color: var(--white);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.18);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(197, 208, 224, 0.1);
  background: #030912;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 0.85rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--steel-200);
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--blue-300);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(197, 208, 224, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

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

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Quote */
.quote {
  margin: 2rem 0 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--blue-400);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--steel-100);
}

/* Levels on services */
.level-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.level {
  padding: 1rem 0;
  border-top: 1px solid rgba(58, 160, 255, 0.4);
}

.level strong {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 0.25rem;
}

.level span {
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .pillar-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .level-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-row .arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 1.75rem, 1120px);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(4, 10, 20, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(197, 208, 224, 0.1);
    font-size: 1.05rem;
  }

  .brand-text {
    display: none;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

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

  .why-grid,
  .pillar-row,
  .level-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 16rem;
  }
}

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

  .hero-media img,
  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
