/* Dobay Page Header Builder v1.4.0 - fully scoped frontend styles */
.dphb-header,
.dphb-header * {
    box-sizing: border-box;
}

.dphb-header {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    min-height: var(--dphb-height-desktop, 360px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #080a0c;
    color: var(--dphb-text, #fff);
    font-family: inherit;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dphb-header.dphb-width-viewport {
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-right: 0;
}

/* Enfold's standard .content vertical padding is commonly 50px. This opt-in class
   compensates it without changing global Enfold selectors or sibling modules. */
.dphb-header.dphb-width-viewport.dphb-enfold-flush {
    margin-top: calc(-1 * var(--dphb-enfold-gap, 50px));
    margin-bottom: calc(-1 * var(--dphb-enfold-gap, 50px));
}

.dphb-header .dphb-media,
.dphb-header .dphb-overlay,
.dphb-header .dphb-drawing {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dphb-header .dphb-media {
    z-index: -4;
    background: #080a0c;
}

.dphb-header .dphb-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 77% 38%, rgba(222, 176, 92, .12), transparent 31%),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12));
}

.dphb-header .dphb-media-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: var(--dphb-image-position, center center);
    transform: scale(1.001);
}

.dphb-header .dphb-overlay {
    z-index: -3;
    background: linear-gradient(
        var(--dphb-overlay-direction, to right),
        var(--dphb-overlay, rgba(8,9,10,.64)) 0%,
        color-mix(in srgb, var(--dphb-overlay, rgba(8,9,10,.64)) 80%, transparent) 48%,
        rgba(5,6,7,.08) 100%
    );
}

.dphb-header .dphb-drawing {
    z-index: -2;
    opacity: var(--dphb-drawing-opacity, .24);
    mix-blend-mode: screen;
}

.dphb-header .dphb-drawing img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
}

.dphb-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 64%, rgba(255,255,255,.025) 64.2%, transparent 65%),
        linear-gradient(180deg, transparent 72%, rgba(0,0,0,.2));
    pointer-events: none;
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
    .dphb-header .dphb-overlay {
        background: linear-gradient(
            var(--dphb-overlay-direction, to right),
            var(--dphb-overlay, rgba(8,9,10,.64)) 0%,
            var(--dphb-overlay, rgba(8,9,10,.64)) 54%,
            rgba(5,6,7,.08) 100%
        );
    }
}

.dphb-header .dphb-shell {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: var(--dphb-pad-desktop, 36px);
}

.dphb-header.dphb-pos-left .dphb-shell { justify-content: flex-start; }
.dphb-header.dphb-pos-center .dphb-shell { justify-content: center; }
.dphb-header.dphb-pos-right .dphb-shell { justify-content: flex-end; }

.dphb-header .dphb-content {
    position: relative;
    width: min(100%, var(--dphb-content-max, 760px));
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--dphb-radius, 8px);
    background:
        linear-gradient(135deg, rgba(255,255,255,.028), transparent 42%),
        var(--dphb-panel, rgba(9,10,11,.66));
    -webkit-backdrop-filter: blur(var(--dphb-blur, 14px)) saturate(118%);
    backdrop-filter: blur(var(--dphb-blur, 14px)) saturate(118%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 24px 70px rgba(0,0,0,.22);
}

.dphb-header .dphb-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg, var(--dphb-accent, #d9aa51), transparent);
    opacity: .65;
}

.dphb-header.dphb-align-left .dphb-content { text-align: left; }
.dphb-header.dphb-align-center .dphb-content { text-align: center; }
.dphb-header.dphb-align-right .dphb-content { text-align: right; }

