/*
Theme Name: Am Steiger
Theme URI: https://amsteiger.de
Author: Am Steiger Restaurant
Description: WordPress theme for Am Steiger - Ungarische Spezialitäten in Freital
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: amsteiger
*/

/* =========================================================
   Fonts
   ========================================================= */
@font-face {
  font-family: Gloock;
  src: url(fonts/Gloock-Regular.ttf);
}

@font-face {
  font-family: Fellix;
  src: url(fonts/Fellix_Variable.ttf);
}

/* =========================================================
   Variables & Reset
   ========================================================= */
:root {
  --primary-color: #afb695;
  --primary-color-light: #c3caaf;
  --primary-bg-dark: #9da384;
  --secondary-color: #343725;
  --third-color: #f3ebdd;
  --text-color: #353727;
}

body {
  font-family: Fellix, sans-serif;
  color: var(--text-color);
  font-size: 20px;
  line-height: 26px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container-fluid {
  max-width: 1920px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: Gloock-Regular, serif;
}

h1 {
  font-size: 50px;
  font-weight: bold;
}

h2 {
  font-size: 40px;
  font-weight: bold;
}

/* =========================================================
   Color Utilities
   ========================================================= */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-dark {
  background-color: var(--primary-bg-dark) !important;
}

.bg-light {
  background-color: var(--primary-color-light) !important;
}

.bg-third {
  background-color: var(--third-color) !important;
}

.modal-content {
  background: var(--primary-color);
  color: #fff;
}

/* =========================================================
   Links & Buttons
   ========================================================= */
a {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.btn {
  border-radius: 0;
  font-family: Gloock;
  text-transform: uppercase;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.16);
  padding: 20px;
  background: #fff;
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}
.navbar.is-compact {
  padding: 10px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
  padding: 10px 20px !important;
  text-transform: uppercase;
  position: relative;
  text-decoration: none;
}

.nav-link {
  color: var(--text-color);
}

.navbar-brand img {
  max-width: 140px;
  transition: max-width 0.35s ease;
}
.navbar.is-compact .navbar-brand img {
  max-width: 105px;
}

/* =========================================================
   Layout Utilities
   ========================================================= */
.w-half {
  width: 50%;
  height: auto;
}

.w-full {
  width: 100%;
  height: auto;
}

.h-full {
  height: 100%;
}

.min-h-full {
  min-height: 100%;
}

.max-w-470 {
  max-width: 400px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.flex-initial {
  flex: initial;
}

.gap {
  gap: 30px;
}

.gap-2 {
  gap: 1rem;
}

.gap-4 {
  gap: 2rem;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

/* =========================================================
   Typography Utilities
   ========================================================= */
.text-sm {
  font-size: 18px;
}

.text-md {
  font-size: 30px;
}

.text-lg {
  font-size: 40px;
}

.text-xl {
  font-size: 60px;
}

a.no-decoration {
  text-decoration: none;
  color: var(--text-color);
}
a:not(.btn):hover {
  text-decoration: underline;
  color: #000;
}

.navbar .nav-link:hover {
  text-decoration: none;
  color: var(--text-color);
}

/* =========================================================
   Decorative Title Line
   ========================================================= */
.title-left-line {
  position: relative;
  display: inline-block;
}
.title-left-line::before {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background-color: var(--text-color);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.title-left-line.is-visible::before {
  width: 500%;
}

.font-bold {
  font-weight: 500;
}

.py-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.py-carousel {
  padding-top: 120px;
  padding-bottom: 120px;
}

.rotate-left {
  transform: rotate(-90deg) translateX(-98%);
  transform-origin: bottom left;
  position: absolute;
  top: 0;
  text-transform: uppercase;
}

.overflow-hidden {
  overflow: hidden;
}

/* =========================================================
   Food Menu Lists
   ========================================================= */
.food-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  margin-bottom: 20px;
  padding: 0;
  font-size: 28px;
  text-transform: uppercase;
  a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: Gloock;
    display: inline-block;
    &:hover,
    &.active {
      color: var(--text-color);
      text-decoration: none;
      transform: translateX(6px);
    }
  }
}

.food-category {
  font-weight: 500;
  font-size: 24px;
}
.food-item {
  font-size: 20px;
  font-weight: 200;
  color: var(--primary-color);
  padding-left: 20px;
  li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    span {
      flex: 1;
    }
    span:last-child {
      font-weight: 500;
      color: var(--text-color);
    }
    span:first-child {
      flex: 2;
      font-weight: 200;
      color: var(--primary-color);
    }

    &:before {
      content: "•";
    }
  }
}

.bg-primary,
.bg-dark {
  .food-menu {
    a {
      color: var(--primary-color-light);
      &:hover,
      &.active {
        color: var(--text-color);
      }
    }
  }
  .food-item {
    color: #fff;
    li {
      span:first-child {
        color: #fff;
      }
    }
  }
}
.ps-4 {
  padding-left: 4rem !important;
}

.ps-5 {
  padding-left: 5rem !important;
}

.columns-2 {
  column-count: 2;
  column-gap: 40px;
}
.cursor-pointer {
  cursor: pointer;
}

/* =========================================================
   Menu Fade Transitions
   ========================================================= */
[data-menu-content] {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
[data-menu-content].menu-fade-out {
  opacity: 0;
  transform: translateY(-8px);
}
[data-menu-content].menu-fade-in {
  opacity: 0;
  transform: translateY(10px);
}

/* =========================================================
   Scroll Reveal Animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-left {
  transform: translateX(-44px);
}
.reveal.reveal-right {
  transform: translateX(44px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Food menu item stagger */
.food-menu li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.is-visible .food-menu li {
  opacity: 1;
  transform: none;
}
.is-visible .food-menu li:nth-child(1) {
  transition-delay: 0.08s;
}
.is-visible .food-menu li:nth-child(2) {
  transition-delay: 0.16s;
}
.is-visible .food-menu li:nth-child(3) {
  transition-delay: 0.24s;
}
.is-visible .food-menu li:nth-child(4) {
  transition-delay: 0.32s;
}
.is-visible .food-menu li:nth-child(5) {
  transition-delay: 0.4s;
}
.is-visible .food-menu li:nth-child(6) {
  transition-delay: 0.48s;
}
.is-visible .food-menu li:nth-child(7) {
  transition-delay: 0.56s;
}
.is-visible .food-menu li:nth-child(8) {
  transition-delay: 0.64s;
}
.is-visible .food-menu li:nth-child(9) {
  transition-delay: 0.72s;
}

/* =========================================================
   Hero Entrance Animation
   ========================================================= */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-animate > * {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-animate > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-animate > *:nth-child(2) {
  animation-delay: 0.35s;
}
.hero-animate > *:nth-child(3) {
  animation-delay: 0.6s;
}

/* =========================================================
   Icon
   ========================================================= */
.icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 769px) {
  .navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    right: 50%;
    height: 1px;
    background-color: var(--text-color);
    transition: left 0.3s ease, right 0.3s ease;
  }

  .navbar .nav-link:hover::after {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 8px;
  }
  .navbar .nav-link {
    padding: 10px 0 !important;
  }

  .navbar-brand img {
    max-width: 110px;
  }
}

/* =========================================================
   Blurred 3-Item Carousel
   ========================================================= */
.blur-carousel {
  --bc-height: 520px;
  --bc-center-w: 360px;
  --bc-side-w: 240px;
  --bc-gap: 24px;
  --bc-side-scale: 0.85;
  --bc-side-opacity: 0.75;
  --bc-side-blur: 4px;
  --bc-radius: 16px;
  --bc-transition: 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --bc-bg-blur: 40px;
  --bc-bg-scale: 1.15;
  --bc-bg-opacity: 0.9;
  --bc-bg-overlay: rgba(0, 0, 0, 0.35);

  position: relative;
  width: 100%;
  height: var(--bc-height);
  overflow: hidden;
  user-select: none;
}

.blur-carousel .bc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--bc-bg-blur));
  transform: scale(var(--bc-bg-scale));
  opacity: 0;
  transition: opacity var(--bc-transition), background-image 0ms;
}

