

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazirmatn, sans-serif;
}

body {
    background: #FFF8F2;
    color: #5C4033;
    direction: rtl;
}

/* ====================== HEADER ====================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E9D8CF;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5C4033;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.logo i {
    font-size: 24px;
    color: #D9776A;
}

/* NAV */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14.5px;
    position: relative;
    transition: all 0.3s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: #D9776A;
    transition: width 0.4s ease;
}

.nav a:hover,
.nav a.active {
    color: #5C4033;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #5C4033;
    font-size: 22px;
}

/* ====================== HERO ====================== */
.hero {
    height: 88vh;
    min-height: 620px;
    background: linear-gradient(rgba(11, 15, 20, 0.78), rgba(11, 15, 20, 0.85));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 25% 40%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(147, 197, 253, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 45% 80%, rgba(59, 130, 246, 0.22) 0%, transparent 50%);
    animation: lightDance 25s ease infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 60% 30%, rgba(147, 197, 253, 0.12) 0%, transparent 45%);
    animation: lightDance2 18s ease infinite reverse;
    pointer-events: none;
}

@keyframes lightDance {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(25px, 15px) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes lightDance2 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(-20px, 30px) rotate(-2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-text {
    max-width: 580px;
}

.hero-text h1 {
    font-size: 4.8rem;
    font-weight: 800;
    color: #a0694f;
    margin-bottom: 8px;
    line-height: 1.05;
}

.hero-text h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #A65A4D;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-text p {
    font-size: 1rem;
    color: #b1aaa6;
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ====================== BUTTONS ====================== */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
}

.btn-primary {
    background: #D9776A;
    color: #c4c4c4;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #C76759;
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 2px solid #E59B8C;
    color: #c4c4c4;
}

.btn-outline:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: #D9776A;
    transform: translateY(-3px);
}

.btn-cta {
    background: #D9776A;
    color: #5C4033;
    padding: 18px 48px;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.35);
}

.btn-cta:hover {
    background: #C76759;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 25px 40px -8px rgba(37, 99, 235, 0.45);
}

/* ====================== WHY US ====================== */
.why-us {
    padding: 90px 24px;
    background: #FFF8F2;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 12px;
    color: #A65A4D;
}

.section-header p {
    font-size: 1.15rem;
    color: #8E6E60;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #FFFFFF;
    padding: 36px 26px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #E9D8CF;
}

.feature-card:hover {
    transform: translateY(-14px);
    border-color: #E59B8C;
    box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 24px;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #E59B8C;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(59, 130, 246, 0.22);
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: #5C4033;
}

/* ====================== CTA ====================== */
.cta-section {
    padding: 110px 24px;
    background: linear-gradient(135deg, #F3DFD4, #E7CFC2);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.85rem;
    color: #5C4033;
    margin-bottom: 18px;
}

.cta-content p {
    font-size: 1.32rem;
    color: #7A5A4A;
    max-width: 620px;
    margin: 0 auto 40px;
}

/* ====================== FOOTER ====================== */
.footer {
    background: #F7EDE7;
    border-top: 1px solid #E9D8CF;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}


.footer-col h3 {
    color: #E59B8C;
    margin-bottom: 22px;
    font-size: 1.35rem;
}

.footer-col p {
    color: #8E6E60;
    line-height: 1.75;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 13px;
}

.footer-col a {
    color: #7A5A4A;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: #E59B8C;
    padding-right: 6px;
}

.contact-info i {
    width: 22px;
    color: #E59B8C;
}

.footer-bottom {
    border-top: 1px solid #E9D8CF;
    padding: 22px 24px;
    text-align: center;
    color: #9B7B6D;
    font-size: 0.95rem;
}

/* ====================== ACHIEVEMENTS ====================== */
.achievements {
    padding: 90px 24px;
    background: #FFF3EC;
}

.achievements .section-header {
    margin-bottom: 64px;
}

.achievements .feature-card {
    background: linear-gradient(145deg, #F3DFD4, #E7CFC2);
    border: 1px solid #475569;
}

.achievements .feature-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #D9776A;
}

.achievements .feature-card:hover .feature-icon {
    background: rgba(251, 191, 36, 0.25);
    transform: scale(1.12);
}

/* ====================== TESTIMONIALS ====================== */
.testimonials-section {
    padding: 100px 24px;
    background: #FFF8F2;
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr 6px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials-slider {
    position: relative;
}

.slider-container {
    min-height: 320px;
    position: relative;
}

.testimonial-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #E9D8CF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.6s ease;
    position: absolute;
    width: 100%;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card p {
    font-style: italic;
    color: #7A5A4A;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    color: #E59B8C;
    font-weight: 600;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.05rem;
    margin-bottom: 14px;
    line-height: 1;
}

.testimonial-product {
    display: inline-block;
    background: #FFF3EC;
    border: 1px solid #E7CFC2;
    color: #A65A4D;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.divider {
    background: linear-gradient(to bottom, transparent, #D9776A, transparent);
    width: 6px;
    border-radius: 9999px;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: 30%;
    left: -8px;
    right: -8px;
    height: 40%;
    background: #D9776A;
    transform: rotate(12deg);
    border-radius: 9999px;
}

.testimonial-form {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #E9D8CF;
}

.testimonial-form h3 {
    margin-bottom: 24px;
    color: #A65A4D;
}

.testimonial-form input,
.testimonial-form select,
.testimonial-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-top: 8px;
    margin-bottom: 20px;
    background: #FFF3EC;
    border: 1.5px solid #E7CFC2;
    border-radius: 12px;
    color: #5C4033;
    font-size: 15px;
    transition: all 0.3s ease;
    resize: vertical;
}

.testimonial-form input:focus,
.testimonial-form select:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: #E59B8C;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
    transform: translateY(-1px);
}

.testimonial-form label {
    display: block;
    font-size: 14px;
    color: #8E6E60;
    font-weight: 500;
    margin-bottom: 4px;
}

.testimonial-form label span {
    color: #D9776A;
}

.testimonial-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9776A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
    padding-left: 40px;
}

/* ====================== STAR RATING SELECTOR (form) ====================== */
.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0 6px;
}

