/* ========================================
   Overra - Enterprise Aerial Mapping
   ======================================== */

:root {
  --navy: #101010;
  --navy-mid: #101010;
  --text: #171717;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --accent: #1f5fbf;
  --accent-hover: #164a96;
  --accent-light: rgba(31, 95, 191, 0.08);
  --accent-glow: rgba(31, 95, 191, 0.12);
  --border: #d7d7dc;
  --border-light: #ededf0;
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #171717;
  --muted: #5f6368;
  --quiet: #8b8f97;
  --paper: #ffffff;
  --surface: #f6f6f7;
  --line: #d7d7dc;
  --line-soft: #ededf0;
  --blue: #1f5fbf;
  --blue-dark: #164a96;
  --green: #476c5c;
  --clay: #9b7a4c;
  --black: #101010;
  --white: #ffffff;
  --radius: 8px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.container {
  width: min(100% - 56px, 1180px);
  margin: 0 auto;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--white);
  background: rgba(16, 16, 16, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(16, 16, 16, 0.94);
  box-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}

.logo {
  display: flex;
  align-items: center;
}

.brand-logo {
  flex: 0 0 auto;
  width: 124px;
}

.brand-wordmark {
  width: 100%;
  height: auto;
}

.wordmark {
  color: inherit;
  font-size: 1.08rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta {
  color: var(--ink);
  background: var(--white);
}

.nav-links .nav-cta:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-light:hover {
  background: rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  color: var(--white);
  background: var(--black);
}

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

.btn-full {
  width: 100%;
}

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

.hero-scene,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-scene {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #141414 0%, #22201b 46%, #151515 100%);
  background-size: 58px 58px, 58px 58px, auto;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.74) 44%, rgba(16, 16, 16, 0.32)),
    linear-gradient(0deg, rgba(16, 16, 16, 0.72), rgba(16, 16, 16, 0.06) 52%, rgba(16, 16, 16, 0.55));
}

.scene-grid {
  position: absolute;
  inset: 110px 64px 70px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.scene-field {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.055);
}

.field-one {
  right: 10%;
  top: 19%;
  width: 22%;
  height: 24%;
}

.field-two {
  right: 32%;
  top: 34%;
  width: 18%;
  height: 18%;
}

.field-three {
  right: 14%;
  bottom: 18%;
  width: 28%;
  height: 22%;
}

.field-four {
  right: 48%;
  bottom: 22%;
  width: 15%;
  height: 24%;
}

.scene-path {
  position: absolute;
  right: 8%;
  width: 56%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.path-one {
  top: 34%;
}

.path-two {
  top: 48%;
}

.path-three {
  top: 62%;
}

.scene-boundary {
  position: absolute;
  right: 9%;
  top: 24%;
  width: 54%;
  height: 48%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.scene-drone {
  position: absolute;
  right: 30%;
  top: 48%;
  width: 96px;
  height: 96px;
  opacity: 0.76;
  filter: brightness(0) invert(1) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35));
  transform: translate(50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 120px 0 84px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: 4.6rem;
  font-weight: 800;
}

.hero-sub {
  max-width: 700px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.3rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.proof-band {
  padding: 32px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.proof-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.positioning,
.capabilities,
.standards,
.process,
.qualification,
.contact {
  padding: 112px 0;
}

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

.positioning-inner,
.qualification-inner {
  max-width: 920px;
}

.positioning h2,
.qualification h2,
.section-heading h2,
.contact-info h2 {
  max-width: 920px;
  color: var(--ink);
  font-size: 3.35rem;
}

.positioning p:not(.eyebrow),
.qualification p:not(.eyebrow),
.contact-info p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 1.18rem;
  line-height: 1.7;
}

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

.section-heading {
  max-width: 840px;
  margin-bottom: 54px;
}

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

.capability-card {
  min-height: 310px;
  padding: 30px;
  background: var(--white);
}

.capability-card span,
.process-step span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.capability-card h3 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.capability-card p,
.process-step p,
.standard-item p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.standards {
  color: var(--white);
  background: var(--black);
}

.standards .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.standards .section-heading h2 {
  color: var(--white);
}

.standards-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}

.standards-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.standard-item {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.standard-item strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
}

.standard-item p {
  color: rgba(255, 255, 255, 0.62);
}

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

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
}

.process-step h3 {
  margin-top: 36px;
  font-size: 1.38rem;
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 78px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.contact-details div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details strong {
  display: block;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details a,
.contact-details span {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1rem;
}

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

.contact-form-wrap {
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-form {
  padding: 36px;
}

.contact-form h3 {
  margin-bottom: 28px;
  font-size: 1.5rem;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
  min-height: 132px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.75L7 7.25L12.5 1.75' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-result {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.form-result.success,
.form-result.error {
  display: block;
}

.form-result.success {
  color: #245f42;
  border: 1px solid rgba(47, 125, 85, 0.24);
  background: rgba(47, 125, 85, 0.1);
}

.form-result.error {
  color: #9f1d1d;
  border: 1px solid rgba(180, 40, 40, 0.24);
  background: rgba(180, 40, 40, 0.1);
}

.footer {
  padding: 58px 0 0;
  color: rgba(255, 255, 255, 0.58);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
}

.footer-wordmark {
  width: 100%;
}

.footer-logo {
  width: 136px;
}

.footer-desc {
  max-width: 300px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col li,
.footer-col a {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.88rem;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.78rem;
}

.fade-up {
  opacity: 1;
  transform: none;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.fade-up.delay-1 { transition-delay: 80ms; }
.fade-up.delay-2 { transition-delay: 160ms; }
.fade-up.delay-3 { transition-delay: 240ms; }
.fade-up.delay-4 { transition-delay: 320ms; }
.fade-up.delay-5 { transition-delay: 400ms; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-sub {
    font-size: 1.15rem;
  }

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

  .standards-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 40px, 1180px);
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 14px 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 16, 16, 0.98);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 116px 0 72px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-sub {
    font-size: 1.04rem;
  }

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

  .scene-field,
  .scene-path,
  .scene-boundary,
  .scene-grid {
    opacity: 0.62;
  }

  .scene-drone {
    right: 18%;
    top: 62%;
    width: 70px;
    height: 70px;
  }

  .proof-grid,
  .capability-grid,
  .process-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .positioning,
  .capabilities,
  .standards,
  .process,
  .qualification,
  .contact {
    padding: 76px 0;
  }

  .positioning h2,
  .qualification h2,
  .section-heading h2,
  .contact-info h2 {
    font-size: 2.25rem;
  }

  .capability-card,
  .process-step {
    min-height: auto;
  }

  .contact-form {
    padding: 24px;
  }
}

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

  .wordmark {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.18rem;
  }
}

.legal-page .nav-links.active {
  background: rgba(16, 16, 16, 0.98);
}

.legal-page .nav-links.active a {
  color: rgba(255, 255, 255, 0.82);
}

.legal-page .nav-links.active a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
