/**
 * WHF Re-skin — global header/footer styles.
 */

@font-face {
    font-family: "Source Sans 3 WHF";
    src: url("fonts/source-sans-3-latin.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Sans 3 WHF";
    src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
    unicode-range:
        U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

.whf-reskin {
    --whf-primary: #d61b26;
    --whf-primary-dark: #93181f;
    --whf-neutral-900: #13100d;
    --whf-neutral-800: #1f1f1f;
    --whf-neutral-700: #434343;
    --whf-neutral-500: #727272;
    --whf-neutral-300: #d0d0d0;
    --whf-neutral-200: #ededed;
    --whf-neutral-100: #f5f5f5;
    --whf-white: #ffffff;
    --whf-font:
        "Source Sans 3 WHF", "Source Sans 3", "Source Sans Pro", -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    box-sizing: border-box;
    font-family: var(--whf-font);
}
.whf-reskin *,
.whf-reskin *::before,
.whf-reskin *::after {
    box-sizing: border-box;
}

/* =========================================================================
   Header
   ========================================================================= */
.whf-reskin-header {
    position: relative;
    width: 100%;
    background-color: var(--whf-white);
    border-bottom: 1px solid var(--whf-neutral-200);
    z-index: 100;
}

.whf-reskin-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px;
    margin-inline: auto;
    padding: 0.75rem 1rem;
}

.whf-reskin-header__logo {
    flex-shrink: 0;
    line-height: 0;
}
.whf-reskin-header__logo a {
    display: inline-flex;
    align-items: center;
}
.whf-reskin-header__logo img {
    height: 40px;
    width: auto;
}

.whf-reskin-header__nav {
    display: none;
    min-width: 0;
}

.whf-reskin-header__nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.whf-reskin-header__nav-item > a {
    display: block;
    padding: 1.25rem 0.5rem;
    color: var(--whf-neutral-900);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.whf-reskin-header__nav-item > a:hover {
    color: var(--whf-primary);
}

.whf-reskin-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.whf-reskin-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--whf-neutral-500);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.whf-reskin-header__icon-btn svg {
    width: 26px;
    height: 26px;
}
.whf-reskin-header__icon-btn:hover {
    color: var(--whf-neutral-900);
}

.whf-reskin-header__donate {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625em 1.25em;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    color: var(--whf-white);
    background-color: var(--whf-primary);
    border: 2px solid var(--whf-primary);
    border-radius: 100px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}
.whf-reskin-header__donate:hover {
    color: var(--whf-white);
    background-color: var(--whf-primary-dark);
    border-color: var(--whf-primary-dark);
}

/* Hamburger (mobile only). */
.whf-reskin-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.whf-reskin-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--whf-neutral-900);
}

.whf-reskin-header__mobile {
    display: none;
    border-top: 1px solid var(--whf-neutral-200);
    padding: 0.5rem 1rem 1rem;
}
.whf-reskin-header__mobile.is-open {
    display: block;
}
.whf-reskin-header__mobile-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.whf-reskin-header__mobile-list a {
    display: block;
    padding: 0.75rem 0;
    color: var(--whf-neutral-900);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--whf-neutral-200);
}
.whf-reskin-header__mobile-list a:hover {
    color: var(--whf-primary);
}
.whf-reskin-header__mobile-donate {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.625em 1.5em;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--whf-white);
    background-color: var(--whf-primary);
    border-radius: 100px;
}

@media (min-width: 1200px) {
    .whf-reskin-header__inner {
        padding: 0.75rem 2rem;
    }
    .whf-reskin-header__logo img {
        height: 48px;
    }
    .whf-reskin-header__nav {
        display: block;
        flex: 1;
    }
    .whf-reskin-header__donate {
        display: inline-flex;
    }
    .whf-reskin-header__hamburger,
    .whf-reskin-header__mobile {
        display: none !important;
    }
    .whf-reskin-header__nav-item > a {
        padding: 1.25rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* =========================================================================
   Footer
   ========================================================================= */
.whf-reskin-footer {
    background-color: var(--whf-neutral-800);
    color: var(--whf-white);
}
.whf-reskin-footer__inner {
    max-width: 1280px;
    margin-inline: auto;
    padding: 2.5rem 1.5rem 1.5rem;
}

/* Sitemap columns. */
.whf-reskin-footer__sitemap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2rem;
    margin-bottom: 0.5rem;
    align-items: start;
}
.whf-reskin-footer__heading {
    margin: 0 0 0.875rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--whf-white);
}
.whf-reskin-footer__link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.whf-reskin-footer__link-list li + li {
    margin-top: 0.25rem;
}
.whf-reskin-footer__link-list a {
    display: block;
    padding: 0.125rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.15s ease;
}
.whf-reskin-footer__link-list a:hover {
    color: var(--whf-white);
}

