/* AI Recipe Creator - Responsive CSS */

/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.125rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Card adjustments */
    .feature-card,
    .service-card,
    .info-card,
    .review-card,
    .case-study-card,
    .career-card,
    .faq-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Contact form */
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Gallery images */
    #gallery .col-lg-3,
    #gallery .col-md-4,
    #gallery .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile for better performance */
    .feature-card:hover,
    .service-card:hover,
    .info-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .faq-card:hover,
    .blog-card:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.125rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.375rem;
    }
    
    /* Adjust grid for tablets */
    .col-lg-2 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .col-lg-3 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    /* Enhanced hover effects for desktop */
    .feature-card:hover,
    .service-card:hover,
    .info-card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: translateY(-3px);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 768px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card .card-img-top,
    .blog-card .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    #footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    .hero-section,
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    .container {
        max-width: 100% !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .feature-card:hover,
    .service-card:hover,
    .info-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .faq-card:hover,
    .blog-card:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --primary-light: #4040ff;
        --primary-dark: #000040;
        --secondary-color: #ff8000;
        --accent-color: #008000;
        --neutral-color: #000000;
        --neutral-light: #808080;
        --neutral-dark: #000000;
        --background-color: #ffffff;
        --background-light: #ffffff;
        --background-dark: #000000;
    }
    
    .feature-card,
    .service-card,
    .info-card,
    .review-card,
    .case-study-card,
    .career-card,
    .faq-card,
    .blog-card,
    .contact-form,
    .contact-info {
        border: 2px solid var(--neutral-dark);
    }
}

/* Dark mode support */

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

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

/* Responsive utilities */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Responsive text alignment */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Responsive spacing */
.mb-mobile {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .mb-mobile {
        margin-bottom: 0;
    }
} 