/*
Theme Name: Mikoto
Theme URI: https://mikoto.archilion.com
Author: Archilion
Author URI: https://archilion.com
Description: Custom premium theme for Mikoto Japanese Restaurant - Stuttgart & Ludwigsburg
Version: 1.0
License: Proprietary
Text Domain: mikoto
*/

/* ===== CSS VARIABLES ===== */
:root {
  --gold: #D3A121;
  --gold-light: #E8C55A;
  --gold-dark: #BF9935;
  --black: #0a0a0a;
  --dark: #141414;
  --dark-mid: #1e1e1e;
  --dark-card: #1a1a1a;
  --gray-dark: #2a2a2a;
  --gray: #77726D;
  --gray-light: #a09a94;
  --white: #ffffff;
  --cream: #f5f0e8;
  --teal: #00aea4;
  --orange: #cb8300;
  --font-heading: 'Playfair Display', 'Bitter', Georgia, serif;
  --font-body: 'Inter', 'Roboto', -apple-system, sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 1px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gold);
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--white);
}

p {
  color: var(--gray-light);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 65ch;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-italic { font-style: italic; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-logo img {
  height: 50px;
  transition: var(--transition);
}

.scrolled .site-logo img { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 32px; }

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 10px 24px !important;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-content p {
  color: var(--cream);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 auto 2rem;
  max-width: 500px;
  opacity: 0.9;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(211,161,33,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.5;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark { background: var(--dark); }
.section-darker { background: var(--black); }
.section-pattern {
  background-color: var(--dark);
  background-size: 200px;
  background-repeat: repeat;
}

/* ===== PHILOSOPHY / INTRO ===== */
.philosophy {
  text-align: center;
  padding: 120px 24px;
}

.philosophy .section-label { margin-bottom: 1rem; }

.philosophy h2 {
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.philosophy p {
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--gray-light);
}

/* ===== IMAGE GALLERY GRID ===== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.image-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
  filter: brightness(0.85);
}

.image-grid img:hover {
  filter: brightness(1);
  transform: scale(1.02);
}

/* ===== MENU / SPEISEKARTE ===== */
.menu-section {
  text-align: center;
  background: var(--dark);
}

.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.menu-card {
  background: var(--dark-card);
  border: 1px solid rgba(211,161,33,0.1);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.menu-card:hover {
  border-color: rgba(211,161,33,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.menu-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-style: italic;
}

.menu-card p {
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ===== LOCATIONS ===== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.location-card {
  position: relative;
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.location-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.location-card:hover img {
  transform: scale(1.05);
}

.location-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 60%);
  z-index: 1;
}

.location-info {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
}

.location-info h3 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.location-info p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.location-info .btn {
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* ===== EVENTS ===== */
.events-section { background: var(--dark); }

.event-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.event-image {
  height: 450px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details h3 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}

/* ===== RESERVIERUNG ===== */
.reservation-section {
  background: var(--dark-mid);
  text-align: center;
  padding: 80px 24px;
}

.reservation-section h2 {
  margin-bottom: 0.5rem;
}

.reservation-phones {
  display: flex;
  gap: 60px;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.phone-card {
  text-align: center;
}

.phone-card .location-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.phone-card .phone-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
}

/* ===== ORDERING SLIDE-IN PANEL ===== */
.webapp-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--white);
  z-index: 10000;
  transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 60px rgba(0,0,0,0.5);
}

.webapp-panel.active { right: 0; }

.webapp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  padding: 0;
  flex-shrink: 0;
  border-bottom: 2px solid var(--gold);
}

.webapp-location-tabs {
  display: flex;
  flex: 1;
}

.wt-tab {
  flex: 1;
  padding: 14px 16px;
  background: var(--dark);
  color: var(--gray-light);
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.wt-tab.active {
  background: var(--gold);
  color: var(--black);
}

.wt-tab:hover:not(.active) {
  color: var(--gold);
}

.webapp-close {
  width: 50px;
  height: 48px;
  background: var(--dark);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.webapp-close:hover {
  background: var(--spicy, #c0392b);
  color: var(--white);
}

.webapp-iframe {
  flex: 1;
  width: 100%;
  border: none;
}

.webapp-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.webapp-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* Prevent body scroll when panel is open */
body.webapp-open { overflow: hidden; }

@media (max-width: 768px) {
  .webapp-panel {
    width: 100%;
    right: -100%;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .webapp-panel { width: 50%; right: -50%; }
}

/* ===== ORDERING PAGE ===== */
.ordering-hero {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(10,10,10,0.7), rgba(10,10,10,0.9)),
              url('assets/img/sushi-hero.jpg') center/cover;
}

.ordering-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: -30px auto 0;
  position: relative;
  z-index: 10;
  max-width: 400px;
}

.ordering-tab {
  flex: 1;
  padding: 16px 32px;
  background: var(--dark-card);
  border: 1px solid rgba(211,161,33,0.2);
  color: var(--gray-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.ordering-tab.active,
.ordering-tab:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.ordering-frame-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 80vh;
}

.ordering-frame {
  width: 100%;
  min-height: 80vh;
  border: 1px solid rgba(211,161,33,0.1);
  background: var(--white);
  border-radius: 4px;
}

/* ===== KONTAKT / MAP ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.map-container {
  height: 400px;
  background: var(--dark-card);
  border: 1px solid rgba(211,161,33,0.1);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) invert(0.92) contrast(0.9);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(211,161,33,0.1);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--gray);
  font-size: 0.85rem;
  padding: 4px 0;
}

.footer-col a:hover { color: var(--gold); }

.footer-col p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray);
}

/* ===== GALLERY PAGE ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-overlay h4 {
  color: var(--gold);
  font-size: 0.9rem;
}

.gallery-item-overlay p {
  color: var(--cream);
  font-size: 0.8rem;
}

/* ===== SPLIT HOMEPAGE ===== */
.split-home {
  height: 100vh;
  display: flex;
  position: relative;
}

.split-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.split-side img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.split-side:hover img {
  transform: scale(1.05);
}

.split-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.split-overlay-teal { background: rgba(0, 174, 164, 0.35); }
.split-overlay-gold { background: rgba(203, 131, 0, 0.35); }

.split-side:hover .split-overlay { opacity: 0.6; }

.split-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}

.split-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.split-content .subtitle {
  font-size: 0.85rem;
  color: var(--cream);
  letter-spacing: 3px;
  margin-top: 0.5rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.split-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.split-logo img {
  height: 120px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .locations-grid { grid-template-columns: 1fr; }
  .event-feature { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }

  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .main-nav.active a {
    font-size: 1.2rem;
    letter-spacing: 4px;
  }

  .section { padding: 60px 0; }
  .philosophy { padding: 80px 24px; }
  .hero { min-height: 500px; }
  .image-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .split-home { flex-direction: column; }
  .location-card { height: 350px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ordering-tabs { flex-direction: column; max-width: 280px; }
}

@media (max-width: 480px) {
  .image-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .reservation-phones { flex-direction: column; gap: 30px; }
}
