/* ========== MOBILE BREAKPOINT (max-width: 768px) ========== */
@media (max-width: 768px) {
    /* Hide desktop sidebar toggle on mobile */
    .sidebar-toggle {
        display: none;
    }

    /* Fixed header with burger menu */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        padding: 20px 0;
        background: var(--bg-white);
        border-right: 1px solid var(--border-blue);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        transform: none !important; /* Override collapsed class on mobile */
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-branding {
        padding: 0 20px 30px;
    }

    .sidebar-logo svg {
        height: 80px;
    }

    .sidebar-nav {
        padding: 16px 0;
    }

    .sidebar-nav ul {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0;
    }

    .sidebar-nav li {
        margin-bottom: 4px;
        white-space: normal;
    }

    .sidebar-nav a {
        padding: 12px 20px;
        font-size: 15px;
    }

    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        color: var(--dusty-rose-action);
    }

    .sidebar-footer {
        display: block;
        padding: 20px 20px 0;
    }

    /* Mobile header */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-blue);
        align-items: center;
        padding: 0 20px;
        z-index: 999;
    }

    .mobile-overlay {
        display: block !important;
    }

    .burger-menu {
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }

    .burger-menu span {
        width: 100%;
        height: 3px;
        background: var(--blue-authority);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-logo {
        font-family: 'Syne', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: var(--blue-authority);
        margin-left: 16px;
    }

    /* Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Main content takes full width with top spacing */
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        width: 100%;
    }

    .tab-content {
        padding: 32px 20px;
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Hero sections */
    .hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .page-hero {
        padding: 24px 0 32px;
        margin-bottom: 48px;
    }

    .page-hero .hero-title {
        font-size: 24px;
    }

    .page-hero .hero-subtitle {
        font-size: 15px;
    }

    /* Tabs */
    .sub-tabs {
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .service-tabs {
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    /* Grids become single column */
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact form */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Buttons - Only make CTA buttons full width */
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .btn-large {
        padding: 12px 24px;
        width: 100%;
    }

    /* Footer */
    .footer {
        margin-left: 0;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        padding: 40px 20px 32px;
    }

    .footer-bottom {
        padding: 20px;
    }

    .footer-social {
        flex-wrap: wrap;
    }
}

/* ========== EXTRA SMALL MOBILE (max-width: 480px) ========== */
@media (max-width: 480px) {
    .tab-content {
        padding: 20px 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .page-hero .hero-title {
        font-size: 22px;
    }

    .page-hero .hero-subtitle {
        font-size: 14px;
    }

    .feature-card {
        padding: 24px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 14px;
    }
}
