/*------------------------------------------------------------------
  Mobile-First Responsive Overrides for West Street Cafe
  This file is loaded AFTER main.css to apply mobile-first improvements
  without breaking existing desktop styles.
-------------------------------------------------------------------*/

/* ===== BASE MOBILE STYLES (default, no media query) ===== */

/* Improve touch targets and readability on small screens */
body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Fluid images */
img {
  max-width: 100%;
  height: auto;
}

/* Header: mobile-first compact header */
.wrap-menu-header {
  height: 70px;
  border-top-width: 3px;
}

.wrap_header {
  height: 70px;
  padding: 0 10px;
}

.header-fixed .wrap-menu-header {
  height: 60px;
}

/* Hide desktop menu on mobile (already done at 992px, reinforce) */
.wrap_menu {
  display: none;
}

/* Social icons: better touch targets */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
}

/* Sidebar toggle: better touch target */
.btn-show-sidebar {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Title/Hero section: reduce height on mobile */
.bg-title-page {
  min-height: 250px;
  padding-top: 80px;
  padding-bottom: 40px;
  background-size: contain;
  background-position: center center;
}

/* Menu sections: reduce excessive padding on mobile */
.section-mainmenu {
  padding-top: 50px;
  padding-bottom: 40px;
}

.section-lunch,
.section-dinner {
  padding-bottom: 0;
}

.section-lunch .container .row,
.section-dinner .container .row {
  padding-top: 40px;
  padding-bottom: 30px;
}

/* Parallax headers: shorter on mobile */
.header-lunch .bg1-overlay,
.header-dinner .bg1-overlay {
  padding-top: var(--space-md);
  padding-bottom: var(--space-xl);
}

/* Menu items: better mobile layout */
.item-mainmenu .flex-l-m {
  flex-wrap: wrap;
}

.name-item-mainmenu,
.name-item-mainmenu-sand {
  font-size: 16px;
  line-height: 1.4;
}

.price-item-mainmenu {
  font-size: 16px;
  white-space: nowrap;
}

.line-item-mainmenu {
  min-width: 20px;
}

/* Footer: stack columns on mobile */
footer .row {
  flex-direction: column;
}

footer .col-sm-6 {
  padding-top: 25px;
}

/* Contact form: full width inputs */
.wrap-form-reservation input,
.wrap-form-reservation textarea,
.wrap-form-reservation select {
  font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Map: responsive */
.map iframe {
  width: 100%;
  height: 300px;
}

/* Back to top: mobile position and touch target */
.btn-back-to-top {
  bottom: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

/* Sidebar: full width on very small screens */
.sidebar {
  width: 85vw;
  max-width: 350px;
}

/* Catering menu: better spacing */
.cat_mainmenu {
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
}

/* Coffee menu: Hot/Iced headers and sizes alignment */
.coffee-size-header {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.coffee-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.coffee-col-hot {
  min-width: 80px;
}

.coffee-col-iced {
  min-width: 60px;
}

.coffee-label-hot,
.coffee-label-iced {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
}

.coffee-sizes-hot,
.coffee-sizes-iced {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  color: #666;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.coffee-price-group {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.coffee-price-hot {
  min-width: 80px;
  text-align: center;
  font-size: 16px;
}

.coffee-price-iced {
  min-width: 60px;
  text-align: center;
  font-size: 16px;
}

.section-mainmenu .item-mainmenu .flex-l-m {
  flex-wrap: nowrap;
}

.cat_info_mainmenu {
  font-size: 16px;
  text-align: center;
}

.sand-sub-menu {
  padding-left: 10px;
}

.cat_item_mainmenu {
  font-size: 16px;
}

/* Contact page info blocks */
.section-contact .row .col-sm-8 {
  padding-top: 20px;
}

.section-contact .dis-flex {
  margin-left: 0;
}


/* ===== TABLET (min-width: 576px) ===== */
@media (min-width: 576px) {
  .wrap-menu-header {
    height: 90px;
  }

  .wrap_header {
    height: 90px;
  }

  .bg-title-page {
    min-height: 350px;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .section-mainmenu {
    padding-top: 70px;
    padding-bottom: 50px;
  }

  .header-lunch .bg1-overlay,
  .header-dinner .bg1-overlay {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .map iframe {
    height: 350px;
  }

  .cat_mainmenu {
    font-size: 28px;
  }

  .cat_item_mainmenu {
    font-size: 18px;
  }

  .name-item-mainmenu,
  .name-item-mainmenu-sand {
    font-size: 16px;
  }

  /* Coffee menu: slightly larger at tablet */
  .coffee-label-hot,
  .coffee-label-iced {
    font-size: 16px;
  }

  .coffee-sizes-hot,
  .coffee-sizes-iced {
    font-size: 16px;
  }

  .coffee-col-hot {
    min-width: 110px;
  }

  .coffee-col-iced {
    min-width: 80px;
  }

  .coffee-price-hot {
    min-width: 110px;
  }

  .coffee-price-iced {
    min-width: 80px;
  }

  .coffee-price-group {
    gap: 10px;
  }
}


/* ===== TABLET LANDSCAPE (min-width: 768px) ===== */
@media (min-width: 768px) {
  .bg-title-page {
    min-height: 500px;
  }

  .section-mainmenu {
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .section-lunch .container .row,
  .section-dinner .container .row {
    padding-top: 70px;
    padding-bottom: 50px;
  }

  .header-lunch .bg1-overlay,
  .header-dinner .bg1-overlay {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .map iframe {
    height: 400px;
  }

  footer .row {
    flex-direction: row;
  }
}


/* ===== DESKTOP (min-width: 992px) ===== */
@media (min-width: 992px) {
  .wrap-menu-header {
    height: 120px;
    border-top-width: 5px;
  }

  .wrap_header {
    height: 100%;
    padding: 0;
  }

  .header-fixed .wrap-menu-header {
    height: 100px;
  }

  /* Show desktop menu */
  .wrap_menu {
    display: block;
    height: 100%;
  }

  .bg-title-page {
    min-height: 845px;
    padding-top: 100px;
    padding-bottom: 80px;
    background-size: cover;
  }

  .section-mainmenu {
    padding-top: 110px;
    padding-bottom: 70px;
  }

  .section-lunch .container .row,
  .section-dinner .container .row {
    padding-top: 108px;
    padding-bottom: 70px;
  }

  .header-lunch .bg1-overlay,
  .header-dinner .bg1-overlay {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .map iframe {
    height: 450px;
  }

  .name-item-mainmenu,
  .name-item-mainmenu-sand {
    font-size: inherit;
  }

  .cat_mainmenu {
    font-size: inherit;
  }

  .cat_info_mainmenu {
    font-size: inherit;
  }

  .cat_item_mainmenu {
    font-size: inherit;
  }

  /* Coffee menu: full size on desktop (above 768px so smaller sizes are fine) */
  .coffee-label-hot,
  .coffee-label-iced {
    font-size: 14px;
  }

  .coffee-sizes-hot,
  .coffee-sizes-iced {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
}


/* ===== LARGE DESKTOP (min-width: 1200px) ===== */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}


/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #ec1d25;
  outline-offset: 2px;
}

/* Skip navigation (add to HTML) */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: #ec1d25;
  color: white;
  padding: 10px 20px;
  z-index: 9999;
  font-size: 16px;
  text-decoration: none;
  font-weight: 700;
}

.skip-nav:focus {
  top: 0;
  outline: 3px solid #222;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
