
/* ============================================================
   MOBILE RESPONSIVENESS FIXES
   ============================================================ */

/* Hero: hide SVG on mobile, show below domain search on tablet */
@media (max-width: 991.98px) {
  #hero-svg {
    display: none !important;
  }
  #hero .row {
    flex-direction: column;
  }
  #hero {
    padding: 40px 0 30px;
    min-height: auto;
  }
  .hero-h1, .hero-h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
}

/* Show SVG below domain search on tablets (768-991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero-svg {
    display: flex !important;
    justify-content: center;
    margin-top: 20px;
  }
  #hero-svg svg {
    max-height: 280px;
  }
}

/* Domain TLD grid: 2 columns on mobile */
@media (max-width: 575.98px) {
  .domain-tld-row {
    grid-template-columns: auto 1fr 1fr;
    gap: 6px;
  }
  .domain-tld-item {
    padding: 8px 4px;
  }
  .domain-search-card {
    padding: 16px;
    margin-top: 16px;
  }
  .hero-dots {
    margin-top: 12px;
    margin-bottom: 0;
  }
}

/* Navbar: tighter on small screens */
@media (max-width: 575.98px) {
  #main-navbar .navbar-brand img {
    height: 44px;
  }
  .btn-submit-ticket {
    font-size: 13px !important;
    padding: 9px 14px !important;
  }
}

/* Top bar: hide on mobile (already hidden via d-none d-md-block) */
@media (max-width: 767.98px) {
  #top-bar { display: none !important; }
}

/* Yellow section: tighter on mobile */
@media (max-width: 575.98px) {
  #plans-intro { padding: 40px 0; }
  #plans-intro h2 { font-size: 1.3rem; }
  #plans-intro p { font-size: 13px; }
}

/* Stats: 2x2 grid on mobile */
@media (max-width: 575.98px) {
  #stats .stat-num { font-size: 2rem; }
  #stats .stat-label { font-size: 12px; }
}

/* Pricing tabs: wrap on mobile */
@media (max-width: 575.98px) {
  .pricing-tabs {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    
    scrollbar-width: none;
  }
  .pricing-tabs::-webkit-scrollbar { display: none; }
  .pricing-tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* Plan cards: full width on mobile */
@media (max-width: 575.98px) {
  .plan-card {
    padding: 22px 16px;
  }
  .plan-price { font-size: 1.8rem; }
}

/* Data centers: 2 columns on mobile */
@media (max-width: 575.98px) {
  .dc-item { padding: 8px; }
  .dc-circle { width: 48px; height: 48px; font-size: 0.95rem; }
  .dc-label { font-size: 12px; }
}

/* Service cards: full width on mobile */
@media (max-width: 575.98px) {
  .service-card { padding: 20px 14px; }
  .service-name { font-size: 15px; }
}

/* Portfolio grid: 1 column on mobile */
@media (max-width: 575.98px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .portfolio-tabs {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .portfolio-tabs::-webkit-scrollbar { display: none; }
  .portfolio-tab { flex-shrink: 0; font-size: 12px; padding: 7px 14px; }
}

/* Testimonials grid: 1 column on mobile */
@media (max-width: 575.98px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tcard { padding: 20px 16px; }
}

/* Video testimonials: 1 column on mobile */
@media (max-width: 575.98px) {
  #video-testimonials .col-12:nth-child(n+2) { display: none; }
}

/* FAQ section: stack on mobile */
@media (max-width: 767.98px) {
  #faq .row { flex-direction: column; }
  .faq-question { font-size: 13.5px; }
}

/* Footer: single column on mobile */
@media (max-width: 575.98px) {
  #footer-main .row { gap: 24px; }
  .footer-nav-col { text-align: left; }
  .footer-logo-col { text-align: left; }
  .footer-logo { max-width: 140px; }
}

/* Trust bar: 2x3 grid on mobile */
@media (max-width: 575.98px) {
  #footer-trust-bar .row { gap: 12px; }
  #footer-trust-bar .trust-bar-item img { max-height: 50px; }
  .btn-company-profile { padding: 8px 12px; font-size: 11px; }
  .btn-company-profile .pdf-icon { width: 28px; height: 28px; }
  .btn-company-profile .btn-text strong { font-size: 11px; }
}

/* Newsletter: stack on mobile */
@media (max-width: 575.98px) {
  .newsletter-input-group {
    flex-direction: column;
    border-radius: 12px;
  }
  .newsletter-input {
    border-radius: 12px 12px 0 0 !important;
    padding: 12px 16px;
  }
  .newsletter-btn {
    border-radius: 0 0 12px 12px !important;
    padding: 12px 16px;
    text-align: center;
  }
}

/* Pre-footer CTA: stack on mobile */
@media (max-width: 767.98px) {
  #pre-footer .d-flex {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  #pre-footer p { font-size: 13px; }
}

/* Contact form: full width on mobile */
@media (max-width: 575.98px) {
  .contact-form-card { padding: 20px 16px; }
}

/* Section titles: smaller on mobile */
@media (max-width: 575.98px) {
  .section-title { font-size: 1.2rem; letter-spacing: 0; }
  .section-sub { font-size: 13px; }
}

/* Mega menu: full width on mobile (handled by Bootstrap collapse) */
.mega-menu-wrapper {
  position: absolute;
  width: 100%;
}
@media (max-width: 991.98px) {
  .mega-menu-wrapper {
    position: static;
    box-shadow: none;
    border-top: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .mega-menu-wrapper.show { display: block; }
  .mega-menu-item { padding: 10px 12px; }
}

/* Smooth scroll on iOS */
html {  }

/* Prevent horizontal scroll */
body { overflow-x: hidden; }
.container { overflow-x: hidden; }
