/* Global Max-Width framing */
body {
    background-color: #d6d3d1; /* stone-300 - slightly darker stone-gray */
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

#page-container {
    background-color: #f5f5f4; /* stone-100 */
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* Soft outer shadow */
}

/* Framing border only above 1440px */
@media (min-width: 1441px) {
    #page-container {
        border-left: 2px solid #1c1917; /* stone-800 */
        border-right: 2px solid #1c1917; /* stone-800 */
    }
}

/* Custom UI Components - Semantic abstractions */
.card {
    background-color: #fafaf9; /* stone-50 */
    border: 4px solid #1c1917; /* stone-800 */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 8px 8px 0px rgba(28,25,23,1);
}

.btn-primary {
    display: inline-block;
    background-color: #c2410c; /* orange-700 */
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem; /* text-xs */
    letter-spacing: 0.1em; /* tracking-widest */
    padding: 1rem 2rem;
    border: 2px solid #c2410c;
    transition: background-color 0.2s;
    box-shadow: 4px 4px 0px rgba(28,25,23,1);
    text-align: center;
}

.btn-primary:hover {
    background-color: #ea580c; /* orange-600 */
}

.btn-secondary {
    display: inline-block;
    background-color: #1c1917; /* stone-900 */
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border: 2px solid #1c1917;
    transition: background-color 0.2s;
    box-shadow: 4px 4px 0px rgba(28,25,23,1);
    text-align: center;
}

.btn-secondary:hover {
    background-color: #292524; /* stone-800 */
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1c1917;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: #c2410c;
}

.nav-link.active {
    border-bottom: 2px solid #c2410c;
}

/* Specific styling for background attachment fixed used in Home */
.fixed-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: absolute;
    inset: 0;
    transition: opacity 1s ease-in-out;
}

/* Hide scrollbar utility */
.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scroll::-webkit-scrollbar {
    display: none;
}
