/**
 * Homepage Styles - Munazil Real Homes
 * Mobile-first, trust-focused design
 * Modernized for premium feel
 */

/* ===== HERO SECTION ===== */

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('/assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--text-on-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    border-bottom: none;
    padding: 0;
}

/* Subtle pattern overlay - removed for photo background */
.hero::before {
    display: none;
}

/* Full width container for hero to allow edge alignment */
.hero .container {
    max-width: 100%;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

@media (min-width: 768px) {
    .hero .container {
        padding-left: var(--space-12);
    }
}

.hero-content {
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    z-index: 1;
    padding: 0;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-wrap: balance;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-pale);
    margin-bottom: var(--space-10);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: var(--text-xl);
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* ===== TRUST SIGNALS GRID ===== */

.trust-signals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .trust-signals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PROPERTY CATEGORIES ===== */

.property-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .property-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    border-color: var(--color-primary-pale);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.category-card-icon {
    font-size: 5rem;
    margin-bottom: var(--space-6);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-bounce);
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.category-card-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.category-card-link {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
}

.category-card:hover .category-card-link {
    color: var(--color-primary-dark);
}

/* ===== PROPERTIES GRID ===== */

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 640px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== WHY MUNAZIL SECTION ===== */

.why-munazil-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

@media (min-width: 768px) {
    .why-munazil-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-card {
    position: relative;
    padding-left: var(--space-20);
}

.why-card-number {
    position: absolute;
    left: 0;
    top: -1rem;
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
}

.why-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.why-card-text {
    color: var(--color-gray-light);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
}

/* ===== EDUCATION PREVIEW ===== */

.education-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 768px) {
    .education-preview {
        grid-template-columns: 1.2fr 1fr;
    }
}

.education-preview-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.education-preview-text {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
}

.education-preview-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-8);
}

.education-preview-list li {
    color: var(--text-primary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.education-preview-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, #dcfce7 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.education-placeholder::after {
    content: "📚";
    font-size: 8rem;
    opacity: 0.5;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* ===== CTA SECTION ===== */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #064e3b 100%);
    color: var(--text-on-dark);
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 40%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .cta-section {
        padding: var(--space-24) 0;
    }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: var(--text-4xl);
    }
}

.cta-text {
    font-size: var(--text-xl);
    color: var(--color-white);
    opacity: 0.95;
    margin-bottom: var(--space-10);
    line-height: var(--leading-relaxed);
}

/* ===== STATS SECTION ===== */

.stats-section {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-number {
    font-family: var(--font-primary);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: var(--text-5xl);
    }
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== GALLERY SECTION ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 250px);
        gap: var(--space-6);
    }

    .gallery-item {
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
        height: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition-slow);
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

    /* Make first item span 2 rows and 2 cols for interesting layout */
    .item-1 {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}