/* --- GLOBAL RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #FAFAF9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px; /* Space for footer */
}

a { text-decoration: none; color: inherit; }

/* --- NAVIGATION BAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Transparent on desktop */
}

.nav-brand { font-weight: bold; font-size: 20px; letter-spacing: 1px; z-index: 1001; }

/* Desktop Menu */
.nav-links { display: flex; gap: 30px; }

.nav-links a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: #000; font-weight: bold; }

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none; 
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
}

/* --- HOME PAGE ANIMATION --- */
.shape {
    position: absolute;
    border: 1px solid rgba(0,0,0,0.1); 
    z-index: -1; 
    opacity: 0;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* --- LOGO & HOME LAYOUT --- */
.home-container {
    min-height: 80vh; /* Takes up most of screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo {
    width: 350px;
    max-width: 80vw; /* Responsive: Never wider than 80% of screen */
    height: auto;
    display: block;
    margin-bottom: 40px;
}

/* --- STORE BUTTONS --- */
.button-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.store-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 180px; height: 55px; background-color: #000; color: #fff;
    border-radius: 10px; border: 2px solid #000; transition: all 0.3s ease;
}
.store-btn:hover { background-color: #fff; color: #000; transform: translateY(-2px); }
.icon-svg { width: 28px; height: 28px; margin-right: 12px; fill: currentColor; }
.btn-text { text-align: left; line-height: 1.2; }
.small-txt { font-size: 10px; text-transform: uppercase; display: block; }
.big-txt { font-size: 18px; font-weight: bold; display: block; }

/* --- PAGE LAYOUTS --- */
.container {
    max-width: 800px;
    margin: 80px auto 60px; 
    padding: 0 20px;
}

h1 { font-size: 42px; margin-bottom: 20px; font-weight: 300; line-height: 1.2; }
h2 { font-size: 24px; margin-top: 40px; margin-bottom: 15px; border-bottom: 1px solid #ddd; padding-bottom: 10px;}
p { margin-bottom: 20px; font-size: 18px; color: #555; }

/* --- FORMS --- */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 12px; text-transform: uppercase; }
input, textarea {
    width: 100%; padding: 15px;
    border: 1px solid #ccc; background: #fff;
    font-family: inherit; font-size: 16px;
}
button.submit-btn {
    padding: 15px 40px; background: #000; color: #fff; border: none;
    font-size: 14px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
button.submit-btn:hover { opacity: 0.8; }

/* --- RESEARCH LIST --- */
.article-card {
    background: #fff; padding: 30px; margin-bottom: 30px;
    border: 1px solid #eee; transition: transform 0.2s;
}
.article-date { font-size: 12px; color: #999; margin-bottom: 10px; text-transform: uppercase; }
.article-title { font-size: 24px; margin-bottom: 10px; color: #000; }
.article-snippet { font-size: 16px; color: #666; }

/* --- FOOTER --- */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Fixed height footer */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #A8A29E;
    z-index: 10;
}
.site-footer a { color: #A8A29E; text-decoration: none; margin-left: 10px; }

/* --- PRIVACY SPECIFIC --- */
.policy-document { max-width: 600px; font-size: 14px; }
.policy-document h1 { font-size: 24px; border: none; }
.policy-document h2 { font-size: 16px; border: none; margin-top: 20px; }

/* =========================================
   MOBILE RESPONSIVENESS (< 768px)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Reset Nav Layout */
    nav { padding: 15px 20px; background-color: #FAFAF9; /* Solid bg on mobile so menu is readable */ }

    /* 2. Show Hamburger */
    .hamburger { display: block; }

    /* 3. Hide Links by default, slide/fade them in when active */
    .nav-links {
        display: none; /* Hidden */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Right below the nav bar */
        left: 0;
        width: 100%;
        background-color: #FAFAF9;
        padding: 20px;
        border-bottom: 1px solid #ddd;
        gap: 20px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    /* JavaScript will toggle this class */
    .nav-links.active { display: flex; }

    /* 4. Adjust Home Page */
    .home-container {
        /* Allow scrolling if content is tall */
        height: auto; 
        min-height: 80vh; 
        padding-top: 100px; /* clear nav bar */
    }
    
    .logo { width: 280px; margin-bottom: 30px; }
    
    /* 5. Typography Adjustments */
    h1 { font-size: 32px; }
    .container { margin-top: 80px; padding: 0 20px; }
    
    /* 6. Stack Buttons */
    .button-container { flex-direction: column; width: 100%; align-items: center; }
}