/* ==========================================================================
   FARIDPUR FASTYCLOUD WHMCS THEME - RESPONSIVE STYLESHEET
   Comprehensive breakpoints for mobile, tablet, laptop and desktop screens
   ========================================================================== */

/* Container Setup */
.container {
  width: 100% !important;
  padding-right: 15px !important;
  padding-left: 15px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1180px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

/* ==========================================================================
   BREAKPOINT: Max-Width 1199px (Laptops & Small Desktops)
   ========================================================================== */
@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .footer-columns-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 25px;
  }
}

/* ==========================================================================
   BREAKPOINT: Max-Width 991px (Tablets & Landscape Mobile)
   ========================================================================== */
@media (max-width: 991px) {
  /* Navigation & Topbar */
  .fasty-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .topbar-right .topbar-link:not(.whatsapp-pulse) {
    display: none;
  }
  
  /* Hero Section */
  .fasty-hero {
    padding: 70px 0 110px;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  /* Domain Search Card */
  .domain-search-card {
    padding: 26px 20px;
  }
  
  .domain-input-group {
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }
  
  .domain-input-group:focus-within {
    box-shadow: none;
  }
  
  .domain-input-group .domain-input-field {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
  }
  
  .domain-input-icon {
    display: none;
  }
  
  .domain-btn-wrap {
    flex-direction: column;
  }
  
  .btn-domain-search, .btn-domain-transfer {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
  
  /* Services & Features */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .pricing-plan-card.featured {
    transform: none;
  }
  
  .pricing-plan-card.featured:hover {
    transform: translateY(-6px);
  }
  
  /* Horizontal Rack Pricing */
  .rack-pricing-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .rack-col-specs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .rack-col-price {
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  
  /* Pre-Footer CTA */
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-cta-whatsapp {
    justify-content: center;
  }
  
  /* Footer */
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

/* ==========================================================================
   BREAKPOINT: Max-Width 767px (Large Phones)
   ========================================================================== */
@media (max-width: 767px) {
  .fasty-topbar {
    padding: 6px 0;
  }
  
  .topbar-left {
    display: none;
  }
  
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .fasty-header .container {
    height: 60px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .brand-logo img {
    height: 28px !important;
    max-width: 135px !important;
    width: auto !important;
  }

  .header-actions {
    gap: 8px !important;
  }

  .btn-cart {
    width: 35px !important;
    height: 35px !important;
    font-size: 13.5px !important;
  }

  .mobile-nav-toggle {
    width: 35px !important;
    height: 35px !important;
    font-size: 15px !important;
  }
  
  .btn-register-primary {
    display: none;
  }

  .btn-signin {
    display: inline-flex !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 16px !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    background: rgba(27, 94, 175, 0.08) !important;
    color: #1b5eaf !important;
    border: 1px solid rgba(27, 94, 175, 0.2) !important;
    text-decoration: none !important;
    line-height: 1 !important;
  }

  .btn-signin:hover {
    background: #1b5eaf !important;
    color: #ffffff !important;
  }
  
  .hero-title {
    font-size: clamp(21px, 5.5vw, 26px);
    line-height: 1.25;
    text-wrap: balance;
    overflow-wrap: break-word;
  }
  
  .section-title {
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.3;
    text-wrap: balance;
    overflow-wrap: break-word;
  }
  
  .hero-btn-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-hero-accent, .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Horizontal Scroll Carousels: Strategic Global Data Centers */
  .locations-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 10px 15px 22px 15px !important;
    margin: 20px -15px 0 -15px !important;
    max-width: none !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }
  .locations-grid::-webkit-scrollbar {
    height: 6px;
  }
  .locations-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  .locations-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
  }
  .locations-grid .location-card {
    flex: 0 0 240px !important;
    min-width: 240px !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }

  /* Mobile Horizontal Scroll Carousels: Customer Stories / Reviews */
  .testimonials-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 15px 24px 15px !important;
    margin: 20px -15px 0 -15px !important;
    max-width: none !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 94, 175, 0.3) transparent;
  }
  .testimonials-grid::-webkit-scrollbar {
    height: 6px;
  }
  .testimonials-grid::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
  }
  .testimonials-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }
  .testimonials-grid .testimonial-card {
    flex: 0 0 85% !important;
    min-width: 280px !important;
    max-width: 340px !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }
  
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* ==========================================================================
   BREAKPOINT: Max-Width 480px (Standard Mobile Phones)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(19px, 5.2vw, 23px);
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: clamp(18px, 4.8vw, 21px);
    line-height: 1.3;
  }

  .domain-search-title {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .domain-search-wrapper {
    margin-top: -30px;
  }
  
  .domain-search-card {
    padding: 18px 14px;
  }
  
  .tld-badges-row {
    gap: 6px;
  }
  
  .tld-item {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  
  .fasty-prefooter-cta {
    padding: 36px 18px;
    border-radius: var(--radius-lg);
  }
  
  .cta-title {
    font-size: clamp(18px, 4.8vw, 21px);
    line-height: 1.3;
  }
}

@media (max-width: 360px) {
  .fasty-header .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  
  .brand-logo img {
    height: 25px !important;
    max-width: 115px !important;
  }
  
  .header-actions {
    gap: 5px !important;
  }
  
  .btn-signin {
    padding: 4px 7px !important;
    font-size: 11px !important;
  }
  
  .hero-title {
    font-size: 19px !important;
  }
  
  .section-title {
    font-size: 18px !important;
  }
}
