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

/* FIX: Forces the screen layout to stay static and unscrollable */
html, body {
    height: 100%;
    overflow: hidden; 
}

body {
    font-family: 'DM Sans', sans-serif; /* Updated to DM Sans */
    background-color: #ffffff; /* 80% Main dominant background */
    color: #121212; /* Black text for readability */
    display: flex;
    flex-direction: column;
}

/* --- Animation Stopper Utility --- */
.resize-animation-stopper,
.resize-animation-stopper *,
.resize-animation-stopper *::before,
.resize-animation-stopper *::after {
    transition: none !important;
    animation: none !important;
}

/* --- Navbar Container --- */
.navbar {
    width: 100%;
    background-color: #ffffff; 
    border-bottom: 2px solid #121212; /* Sharp black accent border */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.nav-logo #logo-img {
    height: 48px; 
    width: auto;
    display: block;
}

/* --- Menu Toggle Button (Mobile Only) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #121212; 
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100; /* Keeps button on top of the mobile menu screen */
}

/* Smoothly rotate the menu icon when it changes */
.menu-toggle i {
    transition: transform 0.3s ease;
}

/* --- Right Side Wrapper --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* --- Nav Links --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    color: #555555; 
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #000000; 
}

/* --- Social Media Icons --- */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-socials a {
    color: #555555;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-socials a:hover {
    color: #000000;
    transform: translateY(-2px);
}

/* --- Main Content & Background Layout --- */
.main-content {
    flex: 1 0 auto;
    width: 100%;
    margin-top: 80px; /* Offset to push down under fixed navbar */
    
    /* Center aligning container items */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Pushes content down towards bottom-center */
    padding-bottom: 60px; /* Controls exact distance from bottom footer */
}

/* Container that holds the background video */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100; /* Pushes the video completely behind all content and text */
    overflow: hidden;
    background-color: #000000; /* Fallback black color while video loads */
}

/* Force video aspect ratio to cover screen like an image background */
#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops edges seamlessly to fill container without stretching */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Keeps video perfectly centered */
}

/* --- Pre-Save Core Block Styles --- */
.hero-presave-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85); /* Clean contrast backdrop overlay */
    backdrop-filter: blur(8px); /* Premium frost texture */
    border: 2px solid #121212;
    border-radius: 4px;
    max-width: 90%;
    width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.album-headline {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #121212;
}

.presave-options-wrapper {
    flex-direction: column; /* Stacked on mobile */
    gap: 12px;
    width: 100%;
}

.spotify-btn {
    background-color: #1DB954 !important; /* Spotify Green */
    border-color: #1DB954 !important;
}

.apple-btn {
    background-color: #000000 !important; /* Black */
    border-color: #000000 !important;
}

/* On larger screens, you can make them side-by-side if you prefer */
@media (min-width: 480px) {
    .presave-options-wrapper {
        flex-direction: row;
    }
    .presave-btn {
        flex: 1;
    }
}

.presave-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #121212; /* Black contrast element */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    border: 2px solid #121212;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
}

.presave-btn:hover {
    background-color: transparent;
    color: #121212;
}

.apple-btn:hover {
    color: #FA2D48;
}

/* --- Responsive Mobile Styles --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Renders toggle hamburger button visible */
    }

    /* FIXES OVERLAPPING: Re-architecting the desktop container into a clean mobile layout drawer */
    .nav-right {
        position: fixed; 
        top: 78px; /* Perfectly aligns right underneath your navbar borders */
        left: 0;
        width: 100%;
        height: calc(100vh - 78px);
        background-color: #ffffff; 
        border-bottom: 2px solid #121212; 
        padding: 60px 24px;
        
        /* Force structural alignment vertically downwards instead of row-based clipping */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 50px; 
        
        /* Animation Sliders */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        overflow-y: auto; 
    }

    /* Injected by script when menu is opened */
    .nav-right.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Forces text rows to break downward linearly instead of horizontally squeezing */
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    .nav-item {
        color: #555555;
        font-size: 1.25rem; /* Larger tap targets */
        font-weight: 700;
        display: block;
        width: 100%;
        text-align: center;
        letter-spacing: 2px;
    }

    .nav-item:hover {
        color: #000000;
    }

    /* Handles the separation rules for social platform buttons at the drawer base */
    .nav-socials {
        flex-direction: row; /* Keep social icons aligned side-by-side */
        justify-content: center;
        gap: 28px;
        border-top: 1px solid #e0e0e0; 
        padding-top: 35px;
        width: 85%;
        margin: 0 auto;
    }
    
    .nav-socials a {
        color: #555555;
        font-size: 1.5rem;
    }

    .nav-socials a:hover {
        color: #000000;
    }
    
    .main-content {
        padding-bottom: 40px;
    }
    
    .hero-presave-container {
        width: 90%;
    }
}

/* --- Footer Styles --- */
.site-footer {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0; /* Clean, subtle divider line */
    padding: 30px 20px;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: #777777;
    font-size: 0.85rem;
    font-weight: 400;
}

.legal-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #777777;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #000000; 
}

@media (max-width: 768px) {
    .footer-container {
        gap: 15px;
    }

    .legal-links {
        gap: 12px;
    }
}

