/* Aspen Aviation Detailing — Override & Patch Styles */
/* IMPORTANT: This file MUST load AFTER styles-main.css */
/* Contains nuclear sticky nav, mobile fixes, tablet optimizations */






/* ─── BRAND STATEMENT (replaces quote) ────────────────────── */
.statement-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--ivory);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ─── HOW IT WORKS ────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1060px;
  margin: 44px auto 0;
  position: relative;
  z-index: 2;
}
.step-glass-card {
  border-radius: 16px;
  border: 1px solid rgba(248,245,240,0.1);
}
/* step-card dark overrides removed in v18 — main CSS has correct light-on-dark colors */

/* ─── CHEMISTRY TRUST ─────────────────────────────────────── */
.chemistry-trust {
  max-width: 820px;
  margin: 56px auto 0;
}
.chem-trust-inner {
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
}
.chem-trust-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold-lt);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.chem-trust-body {
  font-size: 0.85rem;
  color: rgba(248,245,240,0.75);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}
.chem-trust-body strong { color: var(--ivory); font-weight: 500; }
.chem-trust-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.chem-spec {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  border: 1px solid rgba(158,125,69,0.3);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ─── AIRCRAFT CATEGORIES (simplified pricing) ────────────── */
.aircraft-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 36px auto 0;
}
.ac-cat {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.ac-cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.ac-cat-examples {
  font-size: 0.72rem;
  color: var(--light);
  line-height: 1.6;
}

/* ─── ABOUT SECTION ───────────────────────────────────────── */
#about {
  padding: 80px 28px 0;
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-body {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
  margin-top: 16px;
}

/* Contact form patch overrides removed in v19 — main CSS has correct dark-theme styling */

/* ─── MOBILE STICKY BAR ───────────────────────────────────── */
.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--charcoal);
  border-top: 1px solid rgba(248,245,240,0.1);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
}
.mcb-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(248,245,240,0.8);
  background: rgba(248,245,240,0.06);
  border: 1px solid rgba(248,245,240,0.1);
  transition: all 0.2s;
  min-height: 44px;
}
.mcb-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.mcb-btn.mcb-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ─── v15 responsive additions ────────────────────────────── */
@media (max-width: 768px) {
  .mobile-contact-bar { display: flex; }
  footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  #contact { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .steps-grid { flex-direction: column; align-items: center; gap: 8px; }
  .step-connector { transform: rotate(90deg); padding-top: 0; }
  .step-card { max-width: 100%; }
  .aircraft-categories { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-direct { flex-direction: column; align-items: stretch; }
  .contact-direct .btn-primary,
  .contact-direct .btn-outline { text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .aircraft-categories { grid-template-columns: 1fr; }
}


/* ─── v16c PATCHES ────────────────────────────────────────── */

/* Round all CTA buttons — subtle rounding */
.btn-primary {
  border-radius: 6px !important;
}
.btn-outline {
  border-radius: 6px !important;
}
.btn-text {
  border-radius: 6px !important;
}
.form-submit {
  border-radius: 6px !important;
}
.nav-cta {
  border-radius: 6px !important;
}

/* How It Works background depth */
/* hiw-bg::after moved to main styles */

/* Aircraft bg depth: now handled in main .aircraft-bg::after */

/* Aircraft card refined hover glow */
.aircraft-glass-card {
  padding: 32px 20px;
}
.aircraft-glass-card:hover .aircraft-glass-name {
  color: var(--gold-lt);
}

/* About section: clean ivory with subtle mountain background */
#about {
  padding: 100px 28px;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/aspen-colorado-maroon-bells-mountain-backdrop-aviation.jpg");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.28;
  pointer-events: none;
  filter: saturate(0.8) brightness(0.9);
}
.about-inner {
  position: relative;
  z-index: 1;
  padding: 30px 0 50px;
}

/* Section header centering for dark sections */
#how-it-works .section-h2,
#pricing .section-h2 {
  text-align: center;
}
#how-it-works .section-sub,
#pricing .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#how-it-works .section-eyebrow,
#pricing .section-eyebrow {
  justify-content: center;
  text-align: center;
}
/* Fix eyebrow pseudo-element for centered layout */
#how-it-works .section-eyebrow::before,
#pricing .section-eyebrow::before {
  display: none;
}

