/* Beauty By Lex Custom Styles */

/* ====== UTILITY COLOR CLASSES ====== */
.text-primary { color: var(--text-primary); }
.text-primary-bright { color: var(--text-primary-bright); }

.consent-line1 { 
    color: var(--text-primary); 
    padding-top: 10px;
}

/* Phone number link hover - accent rose color */
.navbar-collapse a[href^="tel:"] h5:hover {
    color: var(--accent-rose) !important;
}

.tr-h1 {
    margin-top: 40px;
    margin-bottom: 10px;
}
.tr-h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}
/* Newsletter form moved out of footer - stronger overrides to enforce layout and nowrap */
/* Center whole form as a column, but keep input + consent left-aligned inside that column */
.newsletter-section {
    /* ensures heading and intro stay centered */
    margin-bottom: 1rem; /* space between newsletter and footer */
    padding-bottom: 1rem;
    padding-top: 2rem;
    position: relative;
    background-color: var(--primary-subtle);
}
.newsletter-section #newsletter-message {
    text-align: center;
    width: 40%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: none;
}.newsletter-section h2,
.newsletter-section p {
    text-align: center;
    margin: 0;
}
.newsletter-section .newsletter-form-wrapper,
.newsletter-section #newsletter-form {
    max-width: 520px; /* centered column width (widened) */
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
    text-align: left; /* left-align input/consent inside the centered column */
}
.newsletter-section .newsletter-controls {
    width: 100%;
}
.newsletter-section .newsletter-controls input[type="email"] {
    width: 100% !important;
    height: 45px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    box-sizing: border-box;
}

/* Ensure consent/link spacing and alignment are top-level rules (not nested) */
.newsletter-section .consent-container .no-break,
.newsletter-section .consent-container .no-break-link,
.newsletter-section .consent-container label a {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

.newsletter-section .newsletter-controls,
.newsletter-section .consent-container {
    width: 100%;
    box-sizing: border-box;
    padding-left: 0 !important;
}

.newsletter-section .consent-container input[type="checkbox"] {
    margin-left: 0 !important; /* ensure checkbox sits at container left */
}
.newsletter-section .newsletter-submit {
    text-align: center; /* keep button centered under the input */
    margin-top: 22px;
    margin-bottom: 10px; /* whitespace under button */
}
.newsletter-section .newsletter-submit .btn-hover2 {
    min-width: 140px;
}
/* Consent: force single-line on desktop, align checkbox vertically with label */
.newsletter-section .consent-container {
    width: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 10px 0 15px 50px;
    text-align: left;
}
.newsletter-section .consent-container input[type="checkbox"] {
    margin: 0 8px 0 0 !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    transform: translateY(1px);
}
.newsletter-section .consent-container label,
.newsletter-section .consent-container .no-break,
.newsletter-section .consent-container .no-break-link {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    display: inline-block !important;
}
.newsletter-section .consent-container .no-break-link {
    color: var(--text-primary-bright) !important;
    font-weight: 700;
}
.newsletter-section .consent-container .no-break {
    color: var(--text-primary) !important;
}
/* Break the consent into two lines: sentence then the "See our Privacy Policy" group on its own line */
.newsletter-section .consent-container .no-break {
    display: block !important; /* forces a line break before this span */
    margin-top: 6px !important;
    white-space: nowrap !important; /* keep the privacy text together */
}
.newsletter-section .consent-container .no-break-link {
    display: inline !important; /* ensure link sits directly after 'our' without extra gap */
}
/* Small screens: allow wrapping so consent doesn't overflow */
@media (max-width: 560px) {
    .newsletter-section .consent-container,
    .newsletter-section .consent-container label,
    .newsletter-section .consent-container .no-break,
    .newsletter-section .consent-container .no-break-link {
        white-space: normal !important;
        flex-wrap: wrap !important;
    }
}

.custom-badge,
a.custom-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 50px;
    margin: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
}

.custom-badge i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-badge span {
    display: contents;
}

/* Custom Badge Wider (for promotional badges) */
.custom-badge-wider {
    min-width: 200px;
}

/* Custom Badge Large Styles */
.custom-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 240px;
    height: 55px;
    padding: 5px 15px;
    margin: 5px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    justify-content: flex-start;
    color: var(--text-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-badge-large a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0;
    color: inherit;
    text-decoration: none;
}

