/*
Theme Name: KHACHAPURI Restaurant Wien
Theme URI: https://khachapuri.at
Author: FenixWEB Software-Studio Wien
Author URI: https://fenix-web.online
Description: Exklusives WordPress-Gastronomie-Theme für KHACHAPURI Wien (1010 Innere Stadt). Ausgestattet mit Dual-Theme-Modus (Luxury Noir & Warm Artisan), vollwertigem mobilem Burger-Navigations-Drawer, digitaler Speisekarte mit Zutaten-Konfigurator-Modal, Allergen-Kennzeichnung, Molzait-Tischreservierung und Mobile-First Optimierung.
Version: 1.0.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khachapuri-theme
*/

/* -------------------------------------------------------------
   GLOBAL RESET & MASTER LAYOUT
   ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* -------------------------------------------------------------
   NAVBAR (MOBILE RESPONSIVE & OVERFLOW FIXED)
   ------------------------------------------------------------- */
.navbar-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 1000;
  padding: 0 1rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  transition: top 0.3s ease;
}

body.admin-bar .navbar-wrapper {
  top: calc(32px + 1rem);
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar-wrapper {
    top: calc(46px + 0.5rem);
  }
}

.navbar {
  border-radius: 40px;
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  flex-wrap: nowrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.brand-mark svg {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.theme-switch-micro-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item-link {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0;
  white-space: nowrap;
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn-cta {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Animated Burger Button */
.mobile-burger-btn {
  display: none;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.mobile-burger-btn .burger-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-burger-btn.active .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-burger-btn.active .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-burger-btn.active .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-nav-drawer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.active .mobile-drawer-inner {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
  padding: 0;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero-section {
  padding: 60px 0 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary-action {
  padding: 13px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-secondary-action {
  padding: 13px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hero-image-card {
  height: 480px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dish-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 18px 22px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
}

/* -------------------------------------------------------------
   SPEISEKARTE & HIGH CONTRAST FILTER PILLS
   ------------------------------------------------------------- */
.menu-section {
  padding: 70px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.section-subtitle {
  max-width: 480px;
  font-size: 0.95rem;
}

.filter-pills-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.filter-pill {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.menu-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dish-card {
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.dish-img-box {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.dish-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dish-card:hover .dish-img-box img {
  transform: scale(1.05);
}

.badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.dish-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.dish-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.dish-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.dish-en {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 3px;
}

.dish-price {
  font-size: 1.3rem;
  font-weight: 900;
  white-space: nowrap;
}

.dish-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 16px;
  opacity: 0.85;
}

.dish-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}

.tag-customizable {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}

.btn-customize {
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: all 0.2s ease;
}

/* -------------------------------------------------------------
   STORY & CONTACT
   ------------------------------------------------------------- */
.story-section {
  padding: 60px 0;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.story-p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
}

.story-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
}

.contact-section {
  padding: 70px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card {
  padding: 36px;
  border-radius: 24px;
}

.contact-info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.footer-master {
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 0.88rem;
  opacity: 0.8;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.75;
  flex-wrap: wrap;
  gap: 12px;
}

.theme-switch-footer-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* -------------------------------------------------------------
   FLOATING MOBILE DOCK & MODALS
   ------------------------------------------------------------- */
.floating-thumb-switcher {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  border-radius: 40px;
  padding: 8px 14px 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.dock-meta {
  display: flex;
  flex-direction: column;
}

.dock-meta small {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dock-meta span {
  font-size: 0.85rem;
  font-weight: 800;
}

.dock-switch-btn {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* THEME SELECTOR MODAL */
.theme-selector-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.theme-selector-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.theme-selector-container {
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px;
  padding: 36px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.theme-selector-modal-backdrop.active .theme-selector-container {
  transform: scale(1);
}

.selector-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.selector-header {
  text-align: center;
  margin-bottom: 28px;
}

.selector-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.selector-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.selector-desc {
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto;
}

.selector-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.theme-card {
  border-radius: 22px;
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.theme-card:hover {
  transform: translateY(-4px);
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 14px;
}

.card-visual-mockup {
  height: 100px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mockup-noir {
  background: radial-gradient(circle, rgba(217, 155, 38, 0.3) 0%, #0a0908 80%);
  border: 1px solid rgba(217, 155, 38, 0.3);
}

.mockup-artisan {
  background: radial-gradient(circle, rgba(233, 142, 43, 0.35) 0%, #2c1814 80%);
  border: 1px solid rgba(233, 142, 43, 0.3);
}

.mockup-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.mockup-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.85;
}

.card-select-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

/* INGREDIENT CUSTOMIZER MODAL */
.ingredient-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

.ingredient-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ingredient-modal-sheet {
  width: min(520px, 100%);
  border-radius: 24px;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.customizer-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.customizer-price {
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 4px;
}

.sheet-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.allergens-box {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.customizer-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.customizer-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.customizer-notice {
  font-size: 0.78rem;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.customizer-confirm-btn {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & TABLET FIXES)
   ------------------------------------------------------------- */
@media (max-width: 990px) {
  .hero-section, .story-layout, .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .menu-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none !important;
  }
  .mobile-burger-btn {
    display: flex !important;
  }
  .theme-switch-micro-badge {
    display: none !important;
  }
  .selector-cards-grid {
    grid-template-columns: 1fr;
  }
  .theme-selector-container {
    padding: 24px 18px;
  }
}

@media (max-width: 600px) {
  .navbar-wrapper {
    padding: 0 8px;
  }
  .navbar {
    padding: 0.45rem 0.8rem;
    gap: 8px;
  }
  .brand-mark svg {
    height: 28px;
  }
  .nav-btn-cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .mobile-burger-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-right: 2px;
  }
  .menu-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-image-card {
    height: 360px;
  }
  .floating-thumb-switcher {
    width: calc(100% - 24px);
    justify-content: space-between;
  }
}
