
.top-nav-overlay {
    position: fixed;
    top: 20px;
    right: 20px; /* Change to left: 20px if you want it opposite the language button */
    z-index: 1001; /* Above the hero but below the drawer */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.info-btn {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    padding: 8px 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-btn:hover {
    background: #1a1a1a;
    color: white;
}

.giant-title {
    /* Magic Numbers: Min 50px, Ideal 22vw, Max 400px */
    font-size: clamp(50px, 22vw, 400px); 
    font-weight: 900;
    line-height: 0.8;
    text-align: center;
    letter-spacing: -1.5vw;
    margin: 0;
    color: #1a1a1a;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20vh;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 2px #1a1a1a;
}
h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 10px;
    opacity: 50%;
}

.environment-page.active {
    bottom: 0;
}

.env-content {
    max-width: 900px;
    text-align: center;
}

#drawerTitle {
    font-size: 8em;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1;
}

#drawerDescription {
    font-size: 1em;
    line-height: 1.5;
    margin-top: 30px;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
}
.environment-page {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 100;
    /* Allow vertical scrolling */
    overflow-y: auto; 
    transition: bottom 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-sizing: border-box;
    display: block; /* Changed from flex to allow natural scrolling */
}

.environment-page.active {
    bottom: 0;
}

.env-content {
    max-width: 800px;
    margin: 15vh auto; /* Centers content with space at top/bottom */
    padding: 0 40px;
    text-align: center;
}
.close-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    font-weight: 900;
    font-size: 1.2em;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 2px;
    z-index: 101;
    background: white;
    padding: 5px 10px;
    
    /* NEW: Hide it by default */
    opacity: 0;
    pointer-events: none; /* Prevents clicking it while invisible */
    transition: opacity 0.4s ease;
}

/* NEW: Show it only when the drawer is active */
.environment-page.active .close-btn {
    opacity: 1;
    pointer-events: auto;
}

.reveal-curtain {
    position: relative;
    z-index: 2;
    margin-top: 50vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5vw;
    background-color: #f4f4f4;
}

.card-container {
    display: flex;
    gap: 20px;
    align-items: center;
}
 p{
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
 }

 li{
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -.5px;
    padding: 5px;
    font-size:1.5em;
 }

 h3{
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -.5px;
 }

 h4{
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -.5px;
}
 .action-btn {
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    font-family: inherit;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: transparent;
    color: #1a1a1a;
    box-shadow: inset 0 0 0 2px #1a1a1a;
}

#fashionAlternatives ul li {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 2px solid #1a1a1a;
}

.card {
    width: 270px;
    height: 380px;
    background-color: #d4d4d4;
    border-radius: 24px;
    font-family: inherit;
    font-weight: 900;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: -0.06em;
    line-height: 0.85;
    color: #1a1a1aa3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: transparent;
    -webkit-text-stroke: 1.5px #ffffff;
    background-color: #1a1a1a;
}
/* --- TABLET & MOBILE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .giant-title {
        font-size: 15vw; /* Shrink title so it doesn't overflow */
        padding-top: 15vh;
    }
    
    #drawerTitle {
        font-size: 4em; /* Make drawer title readable on tablets */
    }
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center;
        padding-bottom: 50px;
    }

    .card {
        width: 90vw; /* Cards take up most of the screen width */
        height: 200px; /* Make them shorter rectangles for easier scrolling */
        font-size: 1.8em;
    }

    .giant-title {
        font-size: 20vw;
        letter-spacing: -1vw;
    }

    h2 {
        font-size: 0.8rem;
        letter-spacing: 4px;
        padding: 0 20px;
        text-align: center;
    }

    .env-content {
        padding: 0 20px;
        margin: 10vh auto;
    }

    #drawerTitle {
        font-size: 3em;
    }

    .close-btn {
        top: 20px;
        right: 20px;
        font-size: 1em;
    }
}