.whf-reskin-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.whf-reskin-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}
.whf-reskin-footer__logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.whf-reskin-footer__logo img {
    height: 44px;
    width: auto;
}
.whf-reskin-footer__tagline {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 28ch;
}

.whf-reskin-footer__social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.whf-reskin-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s ease;
}
.whf-reskin-footer__social a:hover {
    color: var(--whf-white);
}
.whf-reskin-footer__social svg {
    width: 18px;
    height: 18px;
}

.whf-reskin-footer__contact {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}
.whf-reskin-footer__contact address {
    font-style: normal;
    margin: 0;
}
.whf-reskin-footer__contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}
.whf-reskin-footer__contact a:hover {
    color: var(--whf-white);
}
.whf-reskin-footer__phone {
    margin: 0.25rem 0 0;
}

.whf-reskin-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}
.whf-reskin-footer__copyright {
    margin: 0;
}
.whf-reskin-footer__legal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.whf-reskin-footer__legal-list a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}
.whf-reskin-footer__legal-list a:hover {
    color: var(--whf-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 768px) {
    .whf-reskin-footer__sitemap {
        grid-template-columns: repeat(5, 1fr);
    }
    .whf-reskin-footer__bottom {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2.5rem;
    }
    .whf-reskin-footer__legal {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
@media (min-width: 1024px) {
    .whf-reskin-footer__inner {
        padding: 3rem 2.5rem 2rem;
    }
    .whf-reskin-footer__contact {
        font-size: 1rem;
        text-align: right;
    }
}

/* =========================================================================
   Defensive overrides
   ========================================================================= */
.whf-reskin.whf-reskin-header {
    background: var(--whf-white);
}
.whf-reskin-header .whf-reskin-header__nav,
.whf-reskin-header .whf-reskin-header__mobile,
.whf-reskin-footer .whf-reskin-footer__sitemap {
    background: transparent;
}

/* =============================================================================
   Language switcher
   ============================================================================= */
.whf-reskin-header__gtranslate {
    display: none; /* mobile: hidden — the widget lives in the menu panel */
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .whf-reskin-header__gtranslate {
        display: inline-flex;
    }
}
.whf-reskin-header #google_translate_element {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0.8rem 1.1rem !important;
    background-color: var(--whf-primary) !important;
    border: none !important;
    border-radius: 100px;
    line-height: 1 !important;
    transition: background-color 0.2s ease;
}
.whf-reskin-header #google_translate_element:hover {
    background-color: var(--whf-primary-dark) !important;
}

.whf-reskin-header #google_translate_element .goog-te-gadget {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    color: transparent !important;
}
.whf-reskin-header #google_translate_element .goog-te-gadget-icon,
.whf-reskin-header #google_translate_element img {
    display: none !important;
}
.whf-reskin-header #google_translate_element .goog-te-gadget-simple,
.whf-reskin-header #google_translate_element .goog-te-menu-value {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    background: transparent !important;
    border: none !important;
}

.whf-reskin-header #google_translate_element .goog-te-gadget-simple,
.whf-reskin-header #google_translate_element .goog-te-gadget-simple *,
.whf-reskin-header #google_translate_element .goog-te-combo {
    color: var(--whf-white) !important;
    font-family: var(--whf-font) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    white-space: nowrap;
    border: none !important;
}
.whf-reskin-header #google_translate_element .goog-te-combo {
    max-width: 160px;
    background: transparent !important;
    cursor: pointer;
}

.whf-reskin-header__mobile-gtranslate {
    margin-top: 0.75rem;
    list-style: none;
}
.whf-reskin-header__mobile-gtranslate #google_translate_element {
    display: inline-flex;
    padding: 0.55em 1.1em;
    background-color: var(--whf-primary) !important;
    border: none !important;
    border-radius: 100px;
}
