:root {
  --bg-900: #0f0c09;
  --bg-850: #17120d;
  --bg-800: #21180f;
  --card: rgba(255, 252, 246, 0.92);
  --card-border: rgba(117, 90, 46, 0.26);
  --text-strong: #f5ecdc;
  --text-body: #e6d9c3;
  --ink: #22170c;
  --accent: #d4b172;
  --accent-2: #bb8f4a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-strong);
  background: radial-gradient(circle at 8% 12%, #4b3420 0%, transparent 38%),
    radial-gradient(circle at 90% 88%, #2b2015 0%, transparent 42%),
    linear-gradient(145deg, var(--bg-900), var(--bg-800));
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.site-shell {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.6rem;
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(212, 177, 114, 0.25);
  border-radius: 999px;
  background: rgba(8, 6, 4, 0.72);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text-strong);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 42px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.main-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  border-color: rgba(212, 177, 114, 0.34);
  background: rgba(212, 177, 114, 0.1);
  color: #fff8ea;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  border: 1px solid rgba(212, 177, 114, 0.34);
  border-radius: 12px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  min-height: min(54vh, 500px);
  display: flex;
  align-items: center;
  margin-bottom: 1.3rem;
}

.hero.compact {
  min-height: min(48vh, 430px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(13, 10, 8, 0.58), rgba(13, 10, 8, 0.72)),
    linear-gradient(130deg, #56402a, #2a1d12 58%, #17110c);
  filter: saturate(1.04);
  transform: scale(1.02);
}

.hero-bg.cafeteria {
  background: linear-gradient(145deg, rgba(16, 12, 9, 0.56), rgba(16, 12, 9, 0.74)),
    linear-gradient(120deg, #5e4020, #362513 58%, #15100a);
}

.hero-bg.restaurant {
  background: linear-gradient(145deg, rgba(11, 8, 6, 0.58), rgba(11, 8, 6, 0.76)),
    linear-gradient(120deg, #4b3620, #2f2218 58%, #130f0b);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2.4rem));
  margin: 0 auto;
  text-align: center;
  padding-top: 0.8rem;
}

.hero-logo {
  width: min(430px, 74vw);
  height: auto;
  margin: 0 auto 0.8rem;
  display: block;
}

.kicker {
  margin: 0 0 0.3rem;
  font-size: 0.83rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #edd4a4;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--ink);
}

h3 {
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
}

.hero p {
  width: min(640px, 100%);
  margin: 0.72rem auto 0;
  color: #f6ead5;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d1309;
}

.btn-primary:hover {
  background: #e2c286;
  border-color: #e2c286;
}

.btn-secondary {
  background: rgba(255, 251, 243, 0.08);
  border-color: rgba(255, 244, 223, 0.3);
  color: #fff0d0;
}

.btn-secondary:hover {
  background: rgba(255, 251, 243, 0.14);
}

.section {
  margin-top: 1.3rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
}

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

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

.location-card,
.feature {
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.location-type,
.label {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: rgba(60, 41, 20, 0.72);
}

.location-copy,
.feature p,
.split p,
.meta li {
  color: #3a2815;
}

.location-copy,
.feature p,
.split p {
  margin: 0.72rem 0 0;
  line-height: 1.62;
}

.meta {
  list-style: none;
  margin: 0.78rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
  font-size: 0.92rem;
}

.card-actions {
  margin-top: 1rem;
}

.split {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 211, 179, 0.3);
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(255, 243, 222, 0.94));
}

.split h3 {
  color: #26190f;
}

.menu-shell {
  display: grid;
  gap: 1rem;
}

.menu-meta {
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 177, 114, 0.25);
  background: rgba(16, 12, 8, 0.7);
  padding: 0.9rem 1rem;
}

.menu-meta-title {
  margin: 0;
  color: #f0d8aa;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.menu-meta p {
  margin: 0.35rem 0 0;
  color: #f2e8d6;
}

.menu-board {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 30, 8, 0.32);
  background: #f5a623;
  color: #1d1409;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.menu-board-grid {
  display: grid;
  gap: 1rem;
}

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

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

.menu-category h2,
.menu-category h3 {
  margin: 0 0 0.55rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #120c06;
  font-weight: 800;
}

.menu-category h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

.menu-category h3 {
  margin-top: 0.85rem;
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
}

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.menu-item-main {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: baseline;
}

.menu-item-main span:first-child {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.menu-item-main span:last-child {
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.15;
}

.menu-item-desc {
  margin: 0.12rem 0 0;
  font-size: 0.96rem;
  line-height: 1.22;
}

.menu-table-wrap {
  overflow-x: auto;
}

.menu-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.menu-table th,
.menu-table td {
  padding: 0.22rem 0.24rem;
  border-bottom: 1px solid rgba(34, 22, 8, 0.18);
  font-weight: 700;
}

.menu-table th {
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.menu-table th:first-child,
.menu-table td:first-child {
  text-align: left;
}

.menu-table th:not(:first-child),
.menu-table td:not(:first-child) {
  text-align: right;
}

.menu-lang-badge {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.46rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  color: #111;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(
      to bottom,
      #f6e10c 0,
      #f6e10c 14px,
      #e41420 14px,
      #e41420 28px
    );
}

/* Terram-style menu page for Flamat Restaurant */
.restaurant-page {
  color: #2f2720;
  background: #ecebe9;
}

.restaurant-page .site-shell {
  width: min(1200px, calc(100% - 2rem));
  padding: 0.95rem 0 2rem;
}

.restaurant-page .terram-menu-section {
  margin-top: 0;
  display: grid;
  gap: 0.52rem;
}

.terram-menu-toolbar {
  position: sticky;
  top: 0.72rem;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.78rem;
  min-height: 68px;
  padding: 0.66rem 1rem;
  border: 1px solid #d7d1c8;
  border-radius: 999px;
  background: rgba(244, 241, 235, 0.95);
  box-shadow: 0 6px 14px rgba(47, 35, 21, 0.08);
  backdrop-filter: blur(4px);
}

.terram-menu-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4e3f2e;
  text-decoration: none;
  font-size: 0.96rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.terram-menu-logo {
  justify-self: center;
  width: auto;
  height: 31px;
  display: block;
  opacity: 0.9;
  filter: grayscale(1) brightness(0.3);
}

.terram-menu-tools {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.82rem;
}

.terram-menu-phone {
  font-size: 0.98rem;
  color: #4f402d;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terram-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.terram-lang span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 999px;
  border: 1px solid #d8d0c4;
  color: #6d5d49;
  font-size: 0.74rem;
  font-weight: 700;
}

.terram-lang span.is-active {
  border-color: #4f3d27;
  background: #4f3d27;
  color: #f8f1e3;
}

.terram-menu-panel {
  margin: 0;
  border-left: 1px solid #d7d1c8;
  border-right: 1px solid #d7d1c8;
  background: #f1efeb;
  padding: 1.05rem 1.3rem 0.7rem;
  box-shadow: none;
  border-radius: 0;
}

.terram-menu-panel:first-of-type {
  border-top: 1px solid #d7d1c8;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.terram-menu-panel:last-of-type {
  border-bottom: 1px solid #d7d1c8;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding-bottom: 1.1rem;
}

.terram-menu-panel-label {
  margin: 0 0 0.72rem;
  color: #8a7554;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.terram-menu-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem;
}

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

.terram-menu-col + .terram-menu-col {
  border-left: 0;
  padding-left: 0;
}

.terram-menu-col h2,
.terram-menu-col h3 {
  margin: 0 0 0.4rem;
  color: #7d6746;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terram-menu-col h3 {
  margin-top: 1rem;
}

.terram-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.terram-item {
  padding: 0.46rem 0 0.48rem;
  border-bottom: 1px solid #e2ddd5;
}

.terram-item:last-child {
  border-bottom: 0;
}

.terram-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.9rem;
}

.terram-item-name {
  color: #31261c;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.24rem, 1.45vw, 1.48rem);
  font-weight: 500;
  line-height: 1.2;
}

.terram-item-price {
  color: #866939;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.terram-item-note {
  margin: 0.14rem 0 0;
  color: #776754;
  font-size: 0.8rem;
  line-height: 1.32;
}

.terram-items-tight .terram-item {
  padding: 0.38rem 0;
}

.terram-items-tight .terram-item-name {
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
}

.restaurant-page .split {
  border: 1px solid #ddd2c3;
  background: #f5f1ea;
}

.restaurant-page .split p,
.restaurant-page .label {
  color: #4a3a28;
}

.restaurant-page .split h3 {
  color: #2f2418;
}

.restaurant-page .site-footer {
  border-top: 1px solid #d8ccbb;
  color: #50402e;
}

.restaurant-page .site-footer a {
  color: #795826;
}

.site-footer {
  margin-top: 1.3rem;
  padding: 1.05rem 0 0.25rem;
  border-top: 1px solid rgba(221, 190, 140, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: rgba(244, 232, 211, 0.9);
}

.site-footer p {
  margin: 0;
}

.footer-col {
  display: grid;
  gap: 0.22rem;
}

.site-footer a {
  color: #f2d59d;
  text-decoration: none;
}

.contact-link {
  font-weight: 700;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.95rem 0.62rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #121212;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #1d1d1d;
}

.whatsapp-float-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #25d366;
  background-image: url("./assets/whatsapp-logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  color: transparent;
  display: inline-block;
  font-size: 0;
  line-height: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .menu-board-grid-3,
  .menu-board-grid-2 {
    grid-template-columns: 1fr;
  }

  .terram-menu-toolbar {
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
  }

  .terram-menu-logo {
    justify-self: end;
  }

  .terram-menu-tools {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }

  .terram-menu-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .terram-menu-col + .terram-menu-col {
    border-left: 0;
    border-top: 1px solid #e3dbcf;
    padding-left: 0;
    padding-top: 0.9rem;
  }
}

@media (max-width: 800px) {
  .site-shell {
    width: min(1180px, calc(100% - 1.2rem));
  }

  .brand img {
    width: auto;
    height: 36px;
  }

  .hero-logo {
    width: min(340px, 86vw);
    height: auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    background: rgba(12, 9, 6, 0.94);
    border: 1px solid rgba(212, 177, 114, 0.28);
    padding: 0.5rem;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 50vh;
  }

  .restaurant-page .site-shell {
    width: min(1200px, calc(100% - 1.1rem));
  }

  .terram-menu-toolbar {
    padding: 0.64rem 0.8rem;
  }

  .terram-menu-logo {
    height: 31px;
  }

  .terram-menu-phone {
    font-size: 0.95rem;
  }

  .terram-lang span {
    width: 30px;
    height: 30px;
  }

  .terram-menu-panel {
    border-radius: 0;
    padding: 1rem 0.9rem 1.2rem;
  }

  .terram-menu-panel:first-of-type {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .terram-menu-panel:last-of-type {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .terram-item-name {
    font-size: clamp(1.1rem, 4.7vw, 1.34rem);
  }

  .terram-item-price {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
  }

  .terram-item-note {
    font-size: 0.81rem;
  }

  .whatsapp-float {
    right: 0.72rem;
    bottom: 0.72rem;
    padding: 0.58rem 0.86rem 0.58rem 0.64rem;
    font-size: 0.84rem;
  }

  .whatsapp-float-icon {
    width: 26px;
    height: 26px;
    font-size: 0.62rem;
  }
}
