﻿/* =========================================
   ROOT
========================================= */

:root {
    /* =========================
       BRAND COLORS (WHITE & PURPLE)
    ========================= */

    --green: #7C3AED; /* بنفش اصلی */
    --green-dark: #4C1D95; /* بنفش تیره */
    --green-light: #F3EEFF; /* بنفش خیلی روشن */
    --yellow: #A855F7; /* بنفش روشن (جای زرد) */
    --yellow-dark: #7E22CE; /* بنفش متوسط */
    --white: #FFFFFF;
    /* Text */
    --text: #2E1065; /* متن تیره بنفش */
    --text-light: #7C7A8C; /* متن خاکستری بنفش */
    /* Background */
    --bg: #FAF8FF; /* پس‌زمینه بنفش خیلی روشن */
    --border: #EDE9FE; /* حاشیه بنفش روشن */
    --shadow: 0 20px 50px rgba(76, 29, 149, .12);
    --radius: 24px;
}

/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.section {
    padding: 110px 0;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(124, 58, 237, .08);
    transition: .3s;
}

.nav-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--white);
    font-size: 25px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .brand-text strong {
        font-size: 20px;
        color: var(--green-dark);
    }

    .brand-text span {
        font-size: 11px;
        color: var(--text-light);
    }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .nav-menu a {
        position: relative;
        color: #6B6780;
        font-size: 14px;
        font-weight: 500;
        transition: .25s;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--green);
        }

            .nav-menu a.active::after {
                content: "";
                position: absolute;
                bottom: -10px;
                right: 0;
                width: 22px;
                height: 3px;
                border-radius: 5px;
                background: var(--yellow);
            }

.nav-order {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: white;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
}

    .nav-order:hover {
        background: var(--green-dark);
        transform: translateY(-2px);
    }

.mobile-menu-btn {
    display: none;
    border: 0;
    background: var(--green);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding-top: 150px;
    background: radial-gradient( circle at 80% 30%, rgba(124, 58, 237, .10), transparent 30% ), linear-gradient( 135deg, #ffffff, #f6f2ff );
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 600px;
    gap: 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F3EEFF;
    color: #6D28D9;
    border: 1px solid #DDD0FF;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.25;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 22px;
}

    .hero-content h1 span {
        display: block;
        color: var(--green);
        position: relative;
        width: fit-content;
    }

        .hero-content h1 span::after {
            content: "";
            position: absolute;
            bottom: -4px;
            right: 0;
            width: 75%;
            height: 8px;
            border-radius: 10px;
            background: var(--yellow);
            z-index: -1;
        }

.hero-content > p {
    max-width: 560px;
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 23px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 600;
    transition: .25s;
    cursor: pointer;
}

.btn-primary {
    background: var(--green);
    color: white;
    box-shadow: 0 10px 25px rgba(124, 58, 237, .25);
}

    .btn-primary:hover {
        background: var(--green-dark);
        transform: translateY(-3px);
    }

.btn-outline {
    border: 1px solid #DDD0FF;
    background: white;
    color: var(--green);
}

    .btn-outline:hover {
        border-color: var(--green);
        transform: translateY(-3px);
    }

.hero-info {
    display: flex;
    gap: 35px;
}

    .hero-info div {
        display: flex;
        flex-direction: column;
    }

    .hero-info strong {
        color: var(--green);
        font-size: 20px;
    }

    .hero-info span {
        color: var(--text-light);
        font-size: 12px;
    }


/* HERO IMAGE */

.hero-image {
    position: relative;
    height: 560px;
    display: grid;
    place-items: center;
}

.hero-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: var(--green);
    opacity: .95;
}

    .hero-circle::after {
        content: "";
        position: absolute;
        inset: 25px;
        border: 2px dashed rgba(255,255,255,.25);
        border-radius: 50%;
    }

.rice-card {
    position: relative;
    width: 340px;
    z-index: 2;
}