.custom-badge-large i {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* Custom Badge Image Styles */
.custom-badge-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    margin: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Remove default anchor styling when used as links */
a.custom-badge-img {
    text-decoration: none;
    color: inherit;
    padding: 0;
    border: 2px solid var(--border-subtle);
    background: transparent;
}

a.custom-badge-img:hover,
a.custom-badge-img:focus,
a.custom-badge-img:active {
    text-decoration: none;
    color: inherit;
    outline: none;
    border: 2px solid var(--border-primary);
    border-radius: 8px;
}

.custom-badge-img img {
    height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}



/* Badge color variants using badge-specific color variables */
.badge-accent-green {
    background: var(--badge-accent-green-bg);
}

.badge-accent-rose {
    background: var(--badge-accent-rose-bg);
}

.badge-accent-brown {
    background: var(--badge-accent-brown-bg);
}

.badge-accent-teal {
    background: var(--badge-accent-teal-bg);
}

.badge-accent-orange {
    background: var(--badge-accent-orange-bg);
}

.badge-accent-mauve {
    background: var(--badge-accent-mauve-bg);
}

.badge-accent-blue {
    background: var(--badge-accent-blue-bg);
}
.badge-accent-light-blue {
    background: var(--badge-accent-light-blue-bg);
}

/* Large text badge for special emphasis */
.custom-badge-large-text {
    font-size: 14px;
    font-weight: 700;
}
/* Override middle card default styles to match first and last cards */
.card3 .middle-card::before {
    width: 0% !important;
}

.card3 .middle-card:hover::before {
    width: 100% !important;
}

.card3 .middle-card h3 {
    color: var(--text-primary) !important;
}

.card3 .middle-card p {
    color: var(--text-secondary) !important;
}

.card3 .middle-card:hover h3 {
    color: white !important;
}

.card3 .middle-card:hover p {
    color: white !important;
}

/* Make all card icons change to white on hover */
.card3 .card:hover i {
    color: white !important;
}

/* Testimonial excerpt label for SEO/AI clarity */
.testimonial-excerpt {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.03);
    padding: 4px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Override treatment h2 width to prevent text wrapping */
.treatment h2 {
    width: auto !important;
    max-width: 800px !important;
    min-width: 600px !important;
}

/* Make treatment section figures consistent like the original template */
.treatment_img > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.treatment_img figure {
    position: relative;
    margin: 10px;
    flex-shrink: 0;
}

/* Active nav link styling and focus states */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    font-weight: 700; /* bold */
    color: var(--accent-rose) !important; /* brand accent */
}

/* Visible focus outline for keyboard users */
.navbar-nav .nav-link:focus,
.sidepanel a:focus {
    outline: 3px solid rgba(179,75,75,0.15);
    outline-offset: 3px;
}

/* When sidepanel is open, make sure its links are visible and focusable */
.sidepanel {
    transition: transform 0.25s ease-in-out, visibility 0.25s;
}


.mb-5px { margin-bottom: 5px !important; }
.mb-10px { margin-bottom: 10px !important; }

.hero .banner_img--raised { margin-top: -35px; }

/* Utility: prevent line-break and style booking/review links */
.no-break-link {
    white-space: nowrap; /* keep link on one line */
    color: var(--text-fr);
    text-decoration: underline;
}
.no-break-link:hover,
.no-break-link:focus {
    font-weight: 700;
    color: var(--text-fr);
    outline: none;
}
.no-break-link:focus {
    box-shadow: 0 0 0 3px rgba(179,76,76,0.12); /* subtle focus ring */
}

.treatment_img figure img {
    display: block;
    max-width: 100%;
    height: auto;
}

