/*
 * Ozone Page Header Block — Front-end Styles
 * Self-contained — loaded only when the block is present on the page.
 * No dependency on Additional CSS or any other stylesheet.
 */

/* ════════════════════════════════════
   TOKENS
════════════════════════════════════ */
.sz-header {
    --sz-navy:  #0A3264;
    --sz-blue:  #32BED2;
    --sz-pink:  #F52D69;
    --sz-white: #ffffff;
}

/* ════════════════════════════════════
   BASE LAYOUT
════════════════════════════════════ */
.sz-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-size: cover;
    background-position: center;
    padding: 64px 0;
}

.sz-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-left: 32px;
    padding-right: 32px;
}

/* ── Back button ── */
.sz-header__back {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background-color: var(--sz-navy) !important;
    color: var(--sz-white) !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 14px 24px 14px 14px !important;
    width: auto !important;
    transition: opacity 0.2s ease;
}

.sz-header__back:hover {
    opacity: 0.85;
    color: var(--sz-white) !important;
    text-decoration: none !important;
}

.sz-header__back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sz-header__back-icon svg {
    display: block;
}

/* ── Page title ── */
.sz-header__title {
    color: var(--sz-white) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 12px;
    width: 100%;
    margin: 0;
}

/* ── Intro copy ── */
.sz-header__copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sz-header__copy p {
    color: var(--sz-white);
    font-size: 20px;
    line-height: 24px;
    margin: 0;
}

/* ════════════════════════════════════
   COLOUR VARIANTS
════════════════════════════════════ */

.sz-header--blue {
    background-color: var(--sz-blue);
}

.sz-header--pink {
    background-color: var(--sz-pink);
}

/* ════════════════════════════════════
   CIRCLES PATTERN OVERLAY
════════════════════════════════════ */

.sz-header--blue,
.sz-header--pink {
    position: relative;
    overflow: hidden;
}

.sz-header__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://ozoneproject.com/wp-content/uploads/connecting-circles-white-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.sz-header__back,
.sz-header__title,
.sz-header__copy {
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════
   RESPONSIVE: TABLET (≤1100px)
════════════════════════════════════ */
@media (max-width: 1100px) {
    .sz-header {
        padding: 48px 0;
    }

    .sz-header__back {
        padding: 12px 20px 12px 12px !important;
    }
}

/* ════════════════════════════════════
   RESPONSIVE: MOBILE (≤768px)
════════════════════════════════════ */
@media (max-width: 768px) {
    .sz-header {
        padding: 24px 0;
    }

    .sz-header__inner {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .sz-header__back {
        padding: 8px 16px 8px 8px !important;
    }

    .sz-header__title {
        letter-spacing: 1.2px;
        padding-top: 4px;
    }

    .sz-header__copy p {
        font-size: 14px;
        line-height: 18px;
    }
}