.rice-image {
    height: 430px;
    background: linear-gradient( 145deg, #ffffff, #f2f2f2 );
    border-radius: 35px;
    box-shadow: 0 30px 70px rgba(76, 29, 149, .2);
    transform: rotate(4deg);
    display: grid;
    place-items: center;
    border: 8px solid white;
}

.rice-package {
    width: 230px;
    height: 310px;
    border-radius: 18px;
    background: linear-gradient( 145deg, var(--yellow), #C084FC );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: 0 15px 30px rgba(76, 29, 149, .18);
}

    .rice-package span {
        font-size: 28px;
        font-weight: 700;
    }

    .rice-package strong {
        font-size: 54px;
        line-height: 1;
        font-weight: 900;
    }

    .rice-package small {
        margin-top: 20px;
        padding: 5px 15px;
        border-radius: 20px;
        background: var(--green-dark);
        color: white;
        font-size: 12px;
    }

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 13px 17px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 5;
}

    .floating-card i {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        background: #F3EEFF;
        color: var(--green);
        border-radius: 12px;
        font-size: 19px;
    }

    .floating-card div {
        display: flex;
        flex-direction: column;
    }

    .floating-card strong {
        font-size: 12px;
    }

    .floating-card span {
        font-size: 10px;
        color: var(--text-light);
    }

.card-quality {
    top: 100px;
    right: -30px;
}

.card-rice {
    bottom: 80px;
    left: -35px;
}


/* =========================================
   SECTION HEADER
========================================= */

.section-label {
    display: inline-block;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

    .section-header h2 {
        font-size: 38px;
        line-height: 1.4;
        color: var(--green-dark);
    }

        .section-header h2 span {
            color: var(--green);
        }

    .section-header > p {
        max-width: 430px;
        color: var(--text-light);
        font-size: 14px;
    }

    .section-header.center {
        display: block;
        text-align: center;
    }

        .section-header.center h2 {
            margin: auto;
        }


/* =========================================
   ABOUT
========================================= */

.about {
    background: white;
}

.about-container {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 90px;
}

.about-image {
    height: 420px;
    display: grid;
    place-items: center;
    background: var(--green-light);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

    .about-image::before,
    .about-image::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        border: 30px solid rgba(124, 58, 237, .06);
    }

    .about-image::before {
        width: 350px;
        height: 350px;
    }

    .about-image::after {
        width: 230px;
        height: 230px;
    }

.about-box {
    position: relative;
    z-index: 2;
    width: 230px;
    height: 270px;
    background: white;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    transform: rotate(-4deg);
}

.about-number {
    color: var(--green);
    font-size: 24px;
    font-weight: 700;
}

.about-box strong {
    color: var(--green-dark);
    font-size: 58px;
    line-height: 1;
    font-weight: 900;
}

.about-rice-lines {
    margin-top: 25px;
    display: flex;
    gap: 5px;
}

    .about-rice-lines span {
        display: block;
        width: 7px;
        height: 30px;
        border-radius: 50%;
        background: var(--yellow);
        transform: rotate(25deg);
    }

.about-content h2 {
    font-size: 42px;
    color: var(--green-dark);
    line-height: 1.4;
    margin-bottom: 20px;
}

    .about-content h2 span {
        display: block;
        color: var(--green);
    }

.about-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 12px;
}

.owner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.owner-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: var(--white);
    font-size: 22px;
}

.owner div:last-child {
    display: flex;
    flex-direction: column;
}

.owner span {
    color: var(--text-light);
    font-size: 11px;
}

.owner strong {
    color: var(--green-dark);
    font-size: 15px;
}


/* =========================================
   PRODUCTS
========================================= */

.products {
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .3s;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow);
    }

.product-image {
    height: 230px;
    background: linear-gradient( 145deg, #F6F2FF, #EDE4FF );
    display: grid;
    place-items: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--green);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    z-index: 3;
}

    .product-badge.yellow {
        background: var(--yellow);
        color: var(--white);
    }

.rice-bag {
    width: 120px;
    height: 170px;
    background: var(--yellow);
    border-radius: 12px 12px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 15px 25px rgba(124, 58, 237, .2);
    transition: .3s;
}

.product-card:hover .rice-bag {
    transform: rotate(-4deg) scale(1.05);
}

.rice-bag span {
    font-size: 14px;
    font-weight: 600;
}

.rice-bag strong {
    font-size: 27px;
    line-height: 1;
}

.rice-bag small {
    background: var(--green-dark);
    color: white;
    border-radius: 20px;
    padding: 3px 9px;
    margin-top: 12px;
    font-size: 9px;
}

.product-content {
    padding: 20px;
}

.product-category {
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 3px;
}

.product-content h3 {
    color: var(--green-dark);
    font-size: 18px;
    margin-bottom: 7px;
}

.product-content > p {
    color: var(--text-light);
    font-size: 11px;
    min-height: 45px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.price {
    display: flex;
    flex-direction: column;
}

    .price strong {
        font-size: 12px;
        color: var(--green-dark);
    }

    .price span {
        font-size: 9px;
        color: var(--text-light);
    }

.whatsapp-btn {
    border: 0;
    background: var(--green);
    color: white;
    padding: 8px 11px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: .25s;
}

    .whatsapp-btn:hover {
        transform: translateY(-2px);
        background: var(--green-dark);
    }


/* =========================================
   WHY US
========================================= */

.why-us {
    background: white;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: .3s;
}

    .feature:hover {
        transform: translateY(-6px);
        border-color: #DDD0FF;
        box-shadow: var(--shadow);
    }

.feature-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #F3EEFF;
    color: var(--green);
    font-size: 27px;
}

