/* ===== TERA MIRANDA / QUARTERDECK DYNAMIC MENU ===== */

:root {
  --tm-navy: #0f2740;
  --tm-navy-soft: #173a59;
  --tm-teal: #1d5f86;
  --tm-sky: #7ec7ea;
  --tm-gold: #f6b11a;
  --tm-gold-hover: #ffe07a;
  --tm-gold-bright: #ffd25a;
  --tm-gold-soft: #f3bf48;
  --tm-white: #fffdf8;
  --tm-ink-soft: rgba(255, 253, 248, 0.94);
  --tm-line: rgba(255, 255, 255, 0.30);
  --tm-panel-border: rgba(162, 220, 245, 0.24);
  --tm-shell-bg: rgba(15, 39, 64, 0.78);
  --tm-shell-highlight: rgba(126, 199, 234, 0.10);
  --tm-danger: #c93b32;
  --tm-shadow: 0 10px 24px rgba(7, 18, 30, 0.18);
  --tm-shadow-lg: 0 18px 42px rgba(7, 18, 30, 0.24);
  --tm-gap: 26px;
  --tm-paint-streak: url("https://teramiranda.com/wp-content/uploads/2026/03/quarterdeck-menu-paint-streak.png");
}

/* Shell */
.tm-menu-shell {
  position: relative;
  color: var(--tm-white);
  width: min(1720px, calc(100vw - 40px));
  max-width: 1720px;
  margin: 0 auto;
  padding: 34px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, var(--tm-shell-highlight), rgba(255,255,255,0) 22%),
    var(--tm-shell-bg);
  border: 1px solid rgba(167, 222, 243, 0.22);
  border-radius: 28px;
  box-shadow: var(--tm-shadow-lg);
  overflow: hidden;
  font-family: "Montserrat", sans-serif !important;
}

.tm-menu-shell *,
.tm-menu-shell *::before,
.tm-menu-shell *::after {
  box-sizing: border-box;
}

.tm-menu-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0) 20%,
      rgba(255,255,255,0.03) 50%,
      rgba(255,255,255,0) 80%,
      rgba(255,255,255,0.035)
    );
  pointer-events: none;
}

.tm-menu-tabs,
.tm-menu-tab-buttons {
  position: relative;
  z-index: 2;
}

/* Force body font */
.tm-menu-shell,
.tm-menu-shell p,
.tm-menu-shell li,
.tm-menu-shell span,
.tm-menu-shell div,
.tm-menu-shell a,
.tm-menu-shell button,
.tm-menu-shell input,
.tm-menu-shell textarea,
.tm-menu-shell select,
.tm-menu-shell .tm-menu-item-description,
.tm-menu-shell .tm-menu-simple-list li,
.tm-menu-shell .tm-side-list li,
.tm-menu-shell .tm-menu-bucket-list p,
.tm-menu-shell .tm-menu-kicker,
.tm-menu-shell .tm-menu-legal-pill p {
  font-family: "Montserrat", sans-serif !important;
}

/* Tabs */
.tm-menu-tab-buttons {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 34px;
}

.tm-menu-tab-btn,
.tm-menu-tab-btn:link,
.tm-menu-tab-btn:visited,
button.tm-menu-tab-btn,
.elementor-widget-container .tm-menu-tab-btn,
.elementor .tm-menu-tab-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(255, 210, 90, 0.38) !important;
  width: 190px;
  min-width: 190px;
  text-align: center;
  background: rgba(255, 210, 90, 0.18) !important;
  color: var(--tm-white) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 20px;
  line-height: 1;
  padding: 18px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--tm-shadow);
  text-decoration: none !important;
  font-family: "Montserrat", sans-serif !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.tm-menu-tab-btn:hover,
.tm-menu-tab-btn:focus,
.tm-menu-tab-btn:focus-visible,
button.tm-menu-tab-btn:hover,
button.tm-menu-tab-btn:focus,
button.tm-menu-tab-btn:focus-visible,
.elementor .tm-menu-tab-btn:hover,
.elementor .tm-menu-tab-btn:focus,
.elementor .tm-menu-tab-btn:focus-visible {
  background: var(--tm-gold-hover) !important;
  border-color: var(--tm-gold-hover) !important;
  color: var(--tm-navy) !important;
  outline: none !important;
  transform: translateY(-2px);
}