.treatment_img_card {
    background: white;
    padding: 20px 5px 15px 15px; /* Reduced right padding */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    max-width: 310px; /* Increased width by 20px */
    margin-left: auto;
    margin-right: auto;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.treatment_img_card h3 {
    text-align: left;
    line-height: 1.2; /* Tighter line spacing */
    letter-spacing: -0.5px; /* Tighter character spacing */
}

.treatment_img_card p {
    font-size: 0.9rem; /* Make paragraph text smaller */
    line-height: 1.3; /* Tighter line spacing */
    letter-spacing: 0.3px; /* Tighter character spacing */
    padding-right: 10px; /* Reduced right padding */
}

/* Treatment section background */
.treatment {
     padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Treatment card hover effects */
.treatment_img_card {
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.treatment_img_card:hover {
    background: var(--primary-pink) !important;
    color: var(--text-primary);
}

.treatment_img_card:hover h3,
.treatment_img_card:hover p {
    color: var(--text-primary);
}

/* Professional Facial Treatments image styling */
.img-facial-treatments {
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Skincare products image styling */   
.img-skincare-products {
    width: 100%;
    object-fit: cover;
    position: relative;
    z-index: 10 !important; /* Higher z-index to ensure visibility */
    margin: 0 !important; /* Override any negative margins */
    right: -120px; /* Move 120px to the right */
}

/* Make all testimonial figures the same size */
figure.snip1157 {
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    flex: 0 0 350px !important;
}

/* Ensure testimonial container uses flexbox properly */
.testimonial2 {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important; /* This ensures all figures have the same height */
    gap: 20px !important;
    flex-wrap: wrap !important;
}

/* Make testimonial text areas consistent height */
figure.snip1157 {
    display: flex !important;
    flex-direction: column !important;
}

figure.snip1157 .testimonial_para {
    flex: 1 !important;
    min-height: 250px !important;
}

/* Stars container styling */
figure.snip1157 .testimonial_para .fa-star {
    display: inline !important;
    font-size: 14px !important;
    color: var(--accent-yellow); /* Gold color for stars */
    margin-right: 3px !important;
    vertical-align: baseline !important;
}

/* Remove line break after stars by targeting the br that follows stars */
figure.snip1157 .testimonial_para br {
    display: none !important;
}

/* Add margin to paragraph to separate from stars */
figure.snip1157 .testimonial_para p {
    margin-top: 10px !important;
    margin-bottom: 5px !important;
}

.book-now h3{
    color: var(--text-rose);
    text-decoration: underline;
    font-size: 1.2rem;
    margin-top: 15px;
}


/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    figure.snip1157 {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin: 10px 0 !important;
    }
    
    .testimonial2 {
        flex-direction: column !important;
        align-items: center !important;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    figure.snip1157 {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
        flex: 0 0 300px !important;
    }
}

/* ======== Moved inline styles (centralized) ======== */
.site-header--spaced {
    height: calc(100% + 50px);
    min-height: calc(auto + 50px);
}

.btn--mt-15 {
    margin-top: 15px;
}

.badge--align-top {
    vertical-align: top;
    margin-left: 12px;
}

.treatment--mt-30 {
    margin-top: 10px;
}

.feature-btn--align {
    display: flex;
    align-items: flex-start;
}

.feature-btn__img {
    align-self: flex-start;
    vertical-align: top;
    margin-left: 12px;
}
.feature-btn_img-100 {
    align-self: flex-start;
    vertical-align: top;
    margin-left: 12px;
    width: 100px;
    height: auto;
}

.review-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    text-align: center;
}

.review-stars {
    color: var(--accent-yellow);
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.review-meta-container {
    align-items: center;
    justify-content: center;
}

.review-meta {
    font-size: 14px;
    color: var(--text-dark);
}

.review-meta strong,
.review-meta a {
    font-size: 14px;
    display: inline;
    padding: 0;
}

.faq-section--bg {
    background: var(--primary-subtle);
    padding: 40px 0;
}

.tr-h2-fr--spaced {
    /* Ensure there is a visible gap above the FAQ heading */
    margin-top: 30px !important;
    margin-bottom: 10px;
}

.btn--mt-15-blue {
    margin-top: 25px;
}

.faq-list--narrow {
    margin-top: 25px;
    width: 60%;
    margin-left: 20%;
}

.faq-item--spaced {
    margin-bottom: 12px;
}

/* Online Store Section Styles */
.store-feature-card {
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.store-feature-card:hover {
    transform: translateY(-5px);
}

.store-feature-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.store-feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.bootcamp-benefits {
    margin-top: 12px;
    display: inline-block;
    text-align: left;
    padding-left: 20px;
    color: inherit;
}

.bootcamp-benefits li {
    margin-bottom: 12px;
}

.acne-bootcamp__benefits {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

/* Online Store Section Styles */
.online-store {
    background: url('../Images/bg/glymedplus_bg.png') center/cover;
    padding: 60px 0;
    margin-top: 100px;
}

.store-cta {
    text-align: center;
    margin: 40px 0;
}

.store-cta img {
    max-width: 500px;
    margin-bottom: 30px;
}

.store-cta .btn-hover1-blue-gl,
.store-cta .btn-hover1-blue {
    display: block;
    width: 30%;
    font-size: 1.2rem;
    padding: 15px 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.store-cta p {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* GlyMed Store Section Specific Typography */
.tr-h1-gl {
    margin-top: 50px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark-alt);
    display: block;
    width: 100%;
}

.tr-h2-gl {
    margin-top: 10px;
    margin-bottom: 5px;
    z-index: 1;
    text-align: center;
}

.lead-gl {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* End moved inline styles */

/* Newsletter Form Styling */
/* Center the newsletter form wrapper and make controls a fixed-width block */
#newsletter-form {
    display: block;
    max-width: 800px;
    width: 100%;
    margin: 0 auto; /* center the form under the heading */
}

/* Column that centers the input; input fills the column */
.newsletter-controls {
    width: 420px;
    max-width: 90%;
    margin: 0 auto; /* center the controls column */
}

.newsletter-controls {
    display: block;
}

.newsletter-controls input[type="email"] {
    display: block;
    width: 100%;
    height: 45px;
    padding: 10px 15px;
    font-size: 1rem;
}

.newsletter-controls button[type="submit"] {
    flex: 0 0 auto;
    height: 45px;
    padding: 10px 30px;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px; /* Add whitespace under the button */
}

.newsletter-submit {
    width: 420px;
    max-width: 90%;
    margin: 0 auto 25px auto; /* center and provide spacing */
    text-align: center; /* center the subscribe button under the input */
}

.newsletter-submit button {
    margin: 0;
}

#newsletter-form .consent-container {
    display: flex;
    align-items: center; /* Vertically align checkbox and text */
    gap: 10px;
    margin: 10px 0 6px 0;
    text-align: left;
    flex-wrap: nowrap; /* Prevent checkbox and label from wrapping on desktop */
    overflow: visible;
    width: 420px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto; /* center the consent container block so its left edge lines up with the input column */
}

#newsletter-form .consent-container input[type="checkbox"] {
    margin: 0 8px 0 0; /* small right gap */
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}


/* Stronger rules to prevent breaking between "our" and the link */
#newsletter-form .consent-container > label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    white-space: nowrap !important; /* Prevent text within the label from wrapping on desktop */
    overflow-wrap: normal !important;
    word-break: normal !important;
    margin: 0;
    display: inline;
    vertical-align: middle;
}

/* privacy link inline and no-break */
.no-break, .no-break-link, #newsletter-form .consent-container > label a {
    white-space: nowrap !important;
    display: inline;
}

#newsletter-form .consent-container a {
    color: var(--text-primary-bright);
    text-decoration: none;
}

#newsletter-form .consent-container a:hover {
    text-decoration: underline;
}

/* Responsive: allow consent container to wrap on small screens and stack inputs */
@media (max-width: 443px) {
    #newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    #newsletter-form input[type="email"],
    #newsletter-form button[type="submit"] {
        width: 100%;
    }
    #newsletter-form .consent-container {
        flex-wrap: wrap;
        align-items: center;
    }
    #newsletter-form .consent-container label {
        white-space: normal;
    }
}

