/* Mobile Optimization Fixes */

/* Utility Fixes */
.p-5 {
    padding: 3rem !important;
}

/* Missing Bootstrap Utilities */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .p-5 {
        padding: 1.5rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .display-3 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        /* Adjusted for mobile */
    }

    .lead {
        font-size: 1.1rem;
    }

    /* Typography Overrides */
    .hero-section-one h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        word-wrap: break-word;
        hyphens: auto;
    }

    .intro-text p {
        font-size: 1.05rem;
        /* reduced from 1.3rem */
        padding: 0 1rem;
    }

    h2,
    .h2 {
        font-size: 1.8rem;
    }

    /* Mandala in section-intro auf mobile größer und sichtbarer */
    .section-intro::before {
        background-size: 90%;
        opacity: 0.12;
    }

    /* "Bestes indisches Restaurant Deutschlands" heading mobile fix */
    .section-intro h2 {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
        line-height: 1.15 !important;
        padding: 0 1rem;
    }


}

/* Extra small screens – further reduce the intro heading */
@media (max-width: 480px) {
    .section-intro h2 {
        font-size: 1.6rem !important;
        letter-spacing: -0.5px !important;
        line-height: 1.15 !important;
    }
}

/* Header Mobile Adjustments */
@media (max-width: 991px) {
    .site-header {
        padding: 0.8rem 0;
        background-color: #781235;
        /* Amrit Red */
        /* Ensure readability */
    }

    /* Ensure the brand logo is visible on mobile */
    .site-header .navbar-brand {
        color: #f1860d !important;
        /* Orange */
        font-size: 1.8rem;
    }

    /* Menu Icon size */
    .menu-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Menu Item (Speisekarte) stacking/layout on very small screens */
@media (max-width: 576px) {
    .menu-item {
        flex-direction: row;
        /* keep row layout */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .menu-item-name {
        font-size: 1rem;
        max-width: 75%;
        /* leave room for price */
        word-wrap: break-word;
        /* Ensure valid property */
        overflow-wrap: break-word;
    }

    .menu-item-price {
        font-size: 1rem;
        align-self: flex-start;
        white-space: nowrap;
    }
}

/* Mobile Menu Overlay Z-Index Fix */
.mobile-menu-overlay {
    z-index: 9999 !important;
    /* Ensure it is above everything */
}

/* Restaurants Page Footer Mobile Fix */
@media (max-width: 768px) {
    footer .d-flex {
        flex-wrap: wrap !important;
        gap: 1rem !important;
        /* reduce gap on mobile */
    }

    /* Hide Testimonial Arrows on Mobile */
    .testimonial-arrow {
        display: none !important;
    }
}

/* Global fix for hero height clipping */
.res-hero,
.ce-hero,
.ge-hero,
.menu-hero,
.hero-restaurants {
    height: auto !important;
    min-height: max(65vh, 450px) !important;
    padding-bottom: 3rem !important;
}

/* Other Pages Hero Sections Mobile & Tablet Fixes */
@media (max-width: 1024px) {

    .res-hero,
    .ce-hero,
    .ge-hero,
    .menu-hero,
    .hero-restaurants {
        min-height: 60vh !important;
        padding-top: 140px !important;
        padding-bottom: 4rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .res-hero-content,
    .ce-hero-content,
    .ge-hero-content,
    .menu-hero-content,
    .hero-restaurant-content {
        width: 100%;
        margin: auto;
    }

    .res-hero-title,
    .ce-hero-title,
    .ge-hero-title,
    .menu-hero-title,
    .hero-restaurant-title {
        font-size: clamp(2.2rem, 6vw, 2.8rem) !important;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .res-hero-subtitle,
    .ce-hero-subtitle,
    .ge-hero-subtitle,
    .menu-hero-subtitle,
    .hero-restaurant-subtitle {
        font-size: 1.2rem !important;
        padding: 0 1rem;
        margin-bottom: 0 !important;
    }

    .hero-logo {
        max-width: 120px !important;
        margin-bottom: 1rem !important;
        height: auto !important;
    }
}