/* CSS Variables */
:root {
  --container-max-width: 1280px;
  --container-padding: 1.5rem;
  --header-height: 120px;
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --z-header: 1000;
  --z-overlay: 999;
  --z-mobile-nav: 1001;
  --z-hamburger: 1002;
  --breakpoint-mobile: 768px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
  background-color: rgba(254, 249, 231, 0.5);
}

html {
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
}

.fade-in-up.in-view {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-up-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-up-delay-3 {
  animation-delay: 0.3s;
}

.fade-in-up-delay-4 {
  animation-delay: 0.4s;
}

.fade-in-up-delay-5 {
  animation-delay: 0.5s;
}

.fade-in-up-delay-6 {
  animation-delay: 0.6s;
}

.fade-in-up-delay-7 {
  animation-delay: 0.7s;
}

.fade-in-up-delay-8 {
  animation-delay: 0.8s;
}

.fade-in-up-delay-9 {
  animation-delay: 0.9s;
}

.fade-in-up-delay-10 {
  animation-delay: 1s;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
  height: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: var(--z-header);
  transform: translateY(0);
  transition: transform var(--transition-normal) ease-in-out;
}

.header.header--hidden {
  transform: translateY(-100%);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  height: 100%;
}

.logo:hover {
  opacity: 0.8;
}

.logo__img {
  display: block;
  height: 100px;
  width: auto;
}

/* Desktop Navigation */
.header__nav--desktop {
  display: none;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: #000;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #333;
  transition: width var(--transition-fast);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile Hamburger Button */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: var(--z-hamburger);
  position: relative;
}

.hamburger__line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.header__hamburger.active .hamburger__line:nth-child(1) {
  position: absolute;
  top: calc(50% - 1.5px);
  left: 0;
  transform: rotate(45deg);
}

.header__hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active .hamburger__line:nth-child(3) {
  position: absolute;
  top: calc(50% - 1.5px);
  left: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation Drawer */
.header__nav--mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: #fff;
  z-index: var(--z-mobile-nav);
  transform: translateX(100%);
  transition: transform var(--transition-normal) ease-in-out;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.header__nav--mobile.active {
  transform: translateX(0);
}

.mobile-nav__content {
  padding: 2rem;
  padding-top: calc(var(--header-height) + 1rem);
}

.nav__list--mobile {
  flex-direction: column;
  gap: 1.5rem;
}

.nav__list--mobile .nav__link {
  display: block;
  font-size: 1.1rem;
}

.nav__list--mobile .nav__link::after {
  display: none;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-normal),
    visibility var(--transition-normal);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 30% center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__slide--active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero__logo {
  max-width: 200px;
  width: auto;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}

.hero__heading {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__subheading {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: #fff;
  color: #333;
}

.btn--primary:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn--secondary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--secondary:hover {
  background-color: #fff;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Header Wrapper */
.section-header-wrapper {
  width: 100vw;
  min-height: 180px;
  background-image: url("../images/tile_bg_small.png");
  background-repeat: repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  margin-bottom: 4rem;
}

/* Section Header (Reusable) */
.section-header {
  text-align: center;
  margin-bottom: 0;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subheading {
  font-family: "Playpen Sans Hebrew", cursive;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 4rem 0;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.about__text {
  flex: 1;
}

.about__text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.about__text ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.about__text ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
}

.about__text h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.about__text a {
  color: #333;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.about__text a:hover {
  color: #000;
}

.about__image {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery Section */
.gallery {
  padding: 4rem 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  grid-auto-rows: 200px;
}

.gallery__item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.gallery__item:nth-child(5n + 1) {
  grid-row: span 3;
}

.gallery__item:nth-child(5n + 2) {
  grid-row: span 2;
}

.gallery__item:nth-child(5n + 3) {
  grid-row: span 2;
}

.gallery__item:nth-child(5n + 4) {
  grid-row: span 1;
}

.gallery__item:nth-child(5n) {
  grid-row: span 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal) ease-out;
}

.gallery__item:hover img {
  transform: scale(1.1);
}

/* Gallery Popup */
.gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-popup.active {
  display: flex;
}

.gallery-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-popup__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-popup__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-popup__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.gallery-popup__close:hover {
  opacity: 0.7;
}

/* Location and Contact Section */
.location-contact {
  padding: 4rem 0;
  background-color: #fff;
}

.location-contact__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location-contact__info {
  flex: 1;
}

.info-block {
  margin-bottom: 2.5rem;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block__heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.info-block__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0.5rem;
}

.info-block__text:last-child {
  margin-bottom: 0;
}

.info-block__text a {
  color: #333;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.info-block__text a:hover {
  color: #000;
  text-decoration: underline;
}

.location-contact__map {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.location-contact__map img,
.location-contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
}

/* Menu Section */
.menu {
  padding: 4rem 0;
}

.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

.menu__category {
  grid-column: 1 / -1;
  text-align: center;
  color: #da9707;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0 0;
}

/* Menu Language Toggle */
.menu-lang-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.menu-lang-toggle__btn {
  padding: 0.5rem 1.25rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid #da9707;
  background-color: transparent;
  color: #da9707;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.menu-lang-toggle__btn:first-child {
  border-radius: 999px 0 0 999px;
  border-right: 1px solid #da9707;
}

.menu-lang-toggle__btn:last-child {
  border-radius: 0 999px 999px 0;
  border-left: 1px solid #da9707;
}

.menu-lang-toggle__btn--active {
  background-color: #da9707;
  color: #fff;
}

.menu-lang-toggle__btn:hover:not(.menu-lang-toggle__btn--active) {
  background-color: rgba(218, 151, 7, 0.1);
}

.menu-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  cursor: pointer;
}

.menu-item__image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
}

.menu-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal) ease-out;
}

.menu-item:hover {
  cursor: pointer;
}

.menu-item:hover .menu-item__image img {
  transform: scale(1.1);
}

.menu-item__content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #ccc;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.menu-item__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.menu-item:hover .menu-item__name {
  color: #da9707;
}

