/* =========================================
   1. GLOBAL & RESET
   ========================================= */
body {
    background-color: #f4f9fd; /* Light Blue/Grey Background */
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    overflow-x: hidden; /* Prevents horizontal scrollbar issues */
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================
   2. HEADER (Balanced Height)
   ========================================= */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px; /* Changed from 20px to 15px */
    background-color: #231709; 
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* Removed fixed height so it fits content naturally */
}

#header a img {
    width: 200px;
    height: auto;
    transition: width 0.3s ease;
}

/* =========================================
   3. NAVBAR (Desktop)
   ========================================= */
#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#navbar li {
    position: relative;
}

/* =========================================
   NAVBAR UNDERLINE FIX (Centered & Spaced)
   ========================================= */

#navbar li a {
    position: relative; /* This makes the underline stick to the text */
    font-size: 16px;
    font-weight: 400; 
    color: #ffffff; 
    transition: 0.3s ease;
    padding: 10px 15px;
}

/* The Underline Line */
#navbar li a::after {
    content: '';
    position: absolute;
    width: 0%;           /* Start invisible */
    height: 2px;         /* Thickness */
    background-color: #ffffff; 
    bottom: 2px;         /* Space between text and line */
    left: 50%;           /* Start from center */
    transform: translateX(-50%); /* Center alignment */
    transition: width 0.3s ease; /* Smooth animation */
}

/* Hover & Active State (Expands the line) */
#navbar li a:hover::after,
#navbar li a.active::after {
    width: 70%;          /* Expands to 70% of the word width */
}

/* Hidden elements on Desktop */
#mobile {
    display: none;
}

#close {
    display: none;
}

/* =========================================
   4. HERO BANNER
   ========================================= */
.banner {
    position: relative;
    height: 75vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* Video Background */
.banner video.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark Overlay */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 23, 9, 0.5); /* Dark Brown tint */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.banner h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #f4f9fd; 
}

/* =========================================
   GLOBAL BUTTON STYLE (Applies to all)
   ========================================= */
