/* ==========================================================================
   BLUSH & GLOW — responsive layer
   --------------------------------------------------------------------------
   Everything in style.css is written mobile-first where it can be, with fluid
   clamp() sizing doing most of the work. This file holds the breakpoints where
   a layout genuinely has to change shape rather than just get smaller.

   Target widths: 320, 375, 390, 414, 576, 768, 992, 1200, 1400, 1600, 1920.
   ========================================================================== */

/* ==========================================================================
   LARGE DESKTOP — 1600px and up
   ========================================================================== */

@media (min-width: 1600px) {

    .container,
    .container-lg { max-width: 1420px; }

    .hero { min-height: min(92vh, 980px); }
}

/* ==========================================================================
   DESKTOP — up to 1399px
   ========================================================================== */

@media (max-width: 1399.98px) {

    .site-nav { gap: 22px; }
    .site-nav__link { font-size: 11.5px; letter-spacing: .1em; }
}

/* ==========================================================================
   TABLET LANDSCAPE — up to 1199px
   The full navigation no longer fits, so it becomes the drawer.
   ========================================================================== */

@media (max-width: 1199.98px) {

    .nav-toggle { display: block; }

    .hero { padding-block: 150px 64px; }

    /* The bridal card stops being a side-by-side split. */
    .service-card .col-md-5 .bg-photo { min-height: 280px; }
}

/* ==========================================================================
   TABLET — up to 991px
   ========================================================================== */

