/* ============================================================
   RESPONSIVE.CSS — الفرسان الثلاثه
   Mobile-First responsive layer — covers all pages
   Breakpoints:
     Mobile  : max-width 576px
     Tablet  : max-width 768px
     Desktop-S: max-width 992px
     Desktop-M: max-width 1200px
   ============================================================ */

/* ----------------------------------------------------------
   0. BASE — box-sizing & images
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------
   1. NAVBAR — HAMBURGER MENU (mobile)
   ---------------------------------------------------------- */

/* Hide nav on mobile by default */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-dark);
    z-index: 9990;
    transition: right 0.35s ease;
    overflow-y: auto;
    padding: 80px 0 40px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .main-nav.nav-open {
    right: 0;
  }
  /* Overlay behind slide-out nav */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9989;
  }
  .nav-overlay.active { display: block; }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0 0 30px;
  }
  .main-nav .nav-list li a {
    display: block;
    padding: 16px 24px;
    color: #fff;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: 'Cairo', sans-serif;
  }
  .main-nav .nav-list li a:hover {
    background: rgba(212,163,70,0.15);
    color: var(--secondary);
  }
  .main-nav .nav-list a::after { display: none; } /* remove hover underline on mobile */

  /* Dropdown in mobile nav: always visible stacked list */
  .has-dropdown .dropdown {
    position: static !important;
    display: block !important;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
  }
  .has-dropdown .dropdown li a {
    padding: 12px 36px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85) !important;
  }

  /* Show hamburger toggle */
  .mobile-menu-toggle {
    display: none !important;
  }
  /* Close icon state */
  .mobile-menu-toggle.is-open::before { content: '✕'; }
  .mobile-menu-toggle:not(.is-open)   { font-size: 18px; }
}
/* Hide the hamburger on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle { display: none !important; }
  .nav-overlay { display: none !important; }
}

/* ----------------------------------------------------------
   2. HERO SECTION
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .hero-content-col {
    text-align: center !important;
  }
  .hero-features-list {
    align-items: center !important;
  }
  .hero-reviews-badge {
    justify-content: center !important;
  }
  .hero-section,
  section.hero {
    padding: 100px 0 60px !important;
    min-height: auto !important;
  }
  .hero-section h1,
  section.hero .hero-title {
    font-size: 28px !important;
    line-height: 1.4 !important;
  }
  section.hero .hero-brand-title {
    max-width: 100% !important;
    justify-items: center !important;
    gap: 7px !important;
  }
  section.hero .hero-brand-kicker {
    font-size: 12.5px !important;
    padding: 5px 12px !important;
  }
  section.hero .hero-brand-name {
    justify-content: center !important;
    gap: 8px !important;
    font-size: clamp(34px, 10.8vw, 48px) !important;
    white-space: nowrap !important;
  }
  section.hero .hero-brand-service {
    font-size: clamp(19px, 6vw, 27px) !important;
    border-bottom-width: 2px !important;
  }
  section.hero .hero-subtitle {
    font-size: 20px !important;
    margin-top: 8px !important;
  }
  section.hero .hero-desc {
    font-size: 15px !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }
  .hero-buttons,
  .cta-buttons {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
  }
  .hero-buttons .btn,
  .cta-buttons .btn { width: 100% !important; max-width: 340px !important; }
  #hero-truck { display: none; } /* truck hidden on small screens */
  
  .quote-calculator {
    padding: 20px !important;
  }
  .price-amount {
    font-size: 26px !important;
  }
}
@media (max-width: 576px) {
  section.hero .hero-title { font-size: 24px !important; }
  section.hero .hero-brand-name { font-size: clamp(29px, 10.4vw, 40px) !important; }
  section.hero .hero-brand-service { font-size: 19px !important; }
  section.hero .hero-subtitle { font-size: 16px !important; line-height: 1.7 !important; }
}

@media (max-width: 360px) {
  section.hero .hero-brand-name {
    font-size: 27px !important;
    gap: 6px !important;
  }

  section.hero .hero-brand-service {
    font-size: 17px !important;
  }
}

