﻿
: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;
    }
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

html {
    scroll-behavior: smooth;
}
