/* ==========================================================================
   1. CORE SITE CANVAS Layout
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #000000;
}

.page-container {
    position: relative;
    display: block;
    width: 100vw;
    margin: 0;
    padding: 0;
    line-height: 0; 
}

.page-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. ACCORDION INLINE VISIBILITY MECHANICS
   ========================================================================== */
.dropdown-content {
    display: none; /* Keeps hidden globally until switched */
    width: 100vw;
}

.dropdown-content.is-open {
    display: block; /* Reveals inline box layout block */
}

/* ==========================================================================
   3. RESPONSIVE DEVICES OVERRIDES
   ========================================================================== */
.desktop-only { 
    display: none !important; 
}
.mobile-only { 
    display: block !important; 
}

@media screen and (min-width: 769px) {
    .desktop-only { 
        display: block !important; 
    }
    .mobile-only { 
        display: none !important; 
    }
}

/* ==========================================================================
   4. GLOBAL LINK ENGINE (Turn comments off to hide red layout rectangles)
   ========================================================================== */
.pdf-link {
    position: absolute;
    display: block !important;
    z-index: 100;
    box-sizing: border-box;

    /* RE-ENABLE THESE TWO LINES TO SEE DEBUG BORDERS IN THE BROWSER: */
    /*border: 3px solid #ff0000 !important;*/
    /*background: rgba(255, 0, 0, 0.3) !important;*/
}

/* Automatically spreads triggers to fit their sliced container bounds */
.menu-trigger {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer;
}

/* ==========================================================================
   5. FOOTER BUTTON POSITION TARGETS
   ========================================================================== */

/* --- MOBILE SPECIFIC LAYOUTS --- */
@media screen and (max-width: 768px) {
    .link-email {
        top: 40% !important;   /* Edit inside footer image bounds */
        left: 15% !important;
        width: 70% !important;
        height: 8% !important;
    }
    .link-download {
        top: 60% !important;   /* Edit inside footer image bounds */
        left: 20% !important;
        width: 60% !important;
        height: 8% !important;
    }
}

/* --- DESKTOP SPECIFIC LAYOUTS --- */
@media screen and (min-width: 769px) {
    .link-email {
        top: 78.5% !important;   /* Edit inside footer image bounds */
        left: 1.5% !important;
        width: 6% !important;
        height: 7.5% !important;
    }
    .link-download {
        top: 50% !important;   /* Edit inside footer image bounds */
        left: 40% !important;
        width: 20% !important;
        height: 6% !important;
    }
}

/* ==========================================================================
   6. FIXED CLOSE BUTTON SYSTEM
   ========================================================================== */
.close-btn {
    position: fixed;
    top: 30px;                    /* Default Desktop distance from top window edge */
    right: 30px;                  /* Default Desktop distance from right window edge */
    z-index: 999;                 /* Floats securely over top of all imagery */
    
    /* STRIP ALL BACKGROUNDS AND BORDERS */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    
    /* Dedicated desktop element frame for your square render proportions */
    width: 64px;
    height: 64px;
    cursor: pointer;
    
    /* Core Architecture Mechanics */
    display: none;                /* Hidden until triggered by JS */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Applied via JS logic when a panel is fully open */
.close-btn.is-active {
    display: flex;                /* Flex container isolates inner image placement */
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Controls responsive image containment inside the parent framework boundaries */
.close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* Prevents your 3D square profile from layout distortion */
    display: block;
}

/* High-fidelity interface tactile transitions */
.close-btn:hover {
    transform: scale(1.08);       /* Micro-spring forward hover effect */
    opacity: 1;
}

.close-btn:active {
    transform: scale(0.95);       /* Compresses slightly on click to mimic physical depression */
}

/* Keyboard accessibility layout compliance */
.close-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* --- MOBILE OVERRIDES FOR THE CLOSE BUTTON --- */
@media screen and (max-width: 768px) {
    .close-btn {
        top: 15px;                /* Smashes the button higher up on phone viewports */
        right: 15px;              /* Tightens the right margin to match mobile grids */
        width: 44px;              /* Clean layout scaling so it looks balanced on mobile viewports */
        height: 44px;
    }
}