/* Final overrides for newsletter-section to ensure intended layout */
section.newsletter-section #newsletter-form .consent-container {
    /* align with the input column (no centering) */
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

section.newsletter-section #newsletter-form .consent-container input[type="checkbox"] {
    /* place checkbox flush with the left edge of the input column */
    margin-left: 0 !important;
    margin-right: 8px !important;
}

/* Allow the label to break onto two lines as structured in the HTML */
section.newsletter-section #newsletter-form .consent-container > label {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.9rem;
}

/* Tighten spacing between 'our' and the link */
section.newsletter-section #newsletter-form .consent-container .no-break,
section.newsletter-section #newsletter-form .consent-container .no-break-link,
section.newsletter-section #newsletter-form .consent-container > label a {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

/* Small screens: keep wrapping behavior but preserve tight spacing */
@media (max-width: 560px) {
    section.newsletter-section #newsletter-form .consent-container .no-break,
    section.newsletter-section #newsletter-form .consent-container .no-break-link,
    section.newsletter-section #newsletter-form .consent-container > label a {
        white-space: normal !important;
    }
}

/* ========================================
   ACCESSIBILITY: Focus Indicators
   ======================================== */

/* Visible focus indicators for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent-rose);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.3);
}

/* Button focus states */
.btn-hover1:focus-visible,
.btn-hover2:focus-visible {
    outline: 3px solid var(--text-dark);
    outline-offset: 2px;
}

/* Link focus states */
a:focus-visible {
    outline: 3px solid var(--accent-rose);
    outline-offset: 2px;
    text-decoration: underline;
}

/* Form input focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 0;
    border-color: var(--accent-blue);
}

/* Skip to main content link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-rose);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}