/* ==========================================================================
   AVIATORIA — Global Stylesheet
   Brand colors/fonts sourced from the live site (www.aviatoria.com):
   red #FF3131 (logo), khaki #6F6352 (official theme_color), black/white,
   League Spartan (headings) + system sans (body).
   ========================================================================== */

:root {
  --red: #ff3131;
  --red-dark: #d81f1f;
  --khaki: #6f6352;
  --khaki-light: #a89c88;
  --ink: #141210;
  --ink-soft: #55504a;
  --paper: #ffffff;
  --paper-alt: #f5f3ef;
  --paper-deep: #ece8e1;
  --header-bg: #0a0a0a;
  --line: rgba(20, 17, 15, 0.1);
  --line-strong: rgba(20, 17, 15, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(20, 17, 15, 0.28);
  --radius-md: 10px;
  --radius-lg: 18px;
  --font-head: "League Spartan", Arial, "Helvetica Neue", sans-serif;
  --font-body: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container-w: 1200px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--khaki);
  margin-bottom: 1em;
}

.section {
  padding: 110px 0;
  position: relative;
}
.section-tight { padding: 70px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--header-bg); }
.section-dark p { color: #b9b4ac; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--paper); }
.section-dark .eyebrow { color: var(--red); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-head p { font-size: 1.05rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 12px 28px -10px rgba(255, 49, 49, 0.55); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--paper);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--paper); }
.btn-outline-ink {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline-ink:hover { border-color: var(--ink); background: rgba(20,17,15,0.04); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  height: 66px;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-chip {
  display: flex;
  align-items: center;
  background: var(--paper);
  border-radius: 8px;
  padding: 5px 9px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.logo-chip img { height: 30px; width: auto; display: block; }
.main-nav ul { display: flex; gap: 6px; }
.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c7c3bd;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav-link:hover { color: var(--paper); }
.nav-link.active { color: var(--red); border-color: var(--red); }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-item-dropdown > .nav-link::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -3px;
}
.nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 10px; min-width: 170px;
  background: var(--header-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
  padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-link {
  display: block; padding: 10px 14px; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: #c7c3bd; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-link:hover { color: var(--paper); background: rgba(255,255,255,0.08); }
.nav-dropdown-link.nav-dropdown-active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--paper);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch .lang-option { opacity: 0.45; transition: opacity 0.2s ease; }
.lang-switch a.lang-option:hover { opacity: 0.8; }
.lang-switch .lang-option.active { opacity: 1; color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--paper); transition: 0.3s ease; margin: 0 auto; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--header-bg);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video[hidden] { display: none; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,5,4,0.45) 0%, rgba(6,5,4,0.55) 45%, rgba(6,5,4,0.92) 100%),
              linear-gradient(90deg, rgba(6,5,4,0.75) 0%, rgba(6,5,4,0.2) 60%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); max-width: 760px; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--paper); }
.hero-sub { font-size: 1.1rem; max-width: 560px; color: #e4e1db; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--red); border-radius: 4px;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { opacity: 1; top: 7px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 7px; } }

/* ---------------- Cards ---------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(255,49,49,0.3); }
.card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255, 49, 49, 0.1);
  color: var(--red);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--red); font-size: 0.9rem; }

/* ---------------- Part search / RFQ ---------------- */
.part-search-card {
  max-width: 760px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px;
}
.part-search-start { display: flex; gap: 14px; flex-wrap: wrap; }
.part-search-start input {
  flex: 1; min-width: 220px;
  background: var(--paper-alt); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 14px 18px; font-size: 1rem; color: var(--ink); font-family: var(--font-body);
}
.part-search-start input:focus { outline: none; border-color: var(--red); }
.rfq-form { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.rfq-form[hidden] { display: none; }
.rfq-intro { font-size: 0.95rem; color: var(--ink); }
.rfq-intro strong { color: var(--red); }

.condition-dropdown { position: relative; }
.condition-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 13px 16px; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  cursor: pointer; text-align: left;
}
.condition-toggle:hover { border-color: var(--red); }
.condition-toggle svg { flex-shrink: 0; transition: transform 0.2s ease; color: var(--ink-soft); }
.condition-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.condition-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 10;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.condition-panel[hidden] { display: none; }
.condition-option {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
  font-size: 0.9rem; color: var(--ink); cursor: pointer; transition: background 0.15s ease;
}
.condition-option:hover { background: var(--paper-alt); }
.condition-option input { accent-color: var(--red); width: 16px; height: 16px; }

/* ---------------- Trusted-by strip ---------------- */
.trusted-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px;
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border-radius: var(--radius-md);
  padding: 16px 22px; width: 168px; height: 84px;
  box-shadow: 0 12px 24px -16px rgba(0,0,0,0.5);
}
.client-logo img {
  max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain;
}
/* A couple of source logos are white-only artwork (made for dark/colored
   backgrounds) — give those a dark chip instead of white so they stay visible. */
