/* ==========================================================================
   # HEADER BLOCK
   Description: Structural layout, branding dimensions, and header bar alignment
   ========================================================================== */

/* --- Site Header Background & Spacing --- */
.site-header {
    background-color: var(--wp--preset--color--background);
    padding-top: 3.125rem;
    padding-bottom: 2rem;
}

/* --- Header Bar Flex Layout --- */
.site-header .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

/* --- Site Branding & Logo Alignment --- */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* --- Custom Logo Link --- */
.site-branding .custom-logo-link {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

/* --- Custom Logo Image Dimensions --- */
.site-branding .custom-logo {
    display: block;
    width: 285px;
    max-width: 100%;
    height: auto;
}

/* --- Header Navigation Column Wrapper --- */
.header-navigation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.25rem;
    flex-grow: 1;
}

/* ==========================================================================
   # FOOTER BLOCK
   Description: Structural layout, decorative pill element, branding, and contact typography
   ========================================================================== */

/* --- Site Footer Container & Decorative Backdrop --- */
.site-footer {
    position: relative;
    background-color: var(--wp--preset--color--background);
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

/* --- Decorative Geometric Pill Accent --- */
.site-footer::after {
    content: "";
    position: absolute;
    top: 95%;
    right: 5%;
    width: 545px;
    height: 256px;
    background-color: #ededed;
    border-radius: 500px;
    transform: translateY(-50%) rotate(135deg);
    transform-origin: center center;
    pointer-events: none;
    z-index: 0;
}

/* --- Footer Content Container Stacking --- */
.site-footer .container {
    position: relative;
    z-index: 1;
}

/* --- Footer Multi-Column Layout --- */
.site-footer .footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
}

/* --- Footer Branding & Logo --- */
.footer-brand {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

/* --- Footer Logo Link --- */
.footer-brand .footer-logo-link {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

/* --- Footer Logo Image Dimensions --- */
.footer-brand .footer-logo {
    display: block;
    width: 118px;
    max-width: 100%;
    height: auto;
}

/* --- Footer Address Block --- */
.footer-address {
    flex-shrink: 0;
}

/* --- Footer Contact Block --- */
.footer-contact {
    flex-shrink: 0;
}

/* --- Footer Typography & Paragraph Resets --- */
.footer-address p,
.footer-contact p {
    margin: 0;
    color: var(--wp--preset--color--corporate-blue);
    font-family: var(--wp--preset--font-family--ibm-plex-sans);
    font-size: 14px;
    line-height: 1.5;
}

/* --- Footer Strong Labels --- */
.footer-address strong,
.footer-contact strong {
    font-weight: 700;
    color: var(--wp--preset--color--corporate-blue);
}

/* --- Footer Interactive Contact Links --- */
.footer-contact a {
    color: var(--wp--preset--color--corporate-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* --- Footer Contact Link Hover States --- */
.footer-contact a:hover,
.footer-contact a:focus {
    color: var(--wp--preset--color--corporate-orange);
    text-decoration: underline;
}

/* ==========================================================================
   # RESPONSIVE
   Description: Breakpoint adjustments for theme layout blocks
   ========================================================================== */

@media only screen and (min-width: 1600px) {

}

@media only screen and (max-width: 1400px) {

}

@media only screen and (max-width: 1280px) {

}

@media only screen and (max-width: 990px) {

    /* --- Tablet Header Spacing --- */
    .site-header {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    /* --- Tablet Logo Dimensions --- */
    .site-branding .custom-logo {
        width: 240px;
    }

    /* --- Tablet Navigation Wrapper Reset --- */
    .header-navigation-wrapper {
        gap: 0;
    }

    /* --- Tablet Footer Spacing --- */
    .site-footer {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* --- Tablet Footer Multi-Column Grid --- */
    .site-footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    /* --- Tablet Decorative Accent Position --- */
    .site-footer::after {
        right: -80px;
        opacity: 0.5;
    }
}

@media only screen and (max-width: 768px) {

    /* --- Mobile Header Spacing --- */
    .site-header {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    /* --- Mobile Header Bar Vertical Center --- */
    .site-header .header-bar {
        align-items: center;
    }

    /* --- Mobile Logo Dimensions --- */
    .site-branding .custom-logo {
        width: 190px;
    }

    /* --- Mobile Navigation Wrapper Alignment --- */
    .header-navigation-wrapper {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        flex-grow: 1;
    }

    /* --- Mobile Footer Spacing --- */
    .site-footer {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media only screen and (max-width: 650px) {

    /* --- Small Mobile Logo Dimensions --- */
    .site-branding .custom-logo {
        width: 160px;
    }

    /* --- Small Mobile Footer Spacing --- */
    .site-footer {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    /* --- Small Mobile Footer Single-Column Stack --- */
    .site-footer .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* --- Small Mobile Decorative Accent Suppress --- */
    .site-footer::after {
        display: none;
    }
}
