/* ==========================================================================
   PERFECTION INDIA SERVICES - RESPONSIVE & MOBILE 320PX MEDIA QUERIES
   Separate Media Query Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLETS & SMALL DESKTOPS (Max-Width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .top-bar {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-visual-card {
    max-width: 540px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   2. MOBILE PHONES (Max-Width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.22;
  }

  .hero-description {
    font-size: 1.025rem;
  }

  .hero-services-mini-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .whatsapp-float {
    display: none !important;
  }

  .trust-strip-section {
    padding: 2.2rem 0;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trust-item {
    padding: 1rem;
    gap: 0.85rem;
  }

  .trust-icon {
    width: 44px;
    height: 44px;
  }

  .trust-number {
    font-size: 1.25rem;
  }

  .trust-label {
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   3. SMALL PHONES (Max-Width: 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar {
  }

  .logo-brand img {
    width: 70px;
  }

  .hero-section {
    padding: 3rem 0 4rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
    white-space: normal;
  }

  .hero-title {
    font-size: 1.85rem;
    margin-bottom: 1.1rem;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-contact-quick {
    width: 100%;
  }

  .hero-services-mini-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-floating-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
    animation: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .trust-item {
    padding: 0.95rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   4. MOBILE (Max-Width: 400px)
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  .logo-brand img {
    width: 60px !important;
  }

  .trust-strip-section {
    padding: 1.8rem 0 !important;
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .trust-item {
    padding: 0.85rem 0.9rem !important;
    gap: 0.75rem !important;
    border-radius: 14px !important;
  }

  .trust-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }

  .trust-number {
    font-size: 1.15rem !important;
  }

  .trust-label {
    font-size: 0.78rem !important;
  }
}

/* --------------------------------------------------------------------------
   5. ULTRA-SMALL MOBILE / IPHONE SE (Max-Width: 320px)
   Special Dedicated Rules for 320px Screens
   -------------------------------------------------------------------------- */
@media (max-width: 320px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Navbar 320px */
  .navbar {
    padding: 12px 0 !important;
  }

  .logo-brand img {
    width: 60px !important;
  }

  .mobile-toggle {
    width: 24px !important;
    height: 17px !important;
  }

  /* Front Banner / Hero Section 320px */
  .hero-section {
    padding: 2.2rem 0 3rem !important;
  }

  .hero-badge {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.75rem !important;
    gap: 0.3rem !important;
    letter-spacing: 0.03em !important;
    white-space: normal !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    max-width: 100% !important;
  }

  .hero-badge svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
  }

  .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0.9rem !important;
    letter-spacing: -0.02em !important;
    word-break: break-word !important;
  }

  .hero-description {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.4rem !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.7rem !important;
    margin-bottom: 1.8rem !important;
  }

  .hero-ctas .btn {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.82rem !important;
    justify-content: center !important;
    border-radius: 40px !important;
  }

  .hero-contact-quick {
    width: 100% !important;
    padding: 0.75rem 0.9rem !important;
    gap: 0.65rem !important;
    border-radius: 12px !important;
  }

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

  .hero-contact-text span {
    font-size: 0.7rem !important;
  }

  .hero-contact-text a {
    font-size: 0.95rem !important;
  }

  /* Right Visual Graphic Card 320px */
  .hero-visual-card {
    padding: 1.1rem 0.85rem !important;
    border-radius: 16px !important;
  }

  .hero-card-header {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
  }

  .hero-logo-box img {
    height: 34px !important;
  }

  .hero-status-pill {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.55rem !important;
  }

  .hero-status-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .hero-card-subtitle {
    font-size: 0.72rem !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-services-mini-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    margin-bottom: 1rem !important;
  }

  .mini-service-box {
    padding: 0.75rem 0.85rem !important;
    border-radius: 12px !important;
    gap: 0.75rem !important;
  }

  .mini-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }

  .mini-title {
    font-size: 0.82rem !important;
  }

  .mini-sub {
    font-size: 0.7rem !important;
  }

  .hero-floating-badge {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: 1rem !important;
    width: 100% !important;
    padding: 0.8rem 1rem !important;
    border-radius: 12px !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    animation: none !important;
  }

  .hero-floating-badge .check-circle {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
  }

  .hero-floating-badge strong {
    font-size: 0.88rem !important;
  }

  .hero-floating-badge span {
    font-size: 0.72rem !important;
  }

  /* Inner Page Hero 320px */
  .page-hero {
    padding: 2.5rem 0 3rem !important;
  }

  .page-hero-title {
    font-size: 1.45rem !important;
  }

  /* Footer 320px */
  .site-footer {
    padding-top: 2.5rem !important;
    padding-bottom: 1.8rem !important;
  }

  .footer-brand img {
    height: 38px !important;
  }

  .footer-brand-desc {
    font-size: 0.84rem !important;
  }

  .footer-heading {
    font-size: 1rem !important;
  }

  .footer-link {
    font-size: 0.84rem !important;
  }

  .footer-contact-item {
    font-size: 0.84rem !important;
  }

  .footer-contact-icon-badge {
    width: 32px !important;
    height: 32px !important;
  }

  .footer-bottom {
    font-size: 0.78rem !important;
  }
}
