/* ============================================================
   Responsive Overrides – Idyllic Corporate Gifting
   Breakpoints: 375, 480, 640, 768, 1024, 1280, 1440
   ============================================================ */

/* ---- Mobile S (≤ 375px – iPhone SE) ---- */
@media (max-width: 375px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
    }

    .whatsapp-float a {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .back-to-top {
        bottom: 1rem;
        right: calc(1.8rem + 72px); /* keep left of chatbot FAB */
        width: 38px;
        height: 38px;
    }

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

/* ---- Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Stack form columns */
    .grid.sm\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Inquiry form adjustments */
    .inq-field {
        padding: 0.7rem 0.9rem;
    }

    /* Product cards */
    .hover-lift:hover {
        transform: translateY(-3px);
    }

    /* Footer grid single column */
    footer .grid {
        gap: 2rem;
    }
}

/* ---- Mobile L (≤ 640px) ---- */
@media (max-width: 640px) {
    .hero_slider .owl-nav {
        display: none !important;
    }

    /* Category detail product grid */
    .grid.grid-cols-2.md\\:grid-cols-3 {
        gap: 0.5rem;
    }

    /* Make buttons full width on mobile */
    .flex.flex-col.sm\\:flex-row {
        flex-direction: column;
    }

    .flex.flex-col.sm\\:flex-row>a,
    .flex.flex-col.sm\\:flex-row>button {
        width: 100%;
        justify-content: center;
    }

    /* Checkout improvements */
    .checkout-stepper {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .stepper-line {
        width: 20px;
    }

    .stepper-step {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ---- Tablet (641px – 1024px) ---- */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    /* Adjust hero text */
    h1 {
        font-size: 2.5rem !important;
    }

    /* Product grid 2 columns on tablet */
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer adjustments */
    footer .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Laptop (1025px – 1440px) ---- */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* ---- Large Desktop (> 1440px) ---- */
@media (min-width: 1441px) {
    .container {
        max-width: 1320px;
    }

    body {
        font-size: 17px;
    }

    h1 {
        font-size: 4rem !important;
    }
}

/* ---- Safe Area (iPhone X+) ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .whatsapp-float {
        bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    .back-to-top {
        bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

/* ---- Print-Friendly ---- */
@media print {

    .whatsapp-float,
    .back-to-top,
    #page-loader,
    nav,
    .mobile-drawer,
    .mobile-menu-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---- Dark Mode Hint (future) ---- */
/* @media (prefers-color-scheme: dark) { } */

/* Mobile menu drawer responsive */
@media (max-width: 480px) {
    .mobile-drawer {
        width: 90%;
    }
}

/* Navbar responsive tweaks */
@media (max-width: 1024px) {
    #navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Hero section responsive heights */
@media (max-width: 640px) {
    section[style*="min-height:clamp"] {
        min-height: 260px !important;
    }
}

/* Contact cards stack cleanly on mobile */
@media (max-width: 768px) {
    .grid.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Industries grid mobile */
@media (max-width: 480px) {
    .grid.grid-cols-2.md\\:grid-cols-3.lg\\:grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}