/* 
 * Agence KaRach immobilière - Appended Styles
 * Copy and append the following to assets/css/style.css 
 */

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.w-100 { width: 100%; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }
.bg-gray { background-color: var(--bg-gray); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: var(--white); }
.text-gold { color: var(--accent-color); }
.pb-0 { padding-bottom: 0 !important; }

/* Sections */
.section { padding: 80px 0; }
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Animations Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; /* Offset for header */
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Abstract aesthetic background gradient as placeholder. 
       Can be replaced later with generate_image via DB/img */
    background: linear-gradient(135deg, rgba(11,17,32,0.9) 0%, rgba(26,34,53,0.7) 100%),
                url('../img/hero_mirleft_1774195576079.png') no-repeat center center/cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--primary-color) 0%, transparent 50%);
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
}

/* =========================================
   ABOUT PREVIEW
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text p { margin-bottom: 15px; font-size: 1.1rem; color: var(--text-secondary); }
.about-image-wrapper { position: relative; }
.about-image {
    width: 100%; height: 500px; border-radius: 8px;
    background: url('../img/hero_mirleft_1774195576079.png') center/cover;
    box-shadow: var(--shadow-lg);
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section { padding: 40px 0; border-top: 1px solid var(--border-color); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-number { display: block; font-size: 2.5rem; font-family: var(--font-heading); font-weight: 700; color: var(--accent-color); }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); }

/* =========================================
   CATEGORIES SECTION
   ========================================= */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-bottom: 4px solid transparent;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}
.category-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }
.category-card h3 { margin-bottom: 15px; font-size: 1.5rem; }

/* =========================================
   PROPERTIES CARDS
   ========================================= */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-top: 40px; }
.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.property-img-wrapper { position: relative; height: 250px; overflow: hidden; }
.property-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.property-card:hover .property-img { transform: scale(1.05); }
.property-placeholder { width: 100%; height: 100%; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-secondary); }
.property-badge { position: absolute; top: 15px; left: 15px; background: var(--accent-color); color: var(--white); padding: 5px 15px; font-size: 0.8rem; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }
.property-content { padding: 25px; }
.property-price { font-size: 1.5rem; font-family: var(--font-heading); font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.property-title { font-size: 1.25rem; margin-bottom: 10px; }
.property-location { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.property-excerpt { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--bg-gray); padding-top: 15px; }
.btn-link { font-weight: 600; color: var(--primary-color); }
.btn-link:hover { color: var(--accent-color); }
.btn-link i { margin-left: 5px; transition: transform var(--transition-fast); }
.btn-link:hover i { transform: translateX(5px); }
.btn-icon { width: 40px; height: 40px; background: #25D366; color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem; }
.btn-icon:hover { background: #128C7E; transform: scale(1.1); color: white; }

/* =========================================
   WHY US & STEPS & TESTIMONIALS
   ========================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.feature-item i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }
.feature-item h3 { color: var(--white); margin-bottom: 15px; }
.feature-item p { color: rgba(255,255,255,0.8); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.step-item { padding: 30px; position: relative; }
.step-number { width: 60px; height: 60px; background: var(--bg-gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-family: var(--font-heading); font-weight: 700; color: var(--accent-color); margin: 0 auto 20px; position: relative; z-index: 2; }
.step-item::after { content: ''; position: absolute; top: 60px; left: 50%; width: 100%; height: 2px; background: var(--bg-gray); z-index: 1; }
.steps-grid .step-item:last-child::after { display: none; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.testimonial-card { background: var(--white); padding: 40px 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.stars { color: #f3c220; margin-bottom: 15px; }
.testimonial-text { font-style: italic; margin-bottom: 20px; color: var(--text-secondary); }
.testimonial-author { font-weight: 600; color: var(--primary-color); }

/* =========================================
   GALLERY & FAQ & CTA
   ========================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 40px; }
.gallery-placeholder { height: 300px; border-radius: 8px; background-size: cover; background-position: center; transition: transform var(--transition-fast); }
.gallery-placeholder:hover { transform: scale(1.03); }
.style-1 { background-image: url('../img/hero_mirleft_1774195576079.png'); }
.style-2 { background-image: url('../img/amazigh_village_1774195595551.png'); }
.style-3 { background-image: url('../img/amazigh_wedding_1774195616139.png'); }
.style-4 { background-image: url('../img/moroccan_food_1774195631039.png'); }

.faq-item { text-align: left; background: var(--white); padding: 25px; border-radius: 8px; margin-bottom: 15px; box-shadow: var(--shadow-sm); }
.faq-question { margin-bottom: 10px; font-size: 1.1rem; }
.faq-answer { color: var(--text-secondary); }

.cta-section { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: var(--white); padding: 100px 0; }
.cta-section h2 { color: var(--white); margin-bottom: 20px; }
.cta-section p { margin-bottom: 30px; font-size: 1.1rem; color: rgba(255,255,255,0.8); }

/* =========================================
   RESPONSIVE OVERRIDES
   ========================================= */
@media (max-width: 992px) {
    .about-grid, .features-grid, .steps-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .categories-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .step-item::after { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .about-grid, .features-grid, .steps-grid, .testimonials-grid, .categories-grid, .gallery-grid, .property-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
}