@media (max-width: 991.98px) {

    :root { --section-y: clamp(52px, 9vw, 84px); }

    .hero { min-height: auto; padding-block: 140px 56px; }
    .hero__strip { margin-top: 44px; gap: 10px 28px; }

    /* The framed image's offset rule would push past the viewport edge on a
       narrow screen and cause a horizontal scrollbar. */
    .framed::before { inset: 16px -12px -16px 16px; }

    .split--media-left { grid-template-columns: 1fr; }

    /* Indents meant for a two-column desktop layout just waste width here.
       The column keeps its ordinary gutter padding though: dropping to 0 also
       removes what a NESTED .row's negative margins are absorbed by, and the
       inner row then hangs ~10px past the container on both sides. */
    .ps-lg-5, .pe-lg-5 {
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
    }

    .page-head { padding-block: 132px 56px; }

    /* Gallery drops from a 12-column editorial rhythm to halves. */
    .gallery-grid__item--tall,
    .gallery-grid__item--wide,
    .gallery-grid__item--half,
    .gallery-grid__item--third { grid-column: span 6; }

    .gallery-grid__item--wide { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   MOBILE — up to 767px
   ========================================================================== */

@media (max-width: 767.98px) {

    body {
        /* Clears the fixed bottom bar so the last line of the footer is
           reachable rather than sitting underneath it. */
        padding-bottom: 64px;
    }

    .mobile-cta { display: block; }

    /* The floating button would sit on top of the bottom bar. */
    .whatsapp-button {
        right: 16px;
        bottom: 78px;
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .site-header { padding-block: 10px; }
    .site-header.is-solid, .site-header.is-inner { padding-block: 6px; }

    .brand-lockup__mark { width: 44px; height: 44px; }
    .site-header.is-solid .brand-lockup__mark,
    .site-header.is-inner .brand-lockup__mark { width: 40px; height: 40px; }

    .brand-lockup__name { font-size: 14px; letter-spacing: .1em; }
    .brand-lockup__sub { font-size: 7.5px; }

    .hero { padding-block: 118px 48px; }
    .hero__title { line-height: 1.02; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions > * { width: 100%; }

    .hero__strip { gap: 8px 22px; }
    .hero__strip a { font-size: 10px; letter-spacing: .16em; }

    /* Buttons go full width so a thumb has a proper target. */
    .btn-blush,
    .btn-outline-gold,
    .btn-ghost-light { width: 100%; }

    /* Except where several sit in a deliberate row. */
    .d-flex .btn-blush,
    .d-flex .btn-outline-gold,
    .d-flex .btn-ghost-light { width: auto; flex: 1 1 auto; }

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

    .numbered-list__item { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; }

    /* The price row keeps its three columns but the Book control moves under
       the name, so a long service name is never squeezed to two words a line. */
    .price-list__row {
        grid-template-columns: 1fr auto;
        row-gap: 8px;
    }

    .price-list__book { grid-column: 1 / -1; justify-self: start; }

    .price-group { margin-bottom: 38px; }

    .gallery-grid { gap: 10px; }

    .gallery-grid__item--tall,
    .gallery-grid__item--wide,
    .gallery-grid__item--half,
    .gallery-grid__item--third { grid-column: span 12; aspect-ratio: 4 / 3; }

    .footer { padding-top: 56px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }

    .booking-modal .modal-header,
    .booking-modal .modal-body { padding-inline: 20px; }
}

/* ==========================================================================
   SMALL MOBILE — up to 575px
   ========================================================================== */

@media (max-width: 575.98px) {

    :root { --gutter: 18px; }

    .editorial-title { font-size: clamp(1.7rem, 7.5vw, 2.1rem); }

    .promise-grid { grid-template-columns: 1fr; }
    .promise-grid__item { padding: 22px 18px; }

    .arched { border-radius: 40vw 40vw 4px 4px / 22% 22% 4px 4px; }

    .contact-detail { grid-template-columns: 34px 1fr; gap: 12px; }
    .contact-detail__icon { width: 34px; height: 34px; font-size: 13px; }

    .map-placeholder { min-height: 240px; padding: 24px; }
}

/* ==========================================================================
   VERY SMALL — 320px
   The narrowest width in the brief. Nothing may overflow here.
   ========================================================================== */

@media (max-width: 360px) {

    :root { --gutter: 14px; }

    .brand-lockup { gap: 9px; }
    .brand-lockup__mark { width: 38px; height: 38px; }
    .brand-lockup__name { font-size: 12.5px; }

    .hero__eyebrow { font-size: 9.5px; letter-spacing: .2em; gap: 8px; }

    .btn-blush,
    .btn-outline-gold,
    .btn-ghost-light { padding: 14px 20px; font-size: 11px; letter-spacing: .14em; }

    .mobile-cta__item { font-size: 8.5px; letter-spacing: .1em; }

    .price-table td, .price-table th { font-size: 13.5px; }
    .price-table th + th, .price-table td + td { padding-left: 14px; }
}

/* ==========================================================================
   PRINT
   A price list is the one thing a salon actually prints.
   ========================================================================== */

@media print {

    .site-header,
    .nav-drawer,
    .nav-scrim,
    .whatsapp-button,
    .mobile-cta,
    .price-list__book,
    .footer__social { display: none !important; }

    body { background: #fff; color: #000; padding-bottom: 0; }

    .section, .section-sm { padding-block: 18px; }

    .bg-burgundy, .bg-dark-plum { background: #fff !important; color: #000 !important; }
    .bg-burgundy h2, .bg-dark-plum h2 { color: #000 !important; }

    .bg-photo { display: none; }

    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; }
}

/* ==========================================================================
   LATE CORRECTIONS
   ========================================================================== */

@media (max-width: 575.98px) {

    /* "Varthur, Bengaluru · Unisex Salon & Spa" wrapped mid-phrase and left the
       separator dot stranded on its own line. Stacked, each part stays whole. */
    .hero__eyebrow {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        letter-spacing: .22em;
    }

    .hero__eyebrow span[aria-hidden] { display: none; }
}

/* ---- services page ------------------------------------------------------- */

@media (max-width: 767.98px) {

    /* The header is shorter on a phone, so the jump strip sits higher. */
    .svc-nav { top: 56px; }
    .svc-nav__inner { gap: 20px; padding-block: 11px; }
    .svc-nav__link { font-size: 10px; letter-spacing: .14em; }

    .crossref { padding: 18px 18px; }
}

/* ---- appointment page ---------------------------------------------------- */

@media (max-width: 991.98px) {

    /* Below the stepper the aside is just more page, so it stops sticking. */
    .booking-aside { position: static; }
}

@media (max-width: 575.98px) {

    .choice-grid { grid-template-columns: 1fr; }
    .choice-grid--time { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }

    /* Two full-width buttons stacked beat two cramped ones side by side. */
    .booking-nav { flex-direction: column-reverse; align-items: stretch; }
    .booking-nav #bookingNext { margin-left: 0; }
    .booking-nav .btn-blush,
    .booking-nav .btn-ghost-dark { width: 100%; }
}

/* ==========================================================================
   GUTTER CONTAINMENT — small screens
   --------------------------------------------------------------------------
   A Bootstrap .row offsets itself with negative horizontal margins of half
   its gutter, relying on the container's padding to absorb them. With `g-5`
   that is 24px a side, but --gutter is only 14–18px down here, so every such
   row hangs ~10px past the container on both sides.

   The root clips it, so it never produced a scrollbar — but it quietly ate
   the right-hand gutter at 320–576px. Capping only --bs-gutter-x fixes the
   horizontal overhang and leaves the vertical rhythm (--bs-gutter-y, which is
   what `g-5` is actually there for on a stacked mobile layout) untouched.
   ========================================================================== */

@media (max-width: 767.98px) {
    .row { --bs-gutter-x: 1.5rem; }
}

/* ---- map embed ----------------------------------------------------------- */

@media (max-width: 991.98px) {

    /* Stacked under the contact details, it no longer has a tall neighbour to
       match, so it takes a height of its own. */
    .map-embed { min-height: 340px; }
}

@media (max-width: 575.98px) {
    .map-embed { min-height: 280px; }
}
