/* RESET AND WRAPPER */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1a0f0a;
    color: #e0d7d0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* TOP NAVIGATION */
.top-nav {
    background: #2b1d16;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid #4a3728;
    height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* THE FIX: Aligns menu with the footer/content grid */
.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Restores your original content width limit */
    margin: 0 auto;    /* Centers the menu */
}

/* Original link styles */
.top-nav a {
    color: #d2b48c;
    margin-right: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.logo img {
    height: 35px;
    display: block;
    margin-right: 2rem;
}

/* Container for links to handle the right-push */
.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
}

/* LICENSE BUTTON - FORCED RIGHT END OF CONTENT AREA */
.btn-license {
    margin-left: auto !important;
    margin-right: 0 !important;
    background: #d2b48c;
    color: #1a0f0a !important;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-license:hover {
    background: #f5deb3 !important;
}

/* MAIN CONTENT WRAPPER */
#app {
    flex: 1 0 auto;
    width: 100%;
}

/* FOOTER */
.footer {
    background: #0d0806;
    padding: 60px 40px 0px;
    border-top: 1px solid #3e2a1d;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h4 {
    color: #f5deb3;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    display: block;
    color: #8b7355;
    font-size: 0.85rem;
    text-decoration: none;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #f5deb3;
}

.footer-bottom {
    background: #050302;
    padding: 20px 40px;
    border-top: 1px solid #1a0f0a;
    text-align: center;
}

.footer-bottom p {
    color: #4a3728;
    font-size: 0.75rem;
    margin: 0;
}