/*
Theme Name: Atis Inspection
Theme URI: https://atisinspection.com
Author: Atis Inspection Team
Description: قالب حرفه‌ای شرکت بازرسی فنی آتیس - تم کاترپیلاری
Version: 3.0
*/

/* ============================================
   فونت وزیر لوکال
   ============================================ */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Vazir', 'Segoe UI', 'Tahoma', sans-serif;
    direction: rtl;
    background: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   متغیرهای رنگ - تم کاترپیلاری
   ============================================ */
:root {
    --caterpillar-yellow: #F5A623;
    --caterpillar-yellow-dark: #D48A1A;
    --caterpillar-yellow-light: #FFC107;
    --primary-dark: #1A1A1A;
    --primary-dark-alt: #2C2C2C;
    --bg-gray: #F4F6F9;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
}

/* ============================================
   انیمیشن‌های پایه
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeScaleRotate {
    0% { opacity: 0; transform: scale(0.85) rotateY(-15deg); }
    100% { opacity: 1; transform: scale(1) rotateY(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fadeUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeLeft { animation: fadeInLeft 0.8s ease forwards; }
.animate-fadeRight { animation: fadeInRight 0.8s ease forwards; }
.animate-zoom { animation: zoomIn 0.6s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ============================================
   کانتینر
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   هدر و منوی اصلی
   ============================================ */
.site-header {
    background: var(--primary-dark);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.site-header.scrolled {
    padding: 6px 0;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(10px);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header.header-visible {
    transform: translateY(0);
}

@media (min-width: 992px) {
    .site-header {
        position: sticky;
    }
    .site-header.header-hidden,
    .site-header.header-visible {
        transform: none;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-wrapper {
    background: white;
    padding: 5px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.site-header.scrolled .logo-wrapper {
    padding: 3px 8px;
}

.logo-img,
.custom-logo-link img {
    max-height: 45px;
    width: auto;
    display: block;
    transition: all 0.3s;
}

.site-header.scrolled .logo-img {
    max-height: 38px;
}

.logo-text h2 {
    color: var(--caterpillar-yellow);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: all 0.3s;
}

.site-header.scrolled .logo-text h2 {
    font-size: 0.85rem;
}

.logo-text p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.55rem;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--caterpillar-yellow);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.main-nav {
    flex: 1;
}

.main-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 6px;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 12px;
    left: 12px;
    height: 2px;
    background: var(--caterpillar-yellow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after,
.main-menu .current_page_item a::after {
    transform: scaleX(1);
}

.main-menu a:hover,
.main-menu .current-menu-item a,
.main-menu .current_page_item a {
    color: var(--caterpillar-yellow);
    background: rgba(255,255,255,0.05);
}

.btn-header {
    padding: 8px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--caterpillar-yellow);
    color: var(--primary-dark);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-header:hover {
    background: var(--caterpillar-yellow-dark);
    transform: translateY(-2px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   دکمه عمومی با افکت ریپل
   ============================================ */
.btn {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--caterpillar-yellow);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--caterpillar-yellow);
}

/* ============================================
   اسلایدر حرفه‌ای
   ============================================ */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.slide.active img {
    transform: scale(1);
}

.slide-caption {
    position: absolute;
    bottom: 20%;
    right: 10%;
    background: linear-gradient(-90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.7));
    color: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 550px;
    text-align: center;
    animation: slideInFromRight 0.8s ease;
    backdrop-filter: blur(5px);
}

.slide-caption h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--caterpillar-yellow);
}

.slide-caption p {
    margin-bottom: 20px;
    color: white;
    font-size: 1rem;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
    transition: all 0.3s;
}

.slider-prev { right: 20px; left: auto; }
.slider-next { left: 20px; right: auto; }

.slider-prev:hover,
.slider-next:hover {
    background: var(--caterpillar-yellow);
    color: var(--primary-dark);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--caterpillar-yellow);
    transform: scale(1.3);
}

/* ============================================
   خدمات
   ============================================ */
.services {
    padding: 80px 0;
    background: var(--bg-gray);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--caterpillar-yellow);
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 150px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    opacity: 0;
    transform: scale(0.85) rotateY(-8deg);
}

