/*
Theme Name: Farm V3
Theme URI: http://example.com/farm
Author: Your Name
Author URI: http://example.com
Description: A custom WordPress theme for an agricultural business that sells fertilizers and pesticides.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: agriculture, farming, fertilizers, pesticides, responsive
*/

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background: #4CAF50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

h1, h2, h3 {
    color: #333;
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


:root {
    --primary-color: #2d8659; /* سبز اصلی */
    --primary-dark: #1f5d3f;
    --primary-light: #4CAF50;
    --secondary-color: #ff6b35; /* نارنجی/قرمز */
    --accent-color: #f7931e; /* زرد/طلایی */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Footer Base Styles --- */
.site-footer {
    /* استفاده از رنگ روشن برای پس زمینه اصلی فوتر جهت خوانایی */
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 40px 20px;
    border-top: 8px solid var(--primary-color); /* خط سبز پررنگ در بالا */
    font-family: Tahoma, sans-serif;
}

.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 ستون پیش‌فرض */
    gap: 30px;
    padding: 20px 0;
}

/* Section Styling (ساده و مدرن) */
.footer-section {
    padding: 15px 0;
}

.footer-section h4 {
    color: var(--primary-dark);
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    position: relative;
}

/* خط زیر عنوان با رنگ تاکیدی */
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Summary & Logo */
.summary-logo-section img {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 15px;
}
.summary-logo-section p {
    font-size: 0.9em;
    color: var(--text-light);
    line-height: 1.9;
}

/* Contact Details */
.address-phone-section p {
    font-size: 0.95em;
    line-height: 2.2;
    color: var(--text-light);
}
.address-phone-section svg {
    color: var(--primary-color);
    margin-left: 10px;
    vertical-align: middle;
}

/* Links Styling */
.practical-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.practical-links li a {
    display: block;
    padding: 6px 0;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
    font-size: 0.95em;
}
.practical-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Social Media */
.social-links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.social-links-section li {
    margin-left: 20px;
}
.social-links-section a {
    color: var(--text-light);
    font-size: 1.6em;
    transition: color 0.3s ease;
}
.social-links-section a:hover {
    color: var(--secondary-color); /* استفاده از رنگ ثانویه برای تاکید روی لینک‌ها */
}

/* Consultation */
.consultation-section {
    background-color: var(--primary-color); /* پس‌زمینه سبز قوی برای جلب توجه */
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.consultation-section h4 {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}
.consultation-section h4::after {
    background-color: var(--accent-color);
}
.consultation-section p {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.consultation-section button {
    background-color: var(--secondary-color); /* دکمه با رنگ متضاد */
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}
.consultation-section button:hover {
    background-color: #e05a2c; /* کمی تیره‌تر */
    transform: translateY(-2px);
}

/* Enamad (Trust Seals) */
.enamad-section img {
    max-width: 90px;
    height: auto;
    margin: 5px 10px;
    border-radius: 4px;
    transition: transform 0.3s;
}
.enamad-section img:hover {
    transform: scale(1.05);
}


/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .footer-content-wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2 ستون */
    }
    /* انتقال مشاوره و اینماد به عرض کامل */
    .consultation-section, .enamad-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-content-wrapper {
        grid-template-columns: 1fr; /* 1 ستون */
    }
    /* همه بخش‌ها عرض کامل */
    .footer-section {
        grid-column: span 1 !important;
    }
    .social-links-section ul {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 20px;
    }
}
