/* AI Planning Assistant - Responsive CSS */

/* Mobile First Approach - Base styles for mobile */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Navbar brand conservative sizing */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile for reduced motion */
    .hero-section [data-sal],
    .feature-card,
    .service-card,
    .pricing-card,
    .team-member,
    .review-card,
    .case-study-card,
    .faq-card {
        transform: none !important;
        transition: none !important;
    }
    
    .hero-section [data-sal]:hover,
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .review-card:hover,
    .case-study-card:hover,
    .faq-card:hover {
        transform: none !important;
    }
    
    /* Service cards mobile layout */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team photos responsive */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps mobile */
    .process-step {
        padding: 1.5rem 0.5rem;
        text-align: center;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Pricing cards mobile */
    .pricing-card .card-body {
        padding: 2rem 1.5rem;
    overflow-x: hidden;
}
    
    /* Contact form mobile */
    .contact-form .btn {
        width: 100%;
    }
    
    /* Gallery mobile spacing */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile spacing */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Additional pages mobile */
    .breadcrumb-section {
        margin-top: 70px;
    }
    
    /* Solution cards mobile */
    .solution-card .card-body {
        padding: 1.5rem;
    }
    
    /* Tech items mobile */
    .tech-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-item .tech-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    /* Industry cards mobile */
    .industry-card .card-img-top {
        height: 160px;
    }
    
    /* Metric cards mobile */
    .metric-card {
        padding: 1.5rem 0.5rem;
    }
    
    .metric-number {
        font-size: 2.5rem;
    }
    
    /* Enterprise features mobile */
    .enterprise-feature .card-body {
        padding: 1.5rem;
    }
    
    /* Integration categories mobile */
    .integration-category {
        padding: 1.5rem;
        text-align: center;
    }
    
    .integration-icons {
        margin-top: 1rem;
    }
    
    /* Support tiers mobile */
    .support-tier .card-body {
        padding: 1.5rem;
    }
    
    /* ROI metrics mobile */
    .metric-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 110px 0 70px;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 190px;
    }
    
    /* Team layout */
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Process steps */
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
    
    /* Gallery layout */
    .gallery .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Tech items */
    .tech-item {
        display: flex;
        align-items: center;
    }
    
    /* Industry cards */
    .industry-card .card-img-top {
        height: 170px;
    }
    
    /* Metric numbers */
    .metric-number {
        font-size: 3rem;
    }
    
    /* ROI metrics */
    .metric-icon {
        width: 70px;
        height: 70px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 120px 0 80px;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 200px;
    }
    
    /* Team layout adjustments */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps */
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Gallery grid */
    .gallery .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Industry cards */
    .industry-card .card-img-top {
        height: 180px;
    }
    
    /* ROI metrics */
    .metric-icon {
        width: 75px;
        height: 75px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop styles - base styles apply */
    
    /* Service cards */
    .service-card .card-img-top {
        height: 200px;
    }
    
    /* Case study cards */
    .case-study-card .card-img-top {
        height: 200px;
    }
    
    /* Industry cards */
    .industry-card .card-img-top {
        height: 180px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .hero-section {
        padding: 140px 0 100px;
    }
    
    section {
        padding: 6rem 0;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 220px;
    }
    
    /* Case study cards */
    .case-study-card .card-img-top {
        height: 220px;
    }
    
    /* Industry cards */
    .industry-card .card-img-top {
        height: 200px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    /* Adjust navbar for landscape */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    .hero-image img,
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .industry-card .card-img-top,
    .team-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .hero-cta,
    footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    /* Ensure readable font sizes */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
}

/* 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;
    }
    
    /* Disable hover effects that use transform */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .review-card:hover,
    .case-study-card:hover,
    .faq-card:hover,
    .solution-card:hover,
    .enterprise-feature:hover,
    .deployment-option:hover,
    .support-tier:hover,
    .tech-item:hover,
    .industry-card:hover,
    .hover-lift:hover {
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    .btn {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
        border-color: #000;
    }
    
    .form-control {
        border-width: 2px;
        border-color: #000;
    }
}

/* Focus indicators for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    .card:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Dark mode support (if browser supports) */

/* Container queries for component-level responsiveness */
/* Note: Limited browser support, fallback to media queries above */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .service-card .card-body {
            padding: 1rem;
        }
    }
} 

.hero-section h1 {
    padding-top: 100px;
}