/* ==========================================================================
   HOUSE OF HAIR – BY AMEE
   Responsive Engineering & Breakpoint Specifications
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Screens & Ultrawide (> 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1441px) {
  :root {
    --container-max: 1480px;
  }

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

/* --------------------------------------------------------------------------
   2. Medium Desktops & Laptops (1025px – 1280px)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .services-grid {
    gap: 1.5rem;
  }

  .gallery-grid {
    gap: 1.25rem;
  }

  .footer-top-row {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1.1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   3. Tablets & Small Laptops (769px – 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 6rem;
    --space-2xl: 4.5rem;
  }

  .primary-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  /* Intro Section */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .intro-image-column {
    order: -1;
    max-width: 580px;
    margin: 0 auto;
  }

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

  .service-card-wide {
    grid-column: span 2;
  }

  /* Experience Section */
  .experience-steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Booking Layout */
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .booking-info-col {
    max-width: 680px;
  }

  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-image-column {
    max-width: 580px;
    margin: 0 auto;
  }

  /* Contact Details */
  .contact-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-details-grid .contact-card:last-child {
    grid-column: span 2;
  }

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

  /* Lightbox Nav Buttons */
  .lightbox-nav-btn.prev {
    left: 10px;
  }

  .lightbox-nav-btn.next {
    right: 10px;
  }
}

/* --------------------------------------------------------------------------
   4. Standard Tablets & Mobile Landscape (481px – 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4.5rem;
    --space-2xl: 3.5rem;
    --space-xl: 2.5rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--space-3xl) + 3rem);
    padding-bottom: 2rem;
    min-height: 92vh;
  }

  .hero-headline {
    font-size: clamp(2.75rem, 8vw, 3.75rem);
    margin-bottom: 1.25rem;
  }

  .hero-copy {
    font-size: var(--text-base);
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

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

  .hero-bottom-bar {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .service-card-wide .service-image-box {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  /* Experience Section */
  .experience-steps-container {
    grid-template-columns: 1fr;
  }

  /* Contact Section */
  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-details-grid .contact-card:last-child {
    grid-column: span 1;
  }

  /* Form two columns collapse */
  .form-row-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Instagram Banner */
  .instagram-banner {
    padding: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .instagram-banner .ig-cta-btn {
    width: 100%;
  }

  /* Footer */
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* --------------------------------------------------------------------------
   5. Small Mobile Devices (320px – 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --container-padding: 1.15rem;
    --space-3xl: 4rem;
    --space-2xl: 2.75rem;
  }

  .brand-title {
    font-size: 1.15rem;
    letter-spacing: 0.18em;
  }

  .brand-subtitle {
    font-size: 0.52rem;
    letter-spacing: 0.28em;
  }

  .hero-headline {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
  }

  .hero-tagline-badge {
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .badge-text {
    font-size: 0.68rem;
  }

  .intro-highlights-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .gallery-item.item-portrait,
  .gallery-item.item-portrait-tall,
  .gallery-item.item-landscape,
  .gallery-item.item-square {
    aspect-ratio: 4 / 3;
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(33, 28, 25, 0.88) 0%, rgba(33, 28, 25, 0.1) 60%, rgba(33, 28, 25, 0) 100%);
  }

  .enquiry-card {
    padding: 1.5rem 1.15rem;
  }

  .consultation-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-card {
    padding: 1.15rem;
  }

  .about-pillars-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-btn-close {
    top: -40px;
  }

  .map-overlay-card {
    position: static;
    margin: 1rem;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   6. Touch Target Enforcements & iOS Optimizations
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .mobile-nav-link,
  .service-enquire-btn,
  .filter-pill,
  .lightbox-btn-close,
  .lightbox-nav-btn,
  .back-to-top-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS */
  }
}
