/* ================================
   mobile.css - Mobile-Only Overrides
   Add this as a SEPARATE file
   Link it AFTER style.css in your HTML
===================================*/

/* Mobile Menu Toggle Button - Only visible on mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--tfm-primary, #4a3d9a);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ========================================
   TABLET RESPONSIVE (901px and below)
========================================*/
@media (max-width: 900px) {
  .hero {
    padding: 60px 0 40px !important;
  }

  .hero-inner {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero-visual {
    max-width: 100% !important;
    width: 100% !important;
  }

  .solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }

  .cta-section {
    padding: 40px 24px !important;
    margin: 80px 20px !important;
  }

  .cta-section h2 {
    font-size: 28px !important;
  }
}

/* ========================================
   MOBILE RESPONSIVE (768px and below)
========================================*/
@media (max-width: 768px) {
  /* Show hamburger menu button */
  .mobile-menu-toggle {
    display: block !important;
  }

  /* Header adjustments */
  .header-inner {
    padding: 6px 16px !important;
    min-height: 50px !important;
  }

  .logo-wrap {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .logo-wrap img {
    height: 28px !important;
  }

  .logo-text {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }

  /* Hide navigation by default, slide in from right */
  .nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 80px 24px 24px !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1) !important;
    transition: right 0.3s ease !important;
    gap: 0 !important;
    overflow-y: auto !important;
    z-index: 99 !important;
  }

  /* Show navigation when active */
  .nav.active {
    right: 0 !important;
  }

  .nav a {
    padding: 16px 12px !important;
    font-size: 1rem !important;
    border-bottom: 1px solid #e0e3eb !important;
    display: block !important;
  }

  .nav a:hover {
    background: #e6f0ff !important;
    transform: none !important;
  }

  .nav a.active {
    background: rgba(23, 82, 161, 0.1) !important;
  }

  .nav-cta {
    margin-top: 16px !important;
    text-align: center !important;
    padding: 14px 20px !important;
    border-bottom: none !important;
  }

  /* Hero section mobile */
  .hero {
    padding: 24px 0 30px !important;
    margin-top: 50px !important;
  }

  .hero-inner {
    padding: 0 16px !important;
  }

  .hero h1 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  .hero-subtitle,
  .hero-sub {
    font-size: 0.95rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  /* Buttons full width on mobile */
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100% !important;
    padding: 14px 20px !important;
    justify-content: center !important;
  }

  /* Sections */
  .section {
    padding: 0 16px !important;
    margin: 40px auto !important;
  }

  .section-header {
    margin-bottom: 20px !important;
  }

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

  .section-header p {
    font-size: 0.9rem !important;
  }

  /* All grids to single column */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .solutions-grid,
  .steps-grid,
  .why-grid,
  .pain-bullets,
  .saudi-list,
  .pricing-grid,
  .addons-grid,
  .expectations-grid,
  .audience-categories {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Cards spacing */
  .card,
  .solution-card,
  .pricing-card,
  .step-card,
  .pain-bullet,
  .why-item,
  .saudi-list-item,
  .addon-card,
  .faq-item {
    padding: 16px !important;
  }

  /* Step icons smaller on mobile */
  .step-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.6rem !important;
  }

  /* Saudi examples section */
  .saudi-examples {
    padding: 32px 16px !important;
  }

  .saudi-examples h2 {
    font-size: 1.4rem !important;
  }

  /* CTA section */
  .cta-section {
    padding: 32px 20px !important;
    margin: 60px 16px !important;
    border-radius: 16px !important;
  }

  .cta-section h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .cta-section p {
    font-size: 15px !important;
  }

  .btn-white {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
  }

  /* Footer */
  footer {
    padding: 32px 16px 16px !important;
    margin-top: 60px !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer-section {
    text-align: center !important;
  }

  .footer-bottom {
    font-size: 12px !important;
    padding-top: 16px !important;
  }

  /* Pricing cards */
  .pricing-card {
    padding-top: 16px !important;
  }

  .pricing-badge {
    top: 6px !important;
    right: 12px !important;
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
  }

  .pricing-price {
    font-size: 1.4rem !important;
  }

  /* Content sections (about, etc) */
  .content-section {
    padding: 0 16px !important;
  }

  .content-section h2 {
    font-size: 1.4rem !important;
  }
}

/* ========================================
   EXTRA SMALL MOBILE (380px and below)
========================================*/
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.4rem !important;
  }

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

  .cta-section h2 {
    font-size: 20px !important;
  }

  .logo-text {
    font-size: 0.9rem !important;
  }

  .nav {
    width: 100% !important;
  }
}