.service-card.visible {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.service-card:nth-child(1).visible { transition-delay: 0.1s; }
.service-card:nth-child(2).visible { transition-delay: 0.3s; }
.service-card:nth-child(3).visible { transition-delay: 0.5s; }

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.5s;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card:hover h3 {
    color: var(--caterpillar-yellow);
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   گالری پروژه با فیلتر
   ============================================ */
.projects-gallery {
    padding: 80px 0;
    background: var(--white);
}

.filter-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
    font-family: 'Vazir', sans-serif;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-dark);
    color: var(--caterpillar-yellow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    opacity: 0;
    transform: scale(0.85) rotateY(-8deg);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item h3 {
    padding: 15px;
    font-size: 1rem;
    text-align: center;
    color: var(--primary-dark);
}

/* ============================================
   آمار
   ============================================ */
.stats-section {
    background: var(--caterpillar-yellow);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 10px;
    display: inline-block;
}

.stat-label {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 500;
    opacity: 0.9;
}

/* ============================================
   CTA جدید
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-alt) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245,166,35,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--caterpillar-yellow);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.btn-large {
    padding: 14px 35px;
    font-size: 1rem;
}

/* ============================================
   فرم‌ها
   ============================================ */
.request-form {
    padding: 80px 0;
    background: var(--bg-gray);
}

.quote-form-short {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazir', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--caterpillar-yellow);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.2);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    background: var(--primary-dark);
    color: var(--caterpillar-yellow);
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark-alt);
    transform: translateY(-2px);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   دانلود PDF
   ============================================ */
.download-section {
    padding: 60px 0;
    background: var(--white);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.download-card {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.download-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.download-card p {
    color: #666;
    margin-bottom: 20px;
}

/* ============================================
   آخرین مقالات
   ============================================ */
.latest-blog-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.latest-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.latest-blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    opacity: 0;
    transform: scale(0.85) rotateY(-8deg);
}

.latest-blog-card.visible {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.latest-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.latest-blog-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.latest-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-blog-card:hover .latest-blog-image img {
    transform: scale(1.08);
}

.no-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.latest-blog-content {
    padding: 20px;
}

.latest-blog-date {
    font-size: 0.75rem;
    color: var(--caterpillar-yellow);
    margin-bottom: 10px;
    font-weight: 500;
}

.latest-blog-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.latest-blog-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.latest-blog-title a:hover {
    color: var(--caterpillar-yellow);
}

.latest-blog-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.latest-blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--caterpillar-yellow);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.latest-blog-readmore:hover {
    gap: 10px;
}

.latest-blog-footer {
    text-align: center;
    margin-top: 20px;
}

/* ============================================
   فوتر حرفه‌ای
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
    direction: rtl;
}

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

.footer-grid div {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.footer-grid div.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-grid h4 {
    color: var(--caterpillar-yellow);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--caterpillar-yellow);
}

.footer-grid p {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

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

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

.footer-grid ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-grid ul li a:hover {
    color: var(--caterpillar-yellow);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   شبکه‌های اجتماعی
   ============================================ */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon.whatsapp { background: #25D366; }
.social-icon.telegram { background: #0088cc; }
.social-icon.instagram { background: #E4405F; }
.social-icon.linkedin { background: #0077B5; }
.social-icon.email { background: var(--caterpillar-yellow); }

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============================================
   واتساپ شناور
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
}

/* ============================================
   صفحات داخلی
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--caterpillar-yellow) 0%, var(--caterpillar-yellow-dark) 100%);
    color: var(--primary-dark);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 2rem;
}

.page-header p {
    color: var(--primary-dark);
    opacity: 0.8;
}

.page-content {
    padding: 60px 0;
}

.page-content-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   درباره ما
   ============================================ */
.about-intro-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.about-intro-card p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    opacity: 0;
    transform: scale(0.85) rotateY(-8deg);
}

.about-card.visible {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-card h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--caterpillar-yellow);
    display: inline-block;
    font-size: 1.3rem;
}

.about-card ul {
    list-style: none;
    padding-right: 0;
    margin-top: 15px;
}

.about-card ul li {
    margin-bottom: 12px;
    padding-right: 25px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.about-card ul li::before {
    content: "▹";
    position: absolute;
    right: 0;
    color: var(--caterpillar-yellow);
}

.about-description-card {
    background: var(--bg-gray);
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.about-description-card p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin: 0;
    text-align: justify;
}

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

.about-feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    opacity: 0;
    transform: scale(0.85) rotateY(-8deg);
    border: 1px solid #f0f0f0;
}

.about-feature-card.visible {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.about-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--caterpillar-yellow);
    color: var(--primary-dark);
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.about-feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-buttons {
    text-align: center;
    margin-top: 20px;
}

.about-buttons .btn {
    margin: 0 10px;
}

/* ============================================
   صفحه بلاگ
   ============================================ */
.blog-page {
    padding: 60px 0;
    background: var(--bg-gray);
    min-height: 500px;
}

.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: 'Vazir', sans-serif;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--caterpillar-yellow);
}

.search-box button {
    background: var(--caterpillar-yellow);
    border: none;
    padding: 0 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--caterpillar-yellow-dark);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.cat-tag {
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.cat-tag:hover {
    background: var(--caterpillar-yellow);
    transform: translateY(-2px);
    border-color: var(--caterpillar-yellow);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-thumbnail {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.08);
}

.no-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.blog-info {
    padding: 20px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.blog-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--caterpillar-yellow);
}

.blog-excerpt {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.read-more {
    color: var(--caterpillar-yellow);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.read-more:hover {
    padding-right: 5px;
}

.blog-pagination {
    text-align: center;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-dark);
    transition: all 0.3s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--caterpillar-yellow);
    color: var(--primary-dark);
}

.blog-sidebar {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--caterpillar-yellow);
    display: inline-block;
}

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

.sidebar-widget ul li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #eee;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-widget ul li a:hover {
    color: var(--caterpillar-yellow);
    padding-right: 5px;
}

