/* =============================================================================
   Zest: spacing & visual hierarchy refinements (2026-11-25)
   Printed AFTER the theme's Additional CSS (see zest-site.php), so it wins ties.
   !important is used only where the theme, WPBakery inline styles or Additional
   CSS already use it.

   Mobile type scale (max-width 767px)
     H1 page title ........ 32px / 300 / 0.06em
     H2 section heading ... 24px / 300 / 0.08em
     H3 card title ........ 18px / 400 / 0.08em
     Label (h4 eyebrow) ... 13px / 600 / 0.16em
   Buttons: primary = solid gold, secondary = 1px dark outline, both ≥48px tall.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. One heading font everywhere. WPBakery "custom heading" elements and the
      About page were set in Montserrat; the brand font is Gordita.
   ----------------------------------------------------------------------------- */
.mkdf-content h2.vc_custom_heading {
    font-family: var(--font-primary) !important;
    font-weight: 300 !important;
}

body.page-id-25 .mkdf-page-title,
body.page-id-25 .mkdf-iwt-title,
body.page-id-25 .wpb_text_column,
body.page-id-25 .wpb_text_column * {
    font-family: var(--font-primary) !important;
}

body.page-id-25 .mkdf-page-title {
    font-weight: 300 !important;
    letter-spacing: 0.06em !important;
}

body.page-id-25 .mkdf-iwt-title {
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
}

body.page-id-25 .wpb_text_column {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
}

/* Pricing page: "Give the Gift of Zest" was a third typeface (Playfair Display). */
body.page-id-211 .wpb_raw_html p[style*="Playfair"],
body.page-id-211 .wpb_raw_html p[style*="playfair"] {
    font-family: var(--font-primary) !important;
    font-weight: 300 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.page-id-211 .wpb_raw_html p[style*="Montserrat"] {
    font-family: var(--font-primary) !important;
}

/* -----------------------------------------------------------------------------
   2. Why Choose Us: readable quote. The gold pills keep their original style
      (Additional CSS) and now link to Our Salon / About Us.
   ----------------------------------------------------------------------------- */
.why-choose-content .why-choose-subtitle {
    text-transform: none !important;
    font-weight: 300 !important;
    font-style: italic;
    font-size: 17px !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
}

/* A stray <br> between the pills became an extra flex item, making the gap uneven. */
.why-choose-content .why-choose-awards br {
    display: none;
}

.why-choose-content a.award-badge,
.why-choose-content a.award-badge:hover {
    text-decoration: none;
    color: var(--zest-dark);
}

/* -----------------------------------------------------------------------------
   3. Homepage hero: subtle dark gradient so the title stays readable on light
      frames of the video.
   ----------------------------------------------------------------------------- */
.zest-hero .upb_video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.zest-hero > .wpb_column {
    position: relative;
    z-index: 2;
}

/* -----------------------------------------------------------------------------
   4. Booking button in the service page heroes (markup added to each hero).
   ----------------------------------------------------------------------------- */
.zest-hero-text .hero-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    margin: 4px 28px 12px 0;
    background: var(--zest-gold);
    color: #fff !important;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease;
}

.zest-hero-text .hero-book-btn:hover {
    background: #9a8558;
}

.zest-hero-text .hero-btn {
    min-height: 44px;
    vertical-align: middle;
}

/* -----------------------------------------------------------------------------
   5. Floating "Download our App" button: hidden at the top of the page and near
      the footer so it doesn't cover content (toggled by js/app-button.js).
   ----------------------------------------------------------------------------- */
a.float {
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

a.float.zest-float-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
}

/* -----------------------------------------------------------------------------
   6. Footer "Contact" title links to the Contact page (link added in zest-site.php).
      Looks the same as the other titles; gold on hover.
   ----------------------------------------------------------------------------- */
/* !important because Additional CSS dims every footer link with !important. */
html body .mkdf-page-footer .mkdf-widget-title a.zest-widget-title-link {
    color: inherit !important;
    opacity: 1 !important;
    text-decoration: none;
    transition: color 0.25s ease;
}

html body .mkdf-page-footer .mkdf-widget-title a.zest-widget-title-link:hover,
html body .mkdf-page-footer .mkdf-widget-title a.zest-widget-title-link:focus-visible {
    color: var(--zest-gold) !important;
}

