/* ======================================================
   RESPONSIVE STYLES
   Phone & Tablet Optimizations
   ====================================================== */

/* ======================================================
   TABLET & MOBILE COMMON (Max-Width: 991px)
   ====================================================== */
@media (max-width: 991.98px) {
  /* --- GLOBAL RESETS --- */
  html,
  body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    max-width: 100vw;
  }

  /* --- MOTIF SAFEGUARDS --- */
  [class*="motif-"],
  [class*="decorative-"],
  [class*="pattern-"] {
    max-width: 100% !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  /* Hide only specific heavy patterns that block text */
  .pattern-top-right,
  .pattern-left,
  .pattern-right,
  .motif-herocenter-clip,
  .motif-fnd-clip {
    display: none !important;
  }

  /* --- NAV --- */
  .navbar-toggler {
    border: none;
    padding: 0;
    color: var(--color-dark);
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    background-color: var(--color-bg-primary);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 15px;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link {
    font-size: 18px; /* Reduced from 22px */
  }

  .navbar-toggler-icon {
    width: 1.6em;
    height: 1.6em;
  }
}

/* ======================================================
   MOBILE DEVICES (Max-Width: 767px)
   ====================================================== */
@media (max-width: 767.98px) {
  /* --- LOGO REDUCTION --- */
  .navbar-brand img,
  .logo {
    max-width: 50% !important; /* Reduced to 100px */
    height: auto !important;
  }

  /* --- GLOBAL SPACING & TYPOGRAPHY --- */
  section {
    padding: 35px 0 !important;
    overflow: hidden;
    position: relative;
  }

  /* Massive Heading Reduction */
  .section-title {
    font-size: 42px !important;
    line-height: 1.1 !important;
    margin-bottom: 15px !important;
    text-align: center;
    position: relative;
    z-index: 5;
  }

  p {
    font-size: 15px !important; /* Reduced body text */
    line-height: 1.5 !important;
    position: relative;
    z-index: 5;
  }

  /* ======================================================
     FULL SCREEN HERO SECTION
     ====================================================== */
  .hero-section {
    padding: 0 !important;
    min-height: 100vh !important;
    height: 100vh !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    margin-top: -10px;
  }

  /* Reset Container */
  .hero-section .container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    position: static !important;
  }

  .hero-section .row {
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: block !important;
  }

  /* Layer 1: Image Background */
  .hero-section .col-lg-6:last-child {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1;
  }

  .hero-images {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .hero-slideshow:nth-child(2) {
    display: none !important;
  }

  .hero-slideshow {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
  }

  .hero-images .img-1,
  .hero-images .img-2,
  .hero-slide {
    width: 100% !important;
    height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    transform: none !important;
    rotate: 0deg !important;
  }

  /* Layer 2: Overlay & Text */
  .hero-section .col-lg-6:first-child {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 10;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 20px !important;
  }

  /* Reduced Hero Text */
  .hero-title {
    font-size: 55px; /* Reduced from 80px */
    margin-bottom: 15px;
    position: relative;
    z-index: 11;
    text-shadow: none !important;
  }

  .hero-subtitle {
    font-size: 15px !important;
    margin-bottom: 25px;
    padding: 0 10px;
    position: relative;
    z-index: 11;
    font-weight: 600;
    text-shadow: none !important;
    color: var(--color-bg-primary) !important;
  }

  .btn-reserve {
    position: relative;
    z-index: 11;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 14px !important;
    padding: 10px 20px !important;
  }

  /* --- HERO MOTIF --- */
  .motif-hero-clip {
    display: block !important;
    width: 50% !important;
    height: 35% !important;
    top: 0 !important;
    right: -10% !important;
    opacity: 0.3 !important;
    z-index: 12 !important;
    mix-blend-mode: overlay;
  }

  /* ======================================================
     MOTIF SCALING & VISIBILITY 
     ====================================================== */
  [class*="motif-"] {
    opacity: 0.4 !important;
  }
  .motif-convo-clip {
    display: block !important;
    width: 60% !important;
    height: 50% !important;
    top: 0 !important;
    right: 0 !important;
  }
  .motif-food-clip {
    display: block !important;
    width: 40% !important;
    height: 35% !important;
    top: 0 !important;
    left: 0 !important;
  }
  .motif-drinks-clip {
    display: block !important;
    width: 40% !important;
    height: 35% !important;
    bottom: 0 !important;
    right: -10% !important;
  }
  .motif-book-clip {
    display: block !important;
    width: 30% !important;
    height: 30% !important;
    top: -10% !important;
    left: -10% !important;
    transform: none !important;
  }
  .motif-bookstar-clip {
    display: block !important;
    top: 1% !important;
    right: 5% !important;
    height: 5% !important;
    width: 10% !important;
  }
  .motif-moment-clip {
    display: block !important;
    width: 20% !important;
    height: 8% !important;
    top: 0% !important;
    left: 0% !important;
    opacity: 0.2 !important;
  }
  .motif-teamleft-clip {
    display: block !important;
    width: 30% !important;
    height: 30% !important;
    bottom: -5% !important;
    left: 0 !important;
  }
  .motif-teamright-clip {
    display: block !important;
    width: 30% !important;
    height: 30% !important;
    top: -5% !important;
    right: 0 !important;
  }
  .motif-testimonial-right-clip {
    display: block !important;
    width: 50% !important;
    top: 40% !important;
    right: 0 !important;
    height: 80% !important;
  }
  .motif-testimonial-clip {
    display: block !important;
    width: 15% !important;
    top: 3% !important;
    left: 0% !important;
    height: 8% !important;
  }
  .motif-footer-clip {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0.7 !important;
    background-size: cover !important;
    scale: 1.5;
  }
  .motif-bannerleft-clip {
    display: block !important;
    width: 15% !important;
    height: auto !important;
    top: 10% !important;
    left: 0 !important;
  }
  .motif-bannerright-clip {
    display: block !important;
    width: 15% !important;
    height: auto !important;
    top: 10% !important;
    right: 0 !important;
  }

  /* ======================================================
     OTHER SECTIONS
     ====================================================== */

  .conversation-box {
    padding: 30px 15px;
    margin: 0 10px;
    position: relative;
    z-index: 5;
  }

  .conversation-box .section-title {
    font-size: 38px !important;
  }

  /* --- FIX 2: FOOD & DRINKS GRID (Not stacked) --- */
  .food-drinks-section .row {
    flex-direction: column;
    gap: 30px;
  }

  /* Force 2-column grid layout like desktop */
  .food-grid,
  .drinks-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 20px 0 !important;
  }

  .food-grid img,
  .drinks-grid img {
    width: 100% !important;
    height: 140px !important; /* Smaller height for mobile */
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  /* Re-apply the special span for the first/second image */
  .food-grid img:first-child {
    grid-row: span 2;
    height: 290px !important; /* (140 * 2) + 10px gap */
  }

  .drinks-grid img:nth-child(2) {
    grid-row: span 2;
    height: 290px !important; /* (140 * 2) + 10px gap */
  }

  .food-drinks-section .col-lg-2 {
    display: none; /* Hide decorative center icon on mobile */
  }

  .book-section .row {
    gap: 15px;
    padding: 0 10px;
    margin: 0;
  }

  .book-section .col-md-3 {
    width: 100%;
    padding: 0;
  }

  .booking-card {
    width: 100%;
    padding: 25px 15px;
    margin-bottom: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 5;
  }

  .moment-header {
    width: 100%;
    margin-bottom: 30px;
  }

  .moment-title-wrapper {
    gap: 10px;
    align-items: center;
  }

  .moment-label,
  .moment-title-wrapper .section-title {
    font-size: 40px !important;
    line-height: 1;
  }

  .moment-label,
  .moment-title-wrapper .section-title {
    margin-bottom: 0 !important;
  }

  .decorative-line-moment {
    width: 60px;
    height: 3px;
    background-color: var(--color-brand);
  }

  .moment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .moment-card {
    height: auto;
  }
  .moment-card:nth-child(2) {
    margin-top: 0;
  }

  /* --- TEAM SECTION REDUCTIONS --- */

  .member-image {
    max-width: 70% !important;
  }
  .team-section .small-heading h2.section-title {
    font-size: 42px !important;
    margin-bottom: 5px !important;
  }

  .team-subtitle-line,
  .team-subtitle-line-to {
    margin-top: 5px !important;
  }

  .team-subtitle-cap {
    font-size: 42px;
  }

  .team-carousel.owl-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }

  /* --- FIX: SMALLER TEAM CARDS --- */
  .team-member {
    min-width: 160px; /* Reduced from 200px+ to fit 2ish on screen */
    scroll-snap-align: center;
    position: relative;
    z-index: 5;
  }

  .team-member h3 {
    font-size: 16px;
  }

  /* --- FIX: CONTROLLED IMAGE HEIGHT --- */
  .team-member img {
    /*height: 220px !important;*/
    width: 100% !important;
    object-fit: cover !important;
  }

  .team-title-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .decorative-line-team {
    width: 60px;
    transform: rotate(315deg);
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .team-subtitle-line,
  .team-subtitle-line-to {
    justify-content: center;
    flex-wrap: wrap;
  }

  .testimonial-header {
    width: 100%;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  .testimonial-header .section-title {
    font-size: 40px !important;
    white-space: normal !important;
    line-height: 1.1;
    margin-bottom: 0 !important;
  }

  /* --- FIX 1: SMALLER ARTICLES (Testimonials) --- */
  .testimonial-carousel {
    justify-content: flex-start;
    padding-left: 20px;
    gap: 15px; /* Reduced gap */
  }

  .testimonial-carousel .card {
    min-width: 70vw; /* Reduced from 85vw to see next card easier */
    width: 70vw;
    margin-right: 10px;
    position: relative;
    z-index: 5;
  }

  .testimonial-carousel .card-title {
    font-size: 16px !important; /* Smaller Title */
    line-height: 1.2;
    margin-bottom: 5px;
  }

  .testimonial-carousel .card-text {
    font-size: 13px !important; /* Smaller text */
    font-weight: 500;
  }

  .testimonial-carousel .card-info {
    font-size: 11px !important;
    opacity: 0.8;
  }

  /* --- FOOTER REDUCTIONS --- */
  .site-footer {
    padding-top: 40px !important;
    text-align: center;
  }

  .site-footer .container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .site-footer .col-lg-4 {
    width: 100%;
    margin-bottom: 30px;
    order: 1;
    padding: 0 20px;
    position: relative;
    z-index: 5;
  }

  .social-links {
    justify-content: center;
  }

  .site-footer .col-lg-2 {
    width: 50%;
    margin-bottom: 25px;
    order: 2;
    padding: 0 10px;
    position: relative;
    z-index: 5;
  }

  /* Reduced Footer Headings */
  .site-footer h4 {
    font-size: 24px; /* Reduced to be subtle */
    margin-bottom: 12px;
  }

  .footer-links li {
    margin-bottom: 5px;
  }

  /* Reduced Footer Links */
  .footer-links a {
    font-size: 14px !important;
  }

  .footer-logo-watermark {
    backface-visibility: hidden;
    display: none;
  }

  .footer-logo {
    height: 40px;
  }

  /* --- MERCH MOBILE --- */
  .merch-hero {
    height: auto;
    padding: 60px 0 30px;
  }

  .merch-hero .hero-title {
    font-size: 55px;
  }

  .merch-card {
    transform: none !important;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .merch-image {
    max-width: 220px;
    margin: 0 auto 15px;
  }

  .merch-title {
    font-size: 32px !important;
  }

  .badge {
    top: 0;
    font-size: 11px;
  }

  .banner-content {
    flex-direction: column;
  }

  .banner-content h2 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
    position: relative;
    z-index: 5;
  }

  .no-cart-box h2 {
    font-size: 32px !important;
  }
}

/* ======================================================
   SMALL PHONE (Max-Width: 380px)
   ====================================================== */
@media (max-width: 380px) {
  .hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px !important;
  }
  .moment-label {
    font-size: 26px !important;
  }
  .moment-title-wrapper .section-title {
    font-size: 26px !important;
  }

  .team-member {
    min-width: 140px;
  }

  .team-member img {
    height: 180px !important;
  }

  .site-footer .col-lg-2 {
    width: 100%;
  }
}