.client-logo.on-dark {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: none;
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--header-bg);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,49,49,0.25), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--paper); margin-bottom: 6px; }
.cta-banner p { margin-bottom: 0; color: #c7c3bd; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  background: var(--header-bg);
  overflow: hidden;
}
.page-hero .plane-trail { position: absolute; opacity: 0.12; top: 20px; right: -40px; width: 340px; }
.page-hero h1 { color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.page-hero p { max-width: 620px; font-size: 1.05rem; color: #c7c3bd; }
.page-hero .eyebrow { color: var(--red); }
.breadcrumb { font-size: 0.85rem; color: #9d988f; margin-bottom: 18px; }
.breadcrumb a { color: var(--red); }

/* ---------------- About page ---------------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.vm-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; position: relative;
}
.vm-card .icon { width: 46px; height: 46px; margin-bottom: 18px; color: var(--red); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.value-item { text-align: center; padding: 24px 12px; }
.value-item .icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--khaki); }
.value-item h4 { font-size: 1rem; }
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--paper-deep);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------------- Services page ---------------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 80px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-media { order: 2; }
.service-media {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; position: relative;
  background: var(--paper-deep);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-text .icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255,49,49,0.1); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-text .icon svg { width: 28px; height: 28px; }
.service-text h2 { font-size: 1.8rem; }
.service-list { margin-top: 20px; display: grid; gap: 12px; }
.service-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 0.97rem; }
.service-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--red); }

/* ---------------- Projects page ---------------- */
.project-card {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper);
}
.project-thumb { aspect-ratio: 4/3; background: var(--paper-deep); position: relative; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(10,10,10,0.75); color: var(--paper);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 12px; border-radius: 999px;
}
.project-body { padding: 20px 22px; }
.project-body h3 { font-size: 1rem; margin-bottom: 0; }
.projects-note {
  text-align: center; max-width: 640px; margin: 48px auto 0; padding: 24px 28px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-soft); font-size: 0.92rem;
}

/* ---------------- Contact page ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: flex-start; }
.contact-info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 20px;
}
.contact-info-card .icon { width: 40px; height: 40px; color: var(--red); margin-bottom: 14px; }
.contact-info-card h4 { font-size: 1rem; margin-bottom: 6px; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: 0.25s ease;
}
.social-row a:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.social-row svg { width: 18px; height: 18px; }

.form-card {
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 13px 16px; color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  display: none; background: rgba(111,99,82,0.12); border: 1px solid rgba(111,99,82,0.35);
  color: var(--ink); padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 18px; font-size: 0.9rem;
}
.form-success.is-visible { display: block; }

.map-embed {
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 32px;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--header-bg); padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .logo-chip { display: inline-flex; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; margin-top: 14px; font-size: 0.92rem; color: #b9b4ac; }
.footer-links h4, .footer-contact h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9b4ac; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--red); }
.footer-contact p { font-size: 0.92rem; margin-bottom: 10px; color: #b9b4ac; }
.footer-contact a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center;
  font-size: 0.85rem; color: #8a857c;
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .vm-grid, .values-grid, .about-flex, .service-block, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block.reverse .service-media { order: 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,0.98); backdrop-filter: blur(10px); padding: 30px 24px; transform: translateX(100%); transition: transform 0.3s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 14px 18px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-item-dropdown > .nav-link::after { display: none; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 0 18px; margin-top: 4px;
  }
  .nav-dropdown-link { padding: 10px 18px; font-size: 0.95rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .section { padding: 70px 0; }
  .part-search-card { padding: 28px 20px; }
  .condition-panel { grid-template-columns: repeat(2, 1fr); }
  .client-logo { width: 140px; height: 72px; padding: 12px 16px; }
  .client-logo img { max-height: 34px; }
}
