/* ============================================================
   MOBILE REFINEMENTS (≤ 760px) — loaded after custom.css.
   Readable text (no labels under 12px, stronger contrast), tap
   targets ≥ 44px, 16px form fields (no iOS zoom), a compact header,
   a swipeable category bar on the menu, and a sticky action bar
   (Reserveren + Bellen) that replaces Guestplan's floating button.
   Desktop is untouched.
   ============================================================ */

@media (max-width: 760px) {

  :root { --text-soft: #5f5548; } /* secondary text: 4.5:1+ on paper */
  html { -webkit-text-size-adjust: 100%; }

  /* ---------- Small caps labels: never below 12px ---------- */
  .eyebrow,
  .menu-preview-card .eyebrow,
  .reservatie-channels .eyebrow,
  .footer-col h4,
  .footer-hours span,
  .hours-days,
  .menu-course,
  .menu-preview-subs,
  .menu-item-tag,
  .menu-item-allergens span,
  .menu-section-price .price-sub,
  .takeaway-facts span,
  .takeaway-group-title,
  .takeaway-item-tag,
  .takeaway-field label,
  .takeaway-summary-total span,
  .takeaway-success-meta dt,
  .takeaway-slot span small,
  .mobile-menu-group__label,
  .gift-custom label,
  .gift-counter { font-size: 12px !important; letter-spacing: 2px; }
  .eyebrow { letter-spacing: 3px; margin-bottom: 20px; }
  .menu-item-allergens,
  .review-card figcaption,
  .takeaway-item-note,
  .takeaway-summary-legal,
  .menu-section-price { font-size: 13px !important; }

  /* Serif secondary text (Cormorant runs small): a size up */
  .menu-item-desc,
  .menu-item-supp,
  .takeaway-item-desc,
  .menu-section-intro,
  .menu-lead,
  .menu-preview-card p { font-size: 1.08rem; line-height: 1.55; }
  .hero-tagline { font-size: 1.15rem; color: rgba(244, 237, 225, 0.92); margin-bottom: 28px; }

  /* ---------- Buttons ---------- */
  .btn, .btn-sm, .btn-lg {
    min-height: 48px; padding: 14px 24px;
    font-size: 13px; letter-spacing: 2px;
  }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-buttons .btn { width: 100%; }
  .section-actions { flex-direction: column; align-items: stretch; }
  .section-actions .btn { width: 100%; white-space: normal; text-align: center; }

  /* ---------- Header: compact, 44px menu button ---------- */
  .nav { height: 68px; padding: 0 12px 0 20px; }
  .nav-logo img { height: 26px; }
  .nav-toggle {
    display: flex !important; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
  }
  .mobile-menu-header { height: 68px; padding: 0 12px 0 20px; }
  .mobile-menu-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .hero-content { padding: 112px 20px 40px; }
  /* With the bottom bar: hero fills the screen above it, and its own
     reservation button is dropped (the bar already offers it). */
  .has-reserve-dock .hero { min-height: calc(100svh - 68px - env(safe-area-inset-bottom)); }
  .has-reserve-dock .hero-buttons .js-guestplan { display: none; } /* the bar already offers it */

  /* ---------- Menu page: one swipeable row of categories ---------- */
  .menu-toc {
    position: sticky; top: 68px; z-index: 20;
    background: var(--paper); box-shadow: 0 8px 16px -12px rgba(23,18,14,0.25);
    padding: 10px 0; border-bottom: 1px solid var(--border);
  }
  .admin-bar .menu-toc { top: 114px; }
  .menu-toc .container { padding: 0; max-width: none; }
  .menu-toc ul {
    flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
    overflow-x: auto; padding: 0 20px; margin: 0;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px; /* snap keeps the side space */
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
  }
  .menu-toc li:last-child { padding-right: 20px; } /* trailing space (flex ignores end padding) */
  .menu-toc ul::-webkit-scrollbar { display: none; }
  .menu-toc li { flex: 0 0 auto; scroll-snap-align: start; }
  .menu-toc a,
  .menu-toc li.is-sub a {
    min-height: 44px; padding: 0 18px;
    border: 1px solid var(--border); border-radius: 999px;
    font-size: 12px !important; letter-spacing: 1.6px; white-space: nowrap;
    background: var(--paper); color: var(--ink);
  }
  .menu-toc li.is-sub a { border-style: dashed; color: var(--text-soft); }
  .menu-toc a.is-active,
  .menu-toc li.is-sub a.is-active { background: var(--ink); border: 1px solid var(--ink); color: var(--paper); }

  /* Dishes: compact list, one clear line per dish */
  .menu-items { gap: 0; }
  .menu-item { padding: 15px 0; }
  .menu-items--courses .menu-item { padding: 13px 0; }
  .menu-item-row { gap: 12px; margin-bottom: 2px; }
  .menu-item-title { font-size: 1.28rem !important; line-height: 1.25; }
  .menu-item-price { font-size: 1.12rem; }
  .menu-item-desc { margin-top: 2px; }
  .menu-item.is-featured { padding-left: 12px; }
  .menu-item.is-featured::before { top: 16px; bottom: 16px; }
  .menu-subsection { margin-top: 40px; }
  .menu-subsection-head { margin-bottom: 4px; padding-bottom: 10px; }
  .menu-course { padding: 24px 0 4px; }
  .menu-section, [id^="cat-"] { scroll-margin-top: 140px; }
  /* Menu page top: less empty space, smaller title */
  .menu-page { padding-top: 76px; }
  .menu-head { padding: 28px 0 24px; }
  .menu-head .eyebrow { margin-bottom: 16px; }
  .menu-head h1 { font-size: clamp(2.5rem, 11vw, 3rem); margin-bottom: 18px; }
  .menu-head h1::after { margin: 16px auto; }
  .menu-lead { font-size: 1.05rem; line-height: 1.5; padding: 0 8px; }
  /* Take-away page top: same treatment, title breaks cleanly as
     "Mistral" / "bij u thuis." */
  .takeaway-page { padding-top: 76px; }
  .takeaway-head { padding: 28px 0 32px; }
  .takeaway-head .eyebrow { margin-bottom: 16px; }
  .takeaway-head h1 { font-size: clamp(2.5rem, 11vw, 3rem); line-height: 1.05; margin-bottom: 18px; }
  .takeaway-head h1 em { display: block; }
  .takeaway-lead { font-size: 1.05rem; line-height: 1.5; }
  .menu-section { padding: 56px 0 40px; }
  .menu-section-head { margin-bottom: 40px; }

  /* ---------- Order form ---------- */
  .takeaway-item { gap: 14px; padding: 22px 0; }
  .takeaway-item-row { flex-wrap: nowrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
  .takeaway-item-title { font-size: 1.3rem !important; letter-spacing: 0; line-height: 1.25; min-width: 0; }
  .takeaway-item-price { font-size: 1.2rem; flex: 0 0 auto; text-align: right; }
  .takeaway-item-price small { display: block; font-size: 0.85rem; }
  .takeaway-item-desc { color: var(--text); font-size: 1.1rem; line-height: 1.5; }
  .takeaway-qty { justify-self: start; width: auto; height: 48px; }
  .takeaway-qty-btn { width: 52px; flex: 0 0 52px; font-size: 1.6rem; }
  .takeaway-qty-input { width: 56px; flex: 0 0 56px; }
  .takeaway-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .takeaway-slot span {
    width: 100%; min-height: 48px; justify-content: center;
    padding: 12px 8px; font-size: 13px; letter-spacing: 1.2px;
  }
  .takeaway-field input,
  .takeaway-field select { min-height: 48px; }

  /* 16px fields: iOS does not zoom in when tapping them */
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="date"], input[type="search"], select, textarea { font-size: 16px !important; }

  /* ---------- Footer ---------- */
  .footer-socials a { width: 44px; height: 44px; }
  .footer-legal { flex-wrap: wrap; gap: 0 18px; }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contact a { display: inline-block; padding: 6px 0; }

  /* ---------- Remaining tap targets ---------- */
  .menu-subsection-head h3 { font-size: 13px !important; letter-spacing: 2.4px; }
  .nav-logo { padding: 9px 0; }
  .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .hours-note a { display: inline-block; padding: 13px 2px; margin: -13px 0; } /* bigger hit area, same line height */
  .takeaway-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; }
  .takeaway-check input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: var(--ink); }

  /* ---------- Reservation dock: bottom bar on phones ---------- */
  .reserve-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 237, 225, 0.97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  /* Grid keeps the columns exactly equal: gift · book · call, or in
     take-away season take-away · book · call (gift hidden below). */
  .reserve-dock { display: grid !important; grid-auto-flow: column; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; }
  .reserve-dock:has(.reserve-dock__ta) { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .reserve-dock > * { min-width: 0; width: auto; }
  .reserve-dock .ta-choose { display: block; }
  .reserve-dock .ta-choose > summary { display: flex; width: 100%; }
  .reserve-dock a, .reserve-dock summary { padding: 0 6px; letter-spacing: 1.5px; font-size: 12px; white-space: nowrap; gap: 8px; }
    .reserve-dock { padding-left: 12px; padding-right: 12px; }
  .reserve-dock .reserve-dock__ta svg, .reserve-dock summary svg { display: none; } /* label only: keeps it on one line */
  .reserve-dock .ta-choose__caret { display: none; } /* room for the label */
  .reserve-dock__long { display: none; }
  .reserve-dock__gift, .reserve-dock__call { padding: 0 !important; }
  .reserve-dock .ta-choose__menu { left: 0; right: auto; }
  .reserve-dock__gift span { display: none; }
  body.has-reserve-dock { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Reservation dock: shared look + desktop floating buttons ---------- */
.reserve-dock { transition: transform .25s ease, opacity .25s ease; }
.reserve-dock.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (max-width: 760px) { /* phones: the widget is full screen, the bar steps aside */
  .reserve-dock.is-under-widget { transform: translateY(120%); opacity: 0; pointer-events: none; }
}
.reserve-dock a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; text-decoration: none;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2.2px;
  border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.reserve-dock svg { width: 19px; height: 19px; flex: 0 0 auto; }
.reserve-dock__book { background: var(--ink); color: var(--paper); }
.reserve-dock__book:hover { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.reserve-dock__gift, .reserve-dock__call { background: var(--paper); color: var(--ink); }
.reserve-dock__gift:hover, .reserve-dock__call:hover { background: var(--ink); color: var(--paper); }

/* Take-away: wine red, same weight as reserving */
.reserve-dock__ta, .btn-wine { background: var(--wine); color: var(--paper); border-color: var(--wine); }
@media (hover: hover) {
  .reserve-dock__ta:hover, .btn-wine:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
.reserve-dock summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; cursor: pointer; list-style: none;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2.2px; border: 1px solid var(--wine);
}
.reserve-dock__short { display: none; }
@media (max-width: 760px) { .reserve-dock__short { display: inline; } }

/* Take-away chooser (when more than one order form is open) */
.ta-choose { position: relative; display: inline-flex; }
.ta-choose > summary { list-style: none; cursor: pointer; }
.ta-choose > summary::-webkit-details-marker { display: none; }
.ta-choose__caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; transition: transform .2s; }
.ta-choose--up .ta-choose__caret { transform: rotate(-135deg) translateY(-1px); }
.ta-choose[open] .ta-choose__caret { transform: rotate(-135deg) translateY(-1px); }
.ta-choose--up[open] .ta-choose__caret { transform: rotate(45deg) translateY(-2px); }
.ta-choose__menu {
  position: absolute; z-index: 950; min-width: 240px; right: 0;
  background: var(--paper); border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(23, 18, 14, 0.22); padding: 8px 0;
  text-align: left;
}
.ta-choose--up .ta-choose__menu { bottom: calc(100% + 8px); }
.ta-choose:not(.ta-choose--up) .ta-choose__menu { top: calc(100% + 8px); left: 0; right: auto; }
.ta-choose__title { display: block; padding: 8px 18px 6px; font-family: var(--font-body); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 2.4px; color: var(--text-soft); }
.ta-choose__menu a {
  display: flex !important; justify-content: space-between; align-items: baseline; gap: 16px;
  min-height: 48px; padding: 0 18px !important; border: 0 !important; background: transparent !important;
  font-family: var(--font-display) !important; font-size: 1.15rem !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--ink) !important; text-decoration: none;
}
.ta-choose__menu a small { font-family: var(--font-serif); font-style: italic; font-size: .95rem; color: var(--text-soft); }
.ta-choose__menu a:hover { background: var(--paper-2) !important; }
.reserve-dock svg { width: 18px; height: 18px; flex: 0 0 auto; }

@media (min-width: 761px) {
  .reserve-dock {
    position: fixed; right: 24px; bottom: 24px; z-index: 900;
    display: flex; gap: 10px;
    filter: drop-shadow(0 8px 24px rgba(23, 18, 14, 0.18));
  }
  .reserve-dock__call { display: none !important; }
}

/* ---------- Take-away: selection bar (where the side summary isn't sticky) ---------- */
.takeaway-mini { display: none; }
@media (max-width: 1000px) {
  .takeaway-mini:not([hidden]) {
    position: fixed; left: 12px; right: 12px; z-index: 900;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 0 18px;
    background: var(--ink); color: var(--paper); text-decoration: none;
    box-shadow: 0 10px 30px rgba(23, 18, 14, 0.25);
    animation: takeaway-mini-in .25s ease both;
  }
  .takeaway-mini-count { font-family: var(--font-serif); font-size: 1.15rem; font-style: italic; }
  .takeaway-mini-go { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; }
  .single-bestelformulier { padding-bottom: 80px; }
}
@keyframes takeaway-mini-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Touch screens: no sticky hover colour on the quantity buttons after a tap */
@media (hover: none) {
  .takeaway-qty-btn:hover { background: transparent; color: var(--ink); }
}
/* Desktop: keep the hero buttons clear of the floating buttons bottom-right */
@media (min-width: 761px) {
  .has-reserve-dock .hero-content { padding-bottom: 128px; }
}

/* Very small phones (iPhone SE and similar) */
@media (max-width: 360px) {
  .reserve-dock a, .reserve-dock summary { font-size: 11px; letter-spacing: 0.8px; padding: 0 4px; }
  .reserve-dock { gap: 5px; padding-left: 8px; padding-right: 8px; }
}
/* Out of take-away season the bar has room for the full label */
@media (max-width: 760px) {
  .reserve-dock:not(:has(.reserve-dock__ta)) .reserve-dock__long { display: inline; }
  .reserve-dock:not(:has(.reserve-dock__ta)) .reserve-dock__short { display: none; }
}

/* Narrow phones: take-away dates may wrap in the menu */
@media (max-width: 360px) {
  .mobile-menu-ta__meta { white-space: normal; }
}
