/*
Theme Name: Musa Property Groups
Author: AI
Description: A modern, premium one-page real estate theme.
Version: 1.0
*/

:root {
    --gold: #C5A059;
    --gold-dark: #A88647;
    --dark: #1A1A1A;
    --darker: #111111;
    --light: #F9F9F9;
    --white: #FFFFFF;
    --gray: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--gold);
    color: var(--white);
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* Header */
header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
}

nav ul.primary-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul.primary-menu > li {
    position: relative;
    padding: 10px 0;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

nav a:hover {
    color: var(--gold);
}

/* Dropdown Menu CSS */
nav ul.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

nav ul.primary-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul.primary-menu .sub-menu li {
    padding: 0;
}

nav ul.primary-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
}

nav ul.primary-menu .sub-menu a:hover {
    background-color: var(--light);
    color: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #DDDDDD;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about {
    background-color: var(--white);
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Founder Section */
.founder {
    background-color: var(--light);
}

.founder-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.founder-img {
    flex: 1;
}

.founder-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.founder-text {
    flex: 1;
}

.founder-text h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.founder-text .title {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

/* Team Section */
.team {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-card h4 {
    margin-bottom: 5px;
}

.team-card .designation {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Projects Section */
.projects {
    background-color: var(--dark);
    color: var(--white);
}

.projects .section-title {
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px;
}

.project-card h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
}

/* Stats Section */
.stats {
    background-color: var(--gold);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Choose Us */
.why-choose {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
}

/* Offices Section */
.offices {
    background-color: var(--light);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.office-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.office-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.office-info {
    padding: 20px;
}

.office-info h4 {
    margin-bottom: 10px;
    color: var(--gold);
}

.office-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.office-map iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--gold);
    font-size: 1.2rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--darker);
    color: var(--gray);
    padding: 60px 0 30px;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: var(--gold) !important;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 30px;
    }
    footer .social-links a {
        margin: 0 5px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .founder-container, .contact-container {
        display: flex !important;
        flex-direction: column;
        gap: 30px !important;
    }
    .founder-img {
        order: 1 !important;
        width: 100%;
    }
    .founder-text {
        order: 2 !important;
        background: var(--light);
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mobile-menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark);
    }
    nav#site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1000;
    }
    nav#site-navigation.active {
        display: block;
    }
    nav ul.primary-menu {
        flex-direction: column;
        gap: 15px;
        display: flex;
    }
    nav ul.primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 15px;
    }
    nav ul.primary-menu > li:hover .sub-menu, nav ul.primary-menu > li.active .sub-menu {
        display: block;
    }
    .nav-actions {
        display: none;
    }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; padding: 0 15px; }
    .hero { margin-top: 60px; min-height: 500px; }
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .founder-img { max-width: 100%; margin-bottom: 20px; }
    .btn { padding: 8px 15px; font-size: 0.85rem; text-align: center; }
    .hero-btns {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        justify-content: center;
        gap: 10px;
    }
    .hero-btns .btn { width: auto; padding: 10px 15px; font-size: 0.85rem; }
}

/* --- ANIMATIONS --- */
@keyframes heroBgZoomJS {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Slide Animations */
.hidden-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hidden-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hidden-down {
    opacity: 0;
    transform: translateY(-80px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hidden-up {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.show-animate {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Floating Buttons Mobile Fix */
@media (max-width: 768px) {
    .floating-whatsapp {
        right: 15px !important;
        bottom: 80px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 30px !important;
    }
    #ai-chatbot-container {
        right: 15px !important;
        bottom: 15px !important;
    }
    #ai-chatbot-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
    #ai-chatbot-window {
        width: 300px !important;
        height: 380px !important;
        right: 0 !important;
    }
}

/* FINAL SAFE MOBILE FIXES */
@media (max-width: 992px) {
    /* Hide Admin bar completely */
    #wpadminbar { display: none !important; }
    html { margin-top: 0 !important; padding-top: 0 !important; overflow-x: hidden !important; }
    body.admin-bar header { top: 0 !important; }
    
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: static !important;
    }
    
    /* Force Hamburger Menu to be visible and correctly positioned using viewport trick */
    .header-container {
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow: visible !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: calc(100vw - 60px) !important; /* Forces it to the right edge of viewport */
        color: #C5A059 !important;
        z-index: 9999 !important;
    }
    
    /* Move floating buttons to the RIGHT using viewport trick */
    .floating-whatsapp {
        display: flex !important;
        visibility: visible !important;
        position: fixed !important;
        left: calc(100vw - 80px) !important; /* Strict viewport right */
        right: auto !important;
        bottom: 90px !important;
        z-index: 2147483647 !important;
    }
    #ai-chatbot-container {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        left: calc(100vw - 80px) !important; /* Strict viewport right */
        right: auto !important;
        bottom: 20px !important;
        z-index: 2147483647 !important;
    }
    #ai-chatbot-window {
        left: auto !important;
        right: 0 !important;
    }
}
/* CHATBOT WINDOW MOBILE FIX */
@media (max-width: 992px) {
    #ai-chatbot-window {
        position: absolute !important;
        right: 0 !important;
        bottom: 80px !important;
        left: auto !important;
        width: 85vw !important;
        max-width: 320px !important;
    }
}


/* TIGHTEN MOBILE GAPS */
@media (max-width: 768px) {
    /* Make hero section fit content nicely instead of stretching to 100vh */
    .hero {
        height: auto !important;
        min-height: auto !important;
        min-height: 70vh !important; padding: 120px 0 80px 0 !important;
    }
    
    /* Center the hero content properly */
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Reduce massive 80px inline paddings on all sections to 40px */
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* Specifically for the features section to reduce top gap */
    #features {
        padding-top: 30px !important;
    }
}



