/* ==========================================================================
   SOCIAL PULSE — RESPONSIVE STYLESHEET
   Supports: 1440px, 1280px, 1024px, 992px, 768px, 576px, 425px, 390px, 375px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LARGE DESKTOPS (1440px and below)
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
  .hero-headline {
    font-size: 3.8rem;
  }
}

/* --------------------------------------------------------------------------
   2. DESKTOP STANDARD (1280px and below)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .hero-headline {
    font-size: 3.4rem;
  }

  .phone-mockup {
    width: 290px;
    height: 550px;
  }

  .card-float-reels {
    left: -15px;
  }

  .card-float-growth {
    right: -15px;
  }

  .card-float-engagement {
    right: -15px;
  }
}

/* --------------------------------------------------------------------------
   3. SMALL DESKTOPS & TABLET LANDSCAPE (1024px and below)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .process-line {
    display: none;
  }

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

  .col-span-8, .col-span-4, .col-span-6 {
    grid-column: span 12;
  }

  .portfolio-thumb-box,
  .portfolio-thumb-box.tall,
  .portfolio-thumb-box.wide {
    height: 380px;
  }
}

/* --------------------------------------------------------------------------
   4. TABLETS (991px and below)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Navigation */
  .header-wrapper {
    top: 0.5rem;
    padding: 0 0.5rem;
  }

  .pulse-navbar {
    border-radius: var(--radius-card);
    padding: 0.8rem 1.2rem;
  }

  .navbar-collapse {
    background-color: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1.05rem;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: var(--bg-cream);
  }

  .nav-cta-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-cta-item .btn-pulse {
    width: 100%;
  }

  /* Hero Stack */
  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .hero-subhead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons-wrapper {
    justify-content: center;
  }

  .hero-visual-container {
    margin-top: 3.5rem;
  }

  /* Intro Section */
  .intro-split-wrapper {
    padding: 3rem 2rem;
  }

  .intro-headline {
    margin-bottom: 1.5rem;
  }

  /* Dark Feature Section */
  .dark-feature-container {
    padding: 3.5rem 2.5rem;
  }

  /* Case Study */
  .case-study-featured-card {
    padding: 3rem 2rem;
  }

  /* Contact Wrapper */
  .contact-wrapper-card {
    padding: 3rem 2rem;
  }

  .agency-team-img {
    height: 380px;
    margin-bottom: 2rem;
  }
}

/* --------------------------------------------------------------------------
   5. MOBILE LANDSCAPE & PHONES (767px and below)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .section-headline {
    font-size: 2rem;
  }

  .intro-headline {
    font-size: 1.85rem;
  }

  .dark-feature-headline {
    font-size: 2rem;
  }

  .philosophy-headline {
    font-size: 2rem;
  }

  .cta-headline {
    font-size: 2.1rem;
  }

  /* Service Card Horizontal */
  .service-card-horizontal {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .service-meta-left {
    gap: 1.25rem;
    width: 100%;
  }

  .service-arrow-btn {
    align-self: flex-end;
  }

  /* Platforms Grid */
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process Grid */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Showcase Grid */
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  /* Dashboard Mockup Grid */
  .metric-widget {
    padding: 1.25rem 0.75rem;
  }

  .metric-number {
    font-size: 1.8rem;
  }

  /* Budget Grid */
  .budget-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .pulse-footer {
    padding: 4rem 0 2rem 0;
  }

  .footer-bottom-bar {
    margin-top: 3rem;
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   6. SMALL PHONES (576px, 425px, 390px, 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .container-custom {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-headline {
    font-size: 2.15rem;
    letter-spacing: -0.025em;
  }

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

  /* Phone Mockup scaling */
  .phone-mockup {
    width: 275px;
    height: 520px;
    border-width: 6px;
    border-radius: 36px;
  }

  .phone-notch {
    width: 90px;
    height: 18px;
  }

  /* Floating cards adjustment on small devices to prevent overflow */
  .card-float-instagram {
    top: 6%;
    left: -5px;
    transform: scale(0.85);
    transform-origin: left center;
  }

  .card-float-reels {
    top: 56%;
    left: -10px;
    transform: scale(0.85);
    transform-origin: left center;
  }

  .card-float-growth {
    top: 14%;
    right: -5px;
    transform: scale(0.85);
    transform-origin: right center;
  }

  .card-float-engagement {
    bottom: 8%;
    right: -5px;
    transform: scale(0.85);
    transform-origin: right center;
  }

  /* Platforms Grid */
  .platforms-grid {
    grid-template-columns: 1fr;
  }

  /* Direct Contact Cards */
  .direct-contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
  }

  /* Budget Grid on 375px */
  .budget-options-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper-card {
    padding: 2rem 1.25rem;
  }

  .final-cta-container {
    padding: 3.5rem 1.5rem;
  }

  .case-study-featured-card {
    padding: 2.5rem 1.25rem;
  }
}
