/**
 * ============================================================================
 * SIDDHIVINAYAK ENGINEERING - Responsive CSS
 * ============================================================================
 * Mobile-first responsive design with breakpoints for tablets and desktops
 */

/* ============================================================================
   TABLET BREAKPOINT - 768px and up
   ============================================================================ */

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================================
   DESKTOP BREAKPOINT - 1024px and up
   ============================================================================ */

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================================
   MOBILE BREAKPOINT - Below 768px
   ============================================================================ */

@media (max-width: 767px) {
    /* Typography adjustments */
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    /* Navigation mobile */
    .nav-menu {
        flex-direction: column;
        gap: 0;
        margin: 0;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        border-top: 1px solid var(--color-medium-grey);
        border-bottom: 1px solid var(--color-medium-grey);
        z-index: 99;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--color-medium-grey);
        border-radius: 0;
        background: #f9fbfd;
        padding: 0;
    }

    .nav-submenu li a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--color-medium-grey);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--color-medium-grey);
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md);
        border-bottom: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-whatsapp-desktop {
        display: none;
    }
    
    /* Hero section */
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: var(--spacing-md);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    .hero-cta {
        gap: var(--spacing-sm);
    }

    .hero-stats,
    .section-grid-2,
    .product-detail-shell {
        grid-template-columns: 1fr;
    }

    .staggered-grid {
        column-count: 1;
    }
    
    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        padding: var(--spacing-md);
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Table responsive */
    table {
        font-size: var(--font-size-sm);
    }
    
    th, td {
        padding: var(--spacing-sm);
    }
    
    /* Section padding */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* WhatsApp floating button */
    .whatsapp-floating-mobile {
        display: flex;
    }
}

/* ============================================================================
   SMALL MOBILE - Below 480px
   ============================================================================ */

@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .btn {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }

    .nav-submenu li a {
        padding-left: 28px;
    }
    
    .nav-logo img {
        max-width: 120px;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    header, footer, .nav-toggle, .whatsapp-floating-mobile {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    main {
        min-height: auto;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional future feature) */
@media (prefers-color-scheme: dark) {
    /* Can implement dark mode here if needed */
}

