/**
 * Masala Haus — tablet & mobile only (desktop >= 992px unchanged)
 */

@media (max-width: 991px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  section,
  .section {
    overflow: visible;
  }

  .container,
  .container-fluid {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* ---------- Shared mobile slider ---------- */
  .mh-mobile-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  .mh-mobile-swiper {
    overflow: hidden;
    width: 100%;
    padding-bottom: 0.25rem;
    height: auto;
  }

  .mh-mobile-swiper .swiper-wrapper {
    align-items: stretch;
    height: auto;
  }

  .mh-mobile-swiper .swiper-slide {
    height: auto;
    opacity: 1;
  }

  .mh-mobile-slide {
    height: auto;
    box-sizing: border-box;
  }

  .mh-mobile-slide > .event-type-card,
  .mh-mobile-slide > .menu-item,
  .mh-mobile-slide .blog-m-card,
  .mh-mobile-slide .chef-card,
  .mh-mobile-slide .contact-info-box,
  .mh-mobile-slide .stat-item--slide {
    height: auto;
  }

  .mh-mobile-slide > .feature-box {
    height: auto;
    min-height: 100%;
  }

  /* Feature cards in mobile slider (same look as desktop grid) */
  .about .mh-mobile-slider.features-section {
    border-top: 1px solid color-mix(in srgb, var(--brand-accent), transparent 80%);
    padding-top: 0.25rem;
  }

  .about .mh-mobile-slider.features-section .feature-box {
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
    background-color: var(--brand-green);
    color: var(--brand-light);
    margin-top: 20px;
  }

  .about .mh-mobile-slider.features-section .feature-box .feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: white !important;
    color: var(--accent-color);
    font-size: 28px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about .mh-mobile-slider.features-section .feature-box h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--brand-light);
  }

  .about .mh-mobile-slider.features-section .feature-box p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--brand-light);
  }

  .about .mh-mobile-slider.about-stats-slider {
    margin-top: 1.5rem;
  }

  .about .mh-mobile-slider.about-stats-slider .stat-item--slide {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: 10px;
    background-color: var(--brand-green);
  }

  .about .mh-mobile-slider.about-stats-slider .stat-item--slide .stat-number {
    font-size: clamp(2rem, 8vw, 2.625rem);
    font-weight: 700;
    display: block;
    font-family: var(--heading-font);
    line-height: 1;
    color: var(--brand-light);
  }

  .about .mh-mobile-slider.about-stats-slider .stat-item--slide .stat-label {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 15px;
    color: color-mix(in srgb, var(--brand-light), var(--brand-charcoal) 12%);
  }

  .mh-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-bottom: 0.25rem;
  }

  .mh-slider-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--brand-charcoal), transparent 82%);
    border-radius: 999px;
    background: var(--brand-light);
    color: var(--brand-charcoal);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mh-slider-nav__btn i {
    font-size: 1.125rem;
    line-height: 1;
  }

  .mh-slider-nav__btn:hover,
  .mh-slider-nav__btn:focus-visible {
    background: color-mix(in srgb, var(--brand-accent), var(--brand-light) 70%);
    border-color: var(--brand-accent);
    color: var(--brand-charcoal);
  }

  .mh-slider-nav__btn:active {
    transform: scale(0.96);
  }

  .mh-slider-nav__btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
  }

  /* Testimonials: bottom nav on mobile/tablet only */
  .testimonials-swiper .mh-slider-nav {
    margin-top: 1rem;
  }

  .testimonials-swiper .swiper-pagination {
    position: relative;
    margin-top: 0.75rem;
  }

  /* ---------- Hero ---------- */
  .hero.section {
    padding-top: 0;
    overflow: hidden;
  }

  .hero .hero-container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero .hero-container .row.hero-row {
    display: flex;
    flex-direction: column;
  }

  .hero .hero-container .content-col {
    order: 1;
    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.25rem 1.25rem;
    min-height: auto;
  }

  .hero .hero-container .swiper-col {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  .hero .hero-container .content-col .content-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .hero .hero-container .content-col .status-badge {
    font-size: 0.75rem;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.15rem;
  }

  .hero .hero-container .content-col h2 {
    font-size: clamp(1.45rem, 5.2vw, 2rem);
    margin-bottom: 1rem;
    word-wrap: break-word;
  }

  .hero .hero-container .content-col p {
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    margin-bottom: 1.25rem;
  }

  .hero .hero-container .content-col .opening-hours {
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.35rem;
  }

  .hero .hero-container .content-col .opening-hours span {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .hero .hero-container .content-col .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .hero .hero-container .content-col .btn-group .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  .hero .hero-container .hero-swiper {
    position: relative;
    width: 100%;
    /* padding-bottom: 3.25rem; */
  }

  .hero .hero-container .hero-swiper .swiper-slide .img-container {
    height: clamp(13.5rem, 58vw, 21rem);
    min-height: 13.5rem;
    max-height: 21rem;
  }

  .hero .hero-container .hero-swiper .swiper-button-next,
  .hero .hero-container .hero-swiper .swiper-button-prev {
    top: auto;
    bottom: 0.35rem;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-light), transparent 8%);
    border: 1px solid color-mix(in srgb, var(--brand-charcoal), transparent 85%);
    color: var(--brand-charcoal);
  }

  .hero .hero-container .hero-swiper .swiper-button-prev {
    left: calc(50% - 3.25rem);
    right: auto;
  }

  .hero .hero-container .hero-swiper .swiper-button-next {
    right: calc(50% - 3.25rem);
    left: auto;
  }

  .hero .hero-container .hero-swiper .swiper-button-next::after,
  .hero .hero-container .hero-swiper .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 700;
  }

  /* ---------- About ---------- */
  .about-image-wrapper {
    max-width: 100%;
    margin-inline: auto;
  }

  .about-image-wrapper .accent-image {
    max-width: 45%;
  }

  .chef-signature .chef-message {
    font-size: 0.95rem;
  }

  /* ---------- Menu (mobile layout) ---------- */
  .menu-layout-full .menu-container {
    width: 100%;
    max-width: 100%;
  }

  .menu-layout-full .menu-container .isotope-item {
    max-width: 100%;
  }

  .menu-layout-full .menu-item {
    max-width: 100%;
    overflow: hidden;
  }

  .menu-layout-full .menu-item .menu-content {
    min-width: 0;
  }

  .menu-layout-full .menu-item .menu-content h5,
  .menu-layout-full .menu-item .menu-content p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .menu-layout-full .menu-filters ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu-layout-full .menu-filters ul::-webkit-scrollbar {
    display: none;
  }

  .menu-layout-full .menu-filters li {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
  }

  .menu-filters--mobile ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu-filters--mobile ul::-webkit-scrollbar {
    display: none;
  }

  .menu-filters--mobile li {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
  }

  .menu-mobile-swiper .menu-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--accent-color);
  }

  .menu-mobile-swiper .menu-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }

  /* ---------- Book a table ---------- */
  .book-a-table__grid {
    flex-direction: column;
  }

  .book-a-table__aside,
  .book-a-table__form-pane {
    padding: 1.5rem 1.25rem;
  }

  .book-a-table__form-actions .btn-book-table {
    width: 100%;
  }

  /* ---------- Events / gallery ---------- */
  #gallery.gallery-page .gallery-showcase,
  #gallery.gallery-page .gallery-page-grid {
    width: 100%;
    max-width: 100%;
  }

  #gallery.gallery-page .gallery-showcase .main-image,
  #gallery.gallery-page .gallery-showcase .gallery-item {
    height: auto;
    max-width: 100%;
  }

  #gallery.gallery-page .gallery-showcase .main-image img,
  #gallery.gallery-page .gallery-showcase .gallery-item img {
    height: auto;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
  }

  #gallery.gallery-page .gallery-page-grid .gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
    max-width: 100%;
  }

  #gallery.gallery-page .gallery-page-grid .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
  }

  .gallery-item--slide img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.75rem;
  }

  .event-cta .btn-reserve,
  .event-cta .btn-gallery,
  .gallery-showcase__actions .btn-gallery {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .event-cta h3 {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  }

  /* ---------- Chefs ---------- */
  .chefs .chef-highlight {
    margin-bottom: 1.5rem;
  }

  /* ---------- Contact ---------- */
  .contact-page .contact-info-grid {
    width: 100%;
    max-width: 100%;
  }

  .contact-page .contact-info-grid > [class*="col-"] {
    max-width: 100%;
  }

  .contact .contact-info-box {
    min-height: 100%;
    max-width: 100%;
  }

  .contact-page .contact-info-box .info-content {
    min-width: 0;
    flex: 1;
  }

  .contact-page .contact-info-box .info-content p,
  .contact-page .contact-info-box .info-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-page .map-section {
    max-width: 100%;
  }

  .contact .form-container-overlap {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-page .contact-form-wrapper {
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-page .contact-form-wrapper .form-group .input-with-icon .form-control {
    max-width: 100%;
  }

  /* ---------- Footer header CTA ---------- */
  .header-main .btn-order,
  .header-main .btn-reserve-header {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* ---------- Blog listing page (no slider) ---------- */
  .blog-listing-page .blog-listing-grid {
    width: 100%;
    max-width: 100%;
  }

  .blog-listing-page .blog-m-card {
    max-width: 100%;
    overflow: hidden;
  }

  .blog-listing-page .blog-m-card__media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .blog-listing-page .blog-m-card__body {
    min-width: 0;
  }

  .blog-listing-page .blog-m-card__title,
  .blog-listing-page .blog-m-card__excerpt {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ---------- Order page (no slider) ---------- */
  .order-page .order-page-grid {
    width: 100%;
    max-width: 100%;
  }

  .order-page .order-page-grid > [class*="col-"] {
    max-width: 100%;
  }

  .order-page .special-item {
    max-width: 100%;
    overflow: hidden;
  }

  .order-page .special-item .menu-item-content {
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .order-page .special-item .menu-item-content h4,
  .order-page .special-item .menu-item-content p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .order-page .order-page-item-img {
    width: 160px;
    height: 160px;
    max-width: min(160px, 70vw);
    object-fit: cover;
  }

  .order-page-filters ul {
    max-width: 100%;
    justify-content: center;
  }

  .order-page-filters li {
    max-width: 100%;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .d-lg-none.mh-mobile-slider {
    display: none !important;
  }

  .testimonials-swiper .mh-slider-nav {
    display: none !important;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  section,
  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: clamp(1.65rem, 3vw, 2rem);
  }
}

@media (max-width: 767px) {
  /* section,
  .section {
    padding: 44px 0;
  } */

  .section-title p {
    font-size: 0.95rem;
  }

  .page-banner h1 {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }

  .blog-m-hero h1 {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }

  .blog-m-card--slide {
    max-width: 100%;
  }

  .testimonial-item {
    padding: 1.5rem 1.25rem;
  }
}
