/*
 * DSB Premier Construction — reusable CTA buttons
 * Approved palette:
 * navy #0A1A2F | gold #CF9F55 | warm gold #C8A55A
 */

:root {
    --dsb-cta-navy: #0A1A2F;
    --dsb-cta-gold: #CF9F55;
    --dsb-cta-warm-gold: #C8A55A;
    --dsb-cta-sans: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================
   1) DSB – CTA – DISCUSS YOUR PROJECT
   Gold outline + approved left-to-right gold wipe on hover.
   ========================================================== */
.dsb-cta-discuss,
.dsb-cta-discuss .et_pb_button_module_wrapper {
    display: inline-block;
    margin: 0 !important;
}

.dsb-cta-discuss .et_pb_button {
    box-sizing: border-box !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 58px !important;
    padding: 17px 38px !important;
    border: 1px solid var(--dsb-cta-gold) !important;
    border-radius: 0 !important;

    background-color: transparent !important;
    background-image: linear-gradient(
        to right,
        var(--dsb-cta-gold) 0%,
        var(--dsb-cta-gold) 100%
    ) !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 0% 100% !important;

    color: var(--dsb-cta-gold) !important;
    box-shadow: none !important;
    font-family: var(--dsb-cta-sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.7em !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    transition:
        background-size .45s cubic-bezier(.22,.61,.36,1),
        color .35s ease,
        border-color .35s ease !important;
}

.dsb-cta-discuss .et_pb_button:hover {
    background-color: transparent !important;
    background-size: 100% 100% !important;
    border-color: var(--dsb-cta-gold) !important;
    color: var(--dsb-cta-navy) !important;
    padding: 17px 38px !important;
    transform: none !important;
}

.dsb-cta-discuss .et_pb_button::before,
.dsb-cta-discuss .et_pb_button::after {
    display: none !important;
    content: none !important;
}

/* ==========================================================
   2) DSB – CTA – EXPLORE OUR WORK / STANDARD
   Boxed reusable CTAs. Geometry is deliberately identical in normal
   and hover states so Divi cannot reflow/move the surrounding section.
   The only animated property is the background wipe + color.
   ========================================================== */
.dsb-cta-explore,
.dsb-cta-standard,
.explore-dsb-hero,
.dsb-cta-explore .et_pb_button_module_wrapper,
.dsb-cta-standard .et_pb_button_module_wrapper,
.explore-dsb-hero .et_pb_button_module_wrapper {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    vertical-align: top !important;
    transform: none !important;
}

.dsb-cta-explore .et_pb_button,
.dsb-cta-standard .et_pb_button,
.explore-dsb-hero .et_pb_button {
    box-sizing: border-box !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    margin: 0 !important;
    padding: 0 30px !important;

    border: 1px solid var(--dsb-cta-gold) !important;
    border-radius: 0 !important;

    background-color: transparent !important;
    background-image: linear-gradient(
        to right,
        var(--dsb-cta-gold) 0%,
        var(--dsb-cta-gold) 100%
    ) !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 0% 100% !important;

    color: var(--dsb-cta-gold) !important;
    box-shadow: none !important;
    font-family: var(--dsb-cta-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    translate: none !important;

    transition:
        background-size .38s cubic-bezier(.22,.61,.36,1),
        color .3s ease,
        border-color .3s ease !important;
    will-change: background-size;
}

.dsb-cta-explore .et_pb_button:hover,
.dsb-cta-standard .et_pb_button:hover,
.explore-dsb-hero .et_pb_button:hover {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    margin: 0 !important;
    padding: 0 30px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: var(--dsb-cta-gold) !important;

    background-color: transparent !important;
    background-size: 100% 100% !important;
    color: var(--dsb-cta-navy) !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    translate: none !important;
}

.dsb-cta-explore .et_pb_button::before,
.dsb-cta-explore .et_pb_button::after,
.dsb-cta-standard .et_pb_button::before,
.dsb-cta-standard .et_pb_button::after,
.explore-dsb-hero .et_pb_button::before,
.explore-dsb-hero .et_pb_button::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================
   3) DSB – CTA – NAVBAR
   Exact reusable counterpart of the approved desktop header CTA.
   ========================================================== */
.dsb-cta-navbar {
    width: 270px !important;
    max-width: 270px !important;
    margin: 0 !important;
}

.dsb-cta-navbar .et_pb_button_module_wrapper {
    width: 100% !important;
    margin: 0 !important;
}

.dsb-cta-navbar .et_pb_button {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #D8AA57 !important;
    color: var(--dsb-cta-navy) !important;
    box-shadow: none !important;
    font-family: var(--dsb-cta-sans) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color .25s ease, color .25s ease !important;
}

.dsb-cta-navbar .et_pb_button:hover {
    padding: 0 18px !important;
    border: 0 !important;
    background: var(--dsb-cta-gold) !important;
    color: var(--dsb-cta-navy) !important;
    transform: none !important;
}

.dsb-cta-navbar .et_pb_button::before,
.dsb-cta-navbar .et_pb_button::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 980px) {
    .dsb-cta-discuss,
    .dsb-cta-navbar {
        max-width: 100% !important;
    }

    .dsb-cta-discuss .et_pb_button,
    .dsb-cta-discuss .et_pb_button:hover {
        max-width: 100% !important;
        padding: 15px 28px !important;
        white-space: normal !important;
    }

    .dsb-cta-navbar {
        width: min(270px, 100%) !important;
    }
}
