/* ====================================
   RESPONSIVE BREAKPOINTS
   ==================================== */

/* Desktop Large — max 1400px */
@media (max-width: 1400px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* Tablet — max 1024px */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .page-hero .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .hero-stats {
        gap: var(--spacing-xl);
    }

    .story-layout {
        grid-template-columns: 1fr;
    }

    .story-text {
        text-align: center;
    }

    .demo-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* Mobile — max 768px */
@media (max-width: 768px) {
    :root {
        --spacing-4xl: 4rem;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-container {
        position: relative;
    }

    .navbar-brand {
        flex: 1;
        justify-content: center;
    }

    .navbar-end {
        position: absolute;
        right: var(--spacing-xl);
    }

    .navbar-end .nav-cta {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.8rem;
    }

    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: white;
        box-shadow: var(--shadow-heavy);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-smooth),
                    opacity 0.3s ease,
                    visibility 0.4s;
        overflow-y: auto;
        flex-direction: column;
    }

    .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-lg);
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .nav-link::after {
        display: none;
    }

    /* Dropdown in mobile becomes expandable */
    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 var(--spacing-lg);
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding: calc(72px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }

    .hero-stat {
        flex: 1 1 40%;
    }

    .hero-reticle {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    /* Page hero */
    .page-hero {
        padding: calc(72px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }

    .page-hero .hero-title {
        font-size: 1.85rem;
    }

    /* Grids */
    .product-showcase {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problems-grid {
        grid-template-columns: 1fr 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-parent {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Notification */
    .notification {
        top: var(--spacing-md);
        right: var(--spacing-md);
        left: var(--spacing-md);
        max-width: none;
    }

    /* Section header */
    .section-title {
        font-size: 1.75rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: var(--spacing-lg);
    }

    /* Brand divider - hide on mobile */
    .brand-divider,
    .brand-division {
        display: none;
    }
}

/* Small Mobile — max 540px */
@media (max-width: 540px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .deployment-toggle {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .deployment-btn {
        border-radius: var(--radius-md);
    }

    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 44px;
        height: 44px;
    }
}

/* Extra Small — max 480px */
@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .hero-stat {
        flex: none;
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .partner-logo {
        height: 28px;
    }
}
