/* Core Variables */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    /* Primary font changed to Aptos as requested, with standard fallbacks */
    --font-primary: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Separate serif font purely to match the RÉÉD aesthetic from the image */
    --font-serif: 'Times New Roman', Times, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Wrapper */
.page-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    animation: fadeIn 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* -----------------------------
   HERO SECTION (Initial View)
   ----------------------------- */
.hero-section {
    height: 100vh;
    padding-bottom: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------
   TOP SECTION
   ----------------------------- */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-logo-img {
    max-width: 90%;
    max-height: 120px;
    object-fit: contain;
}

/* -----------------------------
   MIDDLE SECTION (Now at Bottom of Hero)
   ----------------------------- */
.middle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2vh;
}

/* Default State: Logos are dimmed and greyed out */
.logo-container {
    cursor: pointer;
    text-decoration: none;
    opacity: 0.35;
    filter: grayscale(80%);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hover State: The hovered logo becomes fully opaque and scales slightly */
.logo-container:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.left-logo-img {
    max-width: 80%;
    max-height: 70px;
    object-fit: contain;
}

.right-logo-img {
    max-width: 90%;
    max-height: 20px;
    object-fit: contain;
}

/* Contact Scroll Button
   ----------------------------- */
.scroll-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 0;
    width: 100%;
    z-index: 10;
}

.contact-scroll-btn {
    color: var(--text-color);
    /* Changed from --color-white to --text-color for consistency */
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    /* Spreads out the C O N T A C T letters */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 10px 20px;
}

.contact-scroll-btn:hover {
    opacity: 1;
    transform: translateY(3px);
    /* Subtle downward nudge on hover */
}

/* -----------------------------
   BOTTOM SECTION (Footer)
   ----------------------------- */
.bottom-section {
    margin-top: 80vh;
    /* Deep gap forces hero completely off-screen on scroll */
    scroll-margin-top: 65vh;
    /* Pins footer to the very bottom region after scroll */
    margin-bottom: 5vh;
    padding: 0 4vw;
    display: flex;
    justify-content: flex-start;
    gap: clamp(2rem, 8vw, 10rem);
    align-items: flex-end;
}

.contact-block {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ffffff;
}

.contact-block p {
    margin: 0;
}

/* -----------------------------
   Responsive Queries
   ----------------------------- */
@media (max-width: 900px) {
    .hero-section {
        padding-bottom: 8vh;
    }

    .top-logo-img {
        max-width: 80%;
        /* Increased side padding */
        max-height: 65px;
        /* Slightly smaller */
    }

    .middle-section {
        gap: 2rem;
        margin-bottom: 2vh;
    }

    .left-logo-img {
        max-height: 65px;
    }

    .right-logo-img {
        max-height: 16px;
    }

    .bottom-section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        align-items: flex-start;
        text-align: center;
        margin-top: 20vh;
        /* Reduced from 80vh now that hero is a fixed height */
    }

    .contact-block {
        font-size: 0.8rem;
        opacity: 0.7;
        line-height: 1.6;
        flex: 1 1 40%;
        /* Allow blocks to sit side-by-side */
        min-width: 140px;
    }

    .contact-block:first-child {
        width: 100%;
        flex: 1 1 100%;
        /* Force HQ to its own row */
        margin-bottom: 2rem;
    }



    .left-logo-img {
        max-width: 80%;
        max-height: 75px;
        /* REED logo made even bigger */
    }

    .right-logo-img {
        max-width: 85%;
        max-height: 18px;
    }
}