/* Mobile-first responsive stylesheet */
/* This file overrides and enhances the default styles for small viewports (≤ 768px) */

/* Ensure the custom cursor is hidden on touch devices */
@media (max-width: 1024px) {

    #custom-cursor,
    #custom-cursor-dot {
        display: none !important;
    }
}

/* Show hamburger menu on mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 110px;
    }

    header.scrolled .logo-img {
        height: 90px;
    }

    .menu-toggle {
        display: flex !important;
        /* from none to flex */
        cursor: pointer;
    }

    .nav-links a {
        color: var(--brown) !important;
        font-size: 1.2rem;
        font-weight: 500;
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links a:hover {
        color: var(--gold) !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        display: flex;
        height: 100vh;
        background: var(--ivory);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 20px 20px;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--brown);
    }

    .header-btn {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
}

/* Hero section scaling */
@media (max-width: 768px) {
    #hero {
        height: auto;
        min-height: 80vh;
        padding: 100px 20px 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
    }

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

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-scroll-btn {
        display: none;
        /* hide scroll hint on mobile */
    }
}

/* Services grid to single column */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

/* Stats grid – two columns on tablet, one on phone */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

/* About section – stack image and content */
@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-img-main img {
        height: auto;
    }

    .about-badge {
        bottom: 10px;
        right: 10px;
        padding: 15px;
    }
}

/* Gallery – scroll‑snap carousel for touch */
@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 15px 5px;
        min-height: unset;
    }

    .gallery-item {
        flex: 0 0 75%;
        aspect-ratio: 4/3;
        scroll-snap-align: start;
        border-radius: 8px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-item-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 15px !important;
        background: linear-gradient(transparent, rgba(46, 31, 26, 0.9)) !important;
    }

    .gallery-item-title {
        font-size: 1rem !important;
    }

    .gallery-filter {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 5px;
        gap: 10px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Timeline – vertical layout stays, but ensure readability */
@media (max-width: 768px) {

    .timeline-grid,
    .timeline-container {
        padding: 0 20px;
    }

    .timeline-item {
        margin-bottom: 30px;
    }
}

/* Packages – cards stack */
@media (max-width: 768px) {
    .packages-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .package-card {
        width: 100%;
    }
}

/* Testimonials – swipeable slider */
@media (max-width: 768px) {
    .testimonials-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .testimonial-slide {
        min-width: 100%;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .testimonial-dots {
        display: none;
    }
}

/* Contact form – full‑width inputs */
@media (max-width: 768px) {
    .contact-wrapper form {
        width: 100%;
    }

    .contact-wrapper input,
    .contact-wrapper textarea {
        width: 100%;
    }

    .contact-wrapper .btn {
        width: 100%;
    }
}

/* Global adjustments for better tap targets */
@media (max-width: 768px) {
    .btn {
        padding: 16px 24px;
    }

    a,
    button,
    .nav-links a {
        min-height: 44px;
    }
}