/* Responsive Design - Mobile First Approach */

/* Tablet Styles */
@media (max-width: 768px) {
    /* Header */
    .header .container {
        position: relative;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    }
    
    .nav.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Process Steps */
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process Step (How It Works) */
    .process-step {
        flex-direction: column;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Portfolio Sample */
    .portfolio-sample {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Pricing Cards */
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Not Included Content */
    .not-included-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Portfolio Examples */
    .portfolio-example {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .portfolio-example:nth-child(even) .example-image,
    .portfolio-example:nth-child(even) .example-content {
        order: initial;
    }
    
    .example-meta {
        justify-content: center;
    }
    
    /* About Page */
    .story-content,
    .profile-content,
    .mission-content,
    .approach-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact Methods */
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .footer-contact {
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Buttons */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    /* Values */
    .value-item {
        padding: 1.5rem;
    }
    
    /* Steps */
    .step {
        min-width: auto;
    }
    
    /* Testimonials */
    .testimonial {
        padding: 1.5rem;
    }
    
    /* Process Steps Detail */
    .step-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Portfolio */
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .portfolio-example {
        padding: 1.5rem;
    }
    
    .example-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    /* Pricing */
    .card-badge {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* About */
    .profile-credentials {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    /* Spacing adjustments */
    .section-title {
        margin-bottom: 2rem;
    }
    
    .value-item,
    .testimonial,
    .portfolio-example {
        margin-bottom: 1.5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    /* Increase section padding on large screens */
    section {
        padding: 100px 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        color: black;
    }
    
    .hero-subtitle {
        color: black;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .btn {
        display: none;
    }
    
    .value-item,
    .testimonial,
    .portfolio-example {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gather-blue: #000080;
        --warm-terracotta: #8B4513;
        --charcoal-gray: #000000;
        --text-gray: #333333;
        --border-gray: #666666;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-link.active::after {
        height: 3px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --warm-cream: #333333;
        --charcoal-gray: #ffffff;
        --text-gray: #cccccc;
        --border-gray: #555555;
        --medium-gray: #444444;
    }
    
    body {
        background-color: var(--white);
        color: var(--charcoal-gray);
    }
    
    .header {
        background-color: var(--white);
        border-bottom: 1px solid var(--border-gray);
    }
    
    .value-item,
    .testimonial,
    .pricing-card,
    .portfolio-example,
    .contact-form {
        background-color: var(--light-gray);
        border: 1px solid var(--border-gray);
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 3px solid var(--warm-terracotta);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline: 3px solid var(--golden-highlight);
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--charcoal-gray);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
}

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