/**
 * SAM ANGELO PHOTOGRAPHY & FILMS
 * Responsive Breakpoint System (Points 55–58, 83)
 */

/* ==========================================================================
   Large Desktop & Ultra-Wide (1440px - 2560px)
   ========================================================================== */
@media (min-width: 1440px) {
  :root {
    --max-width: 1540px;
    --gutter: 4rem;
  }
}

@media (min-width: 1920px) {
  :root {
    --max-width: 1680px;
    --gutter: 5rem;
  }
}

/* ==========================================================================
   Desktop to Tablet Transition (1024px - 1280px)
   ========================================================================== */
@media (max-width: 1140px) {
  .nav-desktop {
    gap: 1.5rem;
  }
  .header-actions .header-phone {
    display: none;
  }
}

/* ==========================================================================
   Tablet Viewports (768px - 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
  .nav-desktop,
  .header-actions .btn-primary,
  .header-actions .btn-accent {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  /* Featured Grid Tablet */
  .featured-item-lead {
    grid-column: span 12;
    aspect-ratio: 16 / 9;
  }
  .featured-item-tall {
    grid-column: span 6;
    aspect-ratio: 4 / 5;
  }
  .featured-item-detail-1 {
    grid-column: span 6;
    aspect-ratio: 4 / 5;
  }
  .featured-item-detail-2 {
    grid-column: span 6;
    aspect-ratio: 4 / 5;
  }
  .featured-item-film {
    grid-column: span 6;
    aspect-ratio: 4 / 5;
  }
}

/* ==========================================================================
   Mobile Devices (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --header-height: 72px;
    --gutter: 1.25rem;
    --section-pad: 4rem;
  }

  /* Enable Persistent Mobile CTA Bar (Point 48) */
  .mobile-sticky-cta {
    display: block;
  }

  body {
    padding-bottom: calc(
      var(--mobile-bar-height) + env(safe-area-inset-bottom)
    );
  }

  .site-header.scrolled {
    height: 64px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  /* .brand-logo-img {
    height: 32px;
    max-width: 175px;
  } */

  .footer-logo-img {
    height: 42px;
    max-width: 220px;
  }

  .hero-content {
    margin-top: 4rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 11vw, 3.75rem);
    line-height: 1.02;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-metadata-bar {
    display: none;
  }

  /* Featured Grid Single Column / Double Stack */
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .featured-item-lead,
  .featured-item-tall,
  .featured-item-detail-1,
  .featured-item-detail-2,
  .featured-item-film,
  .featured-item-wide {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }

  .featured-item-wide {
    aspect-ratio: 16 / 9;
  }

  /* Services Mobile Accordion */
  .service-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .service-row-right {
    width: 100%;
    justify-content: space-between;
  }

  .service-mobile-preview.active {
    display: block;
  }

  .floating-preview-container {
    display: none !important;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .booking-progress-timeline {
    padding: 0;
  }

  .booking-progress-timeline::before {
    left: 1.5rem;
    right: 1.5rem;
  }

  .step-label {
    display: none;
  }

  .form-actions-row {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .form-actions-row .btn {
    width: 100%;
  }

  .films-reel {
    grid-template-columns: 1fr;
  }

  .viewer-stage {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   Small Mobile Viewports (320px - 374px)
   ========================================================================== */
@media (max-width: 374px) {
  :root {
    --gutter: 1rem;
  }

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

  .booking-form-card {
    padding: 1.5rem 1rem;
  }

  .chip-grid {
    gap: 0.4rem;
  }

  .chip-label {
    font-size: 0.75rem;
    padding: 0.5rem 0.85rem;
  }
}
