/* Responsive Styles */

@media (max-width: 768px) {
    .col-lg-3,
    .col-lg-6,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }

    /* Keep logo + hamburger on one line */
    .header-row {
        flex-wrap: wrap;
        align-items: center;
    }

    /* Hamburger button */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--clr-text);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    /* Animate to × when open */
    .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Hide nav by default; show full-width below header when active */
    .primary-menu {
        display: none;
        width: 100%;
        border-top: 1px solid var(--clr-border);
        padding: 12px 0 6px;
    }

    .primary-menu.active {
        display: block;
    }

    .primary-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .menu-item {
        margin-left: 0;
    }

    .menu-item a {
        display: block;
        padding: 10px 4px;
        border-bottom: 1px solid var(--clr-border);
    }

    .menu-item:last-child a {
        border-bottom: none;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Hide hamburger on desktop — it only exists in the DOM on all viewports via JS */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }

    /* Ensure nav is always visible on desktop regardless of .active state */
    .primary-menu {
        display: flex !important;
        width: auto;
        border-top: none;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 25px;
    }
    
    .btn-lg {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .feature-box {
        padding: 30px 20px;
    }
}