/*
|--------------------------------------------------------------------------
| White Monks Kadence Polisher
| First preset: Clean Premium
|--------------------------------------------------------------------------
*/

body.wm-polished {
    --wm-primary: #182c2b;
    --wm-secondary: #3f6f68;
    --wm-accent: #d8a64b;
    --wm-bg-soft: #f7f4ef;
    --wm-bg-light: #ffffff;
    --wm-text: #1f2933;
    --wm-muted: #667085;
    --wm-border: rgba(24, 44, 43, 0.12);

    --wm-radius-sm: 12px;
    --wm-radius-md: 18px;
    --wm-radius-lg: 28px;

    --wm-shadow-soft: 0 18px 45px rgba(16, 24, 40, 0.08);
    --wm-shadow-card: 0 14px 36px rgba(16, 24, 40, 0.10);

    --wm-section-padding-desktop: 88px;
    --wm-section-padding-tablet: 64px;
    --wm-section-padding-mobile: 48px;

    --wm-container-width: 1180px;
    --wm-card-padding: 32px;
    --wm-gap: 28px;
}

/*
|--------------------------------------------------------------------------
| General page rhythm
|--------------------------------------------------------------------------
*/

body.wm-polished .entry-content {
    font-size: 18px;
    line-height: 1.72;
    color: var(--wm-text);
}

body.wm-polished .entry-content p {
    color: var(--wm-muted);
    line-height: 1.72;
}

body.wm-polished .entry-content p:last-child {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Kadence Row Layout polish
|--------------------------------------------------------------------------
*/

body.wm-polished .kb-row-layout-wrap {
    position: relative;
}

body.wm-polished .kb-row-layout-wrap:not(:first-child) {
    margin-top: 0;
}

body.wm-polished .kb-row-layout-wrap > .kt-row-column-wrap {
    max-width: var(--wm-container-width);
    margin-left: auto;
    margin-right: auto;
}

body.wm-polished .kb-row-layout-wrap .kt-row-column-wrap {
    gap: var(--wm-gap);
}

/*
|--------------------------------------------------------------------------
| Section spacing
|--------------------------------------------------------------------------
*/

body.wm-polished .entry-content > .kb-row-layout-wrap {
    padding-top: var(--wm-section-padding-desktop);
    padding-bottom: var(--wm-section-padding-desktop);
}

body.wm-polished .entry-content > .kb-row-layout-wrap:first-child {
    padding-top: 96px;
    padding-bottom: 96px;
}

/*
|--------------------------------------------------------------------------
| Alternate subtle background for better visual separation
|--------------------------------------------------------------------------
*/

body.wm-polished .entry-content > .kb-row-layout-wrap:nth-of-type(even) {
    background: var(--wm-bg-soft);
}

body.wm-polished .entry-content > .kb-row-layout-wrap:nth-of-type(odd) {
    background: var(--wm-bg-light);
}

/*
|--------------------------------------------------------------------------
| Headings
|--------------------------------------------------------------------------
*/

body.wm-polished h1,
body.wm-polished h2,
body.wm-polished h3,
body.wm-polished h4,
body.wm-polished .wp-block-kadence-advancedheading,
body.wm-polished .kt-adv-heading {
    color: var(--wm-primary);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

body.wm-polished h1,
body.wm-polished .entry-content h1,
body.wm-polished .kt-adv-heading[data-kb-block*="kb-adv-heading"] {
    font-weight: 750;
}

body.wm-polished h1 {
    font-size: clamp(42px, 6vw, 74px);
    max-width: 980px;
}

body.wm-polished h2 {
    font-size: clamp(34px, 4vw, 54px);
    max-width: 880px;
}

body.wm-polished h3 {
    font-size: clamp(24px, 2.4vw, 34px);
}

body.wm-polished .entry-content h2 + p,
body.wm-polished .wp-block-kadence-advancedheading + p,
body.wm-polished .kt-adv-heading + p {
    margin-top: 18px;
}

/*
|--------------------------------------------------------------------------
| Text width correction
|--------------------------------------------------------------------------
*/

body.wm-polished .entry-content p {
    max-width: 760px;
}

body.wm-polished .has-text-align-center p,
body.wm-polished .has-text-align-center {
    margin-left: auto;
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

body.wm-polished .wp-block-kadence-advancedbtn .kb-button,
body.wm-polished .wp-block-kadence-advancedbtn .kt-button,
body.wm-polished .kb-button,
body.wm-polished .kt-button,
body.wm-polished .wp-block-button__link {
    border-radius: 999px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease !important;
}

body.wm-polished .wp-block-kadence-advancedbtn .kb-button:hover,
body.wm-polished .wp-block-kadence-advancedbtn .kt-button:hover,
body.wm-polished .kb-button:hover,
body.wm-polished .kt-button:hover,
body.wm-polished .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.14) !important;
}

/*
|--------------------------------------------------------------------------
| Columns as card-like structures
|--------------------------------------------------------------------------
*/

body.wm-polished .kt-inside-inner-col {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.wm-polished .kt-row-column-wrap[data-columns="3"] > .wp-block-kadence-column > .kt-inside-inner-col,
body.wm-polished .kt-row-column-wrap[data-columns="4"] > .wp-block-kadence-column > .kt-inside-inner-col {
    background: #ffffff;
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius-lg);
    padding: var(--wm-card-padding);
    box-shadow: var(--wm-shadow-soft);
    height: 100%;
}

body.wm-polished .kt-row-column-wrap[data-columns="3"] > .wp-block-kadence-column > .kt-inside-inner-col:hover,
body.wm-polished .kt-row-column-wrap[data-columns="4"] > .wp-block-kadence-column > .kt-inside-inner-col:hover {
    transform: translateY(-4px);
    box-shadow: var(--wm-shadow-card);
}

/*
|--------------------------------------------------------------------------
| Kadence Info Box
|--------------------------------------------------------------------------
*/

body.wm-polished .wp-block-kadence-infobox,
body.wm-polished .kt-blocks-info-box-link-wrap,
body.wm-polished .kt-info-box {
    border-radius: var(--wm-radius-lg) !important;
}

body.wm-polished .kt-blocks-info-box-link-wrap,
body.wm-polished .kt-info-box {
    box-shadow: var(--wm-shadow-soft);
    border: 1px solid var(--wm-border);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.wm-polished .kt-blocks-info-box-link-wrap:hover,
body.wm-polished .kt-info-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--wm-shadow-card);
}

