/* ==========================================================================
   Friendz Creative Studio - Responsive Media Queries
   Mobile-First & Adaptive Screen Layout Engine
   ========================================================================== */

/* --------------------------------------------------------------------------
   Desktop & Laptops (Below 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-headline {
    font-size: clamp(2.3rem, 3.8vw, 3.8rem);
  }

  .hero-visual-wrapper {
    height: 420px;
  }

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

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

  .split-section-grid {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }
  .split-section-cards.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-section-cards.grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-section-grid {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }

  .dm-pillars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   Tablets & Mobile Landscapes (Below 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding-top: calc(var(--header-height) + 2rem) !important;
    padding-bottom: 4rem !important;
    overflow: visible !important;
    display: block !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 7vw, 3.5rem);
  }

  .hero-supporting {
    max-width: 100%;
  }

  .hero-form-wrapper {
    margin-top: 1rem;
  }

  .hero-float-pill {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .pill-1 {
    top: -12px;
    left: 0;
  }

  .pill-2 {
    bottom: -12px;
    right: 0;
  }

  .nav-menu, .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .service-row {
    grid-template-columns: 50px 1fr 40px;
    padding: 2rem 1rem;
  }

  .service-desc {
    grid-column: span 3;
    margin-top: 0.5rem;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mobile-fixed-cta {
    display: block !important;
  }
  
  .whatsapp-float {
    display: none !important;
  }

  .site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

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

  .footer-brand {
    grid-column: span 2 !important;
    max-width: 100% !important;
  }

  .split-section-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .split-section-sidebar {
    padding-right: 0 !important;
    gap: 1.25rem !important;
  }

  .split-section-cards,
  .split-section-cards.grid-4,
  .split-section-cards.grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .clients-section-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .clients-section-sidebar {
    padding-right: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  .testimonial-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .cta-banner-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .dm-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .dm-pillars-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem 1rem !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile Devices (Below 576px - 390px / 430px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  :root {
    --header-height: 75px;
    --container-padding: 1.25rem;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem) !important;
    padding-bottom: 3.5rem !important;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.05;
  }

  .hero-supporting {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

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

  .hero-tags {
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.7rem;
  }

  .hero-tags span {
    gap: 0.6rem;
  }

  .hero-lead-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .hero-float-pill {
    display: none;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .mobile-fixed-cta .btn-cta-project {
    width: auto !important;
    flex: 1 !important;
    font-size: 0.82rem !important;
    padding: 0 1rem !important;
  }

  .mobile-fixed-cta .btn-cta-whatsapp {
    width: 48px !important;
    flex: 0 0 48px !important;
  }

  .section-heading {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: span 1 !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 1.25rem !important;
    text-align: center !important;
  }

  .split-section-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .split-section-sidebar {
    padding-right: 0 !important;
  }

  .split-section-sidebar h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
  }

  .split-section-sidebar .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }

  .split-section-cards,
  .split-section-cards.grid-4,
  .split-section-cards.grid-6 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .service-card-ref {
    min-height: auto !important;
    padding: 1.5rem 1.25rem !important;
    border-radius: 14px !important;
  }

  .service-card-ref h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.4rem !important;
  }

  .service-card-ref p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  .capability-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
  }

  /* OUR CLIENTS & TESTIMONIALS Mobile Layout */
  .clients-section-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .clients-section-sidebar {
    padding-right: 0 !important;
  }

  .clients-section-sidebar h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .testimonial-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .testimonial-card-ref {
    padding: 1.35rem 1.15rem !important;
    border-radius: 14px !important;
  }

  .testimonial-card-ref p {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
  }

  .testimonial-carousel-controls {
    margin-top: 1.25rem !important;
    justify-content: center !important;
  }

  .client-marquee-wrapper {
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
  }

  .client-marquee-heading {
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    padding: 0 0.5rem !important;
  }

  .client-marquee-line {
    display: none !important;
  }

  .client-logo-card {
    padding: 0.5rem 0.9rem !important;
    gap: 0.5rem !important;
    border-radius: 10px !important;
  }

  .client-logo-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
  }

  .client-logo-name {
    font-size: 0.82rem !important;
  }

  .client-logo-tag {
    font-size: 0.68rem !important;
    padding: 0.1rem 0.4rem !important;
  }

  .cta-banner-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .dm-showcase-section {
    padding: 2.25rem 1.25rem 1.75rem !important;
    border-radius: 18px !important;
    margin-bottom: 3.5rem !important;
    background-image: linear-gradient(180deg, rgba(8, 13, 26, 0.94) 0%, rgba(8, 13, 26, 0.88) 50%, rgba(8, 13, 26, 0.96) 100%), url('../images/hero/service_hero.jpg') !important;
    background-position: 70% top !important;
  }

  .dm-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-float-metric {
    width: 100% !important;
    justify-content: center !important;
  }

  .dm-pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 0.75rem !important;
    padding: 1.25rem 0.75rem !important;
  }

  .capability-icon-wrap {
    width: 84px !important;
    height: 84px !important;
    border-radius: 50% !important;
  }

  .dm-pillar-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .dm-pillar-label {
    font-size: 0.68rem !important;
  }
}

/* --------------------------------------------------------------------------
   Extra Small Mobile Screens (Below 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .mobile-fixed-cta {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .mobile-fixed-cta .btn-cta-project {
    font-size: 0.78rem !important;
    padding: 0 0.75rem !important;
    gap: 0.35rem !important;
  }

  .mobile-fixed-cta .btn-cta-whatsapp {
    width: 44px !important;
    flex: 0 0 44px !important;
    height: 44px !important;
  }
}

