/*
 * EKN CaterFlow — Menu Display Shortcode CSS
 * Aesthetic: Safari Food dark luxury — charcoal, gold, Cormorant + Cinzel + Jost
 * Scoped to .cbp-menu-section so it won't bleed into the WordPress theme
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600;700&family=Jost:wght@200;300;400;500&display=swap');

/* ── ROOT TOKENS ── */
.cbp-menu-section {
    --cbp-mn-earth:      #3b2314;
    --cbp-mn-brown:      #6b3d1e;
    --cbp-mn-tan:        #c4956a;
    --cbp-mn-sand:       #e8d5b0;
    --cbp-mn-cream:      #f5edd8;
    --cbp-mn-sage:       #5a6b3a;
    --cbp-mn-gold:       #c8922a;
    --cbp-mn-gold-light: #e8b84b;
    --cbp-mn-charcoal:   #1a1208;
    --cbp-mn-bg:         #1a1208;
    --cbp-mn-card-bg:    rgba(255,255,255,.025);
    --cbp-mn-border:     rgba(196,149,106,.08);
}

/* ── SECTION WRAP ── */
.cbp-menu-section {
    background: var(--cbp-mn-charcoal);
    color: var(--cbp-mn-cream);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
}

/* Top rule */
.cbp-menu-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(196,149,106,.45), transparent);
}

/* Noise grain overlay */
.cbp-menu-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .4;
}

.cbp-menu-section > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
    .cbp-menu-section { padding: 52px 22px; }
}

/* ── HEADER ── */
.cbp-mn-header {
    text-align: center;
    margin-bottom: 56px;
}
.cbp-mn-label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: .68rem;
    font-weight: 300;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--cbp-mn-gold);
    margin-bottom: 20px;
}
.cbp-mn-label-line {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--cbp-mn-gold);
    opacity: .6;
}
.cbp-mn-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--cbp-mn-sand);
    margin-bottom: 14px;
}
.cbp-mn-title em {
    font-style: italic;
    color: var(--cbp-mn-tan);
}
.cbp-mn-subtitle {
    font-size: .92rem;
    font-weight: 300;
    color: rgba(232,213,176,.82);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto;
}

/* ── CONTROLS ── */
.cbp-mn-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 44px;
}

/* Search */
.cbp-mn-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(196,149,106,.2);
    padding: 11px 18px;
    width: 100%;
    max-width: 380px;
    transition: border-color .25s;
}
.cbp-mn-search-wrap:focus-within {
    border-color: var(--cbp-mn-gold);
}
.cbp-mn-search-icon {
    font-size: 14px;
    color: rgba(232,213,176,.6);
    flex-shrink: 0;
}
.cbp-mn-search {
    background: none;
    border: none;
    outline: none;
    color: var(--cbp-mn-cream);
    font-family: 'Jost', sans-serif;
    font-size: .88rem;
    font-weight: 300;
    width: 100%;
}
.cbp-mn-search::placeholder {
    color: rgba(232,213,176,.4);
}

/* Category buttons */
.cbp-mn-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.cbp-mn-cat {
    font-size: .72rem;
    font-weight: 300;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(232,213,176,.8);
    background: transparent;
    border: 1px solid rgba(232,213,176,.25);
    padding: 9px 22px;
    cursor: pointer;
    transition: all .25s;
    font-family: 'Jost', sans-serif;
}
.cbp-mn-cat:hover,
.cbp-mn-cat.active {
    background: var(--cbp-mn-gold);
    color: var(--cbp-mn-charcoal);
    border-color: var(--cbp-mn-gold);
}

/* ── NO RESULTS ── */
.cbp-mn-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(232,213,176,.6);
}
.cbp-mn-no-results span {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
}
.cbp-mn-no-results p {
    font-size: .9rem;
    font-weight: 300;
}

/* ── GRID ── */
.cbp-mn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── CARD ── */
.cbp-mn-card {
    background: var(--cbp-mn-card-bg);
    border: 1px solid var(--cbp-mn-border);
    padding: 30px 34px;
    position: relative;
    overflow: hidden;
    transition: background .35s, transform .28s, box-shadow .28s;
    cursor: default;
}

/* Gold shimmer on hover */
.cbp-mn-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,146,42,.07) 0%, transparent 65%);
    opacity: 0;
    transition: opacity .35s;
}

.cbp-mn-card:hover {
    background: rgba(255,255,255,.04);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.cbp-mn-card:hover::before { opacity: 1; }

/* Left border accent — slides up on hover */
.cbp-mn-card-accent {
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    background: var(--cbp-mn-gold);
    transition: height .38s ease;
}
.cbp-mn-card:hover .cbp-mn-card-accent { height: 100%; }

/* Card hidden when filtered */
.cbp-mn-card.cbp-mn-hidden {
    display: none;
}

/* ── CARD CONTENT ── */
.cbp-mn-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}
.cbp-mn-item-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--cbp-mn-sand);
    line-height: 1.3;
    flex: 1;
}
.cbp-mn-item-price {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--cbp-mn-gold);
    white-space: nowrap;
    flex-shrink: 0;
}
.cbp-mn-item-desc {
    font-size: .82rem;
    font-weight: 300;
    color: rgba(232,213,176,.78);
    line-height: 1.65;
    margin-bottom: 12px;
}