/* --- SMALL PHONE ADJUSTMENTS --- */
@media (max-width: 480px) {
    .giant-title {
        font-size: 25vw; /* Large and bold for impact */
    }

    #drawerDescription {
        font-size: 1em;
        line-height: 1.4;
    }
}
/* This triggers when the screen is 768px wide or smaller (Tablets/Phones) */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column; /* Stacks cards vertically */
        align-items: center;    /* Centers them horizontally */
        gap: 30px;              /* Adds space between the stacked cards */
        padding-bottom: 50px;   /* Extra space at the bottom for scrolling */
    }

    .card {
        width: 90vw;            /* Makes cards wide enough for thumb-tapping */
        height: 180px;          /* Adjusted height for a list-like appearance */
        font-size: 1.8em;       /* Slightly smaller text for mobile screens */
    }

    .reveal-curtain {
        justify-content: center; /* Centers the whole container on mobile */
        padding-left: 0;         /* Removes the desktop-only side padding */
    }
}
/* --- IPAD & TABLET (2x2 Grid) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .card-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
        gap: 30px;
        padding: 50px;
        justify-items: center;
    }

    .card {
        width: 100%;       /* Let the grid control the width */
        max-width: 340px;  /* Keep them from getting too huge */
        height: 300px;     /* Square-ish shape for tablets */
        font-size: 2.2em;
    }

    .giant-title {
        font-size: 18vw;
        padding-top: 15vh;
    }

    #drawerTitle {
        font-size: 5em;
    }
}

/* --- IPAD / TABLET SCALING --- */
@media (min-width: 769px) and (max-width: 1180px) {
    .giant-title {
        font-size: 18vw; /* Scales down the title so it fits better */
        padding-top: 12vh;
        letter-spacing: -1vw;
    }

    h2 {
        font-size: 1rem;
        letter-spacing: 6px;
    }

    .carousel-viewport {
        padding: 20px 0;
    }

    .card-container {
        padding: 0 20vw; /* Centers the active card more prominently */
        gap: 40px;       /* Wider gap for larger screens */
    }

    .card {
        width: 60vw;     /* Makes cards look more like a tablet "page" */
        max-width: 500px;
        height: 550px;   /* Taller for better reading on iPad */
        font-size: 3em;
    }
}
.search-container {
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: white;
    padding: 10px 0;
    z-index: 10;
}

#lawSearch {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 3px solid #1a1a1a;
    font-family: Arial, sans-serif;
    outline: none;
    text-transform: uppercase;
    font-weight: 900;
}

.law-grid {
    display: grid;
    gap: 20px;
}

.law-item {
    padding: 20px;
    background: #f9f9f9;
    border-left: 5px solid #1a1a1a;
    transition: transform 0.2s;
}

.law-item h4 {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 1.2em;
}

.law-item p {
    font-size: 0.9em;
    letter-spacing: 0.5px;
    margin: 0;
}

.law-tag {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 2px 8px;
    font-size: 0.7em;
    margin-top: 10px;
    font-weight: bold;
}
/* --- BOTTOM NAVIGATION BAR --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
    margin-top:100px;
    background: linear-gradient(transparent, #f4f4f4 50%); /* Subtle fade behind button */
}

.wide-lib-btn {
    width: 100%;
    max-width: 1200px; /* Limits width on large monitors */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 25px 40px;
    border-radius: 100px; /* Capsule shape */
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wide-lib-btn:hover {
    transform: scale(1.02);
}

.wide-lib-btn:active {
    transform: scale(0.98);
}

.plus-icon {
    font-size: 1.5rem;
}

/* Adjusting layout for iPad/Mobile to ensure the button doesn't cover content */
@media (max-width: 1024px) {
    .reveal-curtain {
        padding-bottom: 120px; /* Space for the bottom button */
    }
    
    .wide-lib-btn {
        padding: 20px 30px;
        font-size: 1rem;
    }
}
/* Hide the carousel initially */
.reveal-curtain {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    pointer-events: none;
}
/* --- UPDATED BOTTOM NAVIGATION --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 100; /* Ensure it stays above everything */
    background: linear-gradient(transparent, #f4f4f4 40%); 
    opacity: 1;            /* Always visible */
    transform: translateY(0); /* Always in position */
    pointer-events: auto;     /* Always clickable */
    transition: transform 0.4s ease; /* For hiding when drawer is open */
}

/* Ensure the carousel doesn't overlap the button on mobile */
.reveal-curtain {
    padding-bottom: 120px; 
    opacity: 1; /* Keeping the carousel visible too, or you can keep it scroll-hidden */
}
.reveal-curtain {
    pointer-events: auto;
}
