/* ============================================================
   A&A AEROSPACE INC. — STYLESHEET v3
   Concept:  TAKEOFF — pista → ascenso → crucero → altitud
   Palette:  Runway concrete → Sky blue → Deep sky → Night horizon
   Accent:   Runway beacon amber / copper
   Type:     Barlow Condensed + IBM Plex Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* ── TAKEOFF NARRATIVE PALETTE ──────────────────────────── */

  /* Stage 0 — Pre-dawn / Runway  →  header, hero base        */
  --runway-dark:    #0d1b2a;   /* pre-dawn tarmac              */
  --runway-mid:     #1a2d42;   /* runway edge lighting         */

  /* Stage 1 — Rotation / First light  →  intro cards         */
  --dawn-concrete:  #dce3ea;   /* concrete at first light      */
  --dawn-surface:   #edf2f6;   /* polished aluminium in sun    */

  /* Stage 2 — Climb  →  main body sections                   */
  --sky-low:        #b8cfe0;   /* sky at 5,000 ft — base       */
  --sky-mid:        #a4bed2;   /* sky at 15,000 ft             */

  /* Stage 3 — Cruise  →  alternating deep sections           */
  --sky-deep:       #93afc6;   /* sky at 30,000 ft             */

  /* Stage 4 — Altitude  →  footer                            */
  --horizon-night:  #071422;   /* horizon at cruise altitude   */

  /* ── BEACON / ACCENT ────────────────────────────────────── */
  --beacon:         #c47a00;   /* runway beacon — primary CTA  */
  --beacon-bright:  #e08e00;   /* hot beacon — hover           */
  --beacon-subtle:  rgba(196, 122, 0, 0.10);

  /* ── TEXT ───────────────────────────────────────────────── */
  --text-dark:      #0d1b2a;   /* on light surfaces            */
  --text-mid:       #2f4a60;   /* secondary on light           */
  --text-soft:      #5a7a92;   /* muted on light               */
  --text-light:     #e8f0f8;   /* on dark surfaces             */
  --text-light-mid: #7fa0ba;   /* secondary on dark            */

  /* ── BORDERS ────────────────────────────────────────────── */
  --border-light:   rgba(13, 27, 42, 0.09);
  --border-mid:     rgba(13, 27, 42, 0.15);
  --border-dark:    rgba(255, 255, 255, 0.08);
  --border-beacon:  rgba(196, 122, 0, 0.38);

  /* ── TYPE ───────────────────────────────────────────────── */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'IBM Plex Sans', 'Arial', sans-serif;

  /* ── SHAPE ──────────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; }

/* ── BASE ─────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--sky-low);
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

/* ══════════════════════════════════════════════════════════
   STAGE 0 — RUNWAY  |  Header + Hero
   Pre-dawn. On the ground. Dark, focused, ready.
   ══════════════════════════════════════════════════════════ */

/* ── HEADER — pre-dawn tarmac ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-transform: uppercase;
}

.logo span { color: var(--beacon); }

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light-mid);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--text-light); }
.main-nav .active { color: var(--beacon); }

/* ── HERO — takeoff moment ────────────────────────────────── */
.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  /* Airplane on runway at dawn — pista, luz rasante, cielo azul */
  background:
    linear-gradient(
      170deg,
      rgba(7, 20, 34, 0.48) 0%,
      rgba(13, 40, 72, 0.28) 55%,
      rgba(218, 234, 246, 0.05) 100%
    ),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
}

/* Fade hero into the sky body below */
.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #b8cfe0);
  pointer-events: none;
  z-index: 0;
}

.hero        { min-height: 88vh; }
.page-hero,
.small-hero  { min-height: 48vh; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7, 20, 34, 0.50) 0%,
    rgba(7, 20, 34, 0.10) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0 100px;
  max-width: 740px;
}

/* ── LABELS ───────────────────────────────────────────────── */
.eyebrow,
.section-tag {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--beacon);
}

/* In hero, labels are brighter */
.hero .eyebrow,
.page-hero .eyebrow { color: var(--beacon-bright); }

/* Labels in light sections stay beacon */
.section-tag { color: var(--beacon); }

/* ── HEADINGS ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-dark);
}

.hero h1,
.page-hero h1 {
  color: var(--text-light);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 14px 0 22px;
}

.section-heading h2,
.section-copy h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  color: var(--text-dark);
}

h3 { font-size: 1.2rem; color: var(--text-dark); }

.hero-text,
.section-subtext {
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 620px;
}

.hero-text { color: rgba(232, 240, 248, 0.85); }

.section-subtext { color: var(--text-mid); }

/* When subtext is inside a centered heading, center it properly */
.section-heading.center .section-subtext {
  margin: 0 auto;
  max-width: 680px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  margin-right: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease,
              color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--beacon);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 122, 0, 0.30);
}
.btn-primary:hover {
  background: var(--beacon-bright);
  box-shadow: 0 6px 22px rgba(196, 122, 0, 0.45);
}

.btn-secondary {
  border: 1px solid rgba(232, 240, 248, 0.35);
  color: var(--text-light);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--beacon);
  color: var(--beacon-bright);
}

/* ══════════════════════════════════════════════════════════
   STAGE 1 → STAGE 3  |  Page body sections
   Sky getting lighter as you scroll down = climbing
   ══════════════════════════════════════════════════════════ */

.section { padding: 88px 0; }

/* section-dark = deeper sky band, noticeably different from base */
.section-dark {
  background: rgba(147, 175, 198, 0.55);
}

.section-heading { margin-bottom: 38px; }
.section-heading.center { text-align: center; }

.section-copy p,
.contact-preview p,
.message-box p { color: var(--text-mid); }