.tm-menu-tab-btn.is-active,
.tm-menu-tab-btn[aria-selected="true"],
button.tm-menu-tab-btn.is-active,
.elementor .tm-menu-tab-btn.is-active {
  background: var(--tm-gold) !important;
  border-color: var(--tm-gold) !important;
  color: var(--tm-navy) !important;
}

.tm-menu-tab-btn.is-active:hover,
.tm-menu-tab-btn[aria-selected="true"]:hover,
button.tm-menu-tab-btn.is-active:hover,
.elementor .tm-menu-tab-btn.is-active:hover {
  background: var(--tm-gold-hover) !important;
  border-color: var(--tm-gold-hover) !important;
  color: var(--tm-navy) !important;
}

.tm-menu-tab-panel {
  display: none;
}

.tm-menu-tab-panel.is-active {
  display: block;
}

/* Generic grids */
.tm-menu-grid {
  display: grid;
  gap: var(--tm-gap);
}

.tm-menu-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-menu-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-menu-col {
  min-width: 0;
}

.tm-menu-full-row {
  margin-top: var(--tm-gap);
}

/* Food layout */
.tm-menu-food-layout {
  display: block;
}

.tm-menu-food-layout .tm-menu-grid.tm-menu-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tm-gap);
  align-items: start;
}

.tm-menu-food-layout .tm-menu-col {
  min-width: 0;
  display: block;
}

.tm-menu-food-layout .tm-menu-category {
  width: 100%;
  margin: 0 0 var(--tm-gap) 0;
}

.tm-menu-food-layout .tm-menu-category:last-child {
  margin-bottom: 0;
}

.tm-menu-food-layout .tm-menu-full-row {
  display: block;
  margin-top: var(--tm-gap);
}

.tm-menu-food-layout .tm-menu-category--handhelds {
  width: 100%;
  margin: 0;
}

/* Drinks layout */
.tm-menu-drinks-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "cocktails cocktails"
    "beers beers"
    "wines buckets";
  gap: var(--tm-gap);
  align-items: start;
}

.tm-place-cocktails {
  grid-area: cocktails;
}

.tm-place-beers {
  grid-area: beers;
}

.tm-place-wines {
  grid-area: wines;
}

.tm-place-buckets {
  grid-area: buckets;
  align-self: start;
}

.tm-place-wines {
  align-self: start;
}

/* Cards */
.tm-menu-category {
  margin: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(31, 101, 143, 0.64), rgba(16, 63, 96, 0.70));
  border: 1px solid var(--tm-panel-border);
  border-radius: 22px;
  padding: 30px 28px 26px;
  box-shadow: var(--tm-shadow);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tm-menu-category-title {
  margin: 0 0 20px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  font-size: clamp(32px, 2.5vw, 52px);
  line-height: 0.95;
  color: var(--tm-navy);
  background-image: var(--tm-paint-streak);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  font-family: "CS Gordon Vintage Rough", "Times New Roman", serif !important;
}

.tm-menu-kicker {
  margin: -6px 0 22px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--tm-gold-bright);
}

/* Items */
.tm-menu-item {
  margin-bottom: 20px;
}

.tm-menu-item:last-child {
  margin-bottom: 0;
}

.tm-menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px dotted var(--tm-line);
  padding-bottom: 6px;
  margin-bottom: 7px;
}

.tm-menu-item-title {
  margin: 0;
  color: var(--tm-gold-bright);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.025em;
  font-size: clamp(18px, 1.12vw, 28px);
  line-height: 1.02;
  font-family: "Montserrat", sans-serif !important;
}

.tm-menu-item-price,
.tm-inline-price {
  white-space: nowrap;
  color: var(--tm-gold-bright);
  font-weight: 900;
  font-size: clamp(18px, 1.02vw, 26px);
  line-height: 1;
  font-family: "Montserrat", sans-serif !important;
}

.tm-inline-price {
  display: inline-block;
  margin-left: 10px;
}

.tm-menu-item-description {
  margin: 0;
  color: var(--tm-ink-soft);
  font-size: clamp(15px, 0.92vw, 22px);
  line-height: 1.42;
  max-width: 44ch;
}

.tm-menu-item-description a {
  color: var(--tm-white);
  text-decoration: underline;
}

/* 2-column internal layouts */
.tm-menu-two-col-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tm-gap);
  align-items: start;
}

