/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES
   ========================================================================== */

/* Laptops & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 95%; /* Scaled down layout base */
    }

    section {
        padding: 3.5rem 0;
    }

    .hero-headline {
        font-size: 3.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-paragraph {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-mockup-wrapper {
        max-width: 580px;
        width: 100%;
        margin: 0 auto;
        height: 480px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .integration-flow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }

    .integration-svg-canvas {
        display: none; /* Hide horizontal lines when wrapping */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    /* Mobile Navigation Drawer moved to css/navbar.css */

    .hero {
        padding-top: 8rem;
    }

    .hero-headline {
        font-size: 2.8rem;
    }

    .hero-ctas {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-mockup-wrapper {
        height: 400px;
    }

    .widget-progress {
        left: -10px;
        top: -15px;
    }

    .widget-calendar {
        right: -10px;
        bottom: -15px;
    }

    .widget-ai {
        display: none; /* Hide on small screen for space */
    }

    .preview-tabs {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 0.5rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex-grow: 1;
        text-align: center;
    }

    .preview-display {
        padding: 1.25rem;
        min-height: auto;
    }

    .kanban-view {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .statistics-view {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-slider-container {
        padding: 1rem 0;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .carousel-control {
        display: none; /* Use dots navigation on mobile */
    }

    .faq-header {
        padding: 1.25rem 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding-right: 1rem;
    }

    .cta-box {
        padding: 4rem 2rem;
        border-radius: 24px;
    }

    .cta-title {
        font-size: 2.5rem;
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 90%;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 2.3rem;
    }

    .hero-mockup-wrapper {
        height: 340px;
    }

    .floating-widget {
        display: none; /* Hide floating widgets on very small mobile displays */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}