.blur-carousel .bc-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bc-bg-overlay);
}

.blur-carousel.has-bg .bc-bg {
  opacity: var(--bc-bg-opacity);
}

.blur-carousel .bc-track {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.blur-carousel .bc-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--bc-side-w);
  height: calc(var(--bc-height) - 60px);
  border-radius: var(--bc-radius);
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition: transform var(--bc-transition), opacity var(--bc-transition),
    filter var(--bc-transition), width var(--bc-transition);
}

.blur-carousel:not(.has-bg) .bc-slide {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}

.blur-carousel:not(.has-bg) .bc-track {
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 1) 10%,
    rgba(255, 255, 255, 1) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 1) 10%,
    rgba(255, 255, 255, 1) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.blur-carousel .bc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blur-carousel.is-square {
  --bc-center-w: calc(var(--bc-height) - 60px);
  --bc-side-w: calc(var(--bc-height) - 60px);
}

.blur-carousel.is-square .bc-slide {
  background: transparent;
  box-shadow: none;
}

.blur-carousel.is-square .bc-slide img {
  -webkit-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
  padding: 20px;
}

.blur-carousel .bc-slide.is-active {
  width: var(--bc-center-w);
  opacity: 1;
  filter: blur(0);
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.blur-carousel .bc-slide.is-prev {
  opacity: var(--bc-side-opacity);
  filter: blur(var(--bc-side-blur));
  z-index: 2;
  transform: translate(
      calc(
        -50% - (var(--bc-center-w) / 2) - (var(--bc-gap)) - (
            var(--bc-side-w) / 2
          ) * var(--bc-side-scale)
      ),
      -50%
    )
    scale(var(--bc-side-scale));
  pointer-events: auto;
  cursor: pointer;
}

.blur-carousel .bc-slide.is-next {
  opacity: var(--bc-side-opacity);
  filter: blur(var(--bc-side-blur));
  z-index: 2;
  transform: translate(
      calc(
        -50% + (var(--bc-center-w) / 2) + (var(--bc-gap)) + (
            var(--bc-side-w) / 2
          ) * var(--bc-side-scale)
      ),
      -50%
    )
    scale(var(--bc-side-scale));
  pointer-events: auto;
  cursor: pointer;
}

.blur-carousel .bc-slide.is-hidden {
  opacity: 0;
  filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 1;
}

.blur-carousel .bc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background-color 150ms ease, transform 150ms ease;
}

.blur-carousel .bc-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.blur-carousel .bc-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.blur-carousel .bc-arrow-prev {
  left: 16px;
}
.blur-carousel .bc-arrow-next {
  right: 16px;
}

.food-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.food-icon-small {
  width: 100px;
  height: 80px;
  object-fit: contain;
}

.pattern {
  width: 100%;
  height: 80px;
  background-image: url("img/pattern.svg");
  background-size: contain;
  margin: 80px 80px 40px;
}

@media (max-width: 768px) {
  .blur-carousel {
    --bc-height: 380px;
    --bc-center-w: 240px;
    --bc-side-w: 170px;
    --bc-gap: 12px;
    --bc-side-scale: 0.8;
  }
}

@media (max-width: 480px) {
  .blur-carousel {
    --bc-height: 320px;
    --bc-center-w: 200px;
    --bc-side-w: 140px;
    --bc-gap: 8px;
  }
  .blur-carousel .bc-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
