/* ============================================
   Egyptian French Agriculture - Home Page
   Professional Redesign
   ============================================ */

/* Typography - Premium feel */
.home-page {
    --font-heading: 'Playfair Display', 'Cairo', Georgia, serif;
    --font-body: 'DM Sans', 'Poppins', -apple-system, sans-serif;
    --gold: #C6A87C;
    --gold-light: #d4b896;
    --gold-dark: #a88a5c;
    --forest: #0b1d16;
    --forest-light: #142a22;
    --cream: #faf8f5;
    --cream-dark: #f0ebe3;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
}

/* Hero - Cinematic full-screen */
.home-hero {
    position: relative;
    min-height: 100vh;
    margin-top: 0;
    overflow: hidden;
}

.home-hero .hero-slides {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hero .hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.home-hero .hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 29, 22, 0.92) 0%,
        rgba(11, 29, 22, 0.75) 50%,
        rgba(11, 29, 22, 0.6) 100%
    );
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 5% 80px;
}

.home-hero .hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.home-hero .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    max-width: 800px;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.home-hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 0 40px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.home-hero .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.home-hero .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gold);
    color: var(--forest) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.home-hero .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198, 168, 124, 0.35);
}

.home-hero .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.home-hero .btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
}

/* Shared button in home sections */
.home-page .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gold);
    color: var(--forest) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.home-page .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198, 168, 124, 0.35);
}

/* Hero slider dots */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots span.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section container */
.home-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.home-section--alt {
    background: var(--cream);
}

/* Section headers */
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--forest);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 560px;
}

/* Products grid */
.home-section .section-heading {
    margin-bottom: 12px;
}

.home-section .section-desc {
    margin-bottom: 48px;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.home-product-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(11, 29, 22, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
}

.home-product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 16px 40px rgba(11, 29, 22, 0.1);
    transform: translateY(-4px);
}

.home-product-card__img {
    height: 200px;
    overflow: hidden;
}

.home-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-product-card:hover .home-product-card__img img {
    transform: scale(1.05);
}

.home-product-card__body {
    padding: 24px;
}

.home-product-card__cat {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.home-product-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--forest);
    margin-bottom: 8px;
}

.home-product-card__desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Services grid */
.home-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.home-service-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 4px;
    border: 1px solid rgba(11, 29, 22, 0.06);
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.35s ease;
}

.home-service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(11, 29, 22, 0.08);
    transform: translateY(-4px);
}

.home-service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 168, 124, 0.12);
    color: var(--gold);
    font-size: 1.5rem;
    border-radius: 4px;
}

.home-service-card__title {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 10px;
}

.home-service-card__desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.home-section__cta,
.home-empty-state {
    text-align: center;
}

.home-empty-state {
    padding: 48px;
    background: rgba(198, 168, 124, 0.06);
    border-radius: 4px;
    margin-bottom: 24px;
}

.home-empty-state p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Intro / Partnership teaser */
.home-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.home-intro__content .section-label {
    margin-bottom: 16px;
}

.home-intro__content p {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.home-intro__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 4px;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--forest) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    background: var(--gold);
    color: var(--forest) !important;
}

/* Process / How it works */
.home-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.home-process__step {
    text-align: center;
    padding: 32px 24px;
}

.home-process__num {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: var(--gold);
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50%;
    margin-bottom: 20px;
}

.home-process__step h4 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 12px;
}

.home-process__step p {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* CTA section */
.home-cta {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
    padding: 100px 5%;
    text-align: center;
}

.home-cta__inner {
    max-width: 640px;
    margin: 0 auto;
}

.home-cta .section-label {
    color: var(--gold);
    margin-bottom: 16px;
}

.home-cta .section-heading {
    color: #fff;
    margin-bottom: 16px;
}

.home-cta__text {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
}

.home-cta .btn-primary {
    background: var(--gold);
    color: var(--forest) !important;
}

/* Reveal animation */
.home-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* RTL adjustments */
html[dir="rtl"] .home-hero .btn-primary i.fa-arrow-right,
html[dir="rtl"] .home-page .btn-primary i.fa-arrow-right {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 1024px) {
    .home-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-intro {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .home-intro__image {
        order: -1;
    }
    .home-intro__image img {
        height: 360px;
    }
    .home-process {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero .hero-content {
        padding: 120px 5% 60px;
    }
    .home-hero .hero-title {
        font-size: 2rem;
    }
    .home-hero .hero-cta {
        flex-direction: column;
    }
    .home-hero .btn-primary,
    .home-hero .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .home-section {
        padding: 60px 5%;
    }
    .home-product-grid {
        grid-template-columns: 1fr;
    }
    .home-service-grid {
        grid-template-columns: 1fr;
    }
}