/* ============================================
   صفحه تک مقاله
   ============================================ */
.single-post-container {
    padding: 60px 0;
}

.single-post-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.single-post-main {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    line-height: 1.9;
    color: #2c3e50;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--primary-dark);
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 12px;
    color: var(--primary-dark);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-right: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags span {
    font-weight: bold;
    margin-left: 10px;
}

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    color: #555;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--caterpillar-yellow);
    color: var(--primary-dark);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: bold;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: var(--caterpillar-yellow);
}

.single-post-sidebar .sidebar-widget {
    margin-bottom: 30px;
}

/* ============================================
   فرم کامنت‌ها
   ============================================ */
.comments-area {
    margin-top: 50px;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
    border-right: 4px solid var(--caterpillar-yellow);
    padding-right: 15px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment {
    background: #f9fafb;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.comment-meta {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-dark);
}

.comment-metadata {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.comment-content {
    line-height: 1.7;
    color: #4b5563;
}

.reply {
    margin-top: 12px;
}

.comment-reply-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--caterpillar-yellow);
    text-decoration: none;
}

.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 16px;
}

.comment-reply-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.comment-form {
    display: grid;
    gap: 15px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: grid;
    gap: 5px;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    font-weight: 500;
    font-size: 0.85rem;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Vazir', sans-serif;
}

.comment-form-comment textarea {
    height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 10px;
}

.submit {
    background: var(--primary-dark);
    color: var(--caterpillar-yellow);
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    font-weight: bold;
    transition: all 0.3s;
}

.submit:hover {
    background: var(--primary-dark-alt);
    transform: translateY(-2px);
}

/* ============================================
   ریسپانسیو کامل
   ============================================ */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-menu a {
        display: block;
        padding: 12px 15px;
    }
    
    .main-menu a::after {
        display: none;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-caption {
        padding: 20px;
        right: 5%;
        left: 5%;
        max-width: 90%;
        bottom: 15%;
    }
    
    .slide-caption h1 {
        font-size: 1.2rem;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
    
    .services-grid,
    .gallery-grid,
    .about-grid,
    .about-features-grid,
    .blog-grid,
    .latest-blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-grid h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .blog-toolbar {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .single-post-wrapper {
        grid-template-columns: 1fr;
    }
    
    .single-post-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .single-post-main {
        padding: 20px;
    }
    
    .post-content h2 {
        font-size: 1.3rem;
    }
    
    .post-content h3 {
        font-size: 1.1rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .about-buttons .btn {
        margin: 10px;
        display: inline-block;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-text h2 {
        font-size: 0.7rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .logo-img {
        max-height: 35px;
    }
    
    .btn-header {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .slide-caption h1 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .about-features-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        left: 15px;
    }
}