/* Responsive CSS for SOC2Easy Template */

/* Animation fix for all screen sizes */
@media (min-width: 1px) {
    /* Disable all animations across all device sizes */
    *[data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Force images to display */
    img {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .lead {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section .col-lg-6:first-child {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f4f7f9;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Team members */
    .team img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    /* Timeline */
    .timeline-item {
        border-left: 2px solid var(--primary-color);
        padding-left: 1rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        left: -6px;
        width: 8px;
        height: 8px;
    }
    
    /* Contact form */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* FAQ cards */
    .faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on mobile */
    *[data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .team img {
        width: 110px;
        height: 110px;
    }
    
    .btn-lg {
        font-size: 1.05rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .team img {
        width: 115px;
        height: 115px;
    }
    
    /* Adjust grid spacing */
    .row > [class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Services grid adjustment */
    .services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1, .display-4 {
        font-size: 2.375rem;
    }
    
    h2 {
        font-size: 1.95rem;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .card-img-top {
        height: 190px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Full design capabilities */
    .hero-section {
        min-height: 80vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Enhanced spacing for larger screens */
    .section-large-spacing {
        padding: 6rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 275px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High contrast media query */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #065d9c;
        --secondary-color: #1c9a3f;
        --dark-gray: #000000;
        --light-gray: #ffffff;
    }
    
    .card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .navbar,
    #gallery,
    .btn,
    .timeline::before {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-sm-6 {
        width: 50%;
        float: left;
    }
    
    .col-lg-4,
    .col-md-4 {
        width: 33.333%;
        float: left;
    }
    
    .col-lg-3,
    .col-md-3 {
        width: 25%;
        float: left;
    }
    
    .clearfix::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Specific component responsive adjustments */

/* Services section responsive grid */
@media (max-width: 767.98px) {
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Team section responsive layout */
@media (max-width: 991.98px) {
    .team .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Reviews section responsive cards */
@media (max-width: 767.98px) {
    .reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Price plan responsive cards */
@media (max-width: 991.98px) {
    .priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Blog section responsive grid */
@media (max-width: 767.98px) {
    .blog .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Contact section responsive layout */
@media (max-width: 767.98px) {
    .contact .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Footer responsive layout */
@media (max-width: 767.98px) {
    footer .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Utility classes for responsive design */
.mobile-center {
    text-align: center;
}

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

.mobile-full-width {
    width: 100%;
}

@media (min-width: 768px) {
    .mobile-full-width {
        width: auto;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
    .btn,
    .form-control,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Dark mode support (if needed in future) */