/* ============================================================
   AMERICAN AIR CONTROL — Components (Glassmorphism)
   ============================================================ */

/* ---- Scroll Progress ---- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1001; background: transparent; }
.scroll-progress-bar { width: 100%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; transform: scaleX(0); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: all var(--duration) var(--ease);
}
.site-header.scrolled { background: rgba(10, 14, 26, 0.95); box-shadow: var(--shadow-lg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-4); }

/* Logo */
.logo { display: flex; align-items: center; gap: var(--space-3); white-space: nowrap; }
.logo-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary), var(--secondary)); font-size: 1.25rem; box-shadow: var(--shadow-glow); }
.logo-text { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--white); }
.logo-text span { color: var(--primary); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: var(--space-1); }
.nav-link { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); transition: all var(--duration) var(--ease); }
.nav-link:hover { color: var(--white); background: var(--bg-glass); }
.nav-link.active { color: var(--primary); }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: var(--space-3); }

/* Mobile Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); z-index: 1001; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(10, 14, 26, 0.98); backdrop-filter: var(--glass-blur-heavy);
    flex-direction: column; align-items: stretch; padding: calc(var(--header-h) + var(--space-6)) var(--space-6) var(--space-6);
    gap: var(--space-2); box-shadow: var(--shadow-xl); transition: right 0.3s var(--ease); z-index: 999;
  }
  .main-nav.active { right: 0; }
  .nav-link { padding: var(--space-3) var(--space-4); font-size: var(--text-base); }
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
}
.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.glass-card-strong {
  background: var(--bg-glass-strong);
  border-color: var(--border-strong);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-lg);
  font-size: var(--text-sm); font-weight: var(--weight-bold);
  transition: all var(--duration) var(--ease); white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: var(--white); border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-accent:hover {
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--bg-glass); color: var(--fg);
  border-color: var(--border); backdrop-filter: var(--glass-blur);
}
.btn-glass:hover {
  background: var(--bg-glass-hover); border-color: var(--primary); color: var(--primary);
}

.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-subtle); box-shadow: var(--shadow-glow);
}

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-lead { font-size: var(--text-lg); color: var(--fg-muted); line-height: var(--leading-relaxed); margin-top: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-badges { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }

/* Hero floating orbs */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: 0.4; }
.hero-orb-1 { width: 400px; height: 400px; background: var(--primary); top: -10%; right: 10%; opacity: 0.08; }
.hero-orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: 10%; right: 25%; opacity: 0.06; }

/* ---- Badge ---- */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.08em; border-radius: var(--radius-full); }
.badge-primary { background: var(--primary-subtle); color: var(--primary-light); border: 1px solid rgba(0,180,216,0.2); }
.badge-accent { background: rgba(249,115,22,0.1); color: var(--accent-light); border: 1px solid rgba(249,115,22,0.2); }
.badge-glass { background: var(--bg-glass); color: var(--fg); border: 1px solid var(--border); }

/* ---- Service Cards ---- */
.service-card {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity var(--duration) var(--ease);
}
.service-card:hover { background: var(--bg-glass-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card-icon {
  width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5); border-radius: var(--radius-xl);
  background: var(--primary-subtle); border: 1px solid rgba(0,180,216,0.2);
  font-size: 2rem; transition: all var(--duration) var(--ease);
}
.service-card:hover .service-card-icon { box-shadow: var(--shadow-glow); border-color: var(--primary); }
.service-card-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-3); }
.service-card-desc { font-size: var(--text-sm); color: var(--fg-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); }
.service-card-price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--primary); }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-header h2 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-black); margin-top: var(--space-3); }
.section-header p { color: var(--fg-muted); margin-top: var(--space-3); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- Stats ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat-item { text-align: center; padding: var(--space-6); }
.stat-number { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-black); color: var(--primary); }
.stat-label { font-size: var(--text-sm); color: var(--fg-muted); margin-top: var(--space-1); }

@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.testimonial-stars { color: var(--accent); font-size: var(--text-sm); margin-bottom: var(--space-3); }
.testimonial-text { font-size: var(--text-sm); color: var(--fg-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--primary-subtle); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--primary); }
.testimonial-name { font-weight: var(--weight-bold); font-size: var(--text-sm); }
.testimonial-role { font-size: var(--text-xs); color: var(--fg-subtle); }

/* ---- CTA Banner ---- */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);
  padding: var(--space-12);
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,119,182,0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  backdrop-filter: var(--glass-blur);
}
.cta-banner h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--weight-black); margin-bottom: var(--space-2); }
.cta-banner p { color: var(--fg-muted); }
@media (max-width: 768px) {
  .cta-banner { flex-direction: column; text-align: center; padding: var(--space-8); }
}

/* ---- Forms ---- */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-2); color: var(--fg); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: var(--space-3) var(--space-4);
  background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--white); font-size: var(--text-base);
  backdrop-filter: var(--glass-blur);
  transition: all var(--duration) var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-subtle); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-select option { background: var(--bg-surface); color: var(--white); }
.form-status { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-medium); display: none; }
.form-status.error { display: block; background: var(--red-light); color: var(--red); }
.form-status.success { display: block; background: var(--green-light); color: var(--green); }
.form-checkbox { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.form-checkbox input { margin-top: 4px; accent-color: var(--primary); }

/* ---- Footer ---- */
.site-footer { background: rgba(10, 14, 26, 0.95); border-top: 1px solid var(--border); padding: var(--space-16) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); padding-bottom: var(--space-10); border-bottom: 1px solid var(--border); }
.footer-brand p { margin-top: var(--space-4); line-height: var(--leading-relaxed); font-size: var(--text-sm); color: var(--fg-muted); }
.footer-title { font-size: var(--text-sm); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); color: var(--white); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { font-size: var(--text-sm); color: var(--fg-muted); transition: color var(--duration) var(--ease); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: var(--space-6) 0; font-size: var(--text-sm); color: var(--fg-subtle); }
.footer-legal { display: flex; gap: var(--space-6); }
.footer-legal a { color: var(--fg-subtle); }
.footer-legal a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed; bottom: var(--space-6); right: var(--space-6);
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--bg-glass-strong); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; cursor: pointer; z-index: 998;
  opacity: 0; pointer-events: none; transition: all 0.3s var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary); color: var(--white); box-shadow: var(--shadow-glow); }

/* ---- Legal Content ---- */
.legal-content h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.legal-content h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); color: var(--primary); }
.legal-content p { margin-bottom: var(--space-4); color: var(--fg-muted); line-height: var(--leading-relaxed); }
.legal-content ul, .legal-content ol { margin-bottom: var(--space-4); padding-left: var(--space-6); color: var(--fg-muted); }
.legal-content li { margin-bottom: var(--space-2); line-height: var(--leading-relaxed); }
.legal-content strong { color: var(--fg); }
.legal-toc { background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6); margin-bottom: var(--space-8); }
.legal-toc h3 { border: none; margin-top: 0; }
.legal-toc ol { padding-left: var(--space-5); }
.legal-toc a { color: var(--primary); font-weight: var(--weight-medium); }
