/* FOUC Prevention - skeleton loader for header/footer */
#header:empty, #footer:empty {
    min-height: 100px;
    background: #f8f8f8;
    border: 3px solid #e0e0e0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Header container - make this sticky */
#header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

/* Brutalist Boxed Header */
.brutalist-header-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
    /* Hardware acceleration to fix flickering */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* No transitions - instant changes to prevent glitches */
.page-title,
.page-subtitle {
    overflow: hidden;
}

/* Desktop scrolled state */
.brutalist-header-wrapper.scrolled .page-title,
.brutalist-header-wrapper.scrolled .page-subtitle {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.brutalist-header-wrapper.scrolled .brutalist-header {
    padding: 15px 20px;
}

.brutalist-header-wrapper.scrolled .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brutalist-header-wrapper.scrolled .site-main-title {
    font-size: 24px;
    margin-bottom: 0;
    text-align: left;
}

.brutalist-header-wrapper.scrolled .hamburger-btn {
    display: flex;
}

.brutalist-header-wrapper.scrolled .brutalist-nav {
    display: none;
}

.brutalist-header-wrapper.scrolled .brutalist-nav.nav-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
    border-top: 3px solid #333;
    padding-top: 15px;
}

.brutalist-header-wrapper.scrolled .nav-btn {
    border: none;
    border-bottom: 2px solid #333;
    width: 100%;
    text-align: left;
}

.brutalist-header {
    text-align: center;
    border: 4px solid #333;
    padding: 40px 30px;
    background: #fff;
    margin-bottom: 30px;
}

.site-main-title {
    font-size: 48px;
    font-weight: 900;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
}

.domain-ext {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin: 15px 0 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    margin-bottom: 25px;
}

.brutalist-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: #333;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 24px;
    border: 3px solid #333;
    transition: all 0.2s;
    display: inline-block;
}

.nav-btn:hover {
    background: #fff;
    color: #333;
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 #333;
}

.nav-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 #333;
}

.nav-btn.active {
    background: #fff;
    color: #333;
    box-shadow: inset 4px 4px 0 #333;
}

.header-top {
    display: block;
    text-align: center;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}
.site-footer {
    max-width: 900px;
    margin: 40px auto 10px; /* Bottom spacing */
    padding: 0 20px;
}

.footer-container {
    border: 4px solid #333;
    padding: 25px 20px 20px;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 5px;
    line-height: 1.3;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    font-size: 11px;
}

.footer-section a:hover {
    color: #333;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 2px solid #333;
    font-size: 11px;
    color: #666;
    margin-top: 15px;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #333;
    text-decoration: underline;
}

/* Footer Toggle Button (Mobile only) */
.footer-toggle-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid #333;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 15px;
    justify-content: space-between;
    align-items: center;
}

.footer-toggle-btn .toggle-icon {
    font-size: 10px;
    transition: transform 0.3s;
}

.footer-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.breadcrumb {
    background: #f8f8f8;
    border-bottom: 2px solid #333;
    padding: 10px 0;
    font-size: 12px;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .brutalist-header-wrapper {
        padding: 10px 10px 0 10px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
    }

    .brutalist-header {
        padding: 12px;
        margin-bottom: 10px;
    }

    .brutalist-header-wrapper.scrolled .brutalist-header {
        padding: 10px 12px;
    }

    .brutalist-header-wrapper.scrolled .site-main-title {
        font-size: 24px;
        margin-bottom: 0;
    }

    .site-main-title {
        font-size: 24px;
        letter-spacing: 1px;
        text-align: left;
    }

    .domain-ext {
        font-size: 10px;
    }

    .page-title {
        display: none;
    }

    .page-subtitle {
        display: none;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-btn {
        display: flex;
    }

    .brutalist-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        border-top: 3px solid #333;
        padding-top: 15px;
    }

    .brutalist-nav.nav-open {
        display: flex;
    }

    .nav-btn {
        font-size: 12px;
        padding: 14px 16px;
        border: none;
        border-bottom: 2px solid #333;
        width: 100%;
        text-align: left;
    }

    .nav-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-btn.active {
        box-shadow: none;
        border-left: 4px solid #333;
    }

    .site-footer {
        padding: 10px 10px 0;
        margin-top: 30px;
    }

    .footer-container {
        padding: 20px 15px;
    }

    .footer-toggle-btn {
        display: flex; /* Show toggle button on mobile */
    }

    .footer-grid {
        display: none; /* Hidden by default on mobile */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid.open {
        display: grid; /* Show when toggled */
    }

    .footer-section h3 {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .footer-section a {
        font-size: 10px;
    }

    .footer-section li {
        margin-bottom: 4px;
    }

    .footer-bottom {
        font-size: 11px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #333;
    }

    .footer-bottom p {
        margin: 6px 0;
    }
}