/* ============================================
   ریسپانسیو - پاک پلیمر کردستان
   نسخه کامل - آپدیت شده با تغییرات جدید
   ============================================ */

/* ==================== تبلت (768px - 1024px) ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    /* ===== هیرو ===== */
    .hero {
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* ===== آمار ===== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* ===== محصولات ===== */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* ===== فرآیند تولید ===== */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* ===== گالری ===== */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* ===== افتخارات ===== */
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* ===== سوالات و نظرات ===== */
    .faq-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* ===== تماس ===== */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* ===== فوتر ===== */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ==================== موبایل (480px - 768px) ==================== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* ===== هیرو ===== */
    .hero {
        min-height: 70vh;
        padding: 80px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }
    
    /* دکمه‌های هیرو - چیدمان ستونی */
    .hero-buttons {
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .hero-row-three {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .btn-hero-full {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 56px;
    }
    
    .btn-hero-full svg {
        width: 22px;
        height: 22px;
    }
    
    .btn-hero-third {
        padding: 14px 18px;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .btn-hero-third svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-hero-third span {
        white-space: normal;
    }
    
    /* دکمه محصولات در موبایل */
    .btn-products {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .btn-products:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.8);
    }
    
    /* ===== هدر سکشن‌ها ===== */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* ===== آمار ===== */
    .stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* ===== محصولات ===== */
    .products {
        padding: 2rem 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-info p {
        font-size: 0.85rem;
    }
    
    .product-specs span {
        font-size: 0.75rem;
    }
    
    .products-filter {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        border-radius: 30px;
    }
    
    .products-cta {
        margin-top: 2rem;
    }
    
    /* ===== فرآیند تولید ===== */
    .process {
        padding: 2rem 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .process-step {
        padding: 1.5rem 0.5rem;
    }
    
    .process-step .step-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .process-step h3 {
        font-size: 0.95rem;
    }
    
    .process-step p {
        font-size: 0.85rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
    
    /* ===== گالری ===== */
    .gallery {
        padding: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 0.9rem;
    }
    
    /* ===== افتخارات ===== */
    .achievements {
        padding: 2rem 0;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .achievement-card {
        padding: 1.5rem 1rem;
    }
    
    .achievement-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .achievement-card h3 {
        font-size: 0.95rem;
    }
    
    .achievement-card p {
        font-size: 0.8rem;
    }
    
    /* ===== سوالات و نظرات ===== */
    .faq-testimonials {
        padding: 2rem 0;
    }
    
    .faq-testimonials-grid {
        gap: 2rem;
    }
    
    .faq-section h3,
    .testimonials-section h3 {
        font-size: 1.3rem;
    }
    
    .faq-question {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
    }
    
    /* ===== تماس ===== */
    .contact {
        padding: 2rem 0;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
    }
    
    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-item h4 {
        font-size: 0.95rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.85rem;
        min-width: unset;
    }
    
    .btn-contact svg {
        width: 16px;
        height: 16px;
    }
    
    /* شبکه‌های اجتماعی */
    .social-media-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .social-media-section h4 {
        font-size: 0.9rem;
    }
    
    .social-media-links {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .social-icon {
        padding: 0.4rem 0.6rem;
        min-width: 50px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .social-icon span {
        font-size: 0.55rem;
    }
    
    /* ===== دکمه بازگشت به بالا ===== */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    .back-to-top-text {
        font-size: 0.45rem;
    }
    
    /* ===== فوتر ===== */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-about .footer-logo {
        justify-content: center;
    }
    
    .footer-about p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer h4 {
        text-align: center;
        font-size: 1rem;
    }
    
    .footer h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer ul {
        text-align: center;
    }
    
    .footer ul a {
        font-size: 0.85rem;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact p {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
    }
    
    .social-icon-sm {
        width: 34px;
        height: 34px;
    }
    
    .social-icon-sm svg {
        width: 16px;
        height: 16px;
    }
}

/* ==================== موبایل کوچک (زیر 480px) ==================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* ===== هیرو ===== */
    .hero {
        min-height: 60vh;
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero-full {
        padding: 14px 20px;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .btn-hero-full svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-hero-third {
        padding: 12px 16px;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .btn-hero-third svg {
        width: 16px;
        height: 16px;
    }
    
    /* ===== آمار ===== */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* ===== محصولات ===== */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    /* ===== فرآیند تولید ===== */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* ===== گالری ===== */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* ===== افتخارات ===== */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* ===== سوالات و نظرات ===== */
    .faq-testimonials-grid {
        gap: 1.5rem;
    }
    
    .faq-section h3,
    .testimonials-section h3 {
        font-size: 1.1rem;
    }
    
    /* ===== تماس ===== */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
    }
    
    .contact-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* ===== بخش‌ها ===== */
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* ===== دکمه‌ها ===== */
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-width: unset;
        gap: 6px;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* ===== فرم ===== */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    /* ===== دکمه بازگشت به بالا ===== */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
    
    .back-to-top-text {
        font-size: 0.4rem;
    }
    
    /* ===== شبکه‌های اجتماعی ===== */
    .social-media-links {
        gap: 0.4rem;
    }
    
    .social-icon {
        padding: 0.3rem 0.5rem;
        min-width: 44px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .social-icon span {
        font-size: 0.5rem;
    }
}

/* ==================== تبلت بزرگ (769px - 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-hero-full {
        padding: 16px 28px;
        font-size: 1rem;
        min-height: 58px;
    }
    
    .btn-hero-third {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 50px;
    }
}

/* ==================== دسکتاپ بزرگ (بالای 1400px) ==================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
    
    .hero-content h1 {
        font-size: 3.8rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .btn-hero-full {
        padding: 22px 40px;
        font-size: 1.2rem;
        min-height: 72px;
    }
    
    .btn-hero-full svg {
        width: 26px;
        height: 26px;
    }
    
    .btn-hero-third {
        padding: 18px 28px;
        font-size: 1rem;
        min-height: 64px;
    }
    
    .btn-hero-third svg {
        width: 22px;
        height: 22px;
    }
    
    .stats-grid {
        gap: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* ==================== چاپ ==================== */
@media print {
    .header,
    .footer,
    .back-to-top,
    .nav-tools,
    .hero-buttons,
    .products-filter,
    .products-cta,
    .contact-actions,
    .social-media-section {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        background: white !important;
        color: black !important;
    }
    
    .hero {
        min-height: auto !important;
        padding: 2rem 0 !important;
        background: #f0f4f8 !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    .hero-content h1 {
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
        background: none !important;
    }
    
    .hero-content p {
        color: #475569 !important;
    }
    
    .btn {
        border: 1px solid #ccc !important;
        background: #f8f8f8 !important;
        color: #333 !important;
        box-shadow: none !important;
    }
    
    .btn-products,
    .btn-secondary {
        background: #e8e8e8 !important;
        border-color: #999 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .section-header h2 {
        color: #1e293b !important;
    }
    
    .section-header p {
        color: #475569 !important;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .stat-item {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ==================== کاهش حرکت ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .logo-glow,
    .logo-ring,
    .logo-image {
        animation: none !important;
    }
    
    .btn:hover,
    .btn-products:hover,
    .btn-catalog:hover,
    .btn-whatsapp:hover,
    .btn-secondary:hover {
        transform: none !important;
    }
    
    .product-card:hover,
    .process-step:hover,
    .achievement-card:hover {
        transform: none !important;
    }
}

/* ==================== نمایشگرهای با ارتفاع کم ==================== */
@media (max-height: 600px) {
    .hero {
        min-height: 90vh;
        padding: 60px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .btn-hero-full {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .btn-hero-full svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-hero-third {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .btn-hero-third svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .hero-row-three {
        gap: 0.5rem;
    }
}

/* ==================== نمایشگرهای لمسی ==================== */
@media (hover: none) {
    .btn:hover,
    .btn-products:hover,
    .btn-catalog:hover,
    .btn-whatsapp:hover,
    .btn-secondary:hover {
        transform: none !important;
    }
    
    .product-card:hover,
    .process-step:hover,
    .achievement-card:hover,
    .stat-item:hover,
    .contact-item:hover {
        transform: none !important;
    }
    
    .gallery-item:hover img {
        transform: none !important;
    }
    
    .gallery-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    }
}