/* THINKCLUSIVE - Responsive Stylesheet */

/* ===== Desktop - CTA Button Default Styles ===== */
.mobile-cta {
    display: none !important;
}

.header-cta {
    display: block;
}

/* ===== Large Desktop (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ===== Desktop (1200px to 1399px) ===== */
@media (max-width: 1399px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* ===== Laptop/Tablet Landscape (992px to 1199px) ===== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer automatically handled by Bootstrap grid */
}

/* ===== Tablet Portrait (768px to 991px) ===== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Bootstrap navbar customizations */
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        align-items: flex-start;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .nav-item.active .dropdown-menu {
        display: block;
    }
    
    .header-cta {
        display: none !important;
    }
    
    /* Show mobile CTA in menu instead */
    .mobile-cta {
        display: block !important;
        margin-top: 10px;
        padding: 10px 0;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    /* Mobile menu animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info-wrapper {
        position: static;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===== Mobile Landscape (576px to 767px) ===== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Force hide header-cta on mobile */
    .header-cta {
        display: none !important;
    }
    
    /* Force show mobile-cta */
    .mobile-cta {
        display: block !important;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-widget {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ===== Mobile Portrait (480px and below) ===== */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    /* Force hide header-cta on small mobile */
    .header-cta {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Force show mobile-cta */
    .mobile-cta {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 150px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-number {
        font-size: 2.5rem;
    }
    
    /* CTA Section */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Back to Top Button */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== Small Mobile (320px and below) ===== */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}