/* ===== صفحه اصلی - Home Page ===== */

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/HomeTemplate/images/hero-bg.jpg') center/cover no-repeat;
    filter: brightness(0.4);
    z-index: -1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    color: white;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 15px;
}

/* Services Section */
.services-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Quality Banner */
.quality-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.quality-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.quality-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.quality-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.quality-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.quality-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.quality-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Menu Section */
.menu-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: bold;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Food Card */
.food-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.food-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.food-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #eee;
}

.food-info {
    padding: 20px;
}

.food-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.food-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.food-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.1rem;
}

.food-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.add-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-color);
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Corporate Section */
.corporate-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1b4332 100%);
    color: white;
    border-radius: 30px;
    margin: 40px 20px;
    padding: 60px !important;
    position: relative;
    overflow: hidden;
}

.corporate-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.corporate-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.corporate-text {
    flex: 1;
    min-width: 300px;
}

.corporate-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.corporate-text ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.corporate-text ul li i {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.corporate-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    color: var(--text-dark);
    max-width: 400px;
    margin-right: 40px;
}

/* Featured Products Section */
.home-products-section {
    background-color: #f2f2f2;
    padding: 80px 0;
}

/* Blog Posts Section */
.home-blog-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.home-blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-blog-card:hover {
    transform: translateY(-5px);
}

.home-blog-card .blog-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.home-blog-card .blog-content {
    padding: 20px;
}

.home-blog-card .blog-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.5;
}

.home-blog-card .blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-right: 5px solid var(--primary-color);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: #27ae60;
    font-size: 1.2rem;
}

/* Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .corporate-section { padding: 30px 20px !important; margin: 20px 10px; }
    .corporate-form-wrapper { margin-right: 0; margin-top: 30px; width: 100%; }
    .cta-group { flex-direction: column; }
}
