/* Responsive Styles for Fresh Ocean Template */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    /* Remove animations on mobile for better performance */
    .card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .feature-card:hover {
        transform: none;
        background: var(--pearl-white);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Gallery adjustments */
    .gallery img:hover {
        transform: none;
    }
    
    /* Timeline mobile layout */
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        width: 8px;
        height: 8px;
        left: 0;
    }
    
    .timeline-item::after {
        left: 3px;
        width: 2px;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Statistics mobile */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Pricing cards mobile */
    .pricing-card .price {
        font-size: 2rem;
    }
    
    /* Contact form mobile */
    .contact-form .form-control {
        padding: 0.5rem;
    }
    
    /* Section padding mobile */
    section {
        padding: 2rem 0;
    }
    
    /* Footer mobile */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Services grid adjustment */
    .service-card .card-img-top {
        height: 180px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    
    .feature-card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
    
    /* Services grid desktop */
    .service-card .card-img-top {
        height: 220px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments if needed */
    .container {
        max-width: 1140px;
    }
    
    /* Typography scaling for large screens */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .navbar {
        border-bottom-width: 0.5px;
    }
    
    .card {
        border-width: 0.5px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    /* Adjust hero section for landscape mobile */
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and non-essential elements */
    .navbar,
    .footer,
    .btn,
    .gallery {
        display: none !important;
    }
    
    /* Optimize text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Ensure proper spacing */
    section {
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (respects user preference) */

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--seafoam-green-dark);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--ocean-blue-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--text-dark);
    }
    
    .feature-card {
        border: 2px solid var(--ocean-blue-dark);
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    /* Disable background images and gradients */
    .hero-section {
        background: var(--ocean-blue-light);
    }
    
    .hero-section::before {
        display: none;
    }
    
    .navbar {
        background: var(--pearl-white);
    }
}

/* Container Queries Support (Future-proofing) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card {
            padding: 0.5rem;
        }
        
        .card h5 {
            font-size: 1rem;
        }
    }
} 