/* --- Creative Homepage Styling --- */

/* --- Hero Section --- */
.home-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    text-align: center;
    /* Center text for all children */
    color: #fff;
    padding: 0 5%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    filter: brightness(0.75);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content .hero-title {
    font-family: 'Cinzel', serif !important;
    font-size: 4.5rem;
    font-weight: 800;
    /* Bolder headline */
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-content .hero-title .highlight {
    color: inherit;
    /* Remove gold color */
}

.hero-content .hero-subtitle {
    font-size: 1.1rem;
    /* Refined subtitle size */
    max-width: 700px;
    margin: 0 auto 40px;
    color: #ccc;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    /* Center buttons */
    gap: 20px;
}

.hero-buttons .btn {
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 50px;
    /* Rounded buttons */
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--gold);
    color: #1a1a1a;
    border: 2px solid var(--gold);
}

.hero-buttons .btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background: rgba(128, 128, 128, 0.3);
    color: #fff;
    border: 1px solid rgba(128, 128, 128, 0.4);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(128, 128, 128, 0.5);
    border-color: rgba(128, 128, 128, 0.6);
    transform: translateY(-2px);
}

/* --- Featured Properties & Why Choose Us Sections --- */
.featured-properties-section,
.why-choose-us-section {
    padding: 80px 0;
}

.why-choose-us-section {
    background: #fff;
    color: #333;
    /* Set a dark base color for all text in the section */
    position: relative;
    /* Contain child elements and backdrop-filter effect */
}

.section-title {
    font-family: 'Cinzel', serif !important;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
    /* Default section title color */
}

.section-subtitle {
    font-size: 1.2rem;
    /* Slightly larger for better presence */
    color: #555;
    /* Changed to dark grey for readability */
    max-width: 700px;
    margin: 0 auto 40px;
    /* Adjusted margin */
    padding-bottom: 15px;
    /* Space between text and border */
    border-bottom: 2px solid var(--gold);
    /* Elegant gold underline */
    display: inline-block;
    /* Ensures border only spans the text width */
}

.section-title span {
    color: var(--gold);
}

/* Correctly styles the 'Why Choose El Gibbor?' title to be dark */
.why-choose-us-section .section-title {
    color: #333;
}


/* Property Card Redesign */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.property-card .card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.property-card .card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.property-card .card-image-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.property-card .property-status {
    background: var(--gold);
    color: #111;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.property-card .card-content {
    padding: 25px;
}

.property-card .property-title {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 10px;
}

.property-card .property-location {
    color: #666;
    margin-bottom: 20px;
}

.property-card .property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

.property-card .btn-secondary {
    width: 100%;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.property-card .btn-secondary:hover {
    background: var(--gold);
    color: #111;
}

/* Why Choose Us Glassmorphism Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: #f8f9fa;
    /* Light grey background for cards */
    border: 1px solid #e9ecef;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    color: #333;
    /* Make all text inside dark */
}

.feature-item:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-item .feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}



.feature-item .feature-description {
    color: #555;
    /* Darker gray for readability on light background */
    line-height: 1.7;
}

/* --- Stats Section --- */
.stats-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card .stat-number {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* --- Responsive Design Adjustments --- */
@media (max-width: 768px) {

    /* Hero background should start at very top so header overlays it */
    .home-hero {
        padding-top: 0;
        min-height: 100vh;
        min-height: 100svh;
        /* modern viewport unit */
    }

    /* Offset only the foreground content so it doesn't sit under the header */
    .hero-content {
        padding-top: calc(var(--header-height) + 10px);
    }

    /* Hero Section */
    .hero-content .hero-title {
        font-size: 2.5rem;
        /* Further reduced font size for mobile */
        line-height: 1.3;
        /* Added line-height to prevent overlap */
    }

    .hero-content .hero-title .highlight-text {
        display: block;
        /* Force the highlighted text to a new line */
        margin-top: 5px;
        /* Add a small space between the lines */
    }

    .hero-content .hero-subtitle {
        font-size: 1rem;
        /* Slightly smaller subtitle on mobile */
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }

    /* General Section Adjustments */
    .featured-properties-section,
    .why-choose-us-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Grid Layouts */
    .properties-grid,
    .features-grid {
        grid-template-columns: 1fr;
        /* Stack grids into a single column */
    }

    .stat-card {
        margin-bottom: 20px;
    }

    .stat-card:last-child {
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content .hero-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: none;
    }
}

/* --- Contact CTA Section --- */
.contact-cta-section {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.contact-cta-section .section-title {
    color: #111;
}

.contact-cta-section .section-subtitle {
    border: none;
    margin-bottom: 30px;
    color: #555;
}

/* Brand button */
.btn-brand {
    background: var(--gold);
    color: var(--black);
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-brand:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-card blockquote {
    margin: 0 0 20px 0;
    font-style: italic;
    color: #555;
    line-height: 1.7;
    position: relative;
}

.testimonial-card blockquote::before {
    content: "\201C";
    /* Left double quotation mark */
    color: var(--gold);
    font-size: 2rem;
    position: absolute;
    left: -6px;
    top: -10px;
}

.testimonial-card .author-info h4 {
    margin: 0;
    color: #111;
}

.testimonial-card .author-info p {
    margin: 5px 0 0;
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 20px;
    }
}