/* --- Root Variables for Colors and Fonts --- */
:root {
    --midnight-blue: #001f3f;
    --charcoal-gray: #333333;
    --luxe-gold: #D4AF37;
    --warm-off-white: #F8F8F8;
    --success-green: #25D366;
    --error-red: #dc3545;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-lato: 'Lato', sans-serif;
}

/* --- General Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-lato);
    background-color: var(--warm-off-white);
    color: var(--charcoal-gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-montserrat);
    font-size: 2.5rem;
    color: var(--midnight-blue);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-montserrat);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--luxe-gold);
    color: var(--midnight-blue);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* --- Modal / Pop-up Form --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.modal-content h2 {
    font-family: var(--font-montserrat);
    color: var(--midnight-blue);
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-lato);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

/* --- Success & Error Alert Dialogs --- */
.alert-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Higher than the modal */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-dialog.show {
    opacity: 1;
}

.alert-dialog .alert-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.alert-dialog.show .alert-content {
    transform: scale(1);
}

.alert-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-icon.success {
    background-color: var(--success-green);
}

.alert-icon.error {
    background-color: var(--error-red);
}

.alert-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 4;
}

.alert-content h3 {
    font-family: var(--font-montserrat);
    color: var(--midnight-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.alert-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
}

/* --- Header & Navbar --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(248, 248, 248, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 100px;
    height: 40px;
}

.logo span {
    font-family: var(--font-montserrat);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal-gray);
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--luxe-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 50%;
}

.hero-title {
    font-family: var(--font-montserrat);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--midnight-blue);
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0, 100% 0%, 100% 100%, 0% 100%);
}


/* --- Stats Section --- */
.stats-container {
    display: flex;
    margin-top: 40px;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-montserrat);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--luxe-gold);
}

.stat-label {
    font-size: 1rem;
    color: var(--charcoal-gray);
}

/* --- Featured Property Section --- */
.property-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.property-card img {
    width: 100%;
    display: block;
    height: 500px;
    object-fit: cover;
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 31, 63, 0.9), transparent);
    color: white;
}

.property-price {
    font-family: var(--font-montserrat);
    font-size: 2rem;
    font-weight: 700;
    color: var(--luxe-gold);
}

.property-features {
    font-size: 1.1rem;
    margin-top: 5px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-item h3 {
    font-family: var(--font-montserrat);
    color: var(--midnight-blue);
    margin-bottom: 10px;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-lato);
    font-size: 1rem;
}

.whatsapp-cta {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- Footer --- */
footer {
    background-color: var(--midnight-blue);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo span {
    color: var(--warm-off-white);
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1); /* This makes the SVG logo white */
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-content {
        max-width: 55%;
    }
    .hero-image-container {
        width: 50%;
        clip-path: polygon(15% 0, 100% 0%, 100% 100%, 0% 100%);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hiding for demo, could be replaced with a hamburger menu */
    }
    #hero {
        min-height: auto;
    }
    .hero-container {
        padding-top: 80px; /* Offset for header */
    }
    .hero-image-container {
        position: relative;
        width: 100%;
        height: 350px;
        clip-path: none;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 40px 0;
    }
    .stats-container {
        justify-content: center;
    }
    .contact-wrapper {
        flex-direction: column;
    }
}
