/* ============================================
   Parsa Group Co. - Responsive Stylesheet
   ============================================ */

/* Desktop Styles - 1200px+ */
@media (min-width: 1200px) {
    .main-header .container {
        max-width: 1400px;
    }

    .main-header .nav-list {
        gap: 3rem;
    }

    .main-header .mega-menu {
        width: 600px;
    }
}

/* Tablet Styles */
@media (max-width: 968px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Hero Section - Tablet */
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .float-icon {
        width: 60px;
        height: 60px;
    }

    .float-icon i {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Body padding adjustment for mobile */
    body {
        padding-top: 70px;
    }

    /* Main Header - Mobile */
    .main-header {
        padding: 1rem 0;
    }

    .main-header.sticky {
        padding: 0.75rem 0;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .main-header .logo img {
        height: 40px;
    }

    /* Mobile Toggle */
    .main-header .mobile-toggle {
        display: flex;
    }

    /* Navigation - Mobile */
    .main-header .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1002;
        overflow-y: auto;
        padding: 0;
    }

    .main-header .main-nav.active {
        right: 0;
    }

    /* Mobile Menu Overlay */
    .main-header .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
        pointer-events: none;
    }

    .main-header .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-header .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4rem 2rem 2rem;
        width: 100%;
    }

    .main-header .nav-list > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-header .nav-list > li > a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .main-header .nav-list > li > a::after {
        display: none;
    }

    .main-header .nav-list > li > a.active {
        color: var(--primary-color);
        background-color: rgba(26, 115, 232, 0.05);
        padding-left: 1rem;
        border-left: 4px solid var(--primary-color);
    }

    /* Mobile Close Button */
    .main-header .mobile-close-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--text-dark);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 1003;
        background: none;
        border: none;
        padding: 0;
        line-height: 1;
    }

    .main-header .mobile-close-btn:hover {
        background-color: var(--bg-light);
        color: var(--primary-color);
        transform: rotate(90deg);
    }

    /* Mobile Dropdown/Mega Menu */
    .main-header .dropdown {
        position: relative;
    }

    .main-header .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0;
        padding: 1rem 0 1rem 1.5rem;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 0;
        display: none;
        flex-direction: column;
        gap: 1rem;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .main-header .dropdown.active .mega-menu {
        display: flex;
        animation: none;
    }

    .main-header .mega-column {
        width: 100%;
    }

    .main-header .mega-column h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .main-header .mega-column a {
        padding: 0.75rem 0;
        font-size: 0.9rem;
    }

    .main-header .mega-column a:hover {
        padding-left: 0;
    }

    /* Mobile CTA Button */
    .main-header .cta-button {
        display: none;
    }

    /* Header Actions - Mobile */
    .main-header .header-actions {
        gap: 1rem;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Hero Section - Mobile */
    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title .title-line {
        display: block;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 28px;
        font-size: 1rem;
    }

    .float-icon {
        width: 50px;
        height: 50px;
        opacity: 0.7;
    }

    .float-icon i {
        font-size: 1.2rem;
    }

    .pump-icon {
        top: 10%;
        left: 5%;
    }

    .protector-icon {
        top: 55%;
        right: 5%;
    }

    .lab-icon {
        bottom: 15%;
        left: 10%;
    }

    .hero-scroll {
        bottom: 30px;
    }

    .hero-scroll span {
        font-size: 0.8rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Product Showcase - Tablet */
    .product-showcase {
        padding: 60px 0;
    }

    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }

    .product-cards-grid .product-card {
        width: 100%;
        max-width: 320px;
        height: 480px;
    }

    /* Forms */
    .order-form,
    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Newsletter */
    .newsletter-box {
        padding: 2rem 1.5rem;
    }

    /* About Section */
    .about-content {
        padding: 0 1rem;
    }

    .group-article {
        padding: 0 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Hero Section - Small Mobile */
    .hero {
        min-height: 100vh;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .float-icon {
        width: 40px;
        height: 40px;
    }

    .float-icon i {
        font-size: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .feature-card,
    .product-card {
        padding: 1.5rem;
    }

    /* Product Showcase - Mobile */
    .product-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .product-cards-grid .product-card {
        width: 100%;
        max-width: 280px;
        height: auto;
        min-height: 420px;
    }

    .product-cards-grid .card-image {
        height: 180px;
    }

    .product-cards-grid .card-content {
        padding: 1.25rem;
    }

    .product-cards-grid .product-title {
        font-size: 1.25rem;
    }

    .product-cards-grid .product-specs {
        gap: 0.5rem;
    }

    .product-cards-grid .product-specs span {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    .product-cards-grid .card-back {
        padding: 1.5rem;
    }

    .product-cards-grid .btn-details,
    .product-cards-grid .btn-quote {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .order-form,
    .contact-form {
        padding: 1rem;
    }

    .newsletter-box {
        padding: 1.5rem 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }

    .nav-menu {
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .main-footer,
    .mobile-menu-toggle,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .page-header {
        background: none;
        color: black;
        padding: 20px 0;
    }

    .page-title {
        color: black;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .feature-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@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;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