.feature h3 {
    color: var(--green-dark);
    font-size: 16px;
    margin-bottom: 5px;
}

.feature p {
    color: var(--text-light);
    font-size: 11px;
}


/* =========================================
   CTA
========================================= */

.cta {
    background: var(--green);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

    .cta::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 50px solid rgba(255,255,255,.05);
        left: -100px;
        top: -150px;
    }

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.cta span {
    color: #E9D5FF;
    font-size: 13px;
}

.cta h2 {
    font-size: 30px;
    margin-top: 5px;
}

.btn-yellow {
    background: var(--white);
    color: var(--green-dark);
}

    .btn-yellow:hover {
        background: var(--yellow);
        color: white;
        transform: translateY(-3px);
    }


/* =========================================
   CONTACT
========================================= */

.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.contact-card {
    background: white;
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: .3s;
}

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

.contact-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--green-light);
    color: var(--green);
    font-size: 25px;
}

.contact-card h3 {
    color: var(--green-dark);
    font-size: 17px;
    margin-bottom: 5px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 15px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #2E1065;
    color: white;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer .brand-text strong {
    color: white;
}

.footer .brand-text span {
    color: #C4B5FD;
}

.footer-brand p {
    color: #C4B5FD;
    font-size: 12px;
    max-width: 300px;
    margin-top: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .footer-links h4 {
        font-size: 14px;
        color: #E9D5FF;
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #C4B5FD;
        font-size: 12px;
        transition: .2s;
    }

        .footer-links a:hover {
            color: white;
            padding-right: 5px;
        }

.footer-owner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

    .footer-owner span {
        color: #C4B5FD;
        font-size: 11px;
    }

    .footer-owner strong {
        color: white;
        font-size: 15px;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
}

    .footer-bottom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #A78BFA;
        font-size: 10px;
    }


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
    display: none;
    position: fixed;
    top: 82px;
    right: 20px;
    left: 20px;
    z-index: 999;
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 15px;
}

    .mobile-menu.open {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .mobile-menu a {
        padding: 12px;
        border-radius: 10px;
        font-size: 13px;
    }

        .mobile-menu a:hover {
            background: var(--green-light);
            color: var(--green);
        }


/* =========================================
   RESPONSIVE
========================================= */

@media(max-width: 1000px) {

    .nav-menu,
    .nav-order {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding-bottom: 80px;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-info {
        justify-content: center;
    }

    .hero-image {
        height: 480px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 600px;
        width: 100%;
        margin: auto;
    }
}


@media(max-width: 700px) {

    .container {
        width: min( 100% - 28px, 1180px );
    }

    .section {
        padding: 75px 0;
    }

    .hero {
        padding-top: 125px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-info {
        gap: 20px;
    }

    .hero-image {
        height: 400px;
    }

    .hero-circle {
        width: 320px;
        height: 320px;
    }

    .rice-card {
        width: 260px;
    }

    .rice-image {
        height: 340px;
    }

    .rice-package {
        width: 170px;
        height: 240px;
    }

        .rice-package strong {
            font-size: 40px;
        }

    .card-quality {
        right: -5px;
        top: 40px;
    }

    .card-rice {
        left: -5px;
        bottom: 40px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }

        .section-header h2 {
            font-size: 30px;
        }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .about-content h2 {
        font-size: 32px;
    }
}
/* ================= PRODUCTS CAROUSEL ================= */

.products-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 55px;
}

.products-carousel {
    width: 100%;
    overflow: hidden;
}

.products-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s ease;
    will-change: transform;
}

    .products-track .product-card {
        flex: 0 0 calc((100% - 48px) / 3);
        min-width: 0;
    }


/* ================= ARROWS ================= */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(76, 29, 149, 0.2);
}

    .carousel-btn:hover {
        background: var(--yellow);
        color: #fff;
        transform: translateY(-50%) scale(1.08);
    }

.carousel-prev {
    right: 0;
}

.carousel-next {
    left: 0;
}


/* ================= DOTS ================= */

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #DDD0FF;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-dot.active {
        width: 28px;
        border-radius: 10px;
        background: var(--green);
    }


/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .products-track .product-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}


@media (max-width: 576px) {

    .products-carousel-wrapper {
        padding: 0 5px;
    }

    .products-track {
        gap: 15px;
    }

        .products-track .product-card {
            flex: 0 0 100%;
        }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-prev {
        right: -5px;
    }

    .carousel-next {
        left: -5px;
    }
}
