/* ============================================================================
   DIGIGOLD PREMIUM WEBSITE THEME RESPONSIVE STYLESHEET
   Media queries for tablets and mobile viewports
   ============================================================================ */

/* ==================== TABLETS & SMALL DESKTOPS (< 1024px) ==================== */
@media (max-width: 1024px) {
    .hero-content-dg h2 {
        font-size: 2.75rem;
    }
    
    .hero-grid-dg {
        gap: 32px;
    }
    
    .features-grid-dg {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .products-grid-dg {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .compare-table-dg th,
    .compare-table-dg td {
        padding: 16px 20px;
    }
    
    .footer-grid-dg {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* ==================== TABLETS & SMARTPHONES (< 768px) ==================== */
@media (max-width: 768px) {
    /* Header Menu Toggles */
    .nav-menu-dg {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background-color: var(--dg-bg-white);
        box-shadow: var(--dg-shadow-lg);
        flex-direction: column;
        gap: 0;
        padding: 24px;
        transition: var(--dg-transition);
        z-index: 1025;
        border-right: 1px solid var(--dg-border);
    }
    
    .nav-menu-dg.active {
        left: 0;
    }
    
    .nav-link-dg {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid var(--dg-border);
    }
    
    .nav-link-dg::after {
        display: none;
    }
    
    .nav-dropdown-dg {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        opacity: 1;
        visibility: visible;
        display: none; /* Controlled via JS toggles */
    }
    
    .nav-item-has-dropdown.active .nav-dropdown-dg {
        display: block;
    }
    
    .mobile-menu-trigger-dg {
        display: block;
    }
    
    /* Hero layout stacks */
    .hero-grid-dg {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content-dg h2 {
        font-size: 2.25rem;
    }
    
    .hero-content-dg p {
        margin: 0 auto 30px;
    }
    
    .hero-ctas-dg {
        justify-content: center;
    }
    
    .app-downloads-dg {
        justify-content: center;
    }
    
    /* Quick actions */
    .quick-grid-dg {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Features */
    .features-grid-dg {
        grid-template-columns: 1fr;
    }
    
    /* App Showcase */
    .app-grid-dg {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .app-features-list-dg {
        align-items: center;
        text-align: left;
    }
    
    /* Testimonials */
    .testimonials-grid-dg {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Compare Table scrollable */
    .compare-table-wrapper-dg {
        overflow-x: auto;
    }
    
    .compare-table-dg {
        min-width: 600px;
    }
    
    /* Announcement bar elements stack */
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==================== SMALL SMARTPHONES (< 480px) ==================== */
@media (max-width: 480px) {
    .hero-content-dg h2 {
        font-size: 1.85rem;
    }
    
    .hero-ctas-dg {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas-dg .btn-dg {
        width: 100%;
    }
    
    .app-downloads-dg {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .app-downloads-dg .app-btn-dg {
        width: 100%;
        max-width: 220px;
    }
    
    .quick-grid-dg {
        grid-template-columns: 1fr;
    }
    
    .products-grid-dg {
        grid-template-columns: 1fr;
    }
    
    .cta-banner-dg {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        padding: 40px 24px;
    }
    
    .footer-grid-dg {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-dg {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-certs-dg {
        flex-direction: column;
        gap: 12px;
    }
}
