/* --- Hero Section --- */
/* Add this to the top of your CSS to remove default browser gaps */
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure the header sits on top of the hero without pushing it down */
header {
    position: absolute;
    /* or fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    /* Or a solid color if you prefer */
}

/* Adjust the Hero to account for the absolute header */
/* --- Hero Section --- */
.hero {
    position: relative;
    /* Use min-height so content doesn't get cut off on small screens */
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    /* Keeps the card vertically centered within the padding */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;

    /* 100px top for the header, 60px bottom for breathing room */
    padding: 100px 20px 60px;

    /* Essential: ensures padding stays INSIDE the 100vh */
    box-sizing: border-box;
}

/* Texture Overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/canvas-orange.png");
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Dark Tint Overlay */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* --- Hero Content (The Glass Card) --- */
.hero-content {
    position: relative;
    z-index: 2;
    /* This margin auto works with the parent flex to keep things perfectly spaced */
    margin: auto;
    padding: 3rem;
    max-width: 885px;
    width: 100%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* --- Typography & Elements --- */
.logo-div {
    background-color: white;
    border-radius: 50%;
    width: 150px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.hero-lg {
    width: 80%;
    height: auto;
}

.hero-content h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wlcm-to {
    font-size: 1.45rem;
    font-weight: 150;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.toc {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3rem;
    margin-bottom: 0;
}

.hero-h2 {
    font-size: 3.5rem;
    font-family: "Allison", cursive;
    color: #ffffff;
    margin-top: 10px;
    font-weight: 525;
}

/* --- Buttons --- */
.hero-cta {
    margin: 1.5rem 10px 0;
    display: inline-block;
    padding: 16px 36px;
    background-color: #2D3436;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-cta:hover {
    background-color: #535C68;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Background Video --- */
.hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* --- Footer Fix --- */
footer {
    position: relative;
    background-color: var(--sage-green);
    /* Ensure it's solid so video doesn't bleed through */
    z-index: 10;
}

/* --- Responsive Fixes --- */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        /* Changed to min-height so it expands with content */
        padding: 80px 20px;
        /* Extra padding to prevent crowding */
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        padding: 2rem 1rem;
        margin: auto 0;
        /* Keeps the card centered if there is room */
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-cta {
        display: block;
        margin: 12px 0;
        /* Vertical spacing for stacked buttons */
        width: 100%;
        box-sizing: border-box;
    }

    .logo-div {
        width: 120px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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