/* ==========================================================================
   Master Responsive Stylesheet for Mobile, Tablet & Desktop
   ========================================================================== */

/* Tablet & iPad Breakpoints (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-grid,
  .showcase-grid,
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

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

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

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

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

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

/* Mobile Devices & Phones (<= 768px) */
@media (max-width: 768px) {
  .top-bar {
    display: none; /* Hide top notification bar on mobile to optimize view area */
  }

  .site-header {
    padding: 0.2rem 0;
  }

  .nav-inner {
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-wrap {
    margin-right: 0;
    padding-right: 0;
    margin-left: auto;
  }

  [lang="en"] .logo-wrap {
    margin-left: 0;
    margin-right: auto;
  }

  .logo-img {
    height: 46px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    object-position: right center;
    margin-right: 0;
    padding-right: 0;
  }

  [lang="en"] .logo-img {
    object-position: left center;
  }

  .footer-logo {
    height: 50px;
    width: auto;
    max-width: 220px;
    margin-right: 0;
    margin-left: auto;
    display: block;
    object-fit: contain;
    object-position: right center;
    padding-right: 0;
  }

  [lang="en"] .footer-logo {
    margin-left: 0;
    margin-right: auto;
    object-position: left center;
  }

  .nav-cta-group .btn-gold {
    display: none; /* Hide top header CTA button on mobile; floating bar covers it */
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--surface-cream);
    border: 1px solid var(--border-gold);
    color: var(--primary);
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
    transition: var(--transition);
    border-left: 2px solid var(--border-gold);
    z-index: 9999;
    overflow-y: auto;
  }

  [lang="en"] .nav-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 2px solid var(--border-gold);
  }

  .nav-menu.active {
    right: 0;
  }

  [lang="en"] .nav-menu.active {
    left: 0;
  }

  .nav-link {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  /* Hero Mobile Layout */
  .hero-section {
    padding: 3.5rem 0 4.5rem 0;
  }

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

  .hero-desc {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-features-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-img {
    height: 320px;
  }

  .hero-badge-floating {
    position: static;
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
    box-shadow: var(--shadow-md);
  }

  /* Section Padding Mobile */
  .gbp-trust-section,
  .services-section,
  .reviews-section,
  .banner-showcase,
  .coverage-section,
  .details-section,
  .steps-section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  /* Grids to Single Column */
  .gbp-grid,
  .services-grid,
  .reviews-grid,
  .steps-grid,
  .districts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* GBP Banner Box Mobile */
  .gbp-banner-box {
    padding: 1.75rem 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .gbp-badge-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .gbp-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .gbp-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Service Card Mobile */
  .service-img-wrap {
    height: 220px;
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .card-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Review Cards Mobile */
  .review-card {
    padding: 1.5rem 1.25rem;
  }

  /* Coverage Banner Mobile */
  .coverage-banner {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .coverage-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact & Details Forms Mobile */
  .detail-form-wrap {
    padding: 1.75rem 1.25rem;
  }

  .contact-card-item {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Footer Mobile */
  .site-footer {
    padding-top: 3.5rem;
  }

  .footer-grid {
    gap: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  /* Floating CTA Bar Mobile Optimized */
  .floating-cta-bar {
    width: calc(100% - 2rem);
    max-width: 420px;
    padding: 0.5rem 0.85rem;
    bottom: 0.75rem;
  }

  .float-btn {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .page-banner h1 {
    font-size: 1.9rem;
  }

  .page-banner p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .chip {
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
  }
}