/* -----------------------------------------------------------------------------
   7. Service page heroes on desktop (Hairdressing, Aesthetics, Makeup, Laser).
      The text column is a flex column that stretched Book now to full width and
      used uneven gaps (4px–40px). A grid keeps everything in one column but puts
      Book now and Price List side by side, with one spacing scale.
   ----------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .zest-hero-text:has(> .hero-book-btn) {
        display: grid !important;
        grid-template-columns: auto 1fr;
        align-content: center;
        align-items: center;
        column-gap: 36px;
    }

    .zest-hero-text:has(> .hero-book-btn) > * {
        grid-column: 1 / -1;
        margin-top: 0 !important;
    }

    .zest-hero-text:has(> .hero-book-btn) .hero-title {
        font-size: clamp(38px, 3.3vw, 48px) !important;
        line-height: 1.1 !important;
        margin-bottom: 16px !important;
    }

    .zest-hero-text:has(> .hero-book-btn) .hero-tagline,
    .zest-hero-text:has(> .hero-book-btn) .hero-divider {
        margin-bottom: 32px !important;
    }

    .zest-hero-text:has(> .hero-book-btn) .hero-description {
        margin-bottom: 40px !important;
    }

    .zest-hero-text:has(> .hero-book-btn) > .hero-book-btn {
        grid-column: 1;
        justify-self: start;
        margin: 0 !important;
        padding: 0 36px;
    }

    .zest-hero-text:has(> .hero-book-btn) > .hero-btn {
        grid-column: 2;
        justify-self: start;
        margin: 0 !important;
    }

    .zest-hero-text:has(> .hero-book-btn) .hero-social {
        margin-top: 48px !important;
    }

    /* On wide screens the photo makes the row taller than the 660px text box, which
       then sat at the top. Centre it in the column so the space above and below match. */
    .hero-content-col > .vc_column-inner > .wpb_wrapper:has(.zest-hero-text > .hero-book-btn) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .hero-content-col .wpb_raw_html:has(.zest-hero-text > .hero-book-btn) {
        margin-bottom: 0 !important;
        padding-top: 0 !important; /* Laser had 20px here */
    }

    /* Aesthetics and Laser had 20px top padding on this row (a dark strip above the
       photo); Hairdressing and Makeup had none. */
    .vc_row.vc_inner:has(> .hero-content-col .zest-hero-text > .hero-book-btn),
    .vc_row.zest-services-hero:has(.zest-hero-text > .hero-book-btn) {
        padding-top: 0 !important; /* Aesthetics/Makeup outer row had 20px/30px */
    }
}

/* With the desktop header the theme pulls page content 90px up behind it (inline
   margin-top:-90px on .mkdf-content), so the top 90px of the hero is hidden. Shift the
   text down by half that (same total height) so it centres in the visible panel. */
@media (min-width: 1025px) {
    .zest-hero-text:has(> .hero-book-btn) {
        padding-top: 125px !important;
        padding-bottom: 35px !important;
    }
}

/* =============================================================================
   PHONES
   ============================================================================= */