.tm-menu-two-col-items-col {
  min-width: 0;
}

/* Handhelds */
.tm-menu-category--handhelds {
  align-self: start;
}

.tm-menu-three-col-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tm-gap);
}

.tm-menu-three-col-items-col {
  min-width: 0;
}

/* Sides + Beers split lists */
.tm-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.tm-side-col {
  position: relative;
  padding: 4px 8px 0;
}

.tm-side-col + .tm-side-col {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 22px;
}

.tm-side-title {
  margin: 0 0 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  color: var(--tm-gold-bright);
  font-size: clamp(22px, 1.15vw, 28px);
  line-height: 1.05;
  font-family: "Montserrat", sans-serif !important;
}

.tm-side-title-label,
.tm-side-title-price {
	display: block;
}

.tm-side-title-price {
		margin-top: 2px;
	font-size: 0.8em;
	letter-spacing: 0;
}

.tm-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-side-list li {
  margin: 0 0 7px;
  text-align: center;
  color: var(--tm-white);
  font-size: clamp(16px, 0.95vw, 22px);
  line-height: 1.26;
}

.tm-side-list li {
    text-align: center;
}

.tm-side-list .tm-inline-price {
    display: block;
    margin-top: 2px;
}

/* Make beers center cleanly */
.tm-place-beers .tm-side-col {
  text-align: center;
}

.tm-place-beers .tm-side-list li {
  text-align: center;
}

.tm-place-beers .tm-side-list strong {
  color: var(--tm-gold-bright);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-family: "Montserrat", sans-serif !important;
}

/* Simple lists */
.tm-menu-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-menu-simple-list li {
  margin: 0 0 12px;
  color: var(--tm-white);
  font-size: clamp(16px, 0.95vw, 22px);
  line-height: 1.34;
}

.tm-menu-simple-list strong,
.tm-menu-bucket-list strong {
  color: var(--tm-gold-bright);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-family: "Montserrat", sans-serif !important;
}

/* Wines and buckets */
.tm-menu-bucket-list p {
  margin: 0 0 12px;
  color: var(--tm-white);
  font-size: clamp(16px, 0.95vw, 22px);
  line-height: 1.3;
  text-align: center;
}

/* Legal */
.tm-menu-legal {
  margin-top: var(--tm-gap);
}

.tm-menu-legal-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: var(--tm-gap);
  align-items: stretch;
}

.tm-menu-legal-pill {
  background: rgba(255, 210, 90, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 24px;
  padding: 20px 22px;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--tm-shadow);
}

.tm-menu-legal-pill p {
  margin: 0;
  color: var(--tm-navy);
  font-size: clamp(14px, 0.88vw, 18px);
  line-height: 1.38;
  font-weight: 800;
  text-transform: uppercase;
}

.tm-menu-legal-pill--alert p {
  color: var(--tm-danger);
}

/* Responsive */
@media (max-width: 1400px) {
  .tm-menu-shell {
    width: min(1640px, calc(100vw - 30px));
    padding: 28px;
  }

  :root {
    --tm-gap: 22px;
  }

  .tm-menu-category {
    padding: 24px 22px 22px;
  }
}

@media (max-width: 1180px) {
  .tm-menu-food-layout .tm-menu-grid.tm-menu-grid--3,
  .tm-menu-drinks-layout,
  .tm-menu-two-col-items,
  .tm-menu-three-col-items,
  .tm-side-grid,
  .tm-menu-legal-row {
    grid-template-columns: 1fr;
  }

  .tm-menu-drinks-layout {
    grid-template-areas:
      "cocktails"
      "beers"
      "wines"
      "buckets";
  }

  .tm-side-col + .tm-side-col {
    border-left: 0;
    padding-left: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  .tm-menu-shell {
    width: calc(100vw - 20px);
    padding: 16px;
    border-radius: 22px;
  }

  .tm-menu-tab-buttons {
    gap: 12px;
    flex-wrap: wrap;
  }

  .tm-menu-tab-btn,
  .tm-menu-tab-btn:link,
  .tm-menu-tab-btn:visited,
  button.tm-menu-tab-btn {
    width: 100%;
    min-width: 0;
  }

  .tm-menu-category {
    border-radius: 20px;
    padding: 18px 16px;
  }

  .tm-menu-category-title {
    min-height: 74px;
    padding: 12px 14px 16px;
    background-size: cover;
  }
}