/* Based Aircraft photo proper height */
.based-photo {
  height: auto;
  min-height: 500px;
}

/* Addon cards grid fix - ensure proper sizing */
.addons-grid {
  gap: 16px !important;
}

@media (max-width: 768px) {
  #about { padding: 70px 20px; }
  .based-photo { height: 280px !important; }
}



/* Custom form validation */
.form-group.has-error .form-input,
.form-group.has-error select.form-input {
  border-color: rgba(220, 70, 60, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(220, 70, 60, 0.2), inset 0 0 8px rgba(220, 70, 60, 0.05);
}
.form-group.has-error .service-selector,
.form-group.has-error .addon-selector {
  border: 1px solid rgba(220, 70, 60, 0.6);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 0 0 2px rgba(220, 70, 60, 0.15);
}
.form-group.has-error .service-option-card {
  border-color: rgba(220, 70, 60, 0.4);
}
.form-error-msg {
  font-size: 0.72rem;
  color: #E8847C;
  margin-top: 6px;
  padding: 6px 12px;
  background: rgba(220, 70, 60, 0.08);
  border: 1px solid rgba(220, 70, 60, 0.2);
  border-radius: 6px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
  background: rgba(220, 70, 60, 0.1);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(220, 70, 60, 0.3);
  border-radius: 10px;
  color: #F0A09A;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(220, 70, 60, 0.1), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: bannerSlideIn 0.35s ease-out;
}
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-label-recommend {
  font-size: 0.68rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(248,245,240,0.4);
  font-style: italic;
}
.form-submit.success {
  background: #2E8B57 !important;
  border-color: #2E8B57 !important;
  color: var(--ivory) !important;
  pointer-events: none;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.form-submit.success::before {
  content: '\2713';
  font-size: 1.1rem;
}


/* ─── v23 PATCHES ─────────────────────────────────────────── */

/* Hide Aircraft link on mobile */
@media (max-width: 1024px) {
  .nav-hide-mobile { display: none !important; }
}

/* Mobile: smaller submit button, clean required field note, stacked step cards */
@media (max-width: 768px) {
  /* Smaller submit button */
  .form-submit {
    font-size: 0.82rem !important;
    padding: 11px 24px !important;
  }
  
  /* Required field note on one clean line */
  .form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }
  .form-req-note {
    font-size: 0.72rem;
    text-align: center;
    white-space: nowrap;
    display: block;
    letter-spacing: 0.06em;
  }
  
  /* Step cards: force single column on mobile */
  .steps-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    max-width: 500px;
  }
  .step-glass-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller submit on small phones */
  .form-submit {
    font-size: 0.78rem !important;
    padding: 10px 20px !important;
  }
  .form-req-note {
    font-size: 0.68rem;
  }
  
  /* Step cards full width on small screens */
  .steps-grid {
    max-width: 100% !important;
    gap: 12px !important;
  }
}

/* Prevent scroll-to-top on orientation change */
html {
  overflow-anchor: auto;
}



/* ─── iPAD PRO 12.9" LANDSCAPE (≤1400px) ─────────────────── */
@media (min-width: 1025px) and (max-width: 1400px) {
  nav { padding: 20px 40px; }
  nav.scrolled { padding: 14px 40px; }
  section { padding: 72px 48px; }
}

/* ─── v29: NUCLEAR STICKY NAV — last-resort override for all mobile ─── */
@media (max-width: 1024px) {
  nav, nav.on-dark, nav.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: #1a1a1a !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 1px 0 rgba(248,245,240,0.06), 0 4px 16px rgba(0,0,0,0.25) !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    padding-top: max(16px, env(safe-area-inset-top, 16px)) !important;
  }
}

@media (max-width: 768px) {
  .aircraft-bg::before {
    opacity: 0.30 !important;
    filter: brightness(0.8) saturate(0.7) !important;
  }
}

@media (max-width: 768px) {
  #about::before {
    opacity: 0.38 !important;
    filter: saturate(0.9) brightness(0.85) !important;
  }
}
@media (max-width: 480px) {
  #about::before {
    opacity: 0.35 !important;
  }
}
