@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular.ttf") format("ttf");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.ttf") format("ttf");
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary: #1a1a1a;
  --secondary: #2d2d2d;
  --accent: #d4af37;
  --text: #f0f0f0;
  --light: #ffffff;
}

body {
  background-color: var(--primary);
  color: var(--text);
  font-family: "Vazirmatn", "Poppins", sans-serif;
  line-height: 1.8;
}

.navbar {
  background-color: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgb(26 26 26 / 79%) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent) !important;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.nav-tabs .nav-link.active:hover {
  color: var(--text) !important;
  border-color: transparent;
}
.nav-tabs .nav-link.active {
  background-color: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
}
.nav-tabs .nav-link:hover {
  color: var(--accent) !important;
  border-color: transparent;
}

.hero {
  height: 100vh;
}
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100%;
}

.hero .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.4rem;
  max-width: 600px;
  font-weight: 300;
  margin: 1rem auto;
  color: #ccc;
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  .hero p {
    font-size: 1.15rem;
    max-width: 100%;
  }
  .navbar {
    padding: 0.5rem 0;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--accent);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

section[id] {
  scroll-margin-top: 35px;
}

.menu-item-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
  min-width: 214px;
  max-width: 260px;
}
@media (min-width: 576px) {
  .menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
  }
}

.menu-item-img {
  background-color: #f0f0f0;
  color: #333;
}

.menu-item-img img {
  height: 100%;
  object-fit: cover;
  width: 100% !important;
}

#hot-drinks .menu-item-img,
#tea-and-herbs .menu-item-img,
#sandwich .menu-item-img,
#cake .menu-item-img {
  height: 250px;
}

#health-menu .menu-item-img,
#cold-drinks .menu-item-img {
  height: 260px;
}

.menu-item-title {
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
}

.menu-item-en {
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  font-weight: 500;
}

.menu-item-name-wrapper {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-gold {
  color: var(--accent) !important; /* #d4af37 */
  font-size: 0.85rem;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.menu-item-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #aaa !important;
}

.menu-item-card-inner {
  display: flex;
  flex-direction: column;
}

@media (max-width: 575px) {
  .menu-item-card {
    border: 1px solid #333;
    min-width: min-content;
    max-width: 100%;
  }
  .menu-item-card-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .menu-item-card .menu-item-img {
    position: relative;
    height: 120px;
    flex-shrink: 0;
    align-self: stretch;
  }
  .menu-item-card .menu-item-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0px,
      transparent 30px
    );
  }
  .menu-item-card .menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .menu-item-body {
    padding: 0.7rem 1rem 0 1rem;
    text-align: right;
  }

  .menu-item-name-wrapper {
    min-height: auto;
  }
  .menu-item-prices {
    order: 3;
    margin-top: auto;
  }
  #hot-drinks .menu-item-img,
  #tea-and-herbs .menu-item-img,
  #sandwich .menu-item-img,
  #cake .menu-item-img,
  #health-menu .menu-item-img,
  #cold-drinks .menu-item-img {
    height: 200px;
  }
}

@media (max-width: 485px) {
  .menu-item-card .menu-item-img {
    position: relative;
    display: none;
  }
}

.gallery-img {
  height: 250px;
  object-fit: cover;
  border-radius: 7px;
  transition: transform 0.4s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.reservation-form {
  background: var(--secondary);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-control,
.form-select {
  background: #3a3a3a;
  border: none;
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem;
}

.form-control::placeholder {
  color: var(--text);
  opacity: 0.7;
  text-align: right;
}

.form-control:focus {
  background: #444;
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.btn-reserve {
  background: var(--accent);
  color: black;
  font-weight: 600;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-reserve:hover {
  background: #e0c56a;
  transform: translateY(-2px);
}

footer {
  background: #111;
  padding: 0.7rem 0;
  margin-top: 2rem;
  font-size: 14px;
}

.social-icons a {
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--accent);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  display: block;
  width: 100%;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  width: 90%;
  text-align: center;
}

.animated-heading {
  animation: slideInDown 1s ease-out;
}

.animated-subheading {
  animation: slideInUp 1s ease-out 0.3s;
  animation-fill-mode: backwards;
}

.animated-button {
  animation: zoomIn 1s ease-out 0.6s;
  pointer-events: auto;
  animation-fill-mode: backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Sidebar Menu Styles */
.sidebar-panel {
  position: fixed;
  top: 0;
  right: -300px; /* Start off-screen */
  width: 300px;
  height: 100%;
  background-color: var(--primary);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid #333;
}

.sidebar-panel.active {
  right: 0;
}

.sidebar-panel-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.sidebar-link:hover {
  background-color: var(--secondary);
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #aaa;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991.98px) {
  #navbarNav {
    display: none;
  }
  .sidebar-panel {
    display: block;
  }
  .sidebar-overlay {
    display: block;
  }

  .navbar-brand {
    order: 2;
  }
  .navbar-toggler {
    order: 1;
  }
}
.btn-close-white {
  order: 3;
}
@keyframes slideInDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
