/* SPAA Graphis - Responsive Styles */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-content {
        flex-direction: column;
        text-align: center;
    }
    
    .service-detail.reverse .service-content {
        flex-direction: column;
    }
    
    .service-icon-large {
        margin: 2rem auto;
    }
    
    .process-steps {
        justify-content: center;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .gallery-modal .modal-content {
        flex-direction: column;
        max-width: 90%;
    }
    
    .modal-image {
        height: 250px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 250px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Grids */
    .features-grid,
    .services-grid,
    .additional-grid,
    .values-grid,
    .team-grid,
    .reasons-grid,
    .materials-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        margin: 1.5rem 0;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 250px;
    }
    
    /* Process Steps */
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 300px;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: none;
    }
    
    /* Service Details */
    .service-content {
        min-height: auto;
    }
    
    .service-icon-large {
        flex: none;
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
    
    /* Testimonials */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    /* Gallery Modal */
    .gallery-modal .modal-content {
        margin: 2% auto;
        max-width: 95%;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .additional-card,
    .team-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Icons */
    .feature-icon,
    .mv-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-icon-large {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
        margin: 1rem auto;
    }
    
    /* Process */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 200px;
    }
    
    .gallery-image i {
        font-size: 2rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }
    
    /* Image Placeholders */
    .image-placeholder {
        height: 200px;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    /* Method Info */
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Quick Buttons */
    .quick-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Pricing */
    .price {
        font-size: 2rem;
    }
    
    .pricing-features {
        padding: 1.5rem;
    }
    
    .pricing-card .btn {
        margin: 0 1.5rem 1.5rem;
        width: calc(100% - 3rem);
    }
}

/* Large Desktop Styles */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-header {
        margin-bottom: 5rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .additional-grid,
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .btn,
    .cta,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
        background: white;
        color: black;
    }
    
    .page-header {
        background: white;
        color: black;
        padding: 1rem 0;
    }
    
    section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .feature-card,
    .service-card,
    .team-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-scroll {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --accent-color: #ff6600;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #666666;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 2000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading States for Mobile */
@media screen and (max-width: 768px) {
    .loading::after {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
    }
}

/* Hover States - Disable on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .service-card:hover,
    .team-card:hover,
    .gallery-item:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .gallery-overlay {
        opacity: 1;
        background: rgba(44, 82, 130, 0.8);
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-white: #1a202c;
        --background-light: #2d3748;
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-light: #cbd5e0;
        --border-color: #4a5568;
    }
    
    .navbar {
        background: rgba(26, 32, 44, 0.95);
    }
    
    .feature-card,
    .service-card,
    .additional-card,
    .team-card,
    .testimonial-card,
    .pricing-card,
    .contact-form,
    .contact-info-card,
    .faq-item {
        background: var(--background-light);
        color: var(--text-primary);
    }
    
    .modal-content {
        background: var(--background-light);
        color: var(--text-primary);
    }
}

/* Animation Performance */
@media (max-width: 768px) {
    * {
        animation-duration: 0.3s;
        transition-duration: 0.2s;
    }
}

/* Landscape Orientation on Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}