.btn {
    display: inline-block;
    background: #65350f; /* Brown */
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #65350f; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background: #0d6eff; /* Blue Hover */
    border-color: #0d6eff;
    color: #ffffff;
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* =========================================
   5. INTRO SECTION
   ========================================= */
.intro {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
    line-height: 1.8;
}

.intro p {
    color: #8C6A34; /* Gold/Brown Text */
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* =========================================
   6. FEATURES (Fixed Single Slide)
   ========================================= */
.features {
    padding: 40px 20px;
    background: #ffffff;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2e1503; 
}

/* Container for the slider - Fixed Width & Hidden Overflow */
.features-swiper {
    width: 100%;
    max-width: 900px; /* Limits width so it doesn't stretch too far */
    margin: 0 auto;   
    padding-bottom: 40px; 
    overflow: hidden; /* IMPORTANT: Stops the "moving right" bug */
    position: relative;
}

/* Individual Slide Styling */
.features-swiper .swiper-slide {
    background: #f4f9fd;
    border-radius: 10px;
    padding: 50px 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box; 
}

/* Icons and Text */
.features-swiper i {
    font-size: 3rem; 
    color: #65350f;
    margin-bottom: 20px;
}

.features-swiper h3 {
    margin: 10px 0;
    color: #65350f;
    font-size: 1.6rem; 
}

.features-swiper p {
    color: #8C6A34;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px; 
}

/* Controls */
.swiper-button-next,
.swiper-button-prev {
    color: #65350f !important;
}

.swiper-pagination-bullet-active {
    background: #65350f !important;
}

/* =========================================
   7. LEASING / SPACES
   ========================================= */
.spaces {
    padding: 60px 20px;
    background: #f4f9fd; 
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.spaces h2 {
    font-size: 2rem;
    color: #2e1503;
    margin-bottom: 20px;
}

.spaces p {
    font-size: 1.2rem;
    color: #65350f;
    margin-bottom: 30px;
}

.spaces ul {
    text-align: left; 
    display: inline-block; 
    margin-bottom: 40px;
}

.spaces li {
    font-size: 1.1rem;
    color: #8C6A34;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.spaces li i {
    color: #65350f;
    margin-top: 5px;
}

/* =========================================
   8. GALLERY
   ========================================= */
.gallery {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
}

.gallery h2 {
    font-size: 2rem;
    color: #2e1503;
    margin-bottom: 30px;
}

.teaser-swiper {
    width: 100%;
    max-width: 800px;
    height: 400px; 
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
}

.teaser-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-btn {
    color: #65350f;
    font-weight: 600;
    text-decoration: underline;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: #f4f9fd; 
    padding: 40px 20px 20px; 
    border-top: 1px solid #ddd;
    text-align: center;
}

footer .columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto 30px;
    gap: 30px;
}

footer h4 {
    font-size: 16px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 15px;
}

footer p, footer a {
    color: #000;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

footer .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

footer .social-icons a {
    font-size: 20px;
    color: #000;
}

footer .social-icons a:hover {
    color: #1827f3; /* Blue Hover */
}

footer .copyright {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
}


/* =========================================
   10. MEDIA RESPONSIVENESS (Final & Tested)
   ========================================= */

/* --- TABLET AND MOBILE DEVICES (Max-width 799px) --- */
@media screen and (max-width: 799px) {
    
    #header {
        padding: 15px 30px; 
        position: sticky;
    }

    #header a img { width: 150px; }

    /* 1. Mobile Menu (Dropdown) */
    #navbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #231709;
        box-shadow: 0 15px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        
        /* Hidden State */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        z-index: 998;
    }

    /* Open State */
    #navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #navbar li { margin-bottom: 20px; width: 100%; text-align: center; }
    #navbar li a { font-size: 18px; display: block; padding: 10px; }
    
    #navbar li a::after {
        content: none !important; /* Removes the element entirely */
        display: none !important;
        width: 0 !important;      /* Forces width to 0 just in case */
    }
    
    /* Ensure hover/active states don't bring it back */
    #navbar li a:hover::after,
    #navbar li a.active::after {
        content: none !important;
        display: none !important;
        width: 0 !important;
    }
    
    /* Use Text Color instead for active state */
    #navbar li a:hover,
    #navbar li a.active {
        color: #0d6eff !important; /* Blue text */
        background: rgba(255,255,255,0.05);
        border-radius: 5px;
    }

    /* 2. HAMBURGER ICON (Visible by default) */
    #mobile {
        display: block !important;
        transition: opacity 0.3s ease;
    }
    
    #mobile i {
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
    }

    /* Hide Hamburger when menu is open */
    #navbar.active ~ #mobile {
        opacity: 0; 
        pointer-events: none;
    }

    /* 3. CLOSE BUTTON (The "X") */
    #close { 
        display: block; 
        position: absolute; 
        right: 30px;        /* Exact same position as hamburger */
        top: 50%;           
        transform: translateY(-50%) rotate(-90deg); /* Start rotated */
        
        color: #ffffff;
        font-size: 28px;
        cursor: pointer;
        z-index: 1001; 
        
        /* Initially Hidden */
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Show "X" when menu is open */
    #navbar.active ~ #close {
        opacity: 1;
        transform: translateY(-50%) rotate(0deg); /* Rotate into place */
        pointer-events: auto;
    }
    
    /* General Mobile Tweaks */
    .banner { height: 60vh; }
    .banner h1 { font-size: 2.2rem; }
    footer .columns { flex-direction: column; align-items: center; gap: 20px; }
}

/* --- SMALL MOBILE DEVICES (Max-width 480px) --- */
@media screen and (max-width: 480px) {
    #header { padding: 15px 20px; }
    
    /* Re-align icons for smaller padding */
    #close { right: 20px; } 

    #header a img { width: 130px; }
    .banner h1 { font-size: 1.8rem; }
    .banner h2 { font-size: 1rem; }
    .features-swiper .swiper-slide { padding: 30px 20px; }
    .features-swiper h3 { font-size: 1.4rem; }
    .features-swiper p { font-size: 1rem; }
    .teaser-swiper { height: 250px; }
    .spaces li { font-size: 1rem; }
}
