/* =============================================
   AEROFOREST — style.css
   Dark cinematic marketing site
   (Design tokens live in variables.css)
   ============================================= */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ===== FOCUS STYLES (Accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--accent);
  opacity: 0.3;
  margin: 0;
}

/* ===== SECTION BASE ===== */
.section {
  padding: clamp(80px, 12vh, 160px) 0;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ===== HEADINGS ===== */
h2 {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h3 {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

p {
  font-weight: 300;
  max-width: 65ch;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85em 2.2em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}

.btn--outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--accent);
  color: var(--bg);
}


/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wordmark */
.navbar__wordmark {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* Desktop nav links */
.navbar__links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.navbar__links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  padding-bottom: 2px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.navbar__links a:hover,
.navbar__links a:focus-visible {
  color: var(--text-primary);
}

.navbar__links a:hover::after,
.navbar__links a:focus-visible::after {
  width: 100%;
}

/* Hamburger button */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X when nav is open */
body.nav-open .navbar__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .navbar__hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.nav-open .navbar__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =============================================
   MOBILE MENU OVERLAY
   ============================================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.nav-overlay__links a {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-overlay__links a:hover {
  color: var(--accent);
}


/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: heroImageIn 4s ease 0.1s forwards;
}

@keyframes heroImageIn {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

/* Content on top */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__content h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero__forest {
  color: var(--text-primary);
  animation: forestGreen 1s ease 0.6s forwards;
}

@keyframes forestGreen {
  from { color: var(--text-primary); }
  to   { color: var(--accent); }
}

.hero__tagline {
  max-width: 55ch;
  color: var(--text-primary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin-top: 1rem;
}

.hero__content .btn {
  margin-top: 2.5rem;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-chevron {
  display: block;
  font-size: 1.75rem;
  color: var(--text-secondary);
  animation: chevron-pulse 2s ease-in-out infinite;
  line-height: 1;
}

@keyframes chevron-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(8px); opacity: 1; }
}


/* =============================================
   MISSION SECTION
   ============================================= */

.mission__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.mission__text h2 {
  color: var(--text-primary);
}

.mission__text p + p {
  margin-top: 1.25rem;
}

.mission__image img {
  width: 100%;
}

/* Stat cards row */
.stats-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}


/* =============================================
   HOW IT WORKS SECTION
   ============================================= */

.how-it-works h2 {
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.step-card__number {
  display: block;
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.step-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.step-card__desc {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  max-width: 65ch;
}

/* Cinematic banner */
.how-banner {
  position: relative;
  margin-top: 5rem;
  border-radius: 4px;
  overflow: hidden;
}

.how-banner__img {
  width: 100%;
  object-fit: cover;
  max-height: 420px;
  border-radius: 4px;
}

.how-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 100%);
  border-radius: 4px;
  pointer-events: none;
}


/* =============================================
   TECH SPECS SECTION
   ============================================= */

.specs h2 {
  margin-bottom: 3rem;
}

.specs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.specs__image img {
  width: 100%;
}

/* Spec table */
.specs__table table {
  width: 100%;
  border-collapse: collapse;
}

.spec-row {
  border-bottom: 1px solid var(--border-subtle);
}

.spec-row td {
  padding: 1rem 0;
  vertical-align: middle;
}

.spec-row__label {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.9rem;
  padding-right: 1.5rem;
  width: 50%;
}

.spec-row__value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}


/* =============================================
   CONTACT SECTION
   ============================================= */

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__inner h2 {
  margin-bottom: 1.5rem;
}

.contact__sub {
  max-width: 55ch;
  margin: 0 auto;
  text-align: center;
}

.contact__inner .btn {
  margin-top: 2.5rem;
}


/* =============================================
   FOOTER
   ============================================= */

.footer {
  text-align: center;
  padding-bottom: 2rem;
  margin-top: 5rem;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 400;
  max-width: none;
  margin: 0 auto;
}


/* =============================================
   RESPONSIVE — TABLET (≥ 768px)
   ============================================= */

@media (min-width: 768px) {
  .navbar__hamburger {
    display: none;
  }

  .navbar__links {
    display: flex;
  }

  .stats-row {
    flex-direction: row;
  }

  .stat-card {
    flex: 1;
  }
}


/* =============================================
   RESPONSIVE — DESKTOP (≥ 1200px)
   ============================================= */

@media (min-width: 1200px) {
  /* Mission: two-column grid */
  .mission__grid {
    grid-template-columns: 55fr 45fr;
    gap: 4rem;
    align-items: center;
  }

  /* Steps: three columns */
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  /* Specs: two-column grid */
  .specs__grid {
    grid-template-columns: 45fr 55fr;
    gap: 4rem;
    align-items: start;
  }

}
