/* ==========================================================================
   LUMINA BEAUTY STUDIO — RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Small Devices & Mobile Phones (Up to 639px)
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
  }

  .wrap {
    width: min(100% - 1.5rem, 1200px);
    margin-inline: auto;
  }

  section {
    padding: 3rem 0;
  }

  /* Top Bar Mobile */
  .top-bar-wrap {
    justify-content: center;
  }

  .top-bar-notice {
    font-size: 0.74rem;
    text-align: center;
    line-height: 1.4;
    padding: 0 0.25rem;
  }

  /* Header Mobile */
  .bar {
    min-height: 64px;
  }

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

  .brand-crest {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

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

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .trust-sep {
    display: none;
  }

  /* Booking Page Mobile Layout */
  .booking-step-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .step-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    width: 100%;
    min-width: 0;
  }

  .step-num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .step-title-wrap {
    flex: 1;
    min-width: 0;
  }

  .step-title-wrap h2 {
    font-size: 1.18rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.2rem;
  }

  .step-title-wrap p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .form-group, .slots-fieldset, .slots-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  input, select, textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px; /* stops iOS auto-zoom */
  }

  /* Apple Calendar Mobile */
  .apple-calendar {
    padding: 1.1rem 0.85rem;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cal-header {
    margin-bottom: 1rem;
  }

  .cal-month-year {
    font-size: 1.05rem;
  }

  .cal-days-grid {
    gap: 4px;
  }

  .cal-day {
    font-size: 0.85rem;
  }

  .cal-quick-picks {
    gap: 0.35rem;
  }

  .cal-quick-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Slots Buttons Mobile */
  .slots-buttons {
    gap: 0.4rem;
  }

  .slot-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Stats Grid Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  /* Before/After Mobile */
  .ba-interactive-container {
    padding: 0;
  }

  .ba-slider-wrap {
    aspect-ratio: 4/3;
    border-radius: 16px;
  }

  .ba-handle {
    width: 38px;
    height: 38px;
  }

  /* Footer Newsletter Mobile */
  .foot-newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .foot-newsletter-form input {
    width: 100%;
  }

  .foot-newsletter-form .btn {
    width: 100%;
  }

  /* Contact Page Mobile Layout */
  .contact-section {
    padding: 2rem 0 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-info-col,
  .contact-form-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .contact-cards-stack {
    gap: 0.85rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contact-info-card {
    padding: 1.15rem 1rem !important;
    gap: 0.75rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .ci-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }

  .ci-details {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .ci-details h3 {
    font-family: var(--serif) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-bottom: 0.2rem !important;
  }

  .ci-details p {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.3rem !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .ci-link {
    font-size: 0.88rem !important;
    word-break: break-all !important;
  }

  .ci-details small {
    display: block !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    margin-top: 0.2rem !important;
  }

  /* Contact Hours Widget Mobile */
  .contact-hours-widget,
  .contact-amenities-widget {
    padding: 1.15rem 1rem !important;
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .ch-head {
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .ch-head h3,
  .contact-amenities-widget h3 {
    font-family: var(--serif) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
  }

  .hours {
    grid-template-columns: auto 1fr !important;
    gap: 0.5rem 0.75rem !important;
    margin: 0.75rem 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .hours dt {
    font-size: 0.84rem !important;
    white-space: nowrap !important;
  }

  .hours dd {
    font-size: 0.84rem !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  /* Amenities Grid Mobile */
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem !important;
    margin-top: 0.75rem !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .amenity-item {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
    gap: 0.4rem !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Contact Form Mobile */
  .contact-form-card {
    padding: 1.35rem 1rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .contact-form-card h2 {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }

  .contact-form-card .form-row.g2 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Map Section Mobile */
  .map-card {
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .map-header {
    padding: 1.15rem 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .map-header .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Hide floating quick bar on booking AND contact pages */
  .page-booking .floating-quick-bar,
  .page-contact .floating-quick-bar {
    display: none !important;
  }

  /* Bottom padding so floating bar never covers content */
  body:not(.page-booking):not(.page-contact) {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 15px)) !important;
  }
}

/* --------------------------------------------------------------------------
   Medium Devices (Tablets, 640px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

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

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

  .foot-base {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Large Devices (Laptops & Desktops, 900px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  section {
    padding: 6rem 0;
  }

  .hero-section {
    padding: 5rem 0 6rem;
  }

  /* Top Bar */
  .top-bar-contact {
    display: flex;
  }

  /* Desktop Header & Nav */
  .nav-toggle {
    display: none;
  }

  .header-desktop-book {
    display: inline-flex;
  }

  .menu {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    border: none;
    box-shadow: none;
  }

  .menu-inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .menu-cta-wrap {
    display: none;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: none;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  /* Hero & Splits */
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }

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

  .grid.g4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid.g3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Booking Page Desktop Layout */
  .booking-layout {
    grid-template-columns: 1.8fr 1.2fr;
    gap: 3rem;
  }

  .booking-sidebar {
    display: block;
  }

  /* Contact Page Desktop Layout */
  .contact-grid {
    grid-template-columns: 1.1fr 1.3fr;
    gap: 3.5rem;
  }

  /* Footer Layout */
  .foot-grid {
    grid-template-columns: 2fr 1.2fr 1.4fr 1.4fr;
    gap: 3rem;
  }

  /* Hide Floating Quick Bar on Desktop */
  .floating-quick-bar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Extra Large Displays (1200px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