.dphb-header .dphb-kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
    color: var(--dphb-accent, #d9aa51);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: .19em;
    text-transform: uppercase;
    text-shadow: 0 0 18px color-mix(in srgb, var(--dphb-accent, #d9aa51) 30%, transparent);
}

.dphb-header .dphb-kicker > span {
    width: 14px;
    height: 1px;
    flex: 0 0 14px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.dphb-header .dphb-heading {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--dphb-text, #fff) !important;
    font: inherit;
    font-size: clamp(31px, 3.12vw, 46px);
    font-weight: 760;
    line-height: 1.035;
    letter-spacing: .012em;
    text-transform: none;
    text-shadow:
        0 2px 18px rgba(0,0,0,.32),
        0 0 28px rgba(255,255,255,.055);
}

.dphb-header .dphb-description,
.dphb-header .dphb-secondary {
    max-width: 72ch;
    padding: 0 !important;
    color: var(--dphb-muted, #f0f2f4) !important;
    font-size: 15px;
    line-height: 1.65;
    text-shadow: 0 2px 12px rgba(0,0,0,.38);
}

.dphb-header .dphb-description {
    margin: 16px 0 0 !important;
    font-weight: 510;
}

.dphb-header .dphb-secondary {
    margin: 11px 0 0 !important;
    font-weight: 430;
    opacity: .94;
}

.dphb-header.dphb-align-center .dphb-description,
.dphb-header.dphb-align-center .dphb-secondary {
    margin-left: auto !important;
    margin-right: auto !important;
}

.dphb-header.dphb-align-right .dphb-description,
.dphb-header.dphb-align-right .dphb-secondary {
    margin-left: auto !important;
}

.dphb-header .dphb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.dphb-header.dphb-align-center .dphb-actions { justify-content: center; }
.dphb-header.dphb-align-right .dphb-actions { justify-content: flex-end; }

.dphb-header .dphb-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 10px 8px 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -1px 0 rgba(0,0,0,.18),
        0 13px 32px rgba(0,0,0,.2);
    transform: translateZ(0);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}

.dphb-header .dphb-button::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(115deg, transparent 8%, rgba(255,255,255,.13) 44%, transparent 68%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.dphb-header .dphb-button.is-primary {
    border-color: rgba(244, 206, 135, .62);
    color: #17120a !important;
    background: linear-gradient(135deg, #efd18e 0%, #d6a550 48%, #a97834 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.54),
        inset 0 -1px 0 rgba(76,46,13,.24),
        0 14px 34px rgba(177,124,50,.18);
}

.dphb-header .dphb-button.is-secondary {
    border-color: rgba(255,255,255,.2);
    background: linear-gradient(135deg, rgba(17,20,23,.88), rgba(9,10,11,.66));
}

.dphb-header .dphb-button-label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.dphb-header .dphb-button-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: currentColor;
    font-size: 15px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.dphb-header .dphb-button.is-primary .dphb-button-icon {
    border-color: rgba(61,39,13,.2);
    background: rgba(43,29,12,.11);
}

.dphb-header .dphb-button:hover,
.dphb-header .dphb-button:focus-visible {
    color: #fff !important;
    border-color: rgba(255,255,255,.5);
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.2),
        0 18px 42px rgba(0,0,0,.25);
}

.dphb-header .dphb-button.is-primary:hover,
.dphb-header .dphb-button.is-primary:focus-visible {
    color: #17120a !important;
    border-color: rgba(255,235,191,.9);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.62),
        0 18px 44px rgba(177,124,50,.25);
}

.dphb-header .dphb-button:hover::before,
.dphb-header .dphb-button:focus-visible::before {
    transform: translateX(120%);
}

.dphb-header .dphb-button:focus-visible {
    outline: 2px solid var(--dphb-accent, #d9aa51);
    outline-offset: 3px;
}

@media (max-width: 989px) {
    .dphb-header { min-height: var(--dphb-height-tablet, 330px); }
    .dphb-header .dphb-shell { padding: min(var(--dphb-pad-desktop, 36px), 30px); }
    .dphb-header .dphb-heading { font-size: clamp(29px, 5vw, 41px); }
    .dphb-header .dphb-drawing { opacity: min(var(--dphb-drawing-opacity, .24), .2); }
}

@media (max-width: 767px) {
    .dphb-header { min-height: var(--dphb-height-mobile, 420px); }

    .dphb-header.dphb-width-viewport.dphb-enfold-flush {
        margin-top: calc(-1 * var(--dphb-enfold-gap, 50px));
        margin-bottom: calc(-1 * var(--dphb-enfold-gap, 50px));
    }

    .dphb-header .dphb-shell {
        width: 100%;
        padding: var(--dphb-pad-mobile, 24px);
    }

    .dphb-header.dphb-pos-left .dphb-shell,
    .dphb-header.dphb-pos-center .dphb-shell,
    .dphb-header.dphb-pos-right .dphb-shell {
        justify-content: flex-start;
    }

    .dphb-header .dphb-content {
        width: 100%;
        padding: 22px;
        -webkit-backdrop-filter: blur(min(var(--dphb-blur, 14px), 16px)) saturate(115%);
        backdrop-filter: blur(min(var(--dphb-blur, 14px), 16px)) saturate(115%);
    }

    .dphb-header .dphb-heading {
        font-size: clamp(28px, 8.2vw, 39px);
        line-height: 1.07;
    }

    .dphb-header .dphb-description,
    .dphb-header .dphb-secondary {
        font-size: 14px;
        line-height: 1.6;
    }

    .dphb-header .dphb-kicker {
        font-size: 11px;
        letter-spacing: .14em;
    }

    .dphb-header .dphb-drawing {
        opacity: var(--dphb-drawing-opacity, .24);
    }
}

@media (max-width: 480px) {
    .dphb-header .dphb-content { padding: 19px; }
    .dphb-header .dphb-actions { width: 100%; }
    .dphb-header .dphb-button { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .dphb-header .dphb-button,
    .dphb-header .dphb-button::before {
        transition: none;
    }
}

/* v1.2.0 — premium image/text refinement + configurable bottom transition rail */
.dphb-header .dphb-media-img {
    -webkit-filter: saturate(1.075) contrast(1.035) brightness(1.015);
    filter: saturate(1.075) contrast(1.035) brightness(1.015);
}

.dphb-header .dphb-media::after {
    background:
        radial-gradient(circle at 76% 32%, rgba(239, 193, 106, .16), transparent 29%),
        radial-gradient(circle at 24% 18%, rgba(255,255,255,.045), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.15));
}

.dphb-header .dphb-content {
    border-color: rgba(255,255,255,.115);
    background:
        linear-gradient(128deg, rgba(255,255,255,.047), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.035)),
        var(--dphb-panel, rgba(9,10,11,.66));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.075),
        inset 0 0 42px rgba(255,255,255,.012),
        0 26px 76px rgba(0,0,0,.245);
}

.dphb-header .dphb-heading {
    text-shadow:
        0 2px 18px rgba(0,0,0,.36),
        0 0 34px rgba(255,255,255,.075);
}

.dphb-header .dphb-description {
    font-weight: 535;
}

.dphb-header .dphb-secondary {
    opacity: .965;
}

.dphb-header .dphb-kicker {
    text-shadow:
        0 0 16px var(--dphb-transition-glow, rgba(224,173,80,.35)),
        0 1px 8px rgba(0,0,0,.28);
}

.dphb-header .dphb-transition-line {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: max(1px, var(--dphb-transition-height, 2px));
    overflow: visible;
    pointer-events: none;
    transform: translateZ(0);
}

.dphb-header.dphb-transition-signature .dphb-transition-line {
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--dphb-transition-start, #f1c96f) 13%,
        var(--dphb-transition-end, #a8742c) 47%,
        var(--dphb-transition-start, #f1c96f) 72%,
        transparent 100%
    );
    box-shadow:
        0 -1px 13px var(--dphb-transition-glow, rgba(241,201,111,.45)),
        0 2px 12px var(--dphb-transition-glow, rgba(241,201,111,.45));
}

.dphb-header.dphb-transition-edge .dphb-transition-line {
    background: linear-gradient(90deg, var(--dphb-transition-start, #f1c96f), var(--dphb-transition-end, #a8742c), var(--dphb-transition-start, #f1c96f));
    box-shadow: 0 0 11px var(--dphb-transition-glow, rgba(241,201,111,.42));
}

.dphb-header.dphb-transition-double .dphb-transition-line {
    background: linear-gradient(90deg, transparent, var(--dphb-transition-start, #f1c96f) 17%, var(--dphb-transition-end, #a8742c) 82%, transparent);
    box-shadow:
        0 -4px 0 rgba(255,255,255,.055),
        0 -4px 12px var(--dphb-transition-glow, rgba(241,201,111,.4)),
        0 2px 11px var(--dphb-transition-glow, rgba(241,201,111,.4));
}

.dphb-header .dphb-transition-line > span {
    position: absolute;
    top: 50%;
    left: -24%;
    width: 24%;
    height: max(3px, calc(var(--dphb-transition-height, 2px) * 3));
    transform: translateY(-50%) skewX(-28deg);
    background: linear-gradient(90deg, transparent, rgba(255,247,219,.02), rgba(255,247,219,.74), rgba(255,247,219,.02), transparent);
    -webkit-filter: blur(1.2px);
    filter: blur(1.2px);
    opacity: .82;
}

.dphb-header.dphb-transition-motion .dphb-transition-line > span {
    animation: dphb-transition-sweep 5.8s cubic-bezier(.4,0,.2,1) infinite;
}

@keyframes dphb-transition-sweep {
    0%, 18% { left: -28%; opacity: 0; }
    28% { opacity: .85; }
    61% { opacity: .7; }
    74%, 100% { left: 108%; opacity: 0; }
}

.dphb-header .dphb-button {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 0 -1px 0 rgba(0,0,0,.18),
        0 14px 36px rgba(0,0,0,.22),
        0 0 0 1px rgba(255,255,255,.015);
}

.dphb-header .dphb-button.is-primary {
    background: linear-gradient(135deg, #f5d998 0%, #d9a84f 48%, #9d6928 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.62),
        inset 0 -1px 0 rgba(76,46,13,.28),
        0 15px 38px rgba(190,132,48,.22),
        0 0 22px rgba(223,171,79,.08);
}

@media (max-width: 767px) {
    .dphb-header .dphb-media-img {
        -webkit-filter: saturate(1.055) contrast(1.025) brightness(1.01);
        filter: saturate(1.055) contrast(1.025) brightness(1.01);
    }

    .dphb-header .dphb-transition-line > span {
        width: 34%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dphb-header.dphb-transition-motion .dphb-transition-line > span {
        animation: none;
        display: none;
    }
}


/* v1.3.0 — semantic glass breadcrumb + refined premium readability */
.dphb-header.dphb-has-breadcrumb .dphb-shell {
    padding-top: max(var(--dphb-pad-desktop, 36px), 62px);
}

.dphb-header .dphb-breadcrumb {
    position: absolute;
    z-index: 7;
    top: clamp(14px, 2.1vw, 26px);
    right: max(18px, calc((100vw - 1260px) / 2 + var(--dphb-pad-desktop, 36px)));
    max-width: min(62vw, 720px);
    margin: 0;
    padding: 0;
    color: rgba(242,245,247,.84);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: .018em;
    text-align: left;
}

.dphb-header.dphb-width-container .dphb-breadcrumb {
    right: var(--dphb-pad-desktop, 36px);
}

.dphb-header .dphb-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    max-width: 100%;
    margin: 0 !important;
    padding: 8px 12px !important;
    overflow: hidden;
    list-style: none !important;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
        rgba(7,10,12,.50);
    -webkit-backdrop-filter: blur(15px) saturate(128%);
    backdrop-filter: blur(15px) saturate(128%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.11),
        0 10px 28px rgba(0,0,0,.20),
        0 0 18px rgba(220,170,75,.045);
}

.dphb-header .dphb-breadcrumb li {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    line-height: 1.2;
}

.dphb-header .dphb-breadcrumb a,
.dphb-header .dphb-breadcrumb span {
    display: block;
    overflow: hidden;
    max-width: 210px;
    color: inherit !important;
    text-decoration: none !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dphb-header .dphb-breadcrumb a {
    color: var(--dphb-accent, #e0ad50) !important;
    text-shadow: 0 0 14px var(--dphb-transition-glow, rgba(224,173,80,.28));
    transition: color .18s ease, filter .18s ease;
}

.dphb-header .dphb-breadcrumb a:hover,
.dphb-header .dphb-breadcrumb a:focus-visible {
    color: #ffe0a0 !important;
    filter: brightness(1.08);
}

.dphb-header .dphb-breadcrumb a:focus-visible {
    outline: 2px solid var(--dphb-accent, #e0ad50);
    outline-offset: 3px;
    border-radius: 3px;
}

.dphb-header .dphb-breadcrumb .is-current span {
    color: rgba(255,255,255,.94) !important;
    font-weight: 720;
}

.dphb-header .dphb-breadcrumb-separator {
    flex: 0 0 auto;
    color: rgba(255,255,255,.42);
    font-size: 15px;
    font-weight: 400;
}

.dphb-header .dphb-content {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.085),
        inset 0 0 48px rgba(255,255,255,.014),
        0 28px 82px rgba(0,0,0,.255),
        0 0 0 1px rgba(225,178,85,.018);
}

.dphb-header .dphb-heading {
    font-weight: 775;
    letter-spacing: .006em;
}

.dphb-header .dphb-description {
    color: color-mix(in srgb, var(--dphb-muted, #f0f2f4) 96%, #fff) !important;
    font-weight: 545;
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
    .dphb-header .dphb-description { color: var(--dphb-muted, #f0f2f4) !important; }
}

@media (max-width: 989px) {
    .dphb-header.dphb-has-breadcrumb .dphb-shell {
        padding-top: max(min(var(--dphb-pad-desktop, 36px), 30px), 58px);
    }
    .dphb-header .dphb-breadcrumb {
        right: max(16px, min(var(--dphb-pad-desktop, 36px), 30px));
        max-width: 72vw;
    }
}

@media (max-width: 767px) {
    .dphb-header.dphb-has-breadcrumb .dphb-shell {
        padding-top: max(var(--dphb-pad-mobile, 24px), 70px);
    }
    .dphb-header .dphb-breadcrumb,
    .dphb-header.dphb-width-container .dphb-breadcrumb {
        top: 14px;
        left: var(--dphb-pad-mobile, 24px);
        right: var(--dphb-pad-mobile, 24px);
        max-width: none;
        font-size: 10.5px;
    }
    .dphb-header .dphb-breadcrumb ol {
        justify-content: flex-start;
        width: fit-content;
        max-width: 100%;
        padding: 7px 10px !important;
    }
    .dphb-header .dphb-breadcrumb a,
    .dphb-header .dphb-breadcrumb span {
        max-width: 34vw;
    }
}

@media (max-width: 480px) {
    .dphb-header .dphb-breadcrumb {
        left: 16px;
        right: 16px;
    }
    .dphb-header .dphb-breadcrumb ol { gap: 5px; }
    .dphb-header .dphb-breadcrumb a,
    .dphb-header .dphb-breadcrumb span { max-width: 31vw; }
}

@media (prefers-reduced-motion: reduce) {
    .dphb-header .dphb-breadcrumb a { transition: none; }
}
