/**
 * TinkuRani.com — Responsive Breakpoints
 * Tested for 320px, 375px, 425px, 768px, 1024px, 1440px, and 1920px viewports.
 */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    :root {
        --container-max: 1280px;
    }
}

/* Laptop / Tablet Landscape (Max 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-py: 4.5rem;
    }

    .hero-grid,
    .portfolio-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

/* Tablet & Mobile Navigation Drawer (Max 860px) */
@media (max-width: 860px) {
    .header-cta {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-15px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
        z-index: 1001;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .nav-link {
        padding: 0.85rem 1rem;
        font-size: 1.02rem;
    }

    .nav-link.is-active::after {
        left: 0;
        top: 0.5rem;
        bottom: 0.5rem;
        right: auto;
        width: 3px;
        height: auto;
    }

    .nav-mobile-cta {
        display: block;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-subtle);
    }

    .mobile-nav-backdrop.is-active {
        display: block;
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: rgba(8, 11, 20, 0.7);
        backdrop-filter: blur(4px);
        z-index: 999;
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    :root {
        --section-py: 3.75rem;
        --header-height: 72px;
    }

    .grid-2,
    .grid-3,
    .process-steps-grid,
    .form-grid-2,
    .feature-checklist {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: calc(var(--header-height) + 2.25rem);
        padding-bottom: 3.5rem;
    }

    .hero-floating-card {
        position: static;
        margin-top: 0.75rem;
        width: 100%;
    }

    .hero-visual-frame {
        padding: 0.75rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 3.75rem;
    }

    .timeline-marker {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .timeline-card,
    .card,
    .inquiry-form-card,
    .contact-info-card,
    .prose-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 2.75rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .whatsapp-float__label {
        display: none;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
        bottom: 18px;
        right: 18px;
    }
}

/* Small Mobile Devices (320px - 425px) */
@media (max-width: 425px) {
    .container {
        padding-inline: 1rem;
    }

    .hero-actions,
    .cta-box__actions,
    .project-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .cta-box__actions .btn,
    .project-card__actions .btn {
        width: 100%;
    }

    .heading-xl {
        font-size: 1.9rem;
    }
}