.section-copy p + p,
.message-box p + p { margin-top: 14px; }

.section-grid,
.services-layout,
.contact-preview-grid,
.certificate-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── INTRO CARDS — rotation / first light ─────────────────── */
.intro-cards {
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── CARD BASE ────────────────────────────────────────────── */
.info-card,
.highlight-box,
.contact-card,
.certificate-box,
.message-box,
.contact-details-box,
.form-card,
.equipment-panel,
.map-card,
.legal-intro-card,
.legal-toc,
.legal-block,
.legal-accordion {
  background: rgba(237, 242, 246, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.08);
}

/* Beacon left stripe on info cards */
.info-card { border-left: 3px solid var(--beacon); }

.info-card h3,
.highlight-box h3,
.contact-card h3,
.equipment-panel h3,
.form-card h3,
.contact-details-box h3,
.legal-toc h3 { margin-bottom: 12px; font-size: 1.1rem; }

.highlight-box ul,
.equipment-list { padding-left: 20px; }

.highlight-box li,
.equipment-list li { color: var(--text-mid); font-size: 0.95rem; }

.highlight-box li + li,
.equipment-list li + li { margin-top: 8px; }

/* ── SERVICE CARDS ────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(237, 242, 246, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-beacon);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.14);
}

.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p  { color: var(--text-mid); font-size: 0.93rem; }

/* ── CERTIFICATE / ABOUT ──────────────────────────────────── */
.certificate-box img { width: 100%; border-radius: var(--radius-sm); }

.signature {
  margin-top: 22px;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-message { max-width: 900px; }

/* ── GALLERY ──────────────────────────────────────────────── */
.gallery-grid { column-count: 4; column-gap: 16px; }

.gallery-card {
  break-inside: avoid;
  margin-bottom: 16px;
  background: rgba(237, 242, 246, 0.82);
  border-radius: var(--radius-md);
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  border-color: var(--border-beacon);
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.12);
}

.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.gallery-card:hover img { transform: scale(1.05); }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-link { margin-top: 12px; }

.contact-link a {
  color: var(--beacon);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.contact-link a:hover { color: var(--beacon-bright); }

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-details-box { margin-top: 28px; }
.contact-details-box p { color: var(--text-mid); font-size: 0.95rem; }
.contact-details-box p + p { margin-top: 6px; }

/* ── FORM ─────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row     { display: flex; flex-direction: column; gap: 16px; }

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; }

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--border-mid);
  color: var(--text-dark);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-soft); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--beacon);
  background: rgba(255, 255, 255, 0.90);
}

.form-button { border: none; cursor: pointer; margin-top: 4px; }
.map-card    { overflow: hidden; padding: 0; }

/* ── LEGAL ────────────────────────────────────────────────── */
.legal-content { max-width: 980px; }
.legal-intro-card { margin-bottom: 26px; }
.legal-intro-card h2 { margin-bottom: 10px; }
.legal-intro-card p { color: var(--text-mid); }
.legal-toc { margin-bottom: 30px; }

.legal-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.legal-toc-grid a {
  background: rgba(194, 216, 238, 0.50);
  color: var(--text-mid);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.legal-toc-grid a:hover {
  background: var(--beacon-subtle);
  color: var(--beacon-bright);
  border-color: var(--border-beacon);
}

.legal-section-group { margin-bottom: 36px; }
.legal-group-heading { margin-bottom: 18px; }
.legal-group-heading h2 { margin-bottom: 8px; font-size: 1.7rem; }
.legal-group-heading p { color: var(--text-mid); }
.legal-block { margin-bottom: 22px; }
.legal-block p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.75; }
.legal-block p + p { margin-top: 12px; }

.legal-accordion {
  margin-bottom: 10px;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease;
}

.legal-accordion[open] { border-color: var(--border-beacon); }

.legal-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  line-height: 1.4;
  color: var(--text-dark);
  transition: background 0.2s ease;
}

.legal-accordion summary:hover { background: var(--beacon-subtle); }
.legal-accordion summary::-webkit-details-marker { display: none; }

.legal-accordion summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--beacon);
  font-size: 1.3rem;
  font-weight: 700;
}

.legal-accordion[open] summary::after { content: "−"; }

.legal-accordion-content { padding: 0 22px 20px; }
.legal-accordion-content p { color: var(--text-mid); font-size: 0.93rem; line-height: 1.75; }
.legal-accordion-content p + p { margin-top: 12px; }

/* ══════════════════════════════════════════════════════════
   STAGE 4 — ALTITUDE  |  Footer
   Deep sky at cruise. Dark, calm, destination ahead.
   ══════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--horizon-night);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 40px 0 22px;
}

.footer-content h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.footer-content p {
  color: var(--text-light-mid);
  font-size: 0.88rem;
  line-height: 1.75;
}

.footer-content > div:first-child h3 { color: var(--beacon); }

.footer-bottom {
  padding: 0 0 30px;
  color: var(--text-light-mid);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  opacity: 0.55;
}

/* ── RESPONSIVE — TABLET ──────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid,
  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .section-grid,
  .services-layout,
  .contact-preview-grid,
  .certificate-section,
  .contact-page-grid,
  .footer-content { grid-template-columns: 1fr; }

  .gallery-grid { column-count: 2; }
}

/* ── RESPONSIVE — MOBILE ──────────────────────────────────── */
@media (max-width: 780px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .main-nav ul { gap: 14px; }

  .hero,
  .page-hero,
  .small-hero { min-height: auto; }

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

  .cards-grid,
  .service-grid,
  .two-columns,
  .legal-toc-grid { grid-template-columns: 1fr; }

  .gallery-grid { column-count: 1; }
  .section { padding: 64px 0; }

  .hero h1,
  .page-hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
}
