:root {
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --whatsapp-color: #25d366;
  --text-color: #333;
  --text-light: #fff;
  --bg-dark: rgba(0, 0, 0, 0.78);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  --border-radius: 10px;
  --topbar-height: 60px;
  --footer-height: 56px;
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
}

body {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

#background-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--secondary-color);
}

#slideshow-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease-in-out;
}

#slideshow-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

#background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.page-main {
  flex: 1;
  padding-top: var(--topbar-height);
  padding-bottom: calc(var(--footer-height) + 14px);
  overflow-y: auto;
  height: calc(100vh - var(--topbar-height) - var(--footer-height));
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-dark);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-icon {
  color: var(--text-light);
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.profile-icon:hover {
  background: rgba(52, 152, 219, 0.95);
}

.menu-toggle {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
}

.desktop-nav {
  display: none;
  gap: 0.7rem;
}

.desktop-link {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

.desktop-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(31, 43, 56, 0.98);
  padding: 0.85rem 1rem;
}

.mobile-nav.open {
  display: grid;
  gap: 0.4rem;
}

.mobile-nav a {
  color: #fff;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-fullscreen {
  position: relative;
  min-height: 26dvh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-fullscreen img {
  width: 100%;
  height: 42dvh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 0 1rem 1.2rem;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.hero-overlay h1 {
  font-size: clamp(1.8rem, 7vw, 3rem);
  margin-bottom: 0.2rem;
}

.main-content {
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.floating-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  width: min(1280px, 100%);
}

.floating-btn {
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  background: var(--bg-dark);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-light);
  transition: var(--transition);
  box-shadow: var(--shadow);
  opacity: 1;
  animation: btnReveal 0.45s ease both;
}

@keyframes btnReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-btn i {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.floating-btn span {
  font-size: 0.95rem;
  font-weight: 600;
}

.floating-btn:hover {
  transform: translateY(-3px);
  background: rgba(52, 152, 219, 0.95);
}

.page-card-btn {
  text-align: center;
}

.floating-btn:nth-child(1) { animation-delay: 0.05s; }
.floating-btn:nth-child(2) { animation-delay: 0.12s; }
.floating-btn:nth-child(3) { animation-delay: 0.19s; }
.floating-btn:nth-child(4) { animation-delay: 0.26s; }
.floating-btn:nth-child(5) { animation-delay: 0.33s; }
.floating-btn:nth-child(6) { animation-delay: 0.40s; }
.floating-btn:nth-child(7) { animation-delay: 0.47s; }

.content-section {
  width: min(860px, 94%);
  margin: 0 auto 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.content-section.home-cards-shell {
  width: min(1280px, 96%);
  background: transparent;
  box-shadow: none;
  padding: 0.4rem 0 0.8rem;
}

.home-cards-shell .floating-buttons {
  width: 100%;
  max-width: calc(5 * 220px + 4 * 0.9rem);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: center;
}

.content-separator {
  border: 0;
  border-top: 1px solid #d4dde6;
  margin: 1.2rem 0;
}

.content-form-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.content-form {
  margin-top: 0.35rem;
}

.auth-wrap {
  max-width: 560px;
  margin: 1rem auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.auth-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-links {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.2rem;
}

.auth-links a {
  color: var(--primary-dark);
  font-weight: 600;
}

.auth-note {
  margin-top: 0.7rem;
  color: #4f5b66;
}

.panel-form {
  display: grid;
  gap: 0.85rem;
}

.panel-form label {
  display: grid;
  gap: 0.35rem;
}

.panel-form input,
.panel-form button,
.panel-form textarea,
.panel-form select {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #ccd4dd;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}

.panel-form button {
  border: 0;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.panel-form button:hover {
  background: var(--primary-dark);
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-height);
  background: var(--bg-dark);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  list-style: none;
  min-width: 180px;
  background: #213243;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  overflow: hidden;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  color: #fff;
  padding: 10px 12px;
}

.dropdown-menu a:hover {
  background: rgba(52, 152, 219, 0.95);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.email-icon {
  background: var(--primary-color);
}

.whatsapp-icon {
  background: #25d366;
}

.shop-icon {
  background: #ff6b35;
}

.social-tiktok { background: #111827; }
.social-facebook { background: #1877f2; }
.social-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.social-x { background: #111111; }
.social-linkedin { background: #0a66c2; }
.social-google { background: #db4437; }
.maps-icon { background: #16a34a; }

.reviews-trigger {
  border: 0;
  cursor: pointer;
  background: #f39c12;
}

.footer-icon.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.modal.open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.modal-content {
  position: relative;
  width: min(94%, 1080px);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  max-height: 78vh;
  overflow: auto;
}

.modal-page-link {
  display: inline-flex;
  margin-top: 0.8rem;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #3498db;
  color: #fff;
  font-weight: 600;
}

.modal-page-html {
  margin-top: 0.75rem;
  color: #1f2937;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.modal-page-html img,
.modal-page-html video {
  max-width: 100%;
  height: auto;
}

.modal-contact-form {
  margin-top: 0.6rem;
}

.menu-design-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.menu-design-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cdd6e1;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
}

.menu-design-switch button.is-active {
  background: #3498db;
  border-color: #3498db;
  color: #fff;
}

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

.menu-category-block {
  display: grid;
  gap: 0.75rem;
}

.menu-category-block h4 {
  font-size: 1.05rem;
  color: #0f172a;
}

.menu-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.menu-product-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  overflow: hidden;
  border: 1px solid #ecdcc3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8, #fff7ec);
  box-shadow: 0 8px 20px rgba(34, 30, 16, 0.08);
  padding: 0.7rem;
}

.menu-product-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
}

.menu-product-body {
  display: grid;
  gap: 0.36rem;
}

.menu-product-category {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7a5121;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.menu-product-body h5 {
  font-size: 1rem;
  color: #2f2618;
}

.menu-product-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-product-line .menu-line-dots {
  flex: 1;
  border-bottom: 1px dashed #d0b88e;
  transform: translateY(-3px);
}

.menu-product-line strong {
  color: #5d2f11;
  font-size: 0.95rem;
}

.menu-product-body p {
  font-size: 0.84rem;
  color: #54493a;
}

.menu-product-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.menu-product-footer strong {
  color: #111827;
}

.menu-product-footer a {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: #9a3412;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

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

.menu-restaurant-section {
  background: #fff;
  border: 1px solid #edd9bb;
  border-radius: 16px;
  padding: 0.8rem;
}

.menu-restaurant-section h4 {
  color: #733a0e;
  margin-bottom: 0.42rem;
  font-size: 1.08rem;
}

.catalogue-modal {
  display: grid;
  gap: 0.85rem;
}

.catalogue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.catalogue-tabs button {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #f8fbfe;
  color: #0f172a;
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.catalogue-tabs button.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.catalogue-panel {
  display: none;
}

.catalogue-panel.is-active {
  display: block;
}

.catalogue-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.catalogue-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.catalogue-product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.catalogue-product-body {
  display: grid;
  gap: 0.42rem;
  padding: 0.78rem;
}

.catalogue-product-body h5 {
  color: #0f172a;
  font-size: 0.98rem;
}

.catalogue-product-body p {
  color: #475569;
  font-size: 0.83rem;
}

.catalogue-product-footer {
  display: flex;
  justify-content: flex-end;
}

.catalogue-product-footer strong {
  color: #0f172a;
}

.front-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.front-gallery-item {
  position: relative;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
}

.front-gallery-item img,
.front-gallery-item video {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.front-gallery-title {
  display: block;
  padding: 0.52rem 0.65rem 0.7rem;
  font-size: 0.83rem;
  font-weight: 600;
}

.front-gallery-badge {
  position: absolute;
  margin: 8px;
  z-index: 1;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
}

.media-modal-content img,
.media-modal-content video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.reviews-modal-content {
  max-height: 76vh;
  overflow: auto;
}

.reviews-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.review-item {
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 0.72rem;
  background: #fbfcfe;
}

.review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.modal-close {
  float: right;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .floating-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-cards-shell .floating-buttons {
    grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  }
}

@media (min-width: 900px) {
  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .page-main {
    padding-top: var(--topbar-height);
    padding-bottom: calc(var(--footer-height) + 8px);
  }

  .hero-fullscreen {
    min-height: 30dvh;
  }

  .hero-fullscreen img {
    height: 30dvh;
  }

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

  .home-cards-shell .floating-buttons {
    grid-template-columns: repeat(auto-fit, minmax(200px, 220px));
  }
}

@media (max-width: 640px) {
  .footer {
    height: auto;
    min-height: var(--footer-height);
    padding: 6px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .footer-left {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .footer-right::-webkit-scrollbar {
    height: 4px;
  }

  .footer-right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
  }

  .footer-icon {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .menu-product-card {
    grid-template-columns: 1fr;
  }

  .menu-product-card img {
    width: 100%;
    height: 160px;
  }
}
