/*
 * Salon (Men) layout & contrast fixes (R7). Loaded AFTER the vendored theme (style.min.css), which stays untouched.
 */

/* --- Header: the theme styles the nav white for a header laid over the hero, but this site's header is a solid white bar.
       Dark text on desktop; the scrolled ("fixed") and mobile states already use dark text. ------------------------------ */
@media (min-width: 992px) {
    header.header-one .header-nav .main-menu-wrapper .main-nav > li > a {
        color: var(--gray-900);
    }

    header.header-one .header-nav .main-menu-wrapper .main-nav > li > a:hover,
    header.header-one .header-nav .main-menu-wrapper .main-nav > li.active > a {
        color: var(--primary);
    }
}

/* The salon's own name where there is no uploaded logo (instead of the template's generic logo) */
.salon-brand-text {
    display: inline-block;
    max-width: 260px;
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--primary);
    overflow-wrap: anywhere;
}

.salon-brand-text.is-white {
    color: #fff;
}

.salon-hero-name {
    display: block;
    margin: 0 0 8px;
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    overflow-wrap: anywhere;
}

/* Decorative theme art may poke past the viewport edge (worst in RTL): never a horizontal scrollbar. */
html,
body {
    overflow-x: hidden;
}

/* --- Services: thumbnail + readable text ------------------------------------------------------------------------------- */
.service-item-six .service-list .service-list-item {
    gap: 16px;
    align-items: flex-start;
}

.service-item-six .service-list .service-list-item .service-head {
    flex: 1 1 auto;
    min-width: 0;
}

.service-item-six .service-list .service-list-item .service-name,
.service-item-six .service-list .service-list-item .service-description {
    overflow-wrap: anywhere;
}

.service-item-six .service-list .service-list-item .service-price {
    flex: 0 0 auto;
    white-space: nowrap;
}

.salon-service-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--light-300, #f1ede8);
}

.salon-service-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.salon-service-thumb-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
}

.salon-service-link {
    color: inherit;
}

.salon-service-link:hover {
    color: var(--primary);
}

.salon-service-details summary {
    cursor: pointer;
    list-style: none;
}

.salon-service-details summary::-webkit-details-marker {
    display: none;
}

.salon-service-excerpt {
    display: block;
    color: var(--gray-600);
}

.salon-service-more {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    color: var(--primary);
}

.salon-service-details[open] .salon-service-excerpt {
    display: none;
}

/* The OPEN state is the full description: no clamp, no max-height, no overflow clipping. */
.salon-service-full {
    margin-top: 6px;
    color: var(--gray-600);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* --- Gallery: a real grid (each image once) instead of the theme's cloning marquee ----------------------------------- */
.salon-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.salon-gallery-grid .experience-item-one {
    width: 100%;
    height: 340px;
}

/* --- Blog ---------------------------------------------------------------------------------------------------------------- */
.blog-details-page .section-header .sub-title {
    color: var(--primary);
}

.blog-details-page .blog-body {
    color: var(--gray-900);
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    /* the article is never clamped or clipped */
    max-height: none;
    overflow: visible;
}

/* --- Booking / request form feedback ----------------------------------------------------------------------------------- */
.salon-request-feedback:empty {
    display: none;
}

.salon-request-feedback {
    margin-bottom: 16px;
    scroll-margin-top: 110px;
}

.salon-request-success {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 4px;
    background: #1f6f3a;
    color: #fff;
}

.salon-request-errors {
    padding: 12px 16px;
    border-radius: 4px;
    background: #a61e1e;
    color: #fff;
}

.salon-request-errors ul {
    margin: 0;
    padding-inline-start: 18px;
}

.service-item-six form .form-control.is-invalid {
    border-color: #a61e1e;
}

.service-item-six form .form-control,
.service-item-six form .form-select {
    min-height: 48px;
}
