/* Global Styles */
:root {
    --primary-color: #0a192f;
    /* Navy Blue */
    --secondary-color: #c5a059;
    /* Gold */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

.line {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

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

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

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 110px;
    display: flex;
    align-items: center;
}

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

.logo img {
    height: 100px;
    /* Adjusted height */
    width: auto;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/images/hero.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 110px;
    /* Navbar height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    /* Navy blue overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: #666;
    margin-bottom: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.features-list i {
    color: var(--secondary-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    background-color: var(--light-bg);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
}

.stat-box .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-box .label {
    font-size: 0.9rem;
    color: #666;
}

/* Properties Section */
.properties {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

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

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

.card-image {
    height: 250px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-details {
    padding: 20px;
}

.card-details h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.location {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.specs {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #555;
}

.specs span i {
    color: var(--secondary-color);
    margin-left: 5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-sm {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-sm:hover {
    text-decoration: underline;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.services .section-header h2 {
    color: var(--white);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--secondary-color);
}

.info-item a {
    font-weight: 600;
}

.social-links {
    margin-top: 50px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.contact-form {
    flex: 1.5;
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #050d1a;
    color: white;
    padding: 80px 0 40px;
    /* Increased bottom padding */
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
    text-align: right;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* About Column */
.footer-logo {
    height: 150px;
    margin-bottom: 20px;
    /* Invert colors: White bg -> Black, Dark text -> Light */
    filter: invert(1);
    /* Screen drops the black background, keeping the light text */
    mix-blend-mode: screen;
    opacity: 0.9;
}

.about-col p {
    color: #aeaeae;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

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

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

/* Links & Contact Columns */
.links-col ul,
.contact-col ul {
    list-style: none;
}

.links-col li,
.contact-col li {
    margin-bottom: 15px;
}

.links-col a,
.contact-col a {
    color: #ccc;
    transition: var(--transition);
    display: inline-block;
}

.links-col a:hover,
.contact-col a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.contact-col i {
    color: var(--secondary-color);
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* Official Data Column */
.official-data {
    list-style: none;
}

.official-data li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.official-data li:last-child {
    border-bottom: none;
}

.official-data .label {
    color: #aeaeae;
    font-size: 0.9rem;
}

.official-data .value {
    color: var(--white);
    font-weight: 700;
    /* Make it bold but use standard font */
    font-size: 1rem;
    letter-spacing: 1px;
    /* Add slight spacing for readability */
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    color: #777;
    text-align: center;
}

/* Responsive */
/* --- Responsive Design System --- */

/* Tablet Landscape & Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .navbar {
        height: 90px;
    }

    .logo img {
        height: 80px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 1rem;
    }

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

/* Tablet Portrait (max-width: 991px) */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        /* Collapsing nav to hamburger early for arabic text safety */
    }

    .hamburger {
        display: block;
    }

    .navbar {
        height: 80px;
    }

    .logo img {
        height: 60px;
    }

    .hero {
        margin-top: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

/* Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .logo img {
        height: 75px;
        /* Larger icon size */
        object-fit: contain;
    }

    .hero {
        margin-top: 70px;
        min-height: 500px;
        padding: 60px 0;
        height: auto;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
        /* Reduced gap */
    }

    /* Make Links 2 Columns to save height */
    .links-col ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .links-col li {
        margin-bottom: 0;
        padding: 5px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        /* Add subtle border for button-feel */
        border-radius: 4px;
    }

    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-social {
        justify-content: center;
    }

    .contact-col li {
        justify-content: center;
    }

    /* Tighter Official Data */
    .official-data li {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .links-col a:hover {
        padding-right: 0;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .stat-box .number {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-logo {
        height: 250px;
        /* Massive size as requested */
    }
}