.menu-item__price {
  font-size: 1.125rem;
  font-weight: 600;
  color: #777;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.menu-item:hover .menu-item__price {
  color: #333;
}

.menu-item__ingredients {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.menu-item__ingredients-list {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.3;
  display: inline-block;
  margin: 1rem 0 0 0;
  font-style: italic;
}

/* News Section */
.news {
  padding: 0 0 4rem 0;
}

.news__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.news-card {
  flex: 1 1 100%;
  max-width: 400px;
}

.news-card__image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-card__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-normal) ease-out;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card__text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.news-card__link {
  font-size: 0.95rem;
  color: #333;
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.news-card__link:hover {
  color: #000;
}

.news__loading,
.news__empty {
  text-align: center;
  color: #999;
  font-size: 0.95rem;
  padding: 2rem 0;
  width: 100%;
}

.news__footer {
  text-align: center;
  margin-top: 2rem;
}

.news__see-all {
  font-size: 1rem;
  color: #333;
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.news__see-all:hover {
  color: #000;
}

/* News Article Page */
.news-article {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 60vh;
}

.news-article__content {
  max-width: 800px;
  margin: 0 auto;
}

.news-article__title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.news-article__date {
  display: block;
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 2rem;
}

.news-article__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.news-article__image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-article__body p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
}

.news-article__body p:last-child {
  margin-bottom: 0;
}

.news-article__back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 1rem;
  color: #333;
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.news-article__back:hover {
  color: #000;
}

.news-article__not-found {
  text-align: center;
  padding: 4rem 0;
}

.news-article__not-found h1 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.news-article__not-found p {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Novosti listing page top padding */
.novosti-page {
  padding-top: calc(var(--header-height));
}

/* Desktop Styles */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .header__nav--desktop {
    display: block;
  }

  .header__hamburger {
    display: none;
  }

  .header__nav--mobile {
    display: none;
  }

  .hero__logo {
    max-width: 360px;
  }

  .hero__heading {
    font-size: 4rem;
  }

  .hero__subheading {
    font-size: 1.5rem;
  }

  .hero__ctas {
    gap: 2rem;
  }

  .btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
  }

  .about__content {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .about__text {
    flex: 1;
  }

  .about__image {
    flex: 1;
    max-width: 50%;
  }

  .location-contact__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .location-contact__info {
    flex: 1;
  }

  .location-contact__map {
    flex: 1;
  }

  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .news-card {
    flex: 0 1 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
  }

  .news-article__title {
    font-size: 2.5rem;
  }

  .section-heading {
    font-size: 3rem;
  }

  .section-subheading {
    font-size: 1.25rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .hero__heading {
    font-size: 5rem;
  }

  .hero__subheading {
    font-size: 1.75rem;
  }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  :root {
    --container-padding: 1rem;
  }

  .menu-item {
    gap: 0.75rem;
  }

  .menu-item__image {
    flex: 0 0 25%;
    height: auto;
    aspect-ratio: 1;
    min-width: 0;
  }

  .menu-item__content {
    flex: 1 1 0;
    min-width: 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    grid-auto-rows: 150px;
  }

  .gallery__item:nth-child(3n + 1),
  .gallery__item:nth-child(3n),
  .gallery__item:nth-child(3n + 2) {
    grid-row: span 1;
  }

  .gallery-popup__close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }

  .section-header-wrapper {
    width: 100vw;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section-header {
    margin-bottom: 0;
  }

  .section-heading {
    font-size: 2rem;
  }

  .section-subheading {
    font-size: 1rem;
  }

  .hero__logo {
    max-width: 260px;
    margin-bottom: 1.5rem;
  }

  .hero__heading {
    font-size: 2rem;
  }

  .hero__subheading {
    font-size: 1rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .news-article__title {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
