/* Saleems Creation — shared responsive styles */

:root {
    --nav-height: 4.5rem;
}

@media (min-width: 640px) {
    :root {
        --nav-height: 5rem;
    }
}

@media (min-width: 768px) {
    :root {
        --nav-height: 5.5rem;
    }
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

/* Mobile navigation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.mobile-menu.is-open {
    max-height: 24rem;
    opacity: 1;
}

.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn.is-active .icon-open {
    display: none;
}

.mobile-menu-btn.is-active .icon-close {
    display: inline;
}

body.nav-open {
    overflow: hidden;
}

/* Touch-friendly controls */
.site-nav .nav-cta,
.site-nav .mobile-menu-btn,
.mobile-menu a,
.filter-btn,
.contact-chip,
.floating-group input,
.floating-group select,
.floating-group textarea,
button[type="submit"],
button[type="button"].filter-btn {
    min-height: 44px;
}

.site-nav .mobile-menu-btn {
    min-width: 44px;
}

/* Hero & typography scaling */
@media (max-width: 374px) {
    .gold-line {
        display: none;
    }

    .hero-tagline {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.story-badge {
    position: static;
    margin-top: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .story-badge {
        position: absolute;
        margin-top: 0;
        width: auto;
        bottom: -1.5rem;
        right: -1.5rem;
    }
}

@media (min-width: 768px) {
    .story-badge {
        bottom: -2rem;
        right: -2rem;
    }
}

/* Sticky filter bar below nav */
.sticky-below-nav {
    top: var(--nav-height);
}

/* Footer responsive grid */
.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .site-footer-brand {
        grid-column: span 2;
    }
}

/* Business hours row wrap */
.hours-row {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

/* Responsive tables */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    min-width: 56rem;
}

/* Modal */
.responsive-modal {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

/* Floating action button safe area */
.fab-whatsapp {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Disable hover lift on touch devices */
@media (hover: none) {
    .service-card:hover,
    .portfolio-item:hover,
    .testimonial-card:hover,
    .info-card:hover,
    .feature-pill:hover {
        transform: none;
    }
}

/* Gold divider on small screens */
@media (max-width: 479px) {
    .gold-divider::before,
    .gold-divider::after {
        width: 2rem;
    }
}

/* Contact form map */
.responsive-map {
    min-height: 14rem;
}

@media (min-width: 640px) {
    .responsive-map {
        min-height: 17.5rem;
    }
}

@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 90rem;
    }

    .max-w-6xl {
        max-width: 80rem;
    }

    .max-w-5xl {
        max-width: 72rem;
    }

    .max-w-4xl {
        max-width: 64rem;
    }
}

/* Admin gallery picker */
@media (max-width: 639px) {
    .gallery-pick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
