/* ======================================== */
/* Kevin J. Magnan - legacy skin plus the   */
/* footer sitemap and /building styles.     */
/*                                          */
/* Loaded after main.css on every page, so  */
/* the rules that used to fight it are gone */
/* (2026-09-19): the global element styles  */
/* for body, headings, links, sections and  */
/* buttons, the :root text tokens main.css  */
/* already owns, the .container width, and  */
/* [data-aos] { opacity: 0 }, which hid     */
/* every animated block on /about and       */
/* /resume because no AOS library loads.    */
/* What is left is class-scoped and inert   */
/* unless a page opts into it.              */
/* ======================================== */

/* Root Colors - Custom Brand */
:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --cyan-accent: #06b6d4;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    --border-light: #e5e7eb;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================== */
/* Header/Navigation Sidebar */
/* ======================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9997;
    width: auto;
    transition: all 0.5s ease;
    padding: 15px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

@media (max-width: 992px) {
    #header {
        width: 300px;
        background: var(--bg-white);
        border-right: 1px solid var(--border-light);
        left: -300px;
    }
}

/* Navigation Menu */
.nav-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > ul > li {
    position: relative;
    white-space: nowrap;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-secondary);
    padding: 0 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    border-radius: 24px;
    background: transparent;
    height: 48px;
    width: 48px;
    overflow: visible;
    position: relative;
}

.nav-menu a i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-menu a span {
    margin-left: 12px;
    color: inherit;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

@media (min-width: 992px) {
    .nav-menu a:hover {
        width: 170px;
        padding-right: 20px;
    }

    .nav-menu a:hover span {
        opacity: 1;
        max-width: 130px;
    }
}

.nav-menu .active > a,
.nav-menu a:hover,
.nav-menu li:hover > a {
    color: white;
    background: var(--primary-blue);
}

.nav-menu .active > a i,
.nav-menu a:hover i,
.nav-menu li:hover > a i {
    color: white;
}

.nav-menu .active > a span,
.nav-menu a:hover span,
.nav-menu li:hover > a span {
    color: white;
}

.nav-menu a:hover {
    text-decoration: none;
}

@media (max-width: 992px) {
    .nav-menu a {
        width: 100%;
        border-radius: 24px;
        justify-content: flex-start;
        padding: 0 16px;
    }

    .nav-menu a span {
        position: relative;
        left: 0;
        opacity: 1;
        margin-left: 12px;
        background: transparent;
        color: inherit;
        padding: 0;
    }

    .nav-menu .active > a span,
    .nav-menu a:hover span {
        color: white;
    }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 9998;
    border: 0;
    background: none;
    font-size: 24px;
    transition: all 0.4s ease;
    outline: none;
    line-height: 1;
    cursor: pointer;
    text-align: right;
    /* Hide on desktop, show only on mobile */
    display: none;
}

@media (max-width: 1199.98px) {
    .mobile-nav-toggle {
        display: block;
    }
}

.mobile-nav-toggle i {
    color: var(--text-secondary);
}

.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active #header {
    left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
    color: var(--primary-blue);
}

/* ======================================== */
/* Main Content Area */
/* ======================================== */
#main {
    margin-left: 0;
}

@media (max-width: 992px) {
    #main,
    main {
        margin-left: 0;
    }
}

/* ======================================== */
/* Typography */
/* ======================================== */
/* ======================================== */
/* Sections & Typography */
/* ======================================== */
.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: var(--text-primary);
}

.section-title h2::before {
    content: '';
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: var(--border-light);
    bottom: 1px;
    left: calc(50% - 60px);
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    bottom: 0;
    left: calc(50% - 20px);
}

.section-title p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ======================================== */
/* Buttons */
/* ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ======================================== */
/* Back to Top Button */
/* ======================================== */
.back-to-top {
    position: fixed;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    right: 15px;
    bottom: 15px;
    background: var(--primary-blue);
    color: white;
    transition: all 0.3s ease;
    z-index: 99999;
    padding: 0;
    border: none;
    cursor: pointer;
    line-height: 0;
}

.back-to-top i {
    font-size: 20px;
}

.back-to-top:hover {
    color: white;
    background: var(--dark-blue);
    transform: translateY(-3px);
}

/* ======================================== */
/* Animations */
/* ======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================== */
/* Containers */
/* ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-lg-4,
.col-lg-6,
.col-lg-8,
.col-md-6,
.col-md-12 {
    padding: 10px;
}

.col-lg-4 {
    flex: 0 0 calc(33.333% - 20px);
}

.col-lg-6 {
    flex: 0 0 calc(50% - 20px);
}

.col-lg-8 {
    flex: 0 0 calc(66.666% - 20px);
}

.col-md-6 {
    flex: 0 0 calc(50% - 20px);
}

.col-md-12 {
    flex: 0 0 calc(100% - 20px);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* ======================================== */
/* Responsive Design */
/* ======================================== */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 24px;
    }

    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-6,
    .col-md-12 {
        flex: 0 0 calc(100% - 20px);
    }
}

/* ======================================== */
/* Footer sitemap and the /building page    */
/* Used by _includes/footer.html and        */
/* building.md. Degrades to inline links    */
/* if this sheet is not loaded.             */
/* ======================================== */

.site-footer .footer-sitemap,
.site-footer .footer-machine,
.site-footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
}

.site-footer .footer-machine a,
.site-footer .footer-social a {
    font-size: 0.85em;
    opacity: 0.8;
}

.site-footer .footer-legal {
    margin-top: 1rem;
}

/* The static pages the front page links to use the `page` layout, which has
   no container of its own. Give each one the same reading column main.css
   uses elsewhere so the text is not flush to the window edge. */
.building-page,
.work-page,
.play-page {
    width: 100%;
    max-width: var(--max-width-content, 900px);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.building-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.building-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
}

.building-item h3 {
    margin: 0 0 0.25rem;
}

.building-item p {
    margin: 0;
    color: var(--text-secondary, #6b7280);
}

.building-back {
    margin-top: 2rem;
}
