/* ==========================================================================
   EVENTS BY SANCOSCO - RESPONSIVE STYLESHEET
   Targeting: Tablets, Mobile Viewports & Screen Flex Adjustments
   ========================================================================== */

/* 1. TABLET LAYOUT ENGINE (Max Width: 1024px) */
@media (max-width: 1024px) {
    section {
        padding: 90px 0;
    }

    .hero h1 {
        font-size: 56px;
    }

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

    .vendor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .story-wrapper, 
    .logistics-container, 
    .lead-grid, 
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .legacy-left, .logistics-content {
        text-align: center;
    }

    .legacy-left p, .logistics-content p {
        text-align: center;
    }

    .story-wrapper {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* 2. MOBILE RESPONSIVE SLIDER ENGINE (Max Width: 768px) */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    /* Fixed Navigation for Mobile View */
    header {
        padding: 16px 0;
        position: fixed;
        background: rgba(10, 9, 8, 0.96);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--line);
    }

    header.sticky-active {
        padding: 14px 0;
    }

    .menu-toggle {
        display: block;
    }

    /* Nav Links transform to a smooth drop-down overlay slide */
    .nav-links {
        position: fixed;
        top: 77px; /* Perfect header spacing balance */
        left: -100%;
        width: 100%;
        height: calc(100vh - 77px);
        background: rgba(10, 9, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--line);
        padding-bottom: 60px;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links a {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .nav-cta {
        width: 80%;
        text-align: center;
        margin-top: 10px;
    }

    /* Hero Section Mobile Formatting */
    .hero {
        min-height: 650px;
        padding-top: 100px;
    }

    .mandala {
        width: 450px;
        height: 450px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .hero p.sub {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 35px;
    }

    .btn-primary {
        padding: 14px 32px;
        font-size: 12px;
    }

    .hero-note {
        margin-top: 40px;
        font-size: 9px;
        flex-direction: column;
        gap: 8px;
    }

    /* Grids Conversion to Single Column Frameworks */
    .grid-3, 
    .vendor-grid, 
    .gallery-grid, 
    .process-wrapper, 
    .testimonials-grid, 
    .matrix-box, 
    .row-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Inner Structural Cards Adjustments */
    .adv-card, 
    .vendor-card, 
    .gallery-item-card, 
    .testimonial-card, 
    .hotspot-card, 
    .matrix-item {
        padding: 35px 24px;
    }

    .legacy-right-box {
        padding: 35px 20px;
    }

    .signature-quote {
        font-size: 18px;
        margin: 25px 0;
        padding-left: 15px;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-trigger h4 {
        font-size: 14px;
        padding-right: 15px;
        line-height: 1.4;
    }

    /* Lead Form Custom Layout for Small Screen Boundaries */
    .lead-copy h2 {
        font-size: 34px;
        text-align: center;
    }

    .lead-copy p {
        text-align: center;
        font-size: 14.5px;
    }

    .contact-details-box {
        align-items: center;
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed var(--line);
        border-bottom: 1px dashed var(--line);
        padding: 20px 0;
    }

    .trust-row {
        justify-content: center;
        gap: 25px;
    }

    .form-card {
        padding: 30px 20px;
    }

    .form-card h3 {
        font-size: 26px;
        text-align: center;
    }

    .form-card p {
        text-align: center;
        margin-bottom: 25px;
    }

    .conditional-box {
        padding: 16px;
    }

    /* Footer Responsive Adjustments */
    .footer-links {
        flex-direction: column;
        gap: 20px;
        margin: 25px 0;
    }

    .whatsapp-sticky {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* 3. ULTRA SMALL VIEWPORTS CAPABILITY (Max Width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .story-counter {
        font-size: 54px;
    }

    .story-text-block h3 {
        font-size: 28px;
    }

    .trust-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .trust-item {
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-img-wrapper {
        height: 210px;
    }
}