/* ==========================================
   VEGA REALTORS COMMON HEADER STYLES
========================================== */

:root {
    --primary: #2400A6;
    --primary-dark: #1F1178;
    --dark: #0F172A;
    --gray: #64748B;
    --light-gray: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
}

/* Navbar default state */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 1.5rem 0 !important;
    transition: all 0.3s ease !important;
    background: #ffffffb3 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid #e8e9eb80 !important;
    box-shadow: none !important;
    display: block !important;
}

.navbar.scrolled {
    padding: 1rem 0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

/* Nav Container */
.nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 4rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
}

/* Logo */
.logo {
    text-decoration: none !important;
    display: flex !important;
    margin-right: auto !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.logo-img {
    width: 120px !important;
    height: auto !important;
    display: block !important;
}

/* Nav Menu */
.nav-menu {
    display: flex !important;
    gap: 2.5rem !important;
    list-style: none !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li {
    position: relative !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu a {
    text-decoration: none !important;
    color: var(--dark) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
}

.nav-menu a:hover {
    color: var(--primary) !important;
}

/* Underline effect for top-level links (excluding CTA and dropdown items) */
.nav-menu>li>a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--primary) !important;
    transition: width 0.3s ease !important;
}

.nav-menu>li>a:hover::after {
    width: 100% !important;
}

/* Disable underline effect for CTA button and dropdown items */
.nav-menu>li>a.nav-cta::after,
.dropdown-content a::after {
    display: none !important;
}

/* Dropdown Container */
.dropdown-content {
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: white !important;
    min-width: 260px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 1rem 0 !important;
    z-index: 1000 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--border) !important;
    margin-top: 15px !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.nav-menu li:hover .dropdown-content {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Dropdown bridge */
.dropdown-content::before {
    content: '' !important;
    position: absolute !important;
    top: -20px !important;
    left: 0 !important;
    width: 100% !important;
    height: 20px !important;
    background: transparent !important;
}

.dropdown-content a {
    color: var(--dark) !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dropdown-content a:hover {
    background-color: var(--light-gray) !important;
    color: var(--primary) !important;
    padding-left: 2rem !important;
}

/* Call to Action button */
.nav-menu a.nav-cta {
    padding: 0.75rem 1.75rem !important;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(36, 0, 166, 0.2) !important;
}

.nav-menu a.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(36, 0, 166, 0.3) !important;
    color: white !important;
}

/* Hamburger Toggle */
.menu-toggle {
    display: none !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 4px !important;
    z-index: 1002 !important;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem !important;
    }

    .navbar {
        padding: 1rem 0 !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative !important;
        padding: 0 1.5rem !important;
    }

    .nav-menu {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    /* Active mobile menu drawer */
    .nav-menu.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        padding: 1.5rem !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.12) !important;
        border-top: 1px solid var(--border) !important;
        gap: 0.5rem !important;
        z-index: 1001 !important;
        box-sizing: border-box !important;
    }

    .nav-menu.active li {
        width: 100% !important;
        text-align: left !important;
    }

    .nav-menu.active a {
        width: 100% !important;
        padding: 0.75rem 0 !important;
    }

    .nav-menu.active a::after {
        display: none !important;
    }

    /* Mobile dropdown style overrides */
    .nav-menu.active .dropdown-content {
        visibility: hidden !important;
        opacity: 0 !important;
        position: static !important;
        box-shadow: none !important;
        transform: none !important;
        pointer-events: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 8px !important;
        width: 100% !important;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease !important;
    }

    .nav-menu.active .dropdown.open>.dropdown-content {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        max-height: 400px !important;
        background: var(--light-gray) !important;
        padding: 0.5rem 0 0.75rem !important;
        margin: 0.25rem 0 0 !important;
    }

    .nav-menu.active .dropdown>a .fa-chevron-down {
        transition: transform 0.3s ease !important;
    }

    .nav-menu.active .dropdown.open>a .fa-chevron-down {
        transform: rotate(180deg) !important;
    }

    .nav-menu.active a.nav-cta {
        text-align: center !important;
        display: block !important;
        margin-top: 0.5rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* ==========================================
   GLOBAL WHATSAPP FLOAT STYLE & POSITION OVERRIDE
   ========================================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    background-color: #25d366 !important;
    color: white !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
}


.whatsapp-float:hover {
    transform: scale(1.1) !important;
    background-color: #128c7e !important;
    color: white !important;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3) !important;
}

.whatsapp-float svg {
    width: 32px !important;
    height: 32px !important;
    fill: currentColor !important;
}

/* Global Lightbox Modal Styles */
.lightbox-modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    display: none;
}

.lightbox-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white !important;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.7;
    z-index: 10000;
}

.close-lightbox:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    font-size: 2rem;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* Testimonials Common Styles */
.testimonials {
    padding: 50px 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    flex: 0 0 calc((100% - 4rem) / 3);
    scroll-snap-align: start;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.stars {
    color: #FFB800;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.author-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .testimonials {
        padding: 30px 1rem !important;
    }

    .testimonials-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1.5rem !important;
        padding: 1rem 1rem !important;
    }

    .testimonial-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        background: white;
        padding: 2rem !important;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    
}

vega-testimonials {
    display: block;
    width: 100%;
}

/* Section Typography Common Classes */
.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* =========================
   GALLERY SECTION STYLES
   ========================= */
.gallery {
    padding: 80px 4rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.gallery-header {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-slide {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

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

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 2rem;
}

.gallery-slide:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 40px 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.footer {
    padding: 5rem 4rem 3rem !important;
    background: var(--dark) !important;
    color: white !important;
    display: block !important;
}

.footer-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.footer-main {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 4rem !important;
    margin-bottom: 3rem !important;
}

.footer-logo {
    height: 50px !important;
    margin-bottom: 1.5rem !important;
}

.footer-logo img {
    height: 100% !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
}

.footer-brand p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 1.5rem !important;
}

.footer-social {
    display: flex !important;
    gap: 3rem !important;
}

.social-icon {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    color: white !important;
}

.social-icon:hover {
    background: var(--primary) !important;
    transform: translateY(-2px) !important;
}

.footer-column h4 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
}

.footer-links {
    color: rgba(255, 255, 255, 0.7) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem !important;
    list-style: none !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
}

.footer-links a:hover {
    color: white !important;
}

.footer-bottom {
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9rem !important;
}

/* Footer Media Queries */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.25rem 2rem !important;
        margin-top: 3rem !important;
    }

    .footer-main {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
}

/* ==========================================
   FAQ SECTION STYLES
   ========================================== */
.faq-section {
    padding: 80px 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.faq-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(36, 0, 166, 0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 50px 1.5rem;
    }
    .faq-header h2 {
        font-size: 2.2rem;
    }
    .faq-question {
        font-size: 1.05rem;
        padding: 1.25rem;
    }
    .faq-answer {
        font-size: 1rem;
        padding: 0 1.25rem;
    }
    .faq-item.active .faq-answer {
        padding-bottom: 1.25rem;
    }
}