/* Responsive Design for Template 289 - AI Review Summaries */

/* Large screens and desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    .card-img-top {
        height: 250px;
    }
}

/* Medium screens and tablets (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta .btn {
        padding: 0.625rem 1.5rem;
    }
}

/* Small screens and tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Services grid adjustment */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team member spacing */
    .team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* Extra small screens and mobile devices (up to 767px) */
@media (max-width: 767px) {
    /* Typography adjustments */
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --section-padding: 3rem 0;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--neutral-light);
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 100vh;
        padding-top: 80px;
        text-align: center;
    }
    
    #hero .row {
        flex-direction: column-reverse;
    }
    
    #hero .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    #hero h1 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Services section mobile */
    #services .col-lg-4,
    #services .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Features section mobile */
    #features .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    #features .flex-shrink-0 {
        margin-bottom: 1rem;
    }
    
    #features .flex-grow-1 {
        margin-left: 0;
    }
    
    /* Team section mobile */
    .team .col-lg-2,
    .team .col-md-4,
    .team .col-sm-6 {
        margin-bottom: 2rem;
    }
    
    .team img {
        width: 100px;
        height: 100px;
    }
    
    /* Process section mobile */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact section mobile */
    #contact .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    #contact .col-lg-4 {
        text-align: center;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .row.align-items-center .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    #footer .text-end {
        text-align: center;
    }
    
    /* Pricing cards mobile */
    .priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Reviews mobile */
    .reviews .col-lg-4,
    .reviews .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Case studies mobile */
    .casestudy .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Additional pages mobile */
    .add_page .col-lg-4,
    .add_page .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Disable hover effects on mobile as per requirements */
    .card:hover,
    .btn:hover,
    .gallery img:hover,
    .team img:hover {
        transform: none;
        box-shadow: none;
        border-color: initial;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        text-align: center;
        justify-content: center;
    }
    
    /* Text alignment adjustments */
    .text-center-mobile {
        text-align: center;
    }
    
    /* Spacing adjustments */
    .mb-4 {
        margin-bottom: 2rem;
    }
    
    .mt-5 {
        margin-top: 2rem;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Very small screens (up to 575px) */
@media (max-width: 575px) {
    :root {
        --font-size-h1: 1.5rem;
        --font-size-h2: 1.375rem;
        --font-size-h3: 1.125rem;
        --section-padding: 2.5rem 0;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Hero extra small */
    #hero h1 {
        font-size: 1.625rem;
        line-height: 1.2;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    /* Cards extra small */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team extra small */
    .team img {
        width: 80px;
        height: 80px;
    }
    
    /* Process extra small */
    .process-step .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Form extra small */
    .form-control {
        padding: 0.875rem;
    }
    
    /* Button extra small */
    .btn {
        padding: 0.75rem 1.25rem;
    }
    
    /* Footer extra small */
    #footer {
        padding: 3rem 0;
    }
    
    /* Spacing extra small */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem;
    }
    
    .mt-5 {
        margin-top: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    #hero,
    .hero-cta,
    .btn,
    #footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --primary-dark: #000080;
        --neutral-dark: #000000;
        --neutral-light: #808080;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support (already in main.css but reinforced here) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .sal-animate {
        transform: none;
        opacity: 1;
    }
} 