/*
 * Theme Name: Julie Jae Works Studio
 * Version: 2.4
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: Julie Jae Works Studio
 */

/**
 * Custom Styling for the FluentForm Submission Button
 */
form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--background) !important;
    border-color: var(--wp--preset--color--primary) !important;
    transition: filter 0.2s ease !important;
}

form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit:hover {
    filter: brightness(1.1) !important;
}

/*
 * When clicking links, make the scrolling behavior smooth to improve the user experience.
 */
html {
    scroll-behavior: smooth;
}

.wp-block-site-title a:hover {
    opacity: 80%;
}

.wp-block-navigation-item {
    color: var(--wp--preset--color--text);
}

.wp-block-navigation-item:hover {
    opacity: 80%;
}

.wp-block-button:hover {
    opacity: 80%;
}

/*
Get rid of the padding above/below the blocks wrapper,
which was leaving whitespace above/below the header/footer
*/
.wp-site-blocks {
    padding: 0;
}

/*
Get rid of the default margin-top around all of the outer blocks (example: hero section after header),
changing here instead of theme.json so that global blockGap is not changed for inner blocks and elements
 */
:where(.wp-site-blocks)>* {
    margin-block-start: 0;
}

/*
Adjust positioning of the "details" block summary when it is an H4
 */
summary h4 {
    display: inline;
    margin-left: 10px;
}

.header-block {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid;
}

/*
Hide an info box/block from the frontend of the site (like the info box on the contact page block pattern.
 */
.hide-from-site-frontend {
    display: none;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
    display: block;
}

/*
 * Fix website header to always show at top of page and have colors from the theme
 */
.site-header {
    position: fixed;
    width: 100%;
    background-color: var(--wp--preset--color--background);
    z-index: 1000;
    border-bottom: 1px solid;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    /* Add a bottom box shadow to the header block */
}

.site-header img {
    height: auto;
    width: calc(var(--wp--preset--spacing--40) * 2);
}

/* Adjust for admin bar on desktop */
.admin-bar .site-header {
    top: 32px !important;
    /* WordPress admin bar height on desktop */
}

/* Adjust for admin bar on mobile devices */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
        /* WordPress admin bar height on mobile */
    }
}

/* For very small screens where WP removes the admin bar */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0 !important;
    }
}

/*
 * Make the separator between the footer and content, not so thick
 */
.wp-block-separator {
    border: none !important;
    border-top: 1px solid !important;
}

#products .wp-block-column {
    transition: scale 0.15s ease-in-out;
}

#products .wp-block-column:hover {
    scale: 105%;
}

/*Fix overflow of some unsplash images in certain browsers  */
img {
    width: 100%;
}

.footer-contact-columns .wp-block-group {
    text-align: center;
}

.footer-contact-columns {
    align-items: center;
}


/* Sitewide heading flow pass — 2026-09-05 */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.jjm2 :is(h1, h2, h3),
.jjw-beauty :is(h1, h2, h3),
.jjw-wellness :is(h1, h2, h3),
.jjc :is(h1, h2, h3),
.se :is(h1, h2, h3),
.jr :is(h1, h2, h3),
body.page-id-10034066 main :is(h1, h2, h3) {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
}

