/* Magic Kitchen — Mobile-first responsive UI */

/* ========== BASE (mobile default) ========== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5.5rem;
}

body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Navbar: see navbar.css */

/* ——— Hero mobile ——— */
/* Hero + hero-badge: see home-ui.css */

.hero-content h1 {
    font-size: clamp(1.65rem, 7vw, 2.5rem) !important;
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.hero-lead {
    font-size: 0.95rem !important;
    line-height: 1.6;
    margin-bottom: 1.25rem !important;
}

.hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    width: 100%;
    max-width: none;
    min-height: 52px;
    justify-content: center;
    font-size: 1rem;
}

.hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 1rem;
    max-width: 100%;
}

.hero-stat {
    flex: 1 1 28%;
    min-width: 80px;
    text-align: center;
}

.hero-stat strong {
    font-size: 1.2rem !important;
}

.hero-stat span {
    font-size: 0.65rem;
}

.hero-social {
    gap: 12px;
    margin-top: 1.25rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
}

/* ——— Sections mobile ——— */
.about,
.why-choose,
.services,
.food-model-section,
.gallery,
.clients,
.testimonials,
.contact,
.map-section {
    padding: 3.5rem 0 !important;
}

.section-heading {
    font-size: clamp(1.4rem, 5vw, 1.75rem) !important;
    padding: 0 1rem 12px;
    letter-spacing: 0 !important;
}

.small-heading {
    font-size: 0.95rem !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem;
}

.about-container {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 1rem;
}

.about-image img {
    width: 100%;
    height: auto !important;
    max-height: 280px;
    object-fit: cover;
}

.about-content {
    padding: 0;
    text-align: center;
}

.about-content p {
    font-size: 0.95rem;
    text-align: center;
}

.about-content .btn-primary {
    align-self: center;
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.why-choose-container,
.services-grid,
.testimonials-container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 0 1rem !important;
    margin-top: 1.5rem !important;
}

.why-choose-card,
.service-card,
.testimonial-card {
    padding: 1.5rem 1.25rem !important;
    transform: none !important;
    opacity: 1 !important;
}

.why-choose-card:hover,
.service-card:hover {
    transform: none;
}

.service-card img {
    height: 180px !important;
}

/* Gallery — 2 cols on small phones optional, 1 col safest */
.gallery-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
    margin-top: 1.5rem !important;
}

.gallery-item {
    aspect-ratio: 4/3;
    transform: none !important;
    opacity: 1 !important;
}

.gallery-item.logo-item {
    grid-column: span 1 !important;
    padding: 1rem !important;
}

/* Food 3D — simplify on mobile */
.food-model-container {
    padding: 0 1rem;
    perspective: none;
}

.food-model {
    height: 200px !important;
    transform: none !important;
}

.food1, .food2, .food3 {
    display: none;
}

.clients-container {
    height: 200px !important;
}

.client-logo {
    width: 120px !important;
    height: 72px !important;
}

/* Contact */
.contact-form {
    padding: 0 1rem !important;
    max-width: 100% !important;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 0.85rem 1rem;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    min-height: 52px;
}

.contact > p {
    padding: 0 1rem;
    text-align: center;
}

/* Map */
.map-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.map-container {
    height: auto !important;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
}

.map-iframe {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px;
}

.map-overlay {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 1rem;
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
}

.map-overlay .btn-primary {
    width: 100%;
    justify-content: center;
}

/* Kerala services */
.kerala-services {
    padding: 3rem 1rem !important;
}

.kerala-services-grid {
    grid-template-columns: 1fr !important;
}

.kerala-service-link {
    min-height: 52px;
    padding: 0.85rem 1rem;
}

.kerala-services-quick {
    flex-direction: column;
    align-items: stretch;
}

.kerala-services-quick a {
    text-align: center;
    padding: 0.65rem 1rem;
}

/* Footer */
footer {
    padding: 2.5rem 1rem 1.25rem !important;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
}

.footer-container {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    text-align: center;
}

.footer-links ul {
    padding: 0;
}

.footer-links li {
    justify-content: center;
}

/* Floating buttons — thumb zone */
.floating-buttons {
    bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
    gap: 0.65rem !important;
}

.whatsapp-btn,
.pdf-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    min-height: 52px;
}

/* ========== SMALL PHONES (max 380px) ========== */
@media (max-width: 380px) {
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== TABLET (640px+) ========== */
@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: auto;
        min-width: 200px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .why-choose-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .kerala-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .kerala-services-quick {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
        text-align: left;
    }
}

/* ========== LARGE TABLET (768px+) ========== */
@media (min-width: 768px) {
    .about-container {
        flex-direction: row !important;
        align-items: center;
    }

    .about-content {
        text-align: left;
    }

    .about-content p {
        text-align: left;
    }

    .about-content .btn-primary {
        align-self: flex-start;
    }

    .testimonials-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .map-container {
        height: 400px !important;
    }

    .map-iframe {
        height: 100% !important;
        min-height: 350px;
    }

    .map-overlay {
        position: absolute !important;
    }
}

/* ========== DESKTOP (992px+) ========== */
@media (min-width: 992px) {
    .hero {
        padding-top: 100px;
        min-height: 100vh;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }

    .why-choose-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .testimonials-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .food1, .food2, .food3 {
        display: block;
    }

    .food-model {
        height: 300px !important;
    }
}

/* ========== WIDE DESKTOP (1200px+) ========== */
@media (min-width: 1200px) {
    .why-choose-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ========== SEO landing pages (base_seo.html) ========== */
.site-header .header-inner {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.page-hero {
    padding: 2rem 1rem;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2.4rem);
}

.container {
    padding: 1.75rem 1rem;
}

.cta-buttons {
    flex-direction: column;
}

.cta-buttons .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
}

.footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
}

.breadcrumb {
    padding: 0.65rem 1rem 0;
    font-size: 0.8rem;
}

.whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
}

@media (min-width: 768px) {
    .site-nav {
        width: auto;
        justify-content: flex-end;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .cta-buttons .btn {
        width: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
