/* ============================================================
   TSO Prestige Protection — Mobile Stylesheet
   Loaded via <link media="(max-width: 768px)"> in index.php
   or via @media queries for progressive enhancement
   ============================================================ */

@media (max-width: 1024px) {
  /* Tablet adjustments */
  .about-grid { gap: 60px; }
  .why-wrap { gap: 60px; }
  .contact-wrap { gap: 60px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 64px; }
  nav { padding: 0 32px; }
  .nav-links { gap: 24px; }
  .section-pad { padding: 80px 40px; }
}

@media (max-width: 768px) {

  /* ── NAVIGATION ── */
  nav {
    height: auto !important;
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav-logo { width: 100%; justify-content: space-between; align-items: center; }
  .nav-logo-img { width: 36px; height: 36px; }
  .nav-logo-main { font-size: 18px; }
  .nav-contact { flex-direction: row; gap: 12px; margin-top: 2px; flex-wrap: wrap; }
  .nav-contact a { font-size: 9px; }

  /* Hamburger toggle */
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; background: none; border: none;
    margin-left: auto;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 1.5px;
    background: var(--gold); transition: all 0.3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

  .nav-links {
    display: none; flex-direction: column; gap: 0;
    width: 100%; margin-top: 12px;
    border-top: 1px solid var(--border-gold);
    padding-top: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 12px 0;
    font-size: 11px; letter-spacing: 2px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
  }
  .nav-links a::after { display: none; }
  .nav-cta {
    display: block; margin-top: 12px; margin-bottom: 4px;
    text-align: center; padding: 14px 24px !important;
    border: 1px solid var(--gold) !important;
  }

  /* ── HERO ── */
  #home {
    height: auto; min-height: 100svh;
    flex-direction: column; align-items: flex-start;
    padding-top: 140px; padding-bottom: 60px;
  }
  .hero-team-panel {
    position: relative; width: 100%; height: 260px;
    margin-top: 40px; order: 2;
  }
  .hero-team-panel::before,
  .hero-team-panel::after { height: 80px; }
  .hero-team-photo {
    object-fit: cover; object-position: center 20%;
    width: 100%; height: 100%;
  }
  .hero-team-frame { top: 16px; left: 16px; right: 16px; bottom: 16px; }
  .hero-oxford-badge { bottom: 20px; left: 20px; padding: 10px 16px; }
  .hero-oxford-badge-text { font-size: 8px; }
  .hero-oxford-badge-sub { font-size: 10px; }

  .hero-content {
    order: 1; padding: 0 20px; padding-top: 0;
    max-width: 100%; animation: none; opacity: 1; transform: none;
  }
  .hero-bg-photo { filter: contrast(1.1) brightness(0.3) saturate(0.55) sepia(0.1); }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.6) 100%); }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-title { font-size: 52px; line-height: 1.05; margin-bottom: 20px; }
  .hero-desc { font-size: 13px; line-height: 1.9; margin-bottom: 32px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn-primary { padding: 14px 36px; width: 100%; text-align: center; }
  .btn-ghost { font-size: 11px; }
  .hero-stats { gap: 28px; margin-top: 40px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 30px; }
  .hero-stat-label { font-size: 8px; }
  .hero-stat-divider { height: 36px; }

  /* ── TICKER ── */
  .ticker-inner { gap: 40px; }
  .ticker span { font-size: 9px; letter-spacing: 2px; }

  /* ── SECTION SHARED ── */
  .section-pad { padding: 60px 20px; }
  .section-title { font-size: 38px; }
  .inaction-header { padding: 60px 20px 40px; }

  /* ── ABOUT ── */
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .about-image { aspect-ratio: 16/9; }
  .about-image-border { display: none; }
  .about-badge { bottom: -16px; left: 16px; width: 110px; height: 110px; }
  .about-badge-num { font-size: 34px; }
  .about-badge-text { font-size: 7px; }
  .pillars { grid-template-columns: 1fr; gap: 12px; }

  /* ── PHOTO STRIP ── */
  .photo-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
    height: auto;
  }
  .ps-caption { opacity: 1; transform: none; font-size: 8px; bottom: 12px; left: 12px; }
  .ps-tag { font-size: 7px; top: 10px; right: 10px; padding: 3px 8px; }

  /* ── SERVICES ── */
  .services-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 24px; }
  .service-num { font-size: 44px; }

  /* ── WHY TSO ── */
  .why-wrap { grid-template-columns: 1fr; gap: 48px; }
  .why-photos { grid-template-rows: 260px 200px; height: auto; }
  .why-quote-text { font-size: 14px; }

  /* ── SUCCESS STORIES ── */
  .testimonials { grid-template-columns: 1fr; }
  .testimonial.featured { grid-column: span 1; grid-template-columns: 1fr; gap: 24px; }
  .testimonial { padding: 32px 24px; }
  .t-text { font-size: 17px; }
  .t-tag { top: 14px; right: 14px; font-size: 8px; }

  /* ── QUOTE CTA ── */
  #quote { padding: 60px 20px; }
  .quote-wrap { grid-template-columns: 1fr; gap: 32px; }
  .quote-title { font-size: 38px; }
  .quote-actions { align-items: flex-start; }
  .btn-navy { width: 100%; text-align: center; }
  .quote-phone { text-align: left; }

  /* ── CONTACT ── */
  .contact-wrap { grid-template-columns: 1fr; gap: 60px; }
  .contact-photo-wrap { height: 200px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .form-submit { grid-column: span 1; }
  .btn-submit { width: 100%; padding: 16px 24px; }

  /* ── FOOTER ── */
  footer { padding: 40px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-logo-wrap { justify-content: center; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 44px; }
  .section-title { font-size: 32px; }
  .photo-strip { grid-template-columns: 1fr; grid-template-rows: repeat(4, 200px); }
}