@media (max-width: 767px) {

    /* --- Type scale -------------------------------------------------------- */
    .zest-hero-text .hero-title,
    .zest-contact-hero-text .contact-hero-title,
    .zest-hero__text h1,
    .mkdf-title-holder .mkdf-page-title {
        font-size: 32px !important;
        line-height: 1.15 !important;
        font-weight: 300 !important;
        letter-spacing: 0.06em !important;
    }

    .mkdf-content h2.vc_custom_heading,
    .why-choose-content .why-choose-title,
    body.page-id-469 .wpb_text_column h2,
    .approach-title,
    .founder-title,
    .services-cta-title,
    .faq-section-title,
    .zest-prefooter-card h2,
    .prefooter-wrapper .prefooter-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
        font-weight: 300 !important;
        letter-spacing: 0.08em !important;
    }

    .zest-service-card h3,
    .service-card-title,
    body.page-id-25 .mkdf-iwt-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        letter-spacing: 0.08em !important;
    }

    .contact-info-block .info-label,
    .zest-prefooter-card .info-block h4 {
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.16em !important;
        margin-bottom: 8px !important;
    }

    /* --- Buttons: one primary, one secondary style ------------------------ */
    .mkdf-content .vc_general.vc_btn3,
    .mkdf-content .btn-book,
    .mkdf-content .prefooter-btn,
    .wedding-enquiry-form input[type="submit"],
    .mkdf-content .btn-secondary,
    .mkdf-content .btn-download,
    body.page-id-211 .wpb_raw_html a[href$="/gift-card/"] {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        font-size: 12px !important;
        letter-spacing: 0.18em !important;
        line-height: 1.3 !important;
    }

    .mkdf-content .btn-secondary,
    .mkdf-content .btn-download,
    body.page-id-211 .wpb_raw_html a[href$="/gift-card/"] {
        background: transparent !important;
        border: 1px solid #1a1a1a !important;
        color: #1a1a1a !important;
    }

    .mkdf-content .btn-download svg,
    .mkdf-content .btn-download path {
        stroke: currentColor;
    }

    /* --- Comfortable tap targets ------------------------------------------ */
    .mkdf-page-footer a[href^="tel:"],
    .mkdf-page-footer a[href^="mailto:"],
    .service-card-link,
    .contact-info-block .map-link {
        display: inline-block;
        padding-top: 12px;
        padding-bottom: 12px;
        margin-top: -12px;
        margin-bottom: -12px;
    }

    .contact-info-block .map-link {
        color: #666;
    }

    /* --- Long centred paragraphs → left-aligned (Our Salon) ---------------- */
    .zest-approach-content,
    .zest-approach-content *,
    .zest-founder-content,
    .zest-founder-content * {
        text-align: left !important;
    }

    /* --- Homepage spacing --------------------------------------------------
       Empty WPBakery rows were adding ~90px above/below the salon photos and a
       115px blank band plus a divider line after "Why choose us". */
    body.page-id-469 .zest-services-grid {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    body.page-id-469 .zest-services-grid .vc_inner:not(:has(img)) {
        display: none !important;
    }

    body.page-id-469 .zest-services-grid .vc_inner:has(img) {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.page-id-469 .zest-services-grid .vc_inner:has(img) > .wpb_column:last-child {
        padding-bottom: 0 !important;
    }

    html body.page-id-469 .vc_row.wpb_row.lessinmobile {
        padding-top: 0 !important;
        padding-bottom: 48px !important;
    }

    body.page-id-469 .lessinmobile .vc_inner:not(:has(img, h1, h2, h3, h4, p, a, iframe, video, .wpb_raw_html, .vc_btn3)) {
        display: none !important;
    }

    body.page-id-469 .lessinmobile .vc_separator {
        display: none !important;
    }

    body.page-id-469 .lessinmobile .mkdf-row-grid-section .vc_inner {
        padding-top: 48px !important;
    }

    /* --- Service page testimonials: swipeable row instead of a long stack -- */
    .vc_row.vc_inner:has(> .wpb_column .zest-testimonial-card) {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 20px 8px !important;
    }

    .vc_row.vc_inner:has(> .wpb_column .zest-testimonial-card)::-webkit-scrollbar {
        display: none;
    }

    .vc_row.vc_inner:has(> .wpb_column .zest-testimonial-card)::before,
    .vc_row.vc_inner:has(> .wpb_column .zest-testimonial-card)::after {
        display: none !important;
    }

    .vc_row.vc_inner:has(> .wpb_column .zest-testimonial-card) > .wpb_column {
        flex: 0 0 86%;
        width: 86% !important;
        float: none !important;
        scroll-snap-align: center;
    }

    .vc_row.vc_inner:has(> .wpb_column .zest-testimonial-card) > .wpb_column > .vc_column-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .zest-testimonial-card {
        margin-bottom: 0 !important;
    }

    /* --- About page title band: image filled the middle of a dark box ------ */
    body.page-id-25 .mkdf-title-holder {
        height: 260px !important;
    }

    body.page-id-25 .mkdf-title-holder .mkdf-title-image {
        position: absolute;
        inset: 0;
    }

    body.page-id-25 .mkdf-title-holder .mkdf-title-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
    }

    body.page-id-25 .mkdf-title-holder .mkdf-title-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.page-id-25 .mkdf-title-holder .mkdf-title-wrapper {
        height: 260px !important;
        z-index: 1;
    }

    body.page-id-25 .mkdf-title-holder .mkdf-title-inner {
        height: 260px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Floating app button sits centred (rule in Additional CSS); keep that when hidden. */
    a.float.zest-float-hidden {
        transform: translateX(-50%) translateY(16px);
    }
}
