/**
 * Service Page Header Block Styles
 * Hero-style header with background image for service detail pages
 * Based on Figma design specs: 1440x440px
 */

/* ============================================
   FORCE FULL-WIDTH DISPLAY
   ============================================ */

.wp-block-mawconsultant-service-page-header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Override any parent container styles */
.site-main .wp-block-mawconsultant-service-page-header,
.entry-content .wp-block-mawconsultant-service-page-header,
article .wp-block-mawconsultant-service-page-header {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   SERVICE PAGE HEADER BASE STYLES
   ============================================ */

.service-page-header {
    position: relative;
    width: 100%;
    height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   BACKGROUND & OVERLAY
   ============================================ */

.service-page-header__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #1a1a1a;
}

.service-page-header__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

/* ============================================
   CONTAINER - FIGMA SPECS
   ============================================ */

.service-page-header__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding-x, 80px) 40px var(--container-padding-x, 80px);
    display: flex;
    align-items: flex-end;
}

.service-page-header__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

/* ============================================
   CATEGORY LABEL - FIGMA SPECS
   ============================================ */

.service-page-header__category {
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   TITLE - FIGMA SPECS
   ============================================ */

.service-page-header__title {
    font-family: var(--font-serif, 'Gambetta', serif);
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: -0.02em;
    color: rgba(240, 240, 240, 1);
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   DESCRIPTION - FIGMA SPECS
   ============================================ */

.service-page-header__description {
    display: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1024px) {
    .service-page-header {
        height: 380px;
    }

    .service-page-header__container {
        padding: 56px var(--container-padding-x, 60px);
    }

    .service-page-header__title {
        font-size: 32px;
        line-height: 40px;
    }
}

@media (max-width: 768px) {
    .service-page-header {
        height: 320px;
    }

    .service-page-header__container {
        padding: 48px var(--container-padding-x, 32px);
    }

    .service-page-header__content {
        gap: 12px;
    }

    .service-page-header__category {
        font-size: 12px;
        line-height: 18px;
    }

    .service-page-header__title {
        font-size: 28px;
        line-height: 36px;
    }

    .service-page-header__description {
        font-size: 11px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    .service-page-header {
        height: 280px;
    }

    .service-page-header__container {
        padding: 40px var(--container-padding-x, 24px);
    }

    .service-page-header__content {
        gap: 10px;
    }

    .service-page-header__category {
        font-size: 11px;
        line-height: 16px;
    }

    .service-page-header__description {
        font-size: 10px;
        line-height: 15px;
    }
}

/* ============================================
   GUTENBERG EDITOR PREVIEW STYLES
   ============================================ */

.service-page-header-editor {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.service-page-header-preview {
    position: relative;
    min-height: 400px;
    height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.service-page-header-preview__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}

.service-page-header-preview__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.service-page-header-preview__container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px;
}

.service-page-header-preview__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.service-page-header-preview__category {
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: rgba(255, 255, 255, 1);
    text-transform: uppercase;
    margin: 0;
}

.service-page-header-preview__title {
    font-family: var(--font-serif, 'Gambetta', serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.02em;
    color: rgba(240, 240, 240, 1);
    margin: 0;
}

.service-page-header-preview__description {
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(255, 255, 255, 1);
    margin: 0;
    max-width: 448px;
}

