/**
 * Header Section Block Styles
 * Fixed position header with logo (matching Navigation block pattern)
 */

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

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

/* ============================================
   HEADER BASE STYLES
   ============================================ */

.header-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 86px;
    background-color: transparent;
    z-index: 999;
    padding: 0;
    margin: 0;
}

.header-section__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* ============================================
   LINK STYLES
   ============================================ */

.header-section__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-section__link-text {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary-foreground);
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.header-section__link-text:hover {
    opacity: 0.7;
}

/* ============================================
   LOGO STYLES
   ============================================ */

.header-section__logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-section__logo-image {
    display: block;
    height: 36px;
    width: auto;
    transition: opacity 0.2s ease;
}

/* ============================================
   LIGHT MODE (DEFAULT)
   ============================================ */

.header-section--light .header-section__link-text {
    color: var(--color-primary-foreground);
}

/* ============================================
   DARK MODE
   ============================================ */

.header-section--dark .header-section__link-text {
    color: var(--color-secondary-foreground);
}

/* ============================================
   STICKY HEADER WITH BACKGROUND (ON SCROLL)
   ============================================ */

.header-section.is-scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Light mode changes to dark text on scroll */
.header-section--light.is-scrolled .header-section__link-text {
    color: var(--color-secondary-foreground);
}

/* Dark mode stays dark text on scroll */
.header-section--dark.is-scrolled .header-section__link-text {
    color: var(--color-secondary-foreground);
}

/* ============================================
   EDITOR STYLES
   ============================================ */

.header-section-editor {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f9f9f9;
}

.header-section-preview {
    background: transparent;
    padding: 40px 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.header-section-preview__container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-section-preview__link {
    display: flex;
    align-items: center;
}

.header-section-preview__link-text {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary-foreground);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.header-section-preview__logo {
    display: flex;
    align-items: center;
}

.header-section-preview__logo img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 36px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .header-section__container {
        padding: 24px 60px;
    }
}

@media (max-width: 1024px) {
    .header-section__container {
        padding: 24px 40px;
    }
}

@media (max-width: 768px) {
    .header-section {
        height: 80px;
    }

    .header-section__container {
        padding: 20px 20px;
        height: 80px;
    }

    .header-section__logo-image {
        height: 28px;
    }

    .header-section-preview {
        padding: 30px 15px;
    }

    .header-section-preview__container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header-section {
        height: 72px;
    }

    .header-section__container {
        padding: 16px 20px;
        height: 72px;
    }

    .header-section__logo-image {
        height: 24px;
    }
}
