﻿:root {
    --primary-color: #007a51;
    --secondary-color: #111a17;
    --accent-color: #f3f7f4;
    --dark-color: #111a17;
    --light-color: #cfcfcf;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

/* استایل‌های جدید برای فوتر */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .footer-logo img {
        height: 80px;
        margin-bottom: 1rem;
    }

    .footer-logo p {
        color: #cfcfcf;
        font-size: 0.9rem;
        line-height: 1.6;
    }

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

    .footer-links h4::after,
    .footer-contact h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
    }

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

    .footer-links li::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 1px;
        background-color: rgba(207, 207, 207, 0.2);
    }

    .footer-links li:last-child::after {
        display: none;
    }

.footer-links a {
    color: #cfcfcf;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.2rem 0;
}

    .footer-links a:hover {
        color: var(--primary-color);
    }

.footer-contact p {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    position: relative;
    color: #cfcfcf;
}

    .footer-contact p::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 1px;
        background-color: rgba(207, 207, 207, 0.2);
    }

    .footer-contact p:last-child::after {
        display: none;
    }

.footer-contact span {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    min-width: 120px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(207, 207, 207, 0.2);
    color: #cfcfcf;
    font-size: 0.9rem;
}

/* استایل‌های جدید برای فوتر */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .footer-logo img {
        height: 80px;
        margin-bottom: 1rem;
    }

    .footer-logo p {
        color: #cfcfcf;
        font-size: 0.9rem;
        line-height: 1.6;
    }

.footer-links h4,
.footer-contact h4,
.enamad-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
}

    .footer-links h4::after,
    .footer-contact h4::after,
    .enamad-section h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
    }

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

    .footer-links li::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 1px;
        background-color: rgba(207, 207, 207, 0.2);
    }

    .footer-links li:last-child::after {
        display: none;
    }

.footer-links a {
    color: #cfcfcf;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.2rem 0;
}

    .footer-links a:hover {
        color: var(--primary-color);
    }

.footer-contact p {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    position: relative;
    color: #cfcfcf;
}

    .footer-contact p::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 1px;
        background-color: rgba(207, 207, 207, 0.2);
    }

    .footer-contact p:last-child::after {
        display: none;
    }

.footer-contact span {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    min-width: 120px;
}

/* استایل‌های بخش اینماد */
.enamad-section {
    display: flex;
    flex-direction: column;
}

.enamad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.enamad-link {
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

    .enamad-link:hover {
        transform: scale(1.05);
    }

.enamad-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.enamad-description {
    color: #cfcfcf;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(207, 207, 207, 0.2);
    color: #cfcfcf;
    font-size: 0.9rem;
}

/* ریسپانسیو برای فوتر */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links h4::after,
    .footer-contact h4::after,
    .enamad-section h4::after {
        width: 70px;
    }
}

@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-links h4,
    .footer-contact h4,
    .enamad-section h4 {
        margin-top: 1.5rem;
    }

    .enamad-container {
        padding: 0.8rem;
    }

    .enamad-description {
        font-size: 0.8rem;
    }
}
/* همۀ ستون‌ها از بالا تراز شوند و فاصله ستونی کمی بیشتر شود */
.footer-container > * {
    align-self: start;
}

@media (min-width: 992px) {
    .footer-container {
        /* چهار ستون با عرض‌های منطقی‌تر: لوگو/توضیح کمی عریض‌تر، تماس کمی عریض‌تر */
        grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);
        gap: 2rem 2.5rem; /* ردیفی/ستونی */
    }
}

/* توضیح ستون اول خواناتر و «تراز»تر */
.footer-logo p {
    text-align: justify; /* متن یکدست */
    text-align-last: right; /* خط آخر راست‌چین */
    line-height: 1.8;
}

/* — تلفن‌ها: توی دسکتاپ دو بلوک کنار هم، بدون شکست — */
#contactus li:first-child { /* همون آیتمی که دو تلفن توش هست */
    display: grid !important;
    grid-template-columns: auto 1fr 1fr; /* آیکن | پشتیبانی | فروش */
    column-gap: 12px;
    align-items: start;
}

    #contactus li:first-child > .mr-3 {
        margin-right: 0 !important;
    }

    #contactus li:first-child p {
        margin: 0;
    }

    /* شماره‌ها و لیبل‌ها نشکنند (روی دسکتاپ) */
    #contactus li:first-child .text-sm,
    #contactus li:first-child .font-medium {
        white-space: nowrap;
    }

/* در موبایل منطقی بچیند: زیر هم بیفتند */
@media (max-width: 767px) {
    #contactus li:first-child {
        grid-template-columns: auto 1fr;
        grid-auto-rows: auto;
    }

        #contactus li:first-child > div:nth-of-type(2),
        #contactus li:first-child > div:nth-of-type(3) {
            grid-column: 2; /* هر دو کنار آیکن، زیر هم */
        }
}


.ribbon-vertical {
    position: fixed;
    top: 20%;
    right: 0;
    width: 220px;
    padding: 20px 15px;
    background: linear-gradient(180deg,#ff6f00,#ff8f00);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: box-shadow 0.3s ease,transform 0.2s ease;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

    .ribbon-vertical:hover {
        box-shadow: 0 0 30px rgba(255,0,0,0.8),0 0 50px rgba(255,0,0,0.5),0 0 20px rgba(255,140,0,0.5),0 0 15px rgba(0,0,0,0.3);
        transform: scale(1.05)
    }

    .ribbon-vertical .icon, .ribbon-vertical .cart {
        font-size: 28px;
        margin-bottom: 10px;
        display: block;
        animation: flash 1.5s infinite alternate;
        text-shadow: 0 0 6px rgba(0,0,0,0.6),0 0 10px rgba(255,140,0,0.8);
    }

    .ribbon-vertical .text-horizontal {
        writing-mode: horizontal-tb;
        display: block;
        white-space: nowrap;
        font-size: 16px
    }

@keyframes flash {
    0% {
        opacity: .7;
        transform: rotate(-10deg) scale(1)
    }

    50% {
        opacity: 1;
        transform: rotate(10deg) scale(1.1)
    }

    100% {
        opacity: .8;
        transform: rotate(0deg) scale(1)
    }
}

.particle {
    position: absolute;
    font-size: 48px;
    pointer-events: none;
    color: rgba(255,255,0,.5);
    text-shadow: 0 0 8px rgba(255,255,0,.3),0 0 16px rgba(255,200,0,.4);
    animation: float linear forwards;
    will-change: transform,opacity;
    user-select: none
}

@keyframes float {
    0% {
        transform: translate(0,0) scale(.6);
        opacity: .5
    }

    100% {
        transform: translate(var(--dx),-25vh) scale(1);
        opacity: 0
    }
}
.has-background-passaro {
    background-color: #007a51 !important;
}

.has-text-passaro {
    color: #007a51 !important;
}

.button.is-passaro {
    background-color: #007a51;
    color: #fff;
    border: none;
}

    .button.is-passaro:hover {
        background-color: #006240;
        color: #fff;
    }