@media (min-width: 901px) {
    .jjm2-found h2,
    body.page-id-10034066 .story h2 {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .jjw-beauty-hero-copy {
        position: relative !important;
        z-index: 2 !important;
        overflow: visible !important;
    }

    .jjw-beauty-hero h1 {
        width: max-content !important;
        max-width: none !important;
        font-size: clamp(42px, 3.7vw, 50px) !important;
        line-height: 1.04 !important;
        letter-spacing: -0.035em !important;
        white-space: nowrap !important;
    }

    .jjw-beauty-topic-copy h3 {
        min-height: 56px !important;
        font-size: 25px !important;
        line-height: 1.12 !important;
    }

    .jjw-wellness-card h3 {
        min-height: 49px !important;
    }

    .jjc-story-copy h3 {
        min-height: 52px !important;
    }

    body.page-id-10034066 .value-grid .value h3 {
        min-height: 60px !important;
    }
}

@media (max-width: 900px) {
    .jjm2 :is(h1, h2, h3),
    .jjw-beauty :is(h1, h2, h3),
    .jjw-wellness :is(h1, h2, h3),
    .jjc :is(h1, h2, h3),
    .se :is(h1, h2, h3),
    .jr :is(h1, h2, h3),
    body.page-id-10034066 main :is(h1, h2, h3) {
        max-width: 100% !important;
        text-wrap: balance;
    }

    .jjw-beauty-topic-copy h3,
    .jjw-wellness-card h3,
    .jjc-story-copy h3,
    body.page-id-10034066 .value-grid .value h3 {
        min-height: 0 !important;
    }
}

@media (max-width: 560px) {
    .jjm2-hero h1 {
        font-size: clamp(1.15rem, 5.8vw, 1.55rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.025em !important;
        white-space: nowrap !important;
    }

    .jjm2-found h2,
    .jjm2-fcopy h2 {
        font-size: clamp(1.75rem, 8vw, 2rem) !important;
        line-height: 1.1 !important;
    }

    .jjw-beauty-hero h1 {
        width: auto !important;
        font-size: clamp(1.7rem, 8.2vw, 2rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.03em !important;
        white-space: nowrap !important;
    }

    .jjw-beauty-intro h2,
    .jjw-beauty-personal h2,
    .jjw-beauty-root h2,
    .jjw-beauty-k18 h2,
    .jjw-beauty-finale h2 {
        font-size: clamp(1.8rem, 8.5vw, 2.2rem) !important;
        line-height: 1.12 !important;
    }

    .jjw-beauty-topic-copy h3 {
        font-size: 1.35rem !important;
        line-height: 1.15 !important;
    }

    .jjw-wellness-hero h1 {
        font-size: clamp(1.25rem, 5.7vw, 1.45rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.025em !important;
        white-space: nowrap !important;
    }

    .jjw-wellness h2 {
        font-size: clamp(1.75rem, 8vw, 2.15rem) !important;
        line-height: 1.12 !important;
    }

    .jjc h1 {
        font-size: clamp(1.7rem, 7.7vw, 1.95rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.025em !important;
        white-space: nowrap !important;
    }

    .jjc .jjc-title,
    .jjc h2 {
        font-size: clamp(1.75rem, 8vw, 2.05rem) !important;
        line-height: 1.12 !important;
    }

    .jjc-story-copy h3 {
        font-size: 1.45rem !important;
        line-height: 1.15 !important;
    }

    .se h1 {
        font-size: clamp(2.25rem, 11vw, 2.7rem) !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    .se h2,
    .se-copy h3 {
        font-size: clamp(1.55rem, 7vw, 1.9rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-10034066 main h1 {
        font-size: clamp(2.1rem, 10.5vw, 2.55rem) !important;
        line-height: 1.06 !important;
        white-space: nowrap !important;
    }

    body.page-id-10034066 main h2 {
        font-size: clamp(1.75rem, 8vw, 2.05rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-10034066 main h3 {
        line-height: 1.15 !important;
    }

    .jr h1 {
        font-size: clamp(2.1rem, 10.5vw, 2.55rem) !important;
        line-height: 1.06 !important;
        white-space: nowrap !important;
    }

    .jr h2 {
        font-size: clamp(1.75rem, 8vw, 2.05rem) !important;
        line-height: 1.12 !important;
    }
}


/* Page-level cascade reinforcement */
@media (min-width: 901px) {
    body.page-id-6804105 .jjw-beauty .jjw-beauty-hero h1 {
        font-size: clamp(42px, 3.7vw, 50px) !important;
        line-height: 1.04 !important;
    }
}

@media (max-width: 560px) {
    body.page-id-6221985 .jjm2 .jjm2-hero h1 {
        font-size: clamp(1.15rem, 5.8vw, 1.55rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.025em !important;
        white-space: nowrap !important;
    }

    body.page-id-6221985 .jjm2 .jjm2-found h2,
    body.page-id-6221985 .jjm2 .jjm2-fcopy h2 {
        font-size: clamp(1.75rem, 8vw, 2rem) !important;
        line-height: 1.1 !important;
    }

    body.page-id-6804105 .jjw-beauty .jjw-beauty-hero h1 {
        width: auto !important;
        font-size: clamp(1.7rem, 8.2vw, 2rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.03em !important;
        white-space: nowrap !important;
    }

    body.page-id-6804105 .jjw-beauty :is(
        .jjw-beauty-intro h2,
        .jjw-beauty-personal h2,
        .jjw-beauty-root h2,
        .jjw-beauty-k18 h2,
        .jjw-beauty-finale h2
    ) {
        font-size: clamp(1.8rem, 8.5vw, 2.2rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-6804105 .jjw-beauty .jjw-beauty-topic-copy h3 {
        font-size: 1.35rem !important;
        line-height: 1.15 !important;
    }

    body.page-id-7873750 .jjw-wellness .jjw-wellness-hero h1 {
        font-size: clamp(1.25rem, 5.7vw, 1.45rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.025em !important;
        white-space: nowrap !important;
    }

    body.page-id-7873750 .jjw-wellness h2 {
        font-size: clamp(1.75rem, 8vw, 2.15rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-7993752 .jjc h1 {
        font-size: clamp(1.7rem, 7.7vw, 1.95rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.025em !important;
        white-space: nowrap !important;
    }

    body.page-id-7993752 .jjc :is(.jjc-title, h2) {
        font-size: clamp(1.75rem, 8vw, 2.05rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-7993752 .jjc .jjc-story-copy h3 {
        font-size: 1.45rem !important;
        line-height: 1.15 !important;
    }

    body.page-id-9974076 .se h1 {
        font-size: clamp(2.25rem, 11vw, 2.7rem) !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    body.page-id-9974076 .se :is(h2, .se-copy h3) {
        font-size: clamp(1.55rem, 7vw, 1.9rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-10034066 main h1 {
        font-size: clamp(2.1rem, 10.5vw, 2.55rem) !important;
        line-height: 1.06 !important;
        white-space: nowrap !important;
    }

    body.page-id-10034066 main h2 {
        font-size: clamp(1.75rem, 8vw, 2.05rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-9944066 .jr h1 {
        font-size: clamp(2.1rem, 10.5vw, 2.55rem) !important;
        line-height: 1.06 !important;
        white-space: nowrap !important;
    }

    body.page-id-9944066 .jr h2 {
        font-size: clamp(1.75rem, 8vw, 2.05rem) !important;
        line-height: 1.12 !important;
    }
}


/* Beauty mobile heading centering — 2026-09-05 */
@media (max-width: 560px) {
    body.page-id-6804105 .jjw-beauty .jjw-beauty-intro h2,
    body.page-id-6804105 .jjw-beauty .jjw-beauty-personal-head h2,
    body.page-id-6804105 .jjw-beauty .jjw-beauty-k18 .jjw-beauty-product-copy h2 {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        text-wrap: balance !important;
        font-size: clamp(1.75rem, 7.8vw, 2.05rem) !important;
        line-height: 1.12 !important;
    }

    body.page-id-6804105 .jjw-beauty .jjw-beauty-intro .jjw-beauty-eyebrow,
    body.page-id-6804105 .jjw-beauty .jjw-beauty-personal-head .jjw-beauty-eyebrow,
    body.page-id-6804105 .jjw-beauty .jjw-beauty-k18 .jjw-beauty-note {
        width: 100% !important;
        text-align: center !important;
    }

    body.page-id-6804105 .jjw-beauty .jjw-beauty-intro .jjw-beauty-rule {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.page-id-6804105 .jjw-beauty .jjw-beauty-intro p,
    body.page-id-6804105 .jjw-beauty .jjw-beauty-k18 .jjw-beauty-product-copy p {
        text-align: left !important;
    }
}

/* Homepage card badge removal — 2026-09-05 */
.jjm2-card .jjm2-icon {
    display: none !important;
}

/* End sitewide heading flow pass */