/* --- New Countdown Specific Layouts --- */
.countdown-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin: 5px 0;
}

.countdown-box {
    flex: 1;
    background-color: #121212; /* Inverted contrast block color */
    color: #ffffff;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 2px;
}

.countdown-box span {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.countdown-box label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    color: #aaaaaa;
}

/* Utility layout toggle class */
.hide-element {
    display: none !important;
}

/* --- Cookie Consent Banner Styles --- */
.cookie-banner-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.95); /* High-contrast white tone */
    backdrop-filter: blur(10px); /* Clean premium glass effect matching the presave card */
    border: 2px solid #121212; /* Bold premium border constraint */
    border-radius: 4px;
    padding: 16px 20px;
    z-index: 2000; /* Makes sure it floats reliably on top of everything else */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.4;
    font-weight: 500;
}

.cookie-content a {
    color: #121212;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btn {
    background-color: #121212;
    color: #ffffff;
    border: 2px solid #121212;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background-color: transparent;
    color: #121212;
}

/* --- Responsive Cookie Styles --- */
@media (max-width: 576px) {
    .cookie-banner-container {
        bottom: 15px;
        padding: 14px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* ==========================================
   NEW: LEGAL POLICY SPECIFIC STYLES
   ========================================== */

/* Overrides the main layout 'overflow: hidden' constraint only on legal pages */
body.scrollable-page {
    overflow-y: auto !important;
    overflow-x: hidden;
}

body.scrollable-page .main-content {
    display: none; /* Safely avoids background scaling bugs on this template */
}

/* Document content bounding layouts */
.legal-content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px; /* Expanded to accommodate the wide side-by-side design */
    margin: 0 auto;
    padding-top: 120px; /* Gives plenty of clearance below the navbar */
    padding-bottom: 60px;
    padding-left: 24px;
    padding-right: 24px;
}

.legal-article {
    background-color: #ffffff;
    border: 2px solid #121212;
    border-radius: 4px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.legal-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #121212;
    margin-bottom: 8px;
}

.legal-date {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 35px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #121212;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
}

/* Responsive constraints for legal documentation cards */
@media (max-width: 768px) {
    
    .legal-article {
        padding: 25px 20px;
    }
    
    .legal-title {
        font-size: 1.75rem;
    }
}

/* --- Standalone Cookie Page Custom Tweak Layouts --- */
.cookies-settings-box {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.cookie-page-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-page-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #121212;
    margin-bottom: 6px;
    text-transform: none !important; /* Overrides uppercase headers for clear styling */
}

.cookie-page-info p {
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.5;
}

.cookie-page-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #121212;
    cursor: pointer;
    margin-top: 4px;
}

.cookie-page-action {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
}

.success-text {
    font-size: 0.9rem;
    color: #2e7d32;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 576px) {
    .cookie-page-row {
        flex-direction: column;
        gap: 15px;
    }
    .cookie-page-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cookie-page-action .cookie-btn {
        width: 100%;
    }
}

/* --- Dedicated Contact Page Styles --- */
.legal-subtitle {
    font-size: 1rem;
    color: #666666;
    margin-top: -10px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.contact-form-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-field {
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #121212;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #121212;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #121212;
    box-shadow: 0 0 0 2px rgba(18, 18, 18, 0.05);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-action-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.form-action-row .cookie-btn {
    min-width: 160px;
}

.status-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.status-feedback.success {
    color: #2e7d32;
}

.status-feedback.error {
    color: #c62828;
}

@media (max-width: 768px) {
    .form-group-row {
        flex-direction: column;
        gap: 24px;
    }
    
    .form-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-action-row .cookie-btn {
        width: 100%;
    }
}

/* --- Centered Two-Column Contact Page Layout --- */
.contact-page-container {
    display: flex;
    flex-direction: row;
    gap: 80px;
    width: 100%;
    margin-top: 20px;
}

.contact-main-content {
    flex: 2;
}

.category-tag {
    font-size: 0.75rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contact-heading {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 10px 0 30px 0;
    color: #121212;
}

.contact-inputs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Minimalist light grey text inputs matching image */
.input-field input,
.input-field textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #e2e2e2;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    color: #121212;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: #121212;
    background-color: #ffffff;
}

.input-field textarea {
    resize: vertical;
}

/* Wide black block button spanning the input area layout */
#open-draft-btn {
    width: 100%;
    background-color: #121212;
    color: #ffffff;
    border: none;
    padding: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

#open-draft-btn:hover {
    background-color: #333333;
}

/* Sidebar Info Structure */
.contact-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 50px;
}

.sidebar-block h3 {
    font-size: 0.75rem;
    color: #888888;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-block p, 
.sidebar-block a {
    font-size: 1.1rem;
    color: #121212;
    text-decoration: none;
    margin: 6px 0;
    display: inline-block;
}

.sidebar-block a:hover {
    text-decoration: underline;
}

/* Responsive formatting for smaller tablet or mobile screen widths */
@media (max-width: 768px) {
    .contact-page-container {
        flex-direction: column;
        gap: 40px;
    }
    .contact-sidebar {
        padding-top: 0;
    }
}