/* ── CARD FOOTER ── */
.cbp-mn-item-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}
.cbp-mn-item-cat {
    display: inline-block;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cbp-mn-sage);
    border: 1px solid rgba(90,107,58,.4);
    padding: 2px 9px;
    font-family: 'Jost', sans-serif;
}
.cbp-mn-dietary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.cbp-mn-dtag {
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(200,146,42,.7);
    border: 1px solid rgba(200,146,42,.2);
    padding: 2px 7px;
    font-family: 'Jost', sans-serif;
}

/* ── CTA BUTTON ── */
.cbp-mn-cta {
    text-align: center;
    margin-top: 52px;
}
.cbp-mn-cta-btn {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cbp-mn-charcoal);
    background: var(--cbp-mn-gold);
    padding: 16px 48px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .25s;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.cbp-mn-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cbp-mn-gold-light);
    transform: translateX(-105%);
    transition: transform .38s ease;
}
.cbp-mn-cta-btn:hover::before  { transform: translateX(0); }
.cbp-mn-cta-btn:hover          { transform: translateY(-2px); }
.cbp-mn-cta-btn span           { position: relative; z-index: 1; }

/* ── SCROLL REVEAL ANIMATION ── */
.cbp-mn-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .45s ease, transform .45s ease,
                background .35s, box-shadow .28s;
}
.cbp-mn-card.cbp-mn-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Re-apply hover on visible cards */
.cbp-mn-card.cbp-mn-visible:hover {
    transform: translateY(-4px);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .cbp-mn-grid {
        grid-template-columns: 1fr;
    }
    .cbp-mn-card {
        padding: 22px 20px;
    }
    .cbp-mn-title {
        font-size: 2.4rem;
    }
}

/* Safari Food menu mobile/all-page visibility failsafe.
   Keeps the menu visible even if the reveal animation script does not fire. */
.cbp-menu-section .cbp-mn-card {
    opacity: 1 !important;
    transform: none !important;
}

.cbp-menu-section .cbp-mn-card:hover,
.cbp-menu-section .cbp-mn-card.cbp-mn-visible:hover {
    transform: translateY(-4px) !important;
}

.cbp-menu-section .cbp-mn-card.cbp-mn-hidden {
    display: none !important;
}

/* Safari Food menu UX polish */
.cbp-menu-section .cbp-mn-search-icon,
.cbp-menu-section .cbp-mn-no-results span {
  display: none !important;
}

.cbp-menu-section .cbp-mn-controls {
  gap: 18px;
}

.cbp-menu-section .cbp-mn-search-wrap {
  border-radius: 999px;
}

.cbp-menu-section .cbp-mn-cats {
  gap: 10px;
}

.cbp-menu-section .cbp-mn-cat {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: .12em;
}

.cbp-menu-section .cbp-mn-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
}

.cbp-menu-section .cbp-mn-item-name {
  font-size: 1.55rem;
  line-height: 1.18;
}

.cbp-menu-section .cbp-mn-item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cbp-mn-gold-light);
}

.cbp-menu-section .cbp-mn-item-desc {
  font-size: .92rem;
  line-height: 1.65;
  color: rgba(245, 237, 216, .82);
}

.cbp-menu-section .cbp-mn-item-cat,
.cbp-menu-section .cbp-mn-dtag {
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
  letter-spacing: .12em;
}

@media (max-width: 768px) {
  .cbp-menu-section {
    padding: 44px 16px;
  }

  .cbp-menu-section .cbp-mn-header {
    margin-bottom: 28px;
  }

  .cbp-menu-section .cbp-mn-title {
    font-size: 2.45rem;
  }

  .cbp-menu-section .cbp-mn-subtitle {
    font-size: .92rem;
    line-height: 1.65;
  }

  .cbp-menu-section .cbp-mn-search-wrap {
    max-width: none;
    min-height: 46px;
    padding: 10px 16px;
  }

  .cbp-menu-section .cbp-mn-cats {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cbp-menu-section .cbp-mn-cats::-webkit-scrollbar {
    display: none;
  }

  .cbp-menu-section .cbp-mn-cat {
    flex: 0 0 auto;
    padding: 10px 15px;
    font-size: .68rem;
  }

  .cbp-menu-section .cbp-mn-grid {
    gap: 12px;
  }

  .cbp-menu-section .cbp-mn-card {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .cbp-menu-section .cbp-mn-card-top {
    align-items: flex-start;
    gap: 12px;
  }

  .cbp-menu-section .cbp-mn-item-name {
    font-size: 1.45rem;
  }

  .cbp-menu-section .cbp-mn-item-price {
    font-size: 1rem;
  }

  .cbp-menu-section .cbp-mn-item-desc {
    font-size: .9rem;
  }

  .cbp-menu-section .cbp-mn-item-footer {
    gap: 7px;
  }

  .cbp-menu-section .cbp-mn-cta {
    margin-top: 32px;
  }

  .cbp-menu-section .cbp-mn-cta-btn {
    width: 100%;
    text-align: center;
    padding: 16px 22px;
    clip-path: none;
    border-radius: 999px;
  }
}