/* ----------------------------------------------------------
   3. STATS BAR
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .stats-bar {
    padding: 30px 0 !important;
    margin-top: -40px !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .stat-card {
    padding: 20px 10px !important;
  }
  .stat-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 10px !important;
  }
  .stat-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
  .stat-number {
    font-size: 28px !important;
    margin-bottom: 4px !important;
  }
  .stat-text {
    font-size: 13px !important;
    line-height: 1.4;
  }
}
@media (max-width: 400px) {
  .stats-grid {
    gap: 10px !important;
  }
  .stat-number {
    font-size: 24px !important;
  }
  .stat-text {
    font-size: 12px !important;
  }
}

/* ----------------------------------------------------------
   4. SERVICES GRID
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
  .services-grid { grid-template-columns: 1fr !important; }
}

/* ----------------------------------------------------------
   5. WHY CHOOSE US (2-col grid)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .why-us-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center !important;
  }
  .why-us-image { display: none; } /* Hide image on mobile to save space */
  .features-list { text-align: right !important; }
}

/* ----------------------------------------------------------
   6. HOW IT WORKS STEPS
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr !important; }
}

/* ----------------------------------------------------------
   7. REVIEWS GRID
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr !important; }
}

/* ----------------------------------------------------------
   8. PAGE HERO (inner pages)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .page-hero {
    padding: 90px 20px 40px !important;
    min-height: auto !important;
  }
  .page-hero h1 { font-size: 26px !important; }
  .page-hero p  { font-size: 15px !important; }
}

/* ----------------------------------------------------------
   9. PRICING GRID (services.html / moving-jeddah.html)
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
  .pricing-grid { grid-template-columns: 1fr !important; }
}

/* ----------------------------------------------------------
   10. GALLERY GRID
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 8px; padding-bottom: 8px; }
  .gallery-tab  { flex-shrink: 0; font-size: 14px !important; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr !important; }
}

/* ----------------------------------------------------------
   11. CONTACT PAGE
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .contact-cards-grid {
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
  }
  .contact-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .contact-method-card { padding: 30px 20px !important; }
  .contact-form-wrapper { padding: 25px 18px !important; }
  .contact-info-wrapper { display: none; } /* hide sidebar map on very small screens */
}

