/* General Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F89B2B;
    --dark-color: #1A1A1A;
    --light-gray: #F5F5F5;
    --text-color: #333;
    --secondary-text-color: #666;
    --border-color: #E0E0E0;

    --font-family: "Vazirmatn", sans-serif;
    --max-width: 1200px;
    --section-padding: 80px 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll */
    direction: rtl; /* Set direction to RTL */
    text-align: right; /* Align text to the right */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 20px;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }
p { font-size: 1em; margin-bottom: 10px; }

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.section-padding {
    padding: var(--section-padding);
}

.section-description {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e68d28;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-dark {
    background-color: var(--dark-color);
    color: #fff;
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn i {
    margin-right: 10px; /* For RTL, this moves icon to the right of text */
}

.center-button {
    display: block;
    margin: 50px auto 0 auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(248, 155, 43, 0.2);
}

.subscribe-section {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.subscribe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.subscribe-text h2 {
    color: #fff;
    margin-bottom: 10px;
}

.subscribe-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
}

.subscribe-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1em;
    direction: rtl; /* Ensure input direction is RTL */
    text-align: right;
}

.subscribe-form input::placeholder {
    color: #999;
}

.subscribe-form input:focus {
    outline: none;
}

.subscribe-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #e68d28;
}

/* Utility Classes */
.bg-blue { background-color: #EDF3FC; }
.bg-orange { background-color: #FFF3EB; }
.bg-peach { background-color: #FCF4EE; }

/* Product Cards */
.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image-bg {
    padding: -10px -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.product-image-bg img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-card h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95em;
    color: var(--secondary-text-color);
    padding: 0 20px 20px;
}

/* Accordion (FAQ) */
.faq-accordion {
    margin-top: 30px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    background-color: #fff;
    color: var(--dark-color);
    padding: 20px;
    width: 100%;
    text-align: right;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--light-gray);
}

.accordion-icon {
    margin-left: 15px; /* For RTL, this moves icon to the left */
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px; /* Initial padding */
}

.accordion-content p {
    padding-bottom: 20px; /* Only apply when content is expanded */
    color: var(--secondary-text-color);
    line-height: 1.7;
}

/* Animation classes (defined in animations.css, but for reference) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
}
.animate-fade-in {
    opacity: 0;
}

/* Hero Section Specifics */
.hero-section {
    background-color: #F8F8F8; /* Light background for the hero section */
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative; /* For the background wave effect */
    overflow: hidden;
}

/* Background Wave Effect (Placeholder) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/wave-bg.png'); /* Replace with actual wave image */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    opacity: 0.5; /* Adjust opacity as needed */
    z-index: 0;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative; /* Ensure content is above wave */
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 55%;
}

.hero-text h1 {
    font-size: 4.2em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2em;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 45%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Real Food Ingredients Section */
.real-food-section {
    background-color: var(--light-gray);
}

.real-food-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.real-food-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}

.real-food-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.real-food-text {
    flex: 1;
    max-width: 50%;
}

.real-food-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.real-food-text p {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* When To Use Section */
.when-to-use-section {
    text-align: center;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.use-case-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.use-case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.use-case-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.use-case-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.use-case-item p {
    color: var(--secondary-text-color);
    font-size: 0.95em;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: #fff;
}

.why-choose-us-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.why-choose-us-text {
    flex: 1;
    max-width: 45%;
}

.why-choose-us-text h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.why-choose-us-text p {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

.why-choose-us-details {
    flex: 1;
    max-width: 55%;
    display: flex;
    gap: 30px;
    align-items: center;
}

.product-display {
    flex: 1;
    min-width: 200px;
}

.product-display img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.features-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--secondary-text-color);
    font-size: 0.95em;
    margin-bottom: 0;
}


/* Best Selling Product Section */
.best-selling-section {
    text-align: center;
    background-color: var(--light-gray);
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Stats Section */
.stats-section {
    background-color: var(--dark-color);
    padding: 30px 0;
    color: #fff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .stat-number {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: inline-block;
}

.stat-item .plus-sign, .stat-item .percentage {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 5px; /* For RTL, next to number */
    display: inline-block;
}

.stat-item p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    text-align: center;
}

.testimonials-carousel-wrapper {
    position: relative;
    margin-top: 50px;
    overflow: hidden;
    padding: 0 50px; /* Space for nav buttons */
}

.testimonials-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    justify-content: flex-start; /* Align cards to the start for RTL */
}

.testimonial-card {
    flex: 0 0 48%; /* Adjust width for 2 cards per view with gap */
    margin: 0 1%; /* Gap between cards */
    background-color: #FCF4EE; /* Light background from design */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: right;
    min-width: 450px; /* Minimum width to prevent crushing */
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    float: right; /* Float avatar to the right for RTL */
    margin-right: 0;
    margin-left: 20px; /* Space from text */
}

.testimonial-card .quote {
    font-size: 1.1em;
    font-style: italic;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: right; /* Ensure quote text aligns right */
}

.testimonial-card .testimonial-name {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9em;
    text-transform: uppercase;
    clear: right; /* Clear float */
}

/* our-work-culture Section */
.our-work-culture-section h2 {
    font-size: 2em;
    text-align: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none; /* Allow clicks to pass through to underlying content */
}

.carousel-nav button {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: all; /* Make buttons clickable */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav button:hover {
    background-color: var(--primary-color);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}


/* Partners Section */
.partners-section {
    text-align: center;
    background-color: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: center;
    margin-top: 50px;
}

.partners-grid img {
    max-width: 100px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partners-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-gray);
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 2;
    max-width: 60%;
}

.contact-form-wrapper h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.contact-form-wrapper .section-description {
    text-align: right;
    margin: 0 0 40px 0;
    max-width: 100%;
}

.contact-image {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* work-team */
.work-team {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-team:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.work-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.work-team-bg {
    padding: 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    margin-bottom: 10px;
}

.work-team-bg img {
    max-width: 80%;
    height: auto;
    display: block;
}

/* Success Partners Section */
.success-partners-section {
    background-color: var(--light-gray);
}
.success-partners-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.success-partners-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}
.success-partners-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.success-partners-text {
    flex: 1;
    max-width: 50%;
}

.success-partners-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.success-partners-text p {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* food protection Section */
.food-protection-section {
    background-color: var(--light-gray);
}

.food-protection-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.food-protection-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}

.food-protection-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.food-protection-text {
    flex: 1;
    max-width: 100%;
}

.food-protection-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.food-protection-text p {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    line-height: 1.7;
}
.site-logo-desktop {
    max-height: 40px;
    max-width: auto;
    width: auto;
    object-fit: contain;
    max-height: 40px;
    margin-top: -6px;
    margin-bottom: -6px;

}



.ingredients-section {
    background-color: var(--white-color);
    text-align: center;
}
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 2); /* 32px */
    text-align: center;
}
.ingredient-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto var(--spacing-unit);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.ingredient-item h3 {
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.ingredient-item p {
    font-size: 0.9rem;
    color: var(--text-color-light);
}