/* =========================
   FRIDA MENU – CORE STYLES
   ========================= */

:root {
  --bg: #060506;
  --fg: #f7f1e6;
  --muted: rgba(247, 241, 230, .70);
  --gold: #d4af37;
  --gold2: #f3d77a;
  --red: #5a0b17;
  --line: rgba(212, 175, 55, .22);
  --max: 980px;
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

/* Body - Fixed Background & Typography */
body {
  background:
    radial-gradient(1100px 700px at 70% 20%, rgba(90, 11, 23, .32), transparent 60%),
    radial-gradient(900px 650px at 30% 85%, rgba(212, 175, 55, .12), transparent 60%),
    linear-gradient(180deg, #060506, #050405 55%, #060506);
  
  /* FIX: Keeps background static while scrolling */
  background-attachment: fixed; 
  background-size: cover;

  color: var(--fg);
  font-family: Montserrat, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =========================
   TOP BAR & LOGO
   ========================= */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px;
  background: linear-gradient(180deg, rgba(6, 5, 6, .9), rgba(6, 5, 6, 0));
  pointer-events: none;
}

.brandLogo {
  pointer-events: auto;
  display: inline-flex;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .5));
}

.brandLogo img {
  height: 28px;
  width: auto;
  display: block;
}

/* =========================
   LAYOUT WRAPPER
   ========================= */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 98px 18px 110px;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  background:
    radial-gradient(900px 700px at 70% 10%, rgba(90, 11, 23, .55), rgba(0, 0, 0, .22) 60%),
    rgba(0, 0, 0, .18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
  margin-bottom: 30px;
}

.heroInner { position: relative; }

.title {
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(30px, 4vw, 52px);
  margin: 0 0 10px;
  line-height: 1.05;
}

.titleLink {
  color: var(--gold2);
  display: inline-block;
  transition: opacity .2s;
}
.titleLink:hover { opacity: .8; }

.sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.heroRow {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

/* =========================
   CONTROLS (Toggle, Filter)
   ========================= */
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  user-select: none;
}

.switch {
  width: 46px;
  height: 26px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
  position: relative;
  cursor: pointer;
}

.knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  transition: transform .2s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

.switch.on .knob { transform: translateX(20px); }

.filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  align-items: center;
}

.select, .search {
  width: 100%;
  padding: 11px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
  color: rgba(247, 241, 230, .92);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.select:focus, .search:focus { border-color: var(--gold); }

.chip {
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 99px;
  border: 1px solid rgba(247, 241, 230, .14);
  background: rgba(0, 0, 0, .18);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* =========================
   ACCORDION SECTIONS
   ========================= */
.section {
  margin-top: 18px;
  border: 1px solid rgba(247, 241, 230, .12);
  border-radius: 18px;
  background: rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: background .2s;
}

.sectionHead {
  padding: 16px 18px 14px;
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, .16);
  cursor: pointer; /* Critical for iPhone */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sectionTitle {
  margin: 0;
  font-family: "Playfair Display", serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold2);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none; /* Let clicks pass to Head */
}

/* Arrow */
.sectionTitle::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gold);
  transition: transform 0.3s ease;
  opacity: 0.8;
}

/* --- THE FIX: STRICT VISIBILITY --- */

/* 1. Always Hidden by default */
.items {
  display: none !important; /* Force hide if no class */
  padding: 6px 8px 10px;
}

/* 2. Shown ONLY when 'open' class is present */
.section.open .items,
.recommendation-box.open .items {
  display: block !important; /* Force show if class exists */
  animation: fadeIn 0.3s ease forwards;
}

/* 3. Arrow Rotation */
.section.open .sectionTitle::after {
  transform: rotate(180deg);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   CHEF'S RECOMMENDATION BOX
   ========================= */
.recommendation-box {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.6));
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.recommendation-header {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* Mobile Fixes */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.recommendation-title {
  font-family: "Playfair Display", serif;
  color: var(--gold2);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* Rec Box Visibility Logic */
.recommendation-box .items {
  display: none;
}
.recommendation-box.open .items {
  display: block;
}

.gold-badge {
  background: var(--gold);
  color: #000;
  font-size: 0.65em;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* =========================
   MENU ITEMS
   ========================= */
.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(247, 241, 230, .1);
  align-items: start;
}
.item:last-child { border-bottom: none; }

.pick {
  margin-top: 2px;
  width: 18px; height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.name {
  font-weight: 600;
  font-size: 14px;
  color: rgba(247, 241, 230, .92);
  line-height: 1.3;
}

.desc {
  grid-column: 2/4;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(247, 241, 230, .66);
  line-height: 1.5;
  display: block;
}
.desc.hidden { display: none; }

.price {
  font-weight: 600;
  color: var(--gold2);
  white-space: nowrap;
  text-align: right;
}

.hiddenItem { display: none !important; }

/* =========================
   FOOTER & NOTES
   ========================= */
.noteBlock {
  margin-top: 18px;
  border: 1px solid rgba(212, 175, 55, .16);
  background: rgba(212, 175, 55, .06);
  border-radius: 16px;
  padding: 14px 16px;
  color: rgba(247, 241, 230, .82);
  font-size: 13px;
  line-height: 1.6;
}

.noteTitle {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(243, 215, 122, .92);
}

.footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(247, 241, 230, .55);
  font-size: 12px;
}

/* =========================
   CALCULATOR BAR
   ========================= */
.calcBar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px;
  background: rgba(6, 5, 6, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
}

.calcInner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.calcLeft {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.calcTitle {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold2);
}
.calcMeta { font-size: 13px; color: var(--fg); }
.total { font-weight: 700; color: var(--gold); }

.calcBtns { display: flex; gap: 8px; }

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .26);
  background: rgba(0, 0, 0, .4);
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: rgba(212, 175, 55, .15); }

.btn.primary {
  border-color: rgba(243, 215, 122, .5);
  background: linear-gradient(135deg, #f7e7a6, #d4af37 30%, #b8891a);
  color: #120f10;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(212, 175, 55, .2);
}
.btn.primary:hover { filter: brightness(1.1); }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 720px) {
  .filters { grid-template-columns: 1fr; }
  .chip { justify-content: flex-start; }
  .wrap { padding-top: 90px; }
  .sectionHead { align-items: center; }
  .calcInner { justify-content: space-between; }
}

@media (max-width: 480px) {
  .title { font-size: 32px; }
  .sectionTitle { font-size: 16px; }
  .btn.ghost { display: none; }
}