/* ----------------------------------------------------------
   12. ABOUT PAGE
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .about-story-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
  .team-grid { grid-template-columns: 1fr !important; }
  .diff-item  { flex-direction: column; text-align: center; }
}

/* ----------------------------------------------------------
   13. BLOG — article layout (TOC sidebar)
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .article-layout {
    display: block !important;
    grid-template-columns: unset !important;
  }
  .toc-sidebar {
    display: none !important; /* hide TOC sidebar on mobile */
  }
  .article-content { max-width: 100% !important; }
}
@media (max-width: 768px) {
  .article-header h1 { font-size: 26px !important; }
  .article-main-image { border-radius: 8px !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
}

/* ----------------------------------------------------------
   14. REVIEWS PAGE — rating summary card
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .rating-summary-card {
    flex-direction: column !important;
    padding: 24px 16px !important;
    margin-top: -30px !important;
  }
}

/* ----------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center !important;
  }
  .footer-links ul, .footer-services ul, .footer-contact ul {
    text-align: center;
  }
}

/* ----------------------------------------------------------
   16. SECTION PADDING — reduce on mobile
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .py-80 { padding-top: 50px !important; padding-bottom: 50px !important; }
  .py-60 { padding-top: 36px !important; padding-bottom: 36px !important; }
  .pb-80 { padding-bottom: 50px !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ----------------------------------------------------------
   17. TYPOGRAPHY — scale down headings
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 26px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 19px !important; }
  .section-title h2 { font-size: 22px !important; }
}

/* ----------------------------------------------------------
   18. BUTTONS — full-width on small screens
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .btn { padding: 12px 20px !important; font-size: 15px !important; }
  .hero-section .btn, section.hero .btn { width: 100%; }
}

/* ----------------------------------------------------------
   19. WHATSAPP FLOATING BUTTON — keep accessible
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px !important;
    left: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }
}

/* ----------------------------------------------------------
   20. TABLES — scroll on mobile (blog pricing table)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ----------------------------------------------------------
   21. NEIGHBORHOOD TAGS — smaller on mobile
   ---------------------------------------------------------- */
@media (max-width: 576px) {
  .tag, .area-tag, .coverage-tag, .neighborhood-tag {
    padding: 7px 14px !important;
    font-size: 13px !important;
  }
}

/* ----------------------------------------------------------
   22. DROPDOWN NAV — desktop only (already handled in mobile above)
   ---------------------------------------------------------- */
@media (min-width: 769px) {
  .has-dropdown { position: relative; }
  .has-dropdown .dropdown { display: none; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
}

/* ----------------------------------------------------------
   23. CTA BANNER
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .cta-banner h2 { font-size: 22px !important; }
  .cta-banner .cta-buttons {
    flex-direction: column !important;
    align-items: center;
    gap: 12px !important;
  }
  .cta-banner .btn { width: 100%; max-width: 280px; }
}

/* ----------------------------------------------------------
   24. HEADER TOP BAR — hide secondary info on mobile
   ---------------------------------------------------------- */
@media (max-width: 576px) {
  .header-top .header-hours { display: none; }
  .header-top .contact-info { justify-content: center; }
}

/* ----------------------------------------------------------
   25. GRID HELPER — prevent overflow
   ---------------------------------------------------------- */
.services-grid,
.stats-grid,
.how-grid,
.reviews-grid,
.team-grid,
.pricing-grid,
.gallery-grid,
.contact-cards-grid,
.blog-grid,
.footer-grid {
  width: 100%;
  overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.custom-fab-container {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
.custom-fab-container.show-fabs {
    transform: translateY(0);
    opacity: 1;
}
.fab-btn-custom {
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; position: relative; text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.fab-call-custom {
    width: 52px; height: 52px; background: var(--primary);
    align-self: center; animation: gentlering 4s infinite;
}
.fab-wa-custom {
    width: 58px; height: 58px; background: #25D366;
    animation: pulse-wa 2s infinite;
}
.fab-btn-custom::after {
    content: attr(data-tooltip); position: absolute; right: 100%;
    margin-right: 14px; background: rgba(28,28,28,0.9); color: #fff;
    padding: 6px 14px; border-radius: 8px; font-size: 14px;
    white-space: nowrap; opacity: 0; visibility: hidden; transition: 0.3s;
    font-family: 'Cairo', sans-serif; font-weight: bold;
}
.fab-btn-custom:hover::after { opacity: 1; visibility: visible; }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes gentlering {
    0%, 10%, 100% { transform: rotate(0deg); }
    2%, 6% { transform: rotate(-8deg); }
    4%, 8% { transform: rotate(8deg); }
}

.burger-menu-custom {
    display: none; position: absolute; top: 50%; transform: translateY(-50%);
    left: 20px; right: auto; width: 44px; height: 44px; background: rgba(10, 92, 54, 0.1);
    border: 1px solid rgba(10, 92, 54, 0.15); border-radius: 50%;
    cursor: pointer; z-index: 10000; flex-direction: column;
    justify-content: center; align-items: center; gap: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.burger-menu-custom:hover, .burger-menu-custom.active {
    background: var(--primary); border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(10, 92, 54, 0.3);
}
.burger-line {
    display: block; width: 20px; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.burger-menu-custom:hover .burger-line, .burger-menu-custom.active .burger-line {
    background: var(--secondary);
}
.burger-menu-custom.active .burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 22px; }
.burger-menu-custom.active .burger-line:nth-child(2) { opacity: 0; transform: scale(0); }
.burger-menu-custom.active .burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }

.drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 23, 14, 0.4); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); z-index: 9998; opacity: 0;
    visibility: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

.drawer-menu-container {
    position: fixed; top: 0; right: -330px; width: 82%; max-width: 320px; height: 100vh;
    background: linear-gradient(145deg, #052b19 0%, #03180e 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    padding: 90px 24px 30px; overflow-y: auto; font-family: 'Cairo', sans-serif;
}
.drawer-menu-container.active { right: 0; }

.drawer-links-wrapper {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px;
}
.drawer-nav-item {
    display: block; width: 100%; text-align: right; padding: 12px 16px;
    font-size: 18px; color: rgba(255, 255, 255, 0.85); font-weight: 700;
    text-decoration: none; border-radius: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease; transform: translateY(15px); opacity: 0;
}
.drawer-menu-container.active .drawer-nav-item {
    transform: translateY(0); opacity: 1;
}
.drawer-menu-container.active .drawer-nav-item:nth-child(1) { transition-delay: 0.05s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(2) { transition-delay: 0.1s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(3) { transition-delay: 0.15s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(4) { transition-delay: 0.2s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(5) { transition-delay: 0.25s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(6) { transition-delay: 0.3s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(7) { transition-delay: 0.35s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(8) { transition-delay: 0.4s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(9) { transition-delay: 0.45s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(10) { transition-delay: 0.5s; }
.drawer-menu-container.active .drawer-nav-item:nth-child(11) { transition-delay: 0.55s; }

.drawer-nav-item:hover, .drawer-nav-item:active {
    background: rgba(255, 255, 255, 0.06); color: var(--secondary); padding-right: 22px;
}

.drawer-cta-wrapper {
    margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; flex-direction: column; gap: 12px; transform: translateY(20px); opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}
.drawer-menu-container.active .drawer-cta-wrapper {
    transform: translateY(0); opacity: 1;
}

.drawer-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 50px; border-radius: 10px; font-size: 16px;
    font-weight: 700; color: #fff; text-decoration: none; transition: all 0.3s ease;
    gap: 8px;
}
.drawer-btn-call {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    box-shadow: 0 4px 15px rgba(212, 163, 70, 0.25); color: var(--primary-dark) !important;
}
.drawer-btn-call:hover {
    box-shadow: 0 6px 20px rgba(212, 163, 70, 0.35); transform: translateY(-2px);
}
.drawer-btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}
.drawer-btn-wa:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); transform: translateY(-2px);
}

/* Premium Floating Dock for Mobile bottom bar */
.sticky-mobile-bar {
    position: fixed;
    bottom: 16px;
    left: 4%;
    right: 4%;
    height: 60px;
    z-index: 9998;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(10, 92, 54, 0.18);
    border: 1px solid rgba(10, 92, 54, 0.08);
    overflow: hidden;
    padding: 6px;
    gap: 6px;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    height: 100%;
    border-radius: 24px;
    transition: var(--transition);
    gap: 8px;
}
.sticky-btn-call {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    box-shadow: 0 4px 12px rgba(212, 163, 70, 0.2);
}
.sticky-btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

@media (max-width: 768px) {
    html { font-size: 15px !important; }
    body { padding-bottom: 0 !important; overflow-x: hidden !important; }
    .burger-menu-custom {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 10000 !important;
    }
    .logo-svg { width: 36px !important; height: 36px !important; }
    .logo-text-green, .logo-text-gold { font-size: 20px !important; }
    .sticky-mobile-bar { display: flex !important; visibility: visible; }
    .header-actions .btn-primary, .desktop-nav, nav ul { display: none !important; }
    section, .container { padding-left: 16px !important; padding-right: 16px !important; }
    .section, section:not(.hero) { padding-top: 40px !important; padding-bottom: 40px !important; }
    h1 { font-size: 28px !important; line-height: 1.4 !important; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 18px !important; }
    p, span, li, a { font-size: 15px; }
    .grid, [class*="grid"], .services-container, .footer-grid, .flex-row {
        grid-template-columns: 1fr !important; flex-direction: column !important;
    }
    .stats-grid,
    .how-grid,
    .mini-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }
    .stats-bar, .stats-container { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px; }
    .card, .article-card, .service-card { width: 100% !important; margin-bottom: 16px !important; }
    img { max-width: 100% !important; height: auto !important; }
    .hero, .hero-section { min-height: auto !important; text-align: center !important; }
    .btn, button, .button { min-height: 48px !important; display: flex; align-items: center; justify-content: center; font-size: 16px !important; }
    .custom-fab-container { bottom: 90px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    section:not(.hero), .container { padding: 60px 32px !important; }
    h1 { font-size: 36px !important; }
    .grid-3, .grid-4, .services-grid, .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Antigravity Premium Mobile Overhaul & Sticky Bottom Bars
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Hide duplicate/conflicting floating buttons on mobile */
  .whatsapp-float, 
  .custom-fab-container,
  #back-to-top {
    display: none !important;
  }
  
  /* 2. Redesign Sticky Mobile Call & WhatsApp Bar */
  .sticky-mobile-bar {
    display: flex !important;
    visibility: visible !important;
    background: rgba(6, 64, 36, 0.88) !important; /* Dark Glassmorphic Green */
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid rgba(212, 163, 70, 0.35) !important;
    box-shadow: 0 10px 30px rgba(6, 64, 36, 0.3) !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 12px !important;
    height: 52px !important;
    border-radius: 26px !important;
    padding: 4px !important;
    gap: 6px !important;
    animation: stickyGlow 4s infinite !important;
    transform: translateY(0);
    opacity: 1;
  }
  
  @keyframes stickyGlow {
    0%, 100% {
      box-shadow: 0 8px 24px rgba(6, 64, 36, 0.25), 0 0 0 rgba(212, 163, 70, 0);
      border-color: rgba(212, 163, 70, 0.35) !important;
    }
    50% {
      box-shadow: 0 8px 30px rgba(6, 64, 36, 0.35), 0 0 12px rgba(212, 163, 70, 0.5);
      border-color: rgba(212, 163, 70, 0.8) !important;
    }
  }
  
  .sticky-mobile-bar .sticky-btn {
    border-radius: 22px !important;
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    height: 100% !important;
    transition: transform 0.2s ease, background 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
  }
  
  .sticky-mobile-bar .sticky-btn-call {
    background: var(--secondary) !important;
    color: var(--white) !important;
  }
  .sticky-mobile-bar .sticky-btn-call:active {
    background: var(--secondary-hover) !important;
    transform: scale(0.96);
  }
  
  .sticky-mobile-bar .sticky-btn-wa {
    background: var(--whatsapp) !important;
    color: var(--white) !important;
  }
  .sticky-mobile-bar .sticky-btn-wa:active {
    background: #1eb253 !important;
    transform: scale(0.96);
  }
  
  /* 3. Footer Mobile Collapsible Accordions */
  .footer-accordion-col h3 {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin-bottom: 0 !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
    font-size: 18px !important;
    color: var(--white) !important;
  }
  
  .footer-accordion-col h3::after {
    content: '▾';
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: var(--secondary) !important;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    margin-right: 10px;
    margin-left: 10px;
  }
  
  .footer-accordion-col.active h3::after {
    transform: rotate(180deg) !important;
    color: var(--white) !important;
  }
  
  .footer-accordion-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
    text-align: right !important;
    padding: 0 10px !important;
    margin: 0 !important;
  }
  
  .footer-accordion-col.active ul {
    max-height: 320px !important;
    padding: 16px 10px !important;
  }
  
  .footer-brand-col {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-brand-col .footer-social-icons {
    justify-content: center;
    margin-top: 15px;
  }
  
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    padding: 0 8px !important;
  }
  
  /* Prevent overlap with mobile bottom bar */
  .footer-bottom {
    padding-bottom: 85px !important;
  }
  
  .footer-bottom-flex {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* Trust strip and hero stats final mobile polish */
@media (max-width: 768px) {
  .stats-bar {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    padding: 12px 0 34px !important;
    border-radius: 0 !important;
  }

  .stats-bar .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .stat-card {
    min-height: 118px !important;
    padding: 14px 8px !important;
    border-radius: 14px !important;
    justify-content: center !important;
  }

  .stat-icon {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 8px !important;
  }

  .stat-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .stat-number {
    font-size: clamp(25px, 8vw, 34px) !important;
    line-height: 1.05 !important;
    margin-bottom: 6px !important;
  }

  .stat-text {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    gap: 8px !important;
  }

  .stat-card {
    min-height: 112px !important;
    padding: 12px 6px !important;
  }

  .stat-number {
    font-size: 24px !important;
  }

  .stat-text {
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   Final Mobile Stability Layer
   Keeps navigation, sticky CTAs, cards, and long Arabic text from colliding.
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 88px !important;
  }

  .site-header {
    z-index: 1000 !important;
  }

  body.drawer-open .site-header {
    z-index: 10004 !important;
  }

  .drawer-overlay {
    z-index: 10001 !important;
  }

  .drawer-menu-container {
    z-index: 10002 !important;
    right: auto !important;
    left: calc(100vw + 12px);
    transform: none !important;
    transition: left 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: min(86vw, 330px) !important;
    max-width: calc(100vw - 28px) !important;
    padding: 86px 18px 28px !important;
    overscroll-behavior: contain;
  }

  .drawer-menu-container.active {
    right: auto !important;
    left: 14vw !important;
    transform: none !important;
  }

  .burger-menu-custom {
    z-index: 10005 !important;
    flex: 0 0 44px;
  }

  body.drawer-open .sticky-mobile-bar {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(18px) !important;
  }

  .sticky-mobile-bar {
    z-index: 900 !important;
    max-width: calc(100vw - 24px);
  }

  .sticky-mobile-bar .sticky-btn {
    min-width: 0;
    white-space: nowrap;
  }

  .header-top .container,
  .header-main .container {
    min-width: 0;
  }

  .header-top .container {
    gap: 8px;
  }

  .contact-info {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px !important;
  }

  .logo a {
    min-width: 0;
    max-width: calc(100vw - 84px);
  }

  .logo-text-green,
  .logo-text-gold {
    white-space: nowrap;
  }

  .hero,
  .hero-section,
  .page-hero {
    overflow: visible !important;
  }

  .hero-container,
  .intro-grid,
  .detailed-service-row,
  .contact-layout,
  .article-layout {
    min-width: 0;
  }

  .hero-feature-item,
  .hero-reviews-badge,
  .features-list li,
  .footer-contact li {
    align-items: flex-start !important;
  }

  .hero-buttons,
  .cta-buttons,
  .calc-wizard-nav {
    width: 100%;
  }

  .hero-buttons .btn,
  .cta-buttons .btn,
  .calc-wizard-nav .btn,
  .service-card .btn,
  .mid-cta .btn {
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    text-align: center;
  }

  .service-card,
  .m-service-card,
  .reason-card,
  .review-card,
  .b-card,
  .pricing-item,
  .contact-method-card,
  .quote-calculator,
  .quote-calculator-section,
  .contact-form-wrapper,
  .hours-card,
  .article-content,
  .featured-post {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  p,
  li,
  a,
  h1,
  h2,
  h3,
  h4,
  .btn,
  .section-label,
  .premium-badge,
  .contact-method-number,
  .coverage-tag-item,
  .area-tag,
  .neighborhood-tag {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .quote-calculator,
  .quote-calculator-section {
    border-radius: 12px !important;
  }

  .calc-cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .calc-card-select {
    padding: 14px 10px !important;
  }

  .calc-grid,
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-column: span 2"] {
    grid-column: auto !important;
  }

  .contact-cards-grid {
    margin-top: 20px !important;
  }

  .contact-map-wrapper iframe {
    min-height: 260px;
  }

  .footer-wave-container {
    margin-top: 20px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .services-grid,
  .pricing-grid,
  .blog-grid,
  .mini-services-grid,
  .reasons-grid,
  .gallery-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .header-main .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .logo-svg {
    width: 32px !important;
    height: 32px !important;
    margin-left: 6px !important;
  }

  .logo-text-green,
  .logo-text-gold {
    font-size: 18px !important;
  }

  .hero,
  section.hero,
  .hero-section {
    padding-top: 82px !important;
    padding-bottom: 46px !important;
  }

  .page-hero {
    padding-top: 78px !important;
    padding-bottom: 34px !important;
  }

  .premium-badge,
  .section-label {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  .hero-feature-item {
    gap: 8px !important;
  }

  .feature-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }

  .stats-grid,
  .how-grid,
  .mini-services-grid,
  .calc-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    padding: 16px 10px !important;
  }

  .sticky-mobile-bar {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    height: 50px !important;
  }

  .sticky-mobile-bar .sticky-btn {
    font-size: 13px !important;
    gap: 5px !important;
  }
}

@media (max-width: 360px) {
  .logo-text-green,
  .logo-text-gold {
    font-size: 16px !important;
  }

  .burger-menu-custom {
    width: 40px !important;
    height: 40px !important;
  }

  .btn,
  button,
  .button {
    font-size: 14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .drawer-nav-item {
    font-size: 16px !important;
    padding: 11px 12px !important;
  }
}

/* Final override: keep hero stats compact as 2x2 on all phone widths */
@media (max-width: 430px) {
  .stats-bar {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .stat-card {
    min-height: 112px !important;
    padding: 12px 6px !important;
  }

  .stat-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .stat-number {
    font-size: clamp(23px, 8vw, 30px) !important;
  }

  .stat-text {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }
}

/* Header brand logo: full name stays readable beside the burger button */
@media (max-width: 768px) {
  .site-logo {
    max-width: calc(100vw - 86px) !important;
    gap: 7px !important;
  }

  .site-logo .logo-svg {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    margin-left: 0 !important;
  }

  .logo-copy {
    gap: 0 !important;
    max-width: calc(100vw - 130px) !important;
  }

  .logo-main {
    font-size: clamp(17px, 5vw, 21px) !important;
    line-height: 1.08 !important;
  }

  .logo-main .logo-text-green,
  .logo-main .logo-text-gold {
    font-size: inherit !important;
  }

  .logo-tagline {
    display: block !important;
    font-size: clamp(9.5px, 3vw, 11.5px) !important;
    line-height: 1.25 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 360px) {
  .site-logo {
    gap: 6px !important;
  }

  .site-logo .logo-svg {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }

  .logo-copy {
    max-width: calc(100vw - 118px) !important;
  }

  .logo-main {
    font-size: 16px !important;
  }

  .logo-tagline {
    font-size: 9px !important;
  }
}

/* Jeddah coverage section */
@media (max-width: 768px) {
  .neighborhoods {
    overflow: visible !important;
    padding-top: 48px !important;
    padding-bottom: 70px !important;
    margin-bottom: 0 !important;
  }

  .faq-section {
    clear: both !important;
    padding-top: 52px !important;
  }
}

@media (max-width: 900px) {
  .coverage-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .coverage-copy {
    text-align: center !important;
  }

  .coverage-highlights,
  .coverage-actions {
    justify-content: center !important;
  }
}

@media (max-width: 576px) {
  .coverage-copy h2 {
    font-size: 25px !important;
  }

  .coverage-copy p {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  .coverage-card {
    padding: 22px 14px !important;
    border-radius: 14px !important;
  }

  .coverage-card h3 {
    font-size: 19px !important;
    text-align: center !important;
  }

  .coverage-neighborhoods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .neighborhood-chip {
    min-height: 40px !important;
    padding: 8px 7px !important;
    font-size: 12.5px !important;
  }

  .coverage-note {
    font-size: 13px !important;
    text-align: center !important;
  }
}

@media (max-width: 340px) {
  .coverage-neighborhoods {
    grid-template-columns: 1fr !important;
  }
}

/* Highest-priority mobile drawer placement */
@media (max-width: 768px) {
  #mobileDrawer.drawer-menu-container {
    right: auto !important;
    left: calc(100vw + 12px);
    transform: none !important;
    transition: left 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  body.drawer-open #mobileDrawer.drawer-menu-container {
    right: auto !important;
    left: 14vw !important;
    transform: none !important;
  }
}

@media (min-width: 384px) and (max-width: 768px) {
  .drawer-menu-container.active,
  body.drawer-open #mobileDrawer.drawer-menu-container {
    left: calc(100vw - 330px) !important;
  }
}

@media (max-width: 768px) {
  #mobileDrawer.drawer-menu-open {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    left: 14vw !important;
    width: min(86vw, 330px) !important;
    max-width: calc(100vw - 28px) !important;
    height: 100vh !important;
    background: linear-gradient(145deg, #052b19 0%, #03180e 100%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4) !important;
    z-index: 10002 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 86px 18px 28px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    font-family: 'Cairo', sans-serif !important;
    transform: none !important;
    visibility: visible !important;
  }

  #mobileDrawer.drawer-menu-open .drawer-nav-item {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  #mobileDrawer.drawer-menu-open .drawer-cta-wrapper {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  body.drawer-open .drawer-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 384px) and (max-width: 768px) {
  #mobileDrawer.drawer-menu-open {
    left: calc(100vw - 330px) !important;
  }
}
