/* static/css/homepage/home.css */
/* دُرج | صفحه اصلی */

/* ═══════════════════════════════════════ */
/* HERO SLIDER */
/* ═══════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.hero__slides { width: 100%; height: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%);
}

.hero-slide-content {
    position: absolute;
    bottom: 15%;
    right: 10%;
    text-align: right;
    color: white;
    max-width: 500px;
}

.hero-slide-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-slide-content p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-slide-content a {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--gold);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-slide-content a:hover { background: var(--gold); color: var(--dark-jade); }

.hero__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.hero-dot.active { background: var(--gold); width: 24px; border-radius: 5px; }

.hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 10;
}

.hero__progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%;
}

/* ═══════════════════════════════════════ */
/* SHARED */
/* ═══════════════════════════════════════ */
.home-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.home-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.home-section__title {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--dark-jade);
}

.home-section__link {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.home-section__link:hover { color: var(--dark-gold); }

/* ═══════════════════════════════════════ */
/* ABOUT */
/* ═══════════════════════════════════════ */
.home-about {
    padding: var(--space-3xl) 0;
}

.home-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.home-about__text h2 { margin-bottom: var(--space-md); }
.home-about__text p { color: var(--text-muted); line-height: 1.9; margin-bottom: var(--space-sm); }
.home-about__text strong { color: var(--royal-jade); }

.home-about__btn {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 10px 22px;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.home-about__btn:hover { background: var(--gold); color: var(--dark-jade); }

.home-about__icons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.home-about__icon {
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201,162,77,0.08);
    flex: 1;
}

.home-about__icon span { font-size: 2rem; display: block; margin-bottom: 8px; }
.home-about__icon strong { display: block; color: var(--dark-jade); font-size: 0.95rem; }
.home-about__icon small { color: var(--text-muted); font-size: 0.8rem; }

/* ═══════════════════════════════════════ */
/* PRODUCTS */
/* ═══════════════════════════════════════ */
.home-products { padding: var(--space-2xl) 0; }
.home-products--alt { background: rgba(74,120,86,0.02); }

.home-products__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.home-product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201,162,77,0.06);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.home-product-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-jade), var(--royal-jade));
}

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

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

.home-product-card__body { padding: var(--space-sm) var(--space-md); flex: 1; }
.home-product-card__title { font-size: 0.9rem; font-weight: 700; color: var(--dark-jade); margin-bottom: 4px; }
.home-product-card__meta { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════ */
/* BLOG */
/* ═══════════════════════════════════════ */
.home-blog { padding: var(--space-2xl) 0; }

.home-blog__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.home-blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201,162,77,0.06);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.home-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.home-blog-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-jade), var(--royal-jade));
}

.home-blog-card__img img { width: 100%; height: 100%; object-fit: cover; }

.home-blog-card__body { padding: var(--space-sm) var(--space-md); }
.home-blog-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-jade);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-blog-card__meta { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════ */
/* CTA */
/* ═══════════════════════════════════════ */
.home-cta {
    background: linear-gradient(135deg, var(--dark-jade), var(--royal-jade));
    padding: var(--space-3xl) 0;
    text-align: center;
    color: white;
}

.home-cta h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; margin-bottom: var(--space-sm); }
.home-cta p { opacity: 0.85; margin-bottom: var(--space-xl); font-size: 1rem; }

.home-cta__btn {
    display: inline-block;
    background: var(--gold);
    color: var(--dark-jade);
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.home-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,162,77,0.3);
    background: var(--dark-gold);
}

/* ═══════════════════════════════════════ */
/* LOADING & EMPTY */
/* ═══════════════════════════════════════ */
.home-loading { grid-column: 1/-1; text-align: center; padding: var(--space-xl); }
.home-loading__spinner { width: 40px; height: 40px; border: 3px solid rgba(201,162,77,0.12); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.home-empty { grid-column: 1/-1; text-align: center; padding: var(--space-xl); color: var(--text-muted); font-size: 0.9rem; }

/* ═══════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════ */
@media (max-width: 1200px) {
    .home-products__grid,
    .home-blog__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .hero { height: 60vh; min-height: 400px; }
    .home-about__grid { grid-template-columns: 1fr; text-align: center; }
    .home-about__icons { justify-content: center; }
}

@media (max-width: 767px) {
    .home-products__grid,
    .home-blog__grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slide-content { right: 5%; bottom: 20%; }
}

@media (max-width: 480px) {
    .hero { height: 50vh; min-height: 300px; }
    .hero-slide-content h2 { font-size: 1.4rem; }
    .hero-slide-content p { font-size: 0.85rem; }
    .home-about__icons { flex-direction: column; }
    .home-products__grid,
    .home-blog__grid { grid-template-columns: 1fr; }
}