/* CSS Variables & Reset */
:root {
    --primary-color: #0f2740;
    /* Dark Blue from Aldar */
    --secondary-color: #315e85;
    /* Lighter Blue */
    --accent-color: #c5a365;
    /* Gold/Bronze Accent */
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.sub-heading {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.text-primary {
    color: var(--accent-color) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--accent-color);
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.main-nav a:not(.btn):hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    /* Nearly full screen */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content to left */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 39, 64, 0.9) 0%, rgba(15, 39, 64, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    /* Removed margin: 0 auto; to align left with container padding */
}

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

.hero-content .highlight {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Animation */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.about-image-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
    border: 5px solid var(--white);
    border-radius: 2px;
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--accent-color);
}

/* Featured Properties */
.bg-light {
    background-color: var(--light-gray);
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
    color: #666;
    font-family: var(--font-body);
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(15, 39, 64, 0.2);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: var(--white);
    border-radius: 8px;
    /* Slightly rounded */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.property-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    color: var(--white);
}

.badge.sale {
    background-color: var(--accent-color);
}

.badge.rent {
    background-color: var(--secondary-color);
}

.price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(15, 39, 64, 0.9);
    color: var(--white);
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 4px;
}

.price span {
    font-size: 0.8rem;
    font-weight: 400;
}

.property-info {
    padding: 25px;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.location {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #555;
}

.features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--accent-color);
    gap: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer-top {
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: inline-block;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

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

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Grid System for Flexbox fallback */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6,
.col-lg-4,
.col-lg-2 {
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-lg-2 {
    flex: 0 0 16.666%;
    max-width: 16.666%;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 40px;
    }

    .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* Hide nav on mobile for now, just a button */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

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

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-image-wrapper {
        margin-bottom: 40px;
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .col-lg-4,
    .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Inner Pages Styles */

/* Page Header */
.page-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 39, 64, 0.7);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb li:last-child {
    color: var(--accent-color);
}

/* About Story */
.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.story-images {
    position: relative;
    height: 400px;
}

.story-images img {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-images .img-1 {
    width: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.story-images .img-2 {
    width: 60%;
    bottom: -30px;
    right: 0;
    z-index: 2;
    border: 5px solid var(--white);
}

/* Mission Vision Cards */
.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.mv-card h3 {
    margin-bottom: 15px;
}

.mv-card p {
    color: #666;
    margin-bottom: 0;
}

/* Team Section */
.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.team-img {
    position: relative;
    overflow: hidden;
    height: 350px;
}

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

.social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(15, 39, 64, 0.9);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: bottom 0.3s ease;
}

.team-card:hover .social-overlay {
    bottom: 0;
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.social-overlay a {
    color: var(--white);
    font-size: 1.1rem;
}

.social-overlay a:hover {
    color: var(--accent-color);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info .position {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}