/* ============================================
   MOBILE OPTIMIZATION FOR FORGE & FLIGHT ACADEMY
   Targets actual classes from main.css
   ============================================ */

/* HIDE TRUST BAR ON MOBILE */
@media (max-width: 768px) {
  
  /* Hide the trust bar completely on mobile */
  .trust-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Compact logo */
  .logo-text {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
  
  .logo-tagline {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  
  /* Remove sticky header on mobile */
  .site-header {
    position: relative !important;
    top: auto !important;
  }
  
  /* Compact navbar padding */
  .navbar {
    padding: 0.75rem 0 !important;
  }
  
  /* Make hamburger easier to tap */
  .mobile-menu-toggle {
    padding: 12px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  
  /* Ensure no extra body padding */
  body {
    padding-top: 0 !important;
  }
}

/* Tablet - keep trust bar but make it compact */
@media (min-width: 769px) and (max-width: 1024px) {
  
  .trust-bar {
    padding: 0.4rem 0 !important;
  }
  
  .trust-items {
    gap: 1rem !important;
  }
  
  .trust-item {
    font-size: 0.8rem !important;
  }
  
  .trust-icon {
    font-size: 1rem !important;
  }
}

/* Small phones - extra compact */
@media (max-width: 375px) {
  
  .logo-text {
    font-size: 18px !important;
  }
  
  .logo-tagline {
    font-size: 10px !important;
  }
  
  .navbar {
    padding: 0.5rem 0 !important;
  }
}

/* Landscape mode - hide tagline and trust bar */
@media (max-height: 500px) and (orientation: landscape) {
  
  .trust-bar {
    display: none !important;
  }
  
  .logo-tagline {
    display: none !important;
  }
  
  .logo-text {
    font-size: 18px !important;
  }
  
  .navbar {
    padding: 0.5rem 0 !important;
  }
}

/* Desktop - ensure trust bar shows normally */
@media (min-width: 769px) {
  .trust-bar {
    display: block !important;
  }
}

/* ════════════════════════════════════════════════════
   CONTENT MOBILE — below-the-fold sections
   ════════════════════════════════════════════════════ */

/* ── General layout ─────────────────────────────── */
@media (max-width: 768px) {

  /* Container padding */
  .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

  /* Hero text */
  .hero h1 { font-size: 1.9rem !important; line-height: 1.15 !important; }
  .hero-tagline { font-size: 0.85rem !important; }
  .hero-cta { flex-direction: column !important; align-items: stretch !important; }
  .hero-cta .btn { width: 100% !important; text-align: center !important; }

  /* Section headers */
  .section-header h2 { font-size: 1.5rem !important; }

  /* Cards */
  .card { padding: 1.25rem !important; }

  /* Programs / course grid */
  .programs-grid { grid-template-columns: 1fr !important; }

  /* Buyer cards */
  .buyer-card { padding: 1.25rem !important; }

  /* Info stack */
  .info-stack { flex-direction: column !important; }

  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .footer-bottom { flex-direction: column !important; gap: 0.75rem !important; text-align: center !important; }

  /* Quick links */
  .quick-links { flex-direction: column !important; gap: 0.5rem !important; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Checklist inline → stacked */
  .checklist { flex-direction: column !important; }

  /* Buttons */
  .btn-primary,
  .btn-secondary { display: block !important; width: 100% !important; text-align: center !important; }
}

/* ── Five-Pillar grid fix ───────────────────────── */
/* inline style has higher specificity so we need !important */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr !important; }
  .pillar-grid > div { padding: 1rem !important; }
}

/* ── 480px — Small phones ───────────────────────── */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem !important; }

  .section-header h2 { font-size: 1.3rem !important; }

  /* Grid fallbacks */
  .grid-2,
  .grid-3 { grid-template-columns: 1fr !important; }

  /* Form card full-bleed */
  .form-card { padding: 1.5rem 1rem !important; border-radius: 4px !important; }

  /* Course code badge */
  .course-code { font-size: 0.7rem !important; }

  /* Program card */
  .program-card { padding: 1.25rem !important; }
}

/* ── Landscape / tablet ─────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .programs-grid { grid-template-columns: 1fr 1fr !important; }
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
}
