/* ========================
   Variables & Reset
======================== */
:root {
    --primary-color: #1a2a6c;
    --secondary-color: #b21f1f;
    --accent-color: #fdbb2d;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #111;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ========================
   Utility Classes
======================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* ========================
   Buttons
======================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-right: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ========================
   Header & Navbar
======================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-image {
    height: 156px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-accent {
    color: var(--accent-color);
}

/* Navigation List */
.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--accent-color);
    padding: 8px 20px !important;
    border-radius: 20px;
    color: var(--primary-color) !important;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ========================
   Hero Section
======================== */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 42, 108, 0.8), rgba(178, 31, 31, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-color);
}

/* ========================
   About Section
======================== */
.about .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.col-image, .col-text {
    flex: 1;
    min-width: 300px;
}

.about-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img-wrapper img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.experience-badge span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.about-desc {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-features {
    list-style: none;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 600;
}

.about-features i {
    color: var(--accent-color);
    margin-left: 10px;
}

/* ========================
   Properties Section
======================== */
.filters {
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, 
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
}

.card-image {
    position: relative;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--white);
}

.badge.sale { 
    background: var(--secondary-color); 
}

.badge.rent { 
    background: var(--primary-color); 
}

.price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.card-details {
    padding: 20px;
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-details h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.facilities {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.facilities li {
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-card {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-whatsapp {
    font-size: 1.5rem;
    color: #25D366;
}

.view-all-btn-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* ========================
   Services Section
======================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
}

.service-box:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-box .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ========================
   FAQ Section
======================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.faq-answer p {
    padding-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ========================
   Contact Section
======================== */
.contact {
    background: var(--primary-color);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    color: var(--white);
}

.text-white { 
    color: var(--white); 
}

.text-white-50 { 
    color: rgba(255,255,255,0.7); 
    margin-bottom: 30px; 
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 15px;
    color: var(--accent-color);
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-color);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
}

.contact-form-box {
    flex: 1.5;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* ========================
   Footer
======================== */
.footer {
    background: #0d1636;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-logo span { 
    color: var(--accent-color); 
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    color: var(--white);
    outline: none;
}

.newsletter-form button {
    background: var(--accent-color);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ========================
   Modals
======================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation: slideDown 0.4s;
}

@keyframes slideDown {
    from {top: -100px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-modal {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover { 
    color: black; 
}

.modal-body img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.modal-features-list {
    margin: 15px 0;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    list-style: none;
}

.modal-features-list li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
    .menu-toggle { 
        display: block; 
    }
    
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-list.active { 
        left: 0; 
        padding-bottom: 82%;
    }
    
    .nav-list li { 
        margin: 20px 0; 
    }
    
    .hero-title { 
        font-size: 2.5rem; 
    }
    
    .hero-stats { 
        flex-direction: column; 
        gap: 20px; 
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 135px;
    }
}