.star-rating .star-btn {
    background: none;
    border: none;
    padding: 4px 2px;
    font-size: 1.9rem;
    line-height: 1;
    color: #d9c8bd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating .star-btn:hover,
.star-rating .star-btn.selected {
    color: #f59e0b;
}

.star-rating .star-btn:hover {
    transform: scale(1.18);
}

.star-rating .star-btn:focus-visible {
    outline: 2px solid #E59B8C;
    outline-offset: 3px;
    border-radius: 8px;
}

.star-rating-hint {
    font-size: 13px;
    color: #8E6E60;
    min-height: 20px;
    margin-bottom: 6px;
}

.star-rating-hint.error {
    color: #dc2626;
    font-weight: 600;
}

.testimonial-form button {
    width: 100%;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.testimonial-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.4);
}

.testimonial-form input:valid:focus,
.testimonial-form textarea:valid:focus {
    border-color: #4ade80;
}

/* ====================== FAQ ====================== */
.faq-section {
    padding: 100px 24px;
    background: #FFF8F2;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #E9D8CF;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5C4033;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 28px 28px;
    color: #7A5A4A;
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #D9776A;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}



/* Responsive */
@media (max-width: 768px) {
    .testimonials-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .divider {
        height: 6px;
        width: 100%;
        background: linear-gradient(to right, transparent, #D9776A, transparent);
    }
    .divider::after {
        transform: rotate(0deg);
        height: 100%;
        width: 40%;
        left: 30%;
    }
}


@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 15, 20, 0.98);
        flex-direction: column;
        padding: 20px 24px;
        gap: 18px;
        border-top: 1px solid #E9D8CF;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        z-index: 999;
    }

    .nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header {
        padding: 14px 20px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 3.4rem; }
    .hero-text h2 { font-size: 2.3rem; }
    .hero { height: 80vh; min-height: 520px; }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.9rem; }
    .hero-text h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .achievements {
        padding: 70px 16px;
    }
}

/* ====================== LATEST PRODUCTS (homepage) ====================== */
.latest-products {
    padding: 90px 24px;
    background: #FFF8F2;
}

.latest-products .section-header {
    margin-bottom: 50px;
}

.latest-products .section-header h2 {
    color: #A65A4D;
}

.latest-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-content: start;
}

/* Reuse the existing product-card design (see css/product.css) */
.latest-products .product-card {
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1f2937;
    cursor: pointer;
    transition: all 0.4s ease;
}

.latest-products .product-card:hover {
    transform: translateY(-12px);
    border-color: #60a5fa;
    box-shadow: 0 25px 35px -10px rgba(0, 0, 0, 0.5);
}

.latest-products .product-image-container {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.latest-products .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.latest-products .product-card:hover .product-image {
    transform: scale(1.12) rotate(8deg);
}

.latest-products .product-info {
    padding: 20px;
    text-align: center;
}

.latest-products .product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.latest-products .product-weight {
    color: #60a5fa;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.latest-products .product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #bfdbfe;
    margin-bottom: 16px;
}

.latest-products .order-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: Vazirmatn, sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.latest-products .order-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .latest-products {
        padding: 60px 16px;
    }

    .latest-products .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-products .product-image-container {
        height: 210px;
    }
}

