/* --- Branding Color Palette --- */
:root {
    --brand-primary: #3c3c3b;
    /* Charcoal Gray */
    --brand-secondary: #f0f0f0;
    /* Off-White */
    --brand-accent: #8a8a8a;
    /* Muted Greige */
    --brand-text: #ffffff;
    --brand-text-muted: #adb5bd;
    --sidebar-width: 280px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--brand-primary);
    color: var(--brand-text);
    overflow-x: hidden;
}

/* --- Navbar Styles --- */
.navbar {
    transition: background-color 0.4s ease-out, padding 0.4s ease-out;
    padding: 1.5rem 1rem;
    z-index: 1020;
}

.navbar.scrolled {
    background-color: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 1rem;
    border-bottom: 1px solid #222;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-text);
}

.navbar-toggler {
    border: none;
    z-index: 1031;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Sidebar Styles --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: #111;
    border-right: 1px solid #222;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1030;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

body.sidebar-open .sidebar {
    transform: translateX(0);
}

.sidebar-nav .nav-link {
    color: var(--brand-text-muted);
    font-size: 1rem;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.sidebar-nav .nav-link i {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--brand-text);
}

.sidebar-footer {
    margin-top: auto;
}

/* --- Main Content Styles --- */
.main-content {
    flex-grow: 1;
    padding-left: 0;
    transition: padding-left 0.3s ease-in-out;
}

@media (min-width: 992px) {
    body.sidebar-open .main-content {
        padding-left: var(--sidebar-width);
    }
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1560185007-c5ca9de2a47f?q=80&w=2938&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-top: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes the video cover the area */
    z-index: -1;
    /* Puts the video behind your content */
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--brand-text-muted);
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
}

.btn-primary-custom {
    background-color: var(--brand-secondary);
    color: var(--brand-primary);
    border: 2px solid var(--brand-secondary);
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--brand-secondary);
}

/* --- Shared Section Styles --- */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--brand-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Residences Section --- */
.residences-section {
    padding: 6rem 0;
    background-color: var(--brand-primary);
}

.residence-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 500px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
}

.residence-card:hover {
    transform: translateY(-10px);
}

.residence-card .card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-out;
}

.residence-card:hover .card-image {
    transform: scale(1.05);
}

.residence-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.card-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.explore-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.explore-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.residence-card:hover .explore-link {
    opacity: 1;
    letter-spacing: 0.5px;
}

.residence-card:hover .explore-link i {
    transform: translateX(5px);
}

/* --- Amenities Section --- */
.amenities-section {
    padding: 6rem 0;
    background-color: #2a2a29;
}

.amenities-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.amenities-image {
    flex-basis: 50%;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 600px;
}

.amenities-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.amenities-image:hover img {
    transform: scale(1.05);
}

.amenities-content {
    flex-basis: 50%;
}

.amenities-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.amenities-content .lead {
    color: var(--brand-text-muted);
    margin-bottom: 2.5rem;
}

.amenity-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.75rem;
}

.amenity-item .icon {
    font-size: 1.5rem;
    color: var(--brand-secondary);
    margin-right: 1.5rem;
    min-width: 30px;
}

.amenity-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.amenity-item p {
    color: var(--brand-text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .amenities-container {
        flex-direction: column;
    }

    .amenities-image {
        height: 400px;
        width: 100%;
    }
}

/* --- Location Section --- */
.location-section {
    padding: 6rem 0;
    background-color: var(--brand-primary);
}

.location-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-direction: row-reverse;
}

.location-map-container {
    flex-basis: 50%;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 550px;
}

#map {
    width: 100%;
    height: 100%;
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.location-content {
    flex-basis: 50%;
}

.destination-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.destination-item .icon {
    font-size: 1.5rem;
    color: var(--brand-secondary);
    margin-right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.destination-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.destination-item .time {
    color: var(--brand-text-muted);
    font-size: 0.95rem;
    margin-left: auto;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .location-container {
        flex-direction: column;
    }

    .location-map-container {
        height: 350px;
        width: 100%;
    }
    
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0;
    background-color: #2a2a29;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--brand-primary);
    padding: 3rem;
    border-radius: 0.75rem;
    border: 1px solid #222;
}

.form-label {
    color: var(--brand-text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background-color: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #222;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 0.25rem rgba(240, 240, 240, 0.1);
    color: #fff;
}

.form-control::placeholder {
    color: #6c757d;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23adb5bd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.btn-submit {
    background-color: var(--brand-secondary);
    color: var(--brand-primary);
    border: 2px solid var(--brand-secondary);
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: transparent;
    color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

/* --- Footer Section --- */
.site-footer {
    background-color: #111;
    color: var(--brand-text-muted);
    padding: 5rem 0 0;
    font-size: 0.9rem;
}

.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid #222;
}

.footer-brand h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
}

.footer-links h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links ul a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: var(--brand-text-muted);
    margin-left: 1.25rem;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
    }

    .copyright {
        margin-bottom: 1rem;
    }
}
