/*
Theme Name: پارس بهتاکو
Author: Your Name
Description: قالب کشاورزی و آبیاری
Version: 1.0
Text Domain: parsbehtaco
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
    direction: rtl;
    text-align: right;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    font-size: 48px;
}

.site-title {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

/* Navigation */
.main-navigation {
    background: rgba(0,0,0,0.1);
    padding: 0;
}

.main-navigation .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(45, 80, 22, 0.85), rgba(74, 124, 44, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%234a7c2c" width="1200" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section.has-background {
    /* This class will be added when custom image is set */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-button:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Products Slider Section */
.products-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.section-header h2 {
    font-size: 36px;
    color: #2d5016;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 18px;
}

.products-slider {
    position: relative;
    overflow: hidden;
}

.products-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
}

.products-wrapper::-webkit-scrollbar {
    height: 8px;
}

.products-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-wrapper::-webkit-scrollbar-thumb {
    background: #2196F3;
    border-radius: 10px;
}

.product-card {
    min-width: 280px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 20px;
    color: #2d5016;
    margin-bottom: 10px;
}

.product-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-link {
    display: inline-block;
    padding: 8px 20px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s;
}

.product-link:hover {
    background: #1976D2;
}

/* Why Us Section */
.why-us-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    padding: 60px 20px;
    margin-top: 60px;
}

.why-us-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-us-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 4px solid #4a7c2c;
}

.why-us-item:nth-child(even) {
    border-top-color: #2196F3;
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.why-us-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.why-us-item h3 {
    font-size: 20px;
    color: #2d5016;
    margin-bottom: 10px;
}

.why-us-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Content */
.site-content {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

article {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-right: 4px solid #4a7c2c;
}

h2 {
    color: #2d5016;
    margin-bottom: 15px;
    font-size: 24px;
}

h2 a {
    color: #2d5016;
    text-decoration: none;
}

h2 a:hover {
    color: #4a7c2c;
}

.entry-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.entry-content {
    line-height: 1.8;
    color: #555;
}

.entry-content a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.entry-content a:hover {
    background: #1976D2;
}

/* Footer */
.site-footer {
    background: #1a2f3a;
    color: rgba(255,255,255,0.8);
    margin-top: 60px;
}

/* Gallery Page */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: white;
    color: #2d5016;
    border: 2px solid #4a7c2c;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
}

.filter-btn:hover {
    background: #4a7c2c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 44, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 124, 44, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hidden {
	display:none;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(74, 124, 44, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.page-template-gallery .site-content {
    max-width: 1400px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4a7c2c;
}

.page-header h1 {
    font-size: 38px;
    color: #2d5016;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex !important;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 100000;
    line-height: 1;
    border: 2px solid white;
}

.lightbox-close:hover {
    background: rgba(74, 124, 44, 0.9);
    transform: rotate(90deg);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 8px;
    max-width: 90%;
}

.no-images-message {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-images-message p {
    font-size: 18px;
    color: #999;
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 44, 0.4);
}

/* Products Page */
.product-detail {
    background: white;
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    scroll-margin-top: 100px;
}

.product-detail-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 3px solid #f0f0f0;
}

.product-detail-icon {
    font-size: 80px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.product-detail-title h2 {
    font-size: 36px;
    color: #2d5016;
    margin-bottom: 10px;
}

.product-detail-subtitle {
    font-size: 18px;
    color: #666;
}

.product-content {
    line-height: 1.9;
}

.product-content h3 {
    font-size: 24px;
    color: #2d5016;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-right: 15px;
    border-right: 4px solid #4a7c2c;
}

.product-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    padding: 25px;
    border-radius: 12px;
    border-right: 4px solid #4a7c2c;
}

.feature-box h4 {
    color: #2d5016;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.product-specs {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.product-specs li {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-right: 3px solid #2196F3;
    font-size: 15px;
}

.product-specs li strong {
    color: #2d5016;
}

.cta-section {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: #2d5016;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #2d5016;
}

/* Contact Page */
.contact-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 25px;
}

.member-name {
    font-size: 22px;
    color: #2d5016;
    margin-bottom: 8px;
}

.member-position {
    font-size: 16px;
    color: #2196F3;
    margin-bottom: 12px;
    font-weight: 600;
}

.member-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-contact {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2d5016;
    transition: all 0.3s;
}

.contact-icon:hover {
    background: #4a7c2c;
    color: white;
    transform: scale(1.1);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.call-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.call-button:hover {
    background: linear-gradient(135deg, #4a7c2c 0%, #2d5016 100%);
    transform: translateY(-2px);
}

.contact-info-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-info-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #4a7c2c;
}

.contact-info-item h4 {
    color: #2d5016;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

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

.footer-widget h3 {
    color: #8bc34a;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: #8bc34a;
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top .container,
    .header-main .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        text-align: center;
    }
    
    .hero-section {
        padding: 60px 20px;
        min-height: 300px;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .product-card {
        min-width: 250px;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}