/*
|--------------------------------------------------------------------------
| Images
|--------------------------------------------------------------------------
*/

body.wm-polished .wp-block-kadence-image img,
body.wm-polished .wp-block-image img,
body.wm-polished figure img {
    border-radius: var(--wm-radius-lg);
}

body.wm-polished .kb-gallery-image-contain img,
body.wm-polished .kadence-blocks-gallery-item img {
    border-radius: var(--wm-radius-md);
}

/*
|--------------------------------------------------------------------------
| Accordion / FAQ
|--------------------------------------------------------------------------
*/

body.wm-polished .wp-block-kadence-accordion .kt-accordion-panel {
    border-radius: var(--wm-radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--wm-border);
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

body.wm-polished .wp-block-kadence-accordion .kt-blocks-accordion-header {
    font-weight: 700;
    font-size: 18px;
}

/*
|--------------------------------------------------------------------------
| Forms basic polish
|--------------------------------------------------------------------------
*/

body.wm-polished input[type="text"],
body.wm-polished input[type="email"],
body.wm-polished input[type="tel"],
body.wm-polished input[type="url"],
body.wm-polished textarea,
body.wm-polished select {
    border-radius: var(--wm-radius-sm);
    border: 1px solid var(--wm-border);
    padding: 14px 16px;
    box-shadow: none;
}

body.wm-polished input[type="submit"],
body.wm-polished button[type="submit"] {
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Preset: Friendly
|--------------------------------------------------------------------------
*/

body.wm-polished.wm-style-friendly {
    --wm-primary: #243047;
    --wm-secondary: #5c6f91;
    --wm-accent: #ffb84d;
    --wm-bg-soft: #fff7e8;
    --wm-radius-lg: 32px;
}

/*
|--------------------------------------------------------------------------
| Preset: Corporate
|--------------------------------------------------------------------------
*/

body.wm-polished.wm-style-corporate {
    --wm-primary: #101828;
    --wm-secondary: #344054;
    --wm-accent: #2563eb;
    --wm-bg-soft: #f3f6fb;
    --wm-radius-lg: 18px;
    --wm-shadow-soft: 0 12px 30px rgba(16, 24, 40, 0.07);
}

/*
|--------------------------------------------------------------------------
| Preset: Medical
|--------------------------------------------------------------------------
*/

body.wm-polished.wm-style-medical {
    --wm-primary: #123c4a;
    --wm-secondary: #246b7a;
    --wm-accent: #2aa7a5;
    --wm-bg-soft: #eef9f8;
    --wm-radius-lg: 24px;
}

/*
|--------------------------------------------------------------------------
| Preset: Spiritual / Warm
|--------------------------------------------------------------------------
*/

body.wm-polished.wm-style-spiritual {
    --wm-primary: #3c2f2f;
    --wm-secondary: #7a5c58;
    --wm-accent: #c48a52;
    --wm-bg-soft: #faf3ed;
    --wm-radius-lg: 34px;
    --wm-shadow-soft: 0 18px 45px rgba(80, 52, 38, 0.09);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {
    body.wm-polished {
        --wm-section-padding-desktop: var(--wm-section-padding-tablet);
        --wm-card-padding: 26px;
        --wm-gap: 22px;
    }

    body.wm-polished .entry-content > .kb-row-layout-wrap {
        padding-top: var(--wm-section-padding-tablet);
        padding-bottom: var(--wm-section-padding-tablet);
    }

    body.wm-polished .entry-content > .kb-row-layout-wrap:first-child {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

@media (max-width: 767px) {
    body.wm-polished {
        --wm-card-padding: 22px;
        --wm-gap: 18px;
    }

    body.wm-polished .entry-content {
        font-size: 16px;
        line-height: 1.65;
    }

    body.wm-polished .entry-content > .kb-row-layout-wrap {
        padding-top: var(--wm-section-padding-mobile);
        padding-bottom: var(--wm-section-padding-mobile);
    }

    body.wm-polished .entry-content > .kb-row-layout-wrap:first-child {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    body.wm-polished h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    body.wm-polished h2 {
        font-size: clamp(30px, 9vw, 40px);
    }

    body.wm-polished .wp-block-kadence-advancedbtn .kb-button,
    body.wm-polished .wp-block-kadence-advancedbtn .kt-button,
    body.wm-polished .kb-button,
    body.wm-polished .kt-button,
    body.wm-polished .wp-block-button__link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    body.wm-polished .kt-row-column-wrap[data-columns="3"] > .wp-block-kadence-column > .kt-inside-inner-col,
    body.wm-polished .kt-row-column-wrap[data-columns="4"] > .wp-block-kadence-column > .kt-inside-inner-col {
        padding: 22px;
    }
}