/* Mary Restoran — Obsidian, Velvet Burgundy & Matte Gold Design Tokens */
:root {
  --bg-obsidian: #0B0909;
  --bg-burgundy: #1F0608;
  --bg-burgundy-rich: #2B090C;
  --bg-surface: #140D0E;
  --accent-gold: #C8A96E;
  --accent-gold-light: #DFC38D;
  --text-cream: #F5F0E6;
  --text-muted: #B8B2A6;
  --border-gold: rgba(200, 169, 110, 0.28);
  --border-gold-strong: rgba(200, 169, 110, 0.65);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-cream);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-cream);
  -webkit-font-smoothing: antialiased;
}

.font-serif-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 169, 110, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Seamless Hero Image Blending */
.hero-showcase-wrap {
  background-color: #120505;
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1024px) and (orientation: landscape) {
  .hero-showcase-img {
    height: 84vh;
    object-fit: cover;
  }
}

.hero-blend-mask {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.88) 8%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.88) 8%,
    #000 18%,
    #000 82%,
    transparent 100%
  );
}

.hero-edge-vignette {
  background:
    linear-gradient(to bottom, #0B0909 0%, rgba(18, 5, 5, 0.35) 12%, transparent 26%, transparent 76%, rgba(18, 5, 5, 0.72) 90%, #0B0909 100%),
    linear-gradient(to right, rgba(18, 5, 5, 0.75) 0%, transparent 10%, transparent 90%, rgba(18, 5, 5, 0.75) 100%);
}

/* Signature Orbit Section Background */
.orbit-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orbit-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg/mangal-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
}

.orbit-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0B0909 0%,
    rgba(31, 6, 8, 0.45) 18%,
    rgba(31, 6, 8, 0.18) 50%,
    rgba(31, 6, 8, 0.45) 82%,
    #0B0909 100%
  );
}

/* Section Atmospheric Backgrounds (Index Only) */
.section-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg-hospitality {
  background-image: url('../images/bg/ev-sahipligimiz-bg.webp');
  opacity: 0.18;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.85) 20%,
    #000 50%,
    rgba(0, 0, 0, 0.85) 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.85) 20%,
    #000 50%,
    rgba(0, 0, 0, 0.85) 80%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  #ev-sahipligimiz .section-bg-hospitality {
    background-image: url('../images/bg/ev-sahipligimiz-bg.webp');
    background-size: cover;
    background-position: 32% center;
    background-repeat: no-repeat;
    opacity: 0.14;
  }
}

.section-bg-guests {
  background-image: url('../images/bg/misafirler-bg.webp');
  opacity: 0.14;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 22%,
    #000 50%,
    rgba(0, 0, 0, 0.8) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 22%,
    #000 50%,
    rgba(0, 0, 0, 0.8) 78%,
    transparent 100%
  );
}

.section-bg-menu-header {
  background-image: url('../images/bg/menu-baslik-bg.webp');
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 80% at 50% 50%,
    #000 35%,
    rgba(0, 0, 0, 0.55) 70%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 85% 80% at 50% 50%,
    #000 35%,
    rgba(0, 0, 0, 0.55) 70%,
    transparent 100%
  );
}

.section-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0B0909 0%,
    transparent 20%,
    transparent 80%,
    #0B0909 100%
  );
}

/* Menu Page Hero Background */
.menu-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg/bg-menu-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    #000 18%,
    #000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    #000 18%,
    #000 72%,
    transparent 100%
  );
}

.menu-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 9, 9, 0.72) 0%,
    rgba(10, 10, 10, 0.44) 38%,
    rgba(10, 10, 10, 0.68) 78%,
    #0B0909 100%
  );
}

/* Culture Page Hero Background */
.kultur-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg/bg-kultur-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    #000 18%,
    #000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    #000 18%,
    #000 72%,
    transparent 100%
  );
}

.kultur-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 9, 9, 0.75) 0%,
    rgba(10, 10, 10, 0.48) 38%,
    rgba(10, 10, 10, 0.76) 78%,
    #0B0909 100%
  );
}

/* Contact Page Hero Background */
.iletisim-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg/bg-iletisim-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    #000 18%,
    #000 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.88) 0%,
    #000 18%,
    #000 72%,
    transparent 100%
  );
}

.iletisim-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11, 9, 9, 0.75) 0%,
    rgba(10, 10, 10, 0.46) 38%,
    rgba(10, 10, 10, 0.76) 78%,
    #0B0909 100%
  );
}

/* Gold Frame & Button Micro-interactions */
.btn-gold-outline {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(31, 6, 8, 0.45);
  backdrop-filter: blur(8px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  cursor: pointer;
}
.btn-gold-outline:hover {
  background-color: var(--accent-gold);
  color: #0B0909;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(200, 169, 110, 0.38);
}
.btn-gold-outline:active {
  transform: translateY(0);
}

.btn-gold-solid {
  border: 1px solid var(--accent-gold);
  background-color: var(--accent-gold);
  color: #0B0909;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.25s ease,
              box-shadow 0.25s ease;
  cursor: pointer;
}
.btn-gold-solid:hover {
  background-color: var(--accent-gold-light);
  border-color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(200, 169, 110, 0.45);
}
.btn-gold-solid:active {
  transform: translateY(0);
}

/* Editorial Card Hover & Ornate Gold Double-Frame */
.luxury-card {
  position: relative;
  background: linear-gradient(180deg, rgba(43, 9, 12, 0.52) 0%, rgba(11, 9, 9, 0.94) 100%);
  border: 1px solid var(--border-gold);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.luxury-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200, 169, 110, 0.14);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.35s ease;
}
.luxury-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-strong);
  box-shadow: 0 22px 48px -14px rgba(0, 0, 0, 0.78), 0 0 28px -8px rgba(200, 169, 110, 0.25);
}
.luxury-card:hover::after {
  border-color: rgba(200, 169, 110, 0.38);
}
.luxury-card img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.luxury-card:hover img {
  transform: scale(1.05);
}

/* Corner Gold Ornaments */
.corner-ornament {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.luxury-card:hover .corner-ornament {
  opacity: 1;
}
.corner-tl { top: 10px; left: 10px; border-top: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.corner-tr { top: 10px; right: 10px; border-top: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }
.corner-bl { bottom: 10px; left: 10px; border-bottom: 1.5px solid var(--accent-gold); border-left: 1.5px solid var(--accent-gold); }
.corner-br { bottom: 10px; right: 10px; border-bottom: 1.5px solid var(--accent-gold); border-right: 1.5px solid var(--accent-gold); }

/* 3D Dish Orbit Carousel Stage */
.orbit-3d-stage {
  perspective: 1200px;
  transform-style: preserve-3d;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.orbit-3d-stage:active {
  cursor: grabbing;
}

.orbit-3d-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.65s ease,
              filter 0.65s ease,
              box-shadow 0.65s ease;
  will-change: transform, opacity;
}

.orbit-ring {
  border: 1px dashed rgba(200, 169, 110, 0.3);
  animation: slowSpin 48s linear infinite;
}
.orbit-ring-reverse {
  border: 1px solid rgba(200, 169, 110, 0.14);
  animation: slowSpinReverse 65s linear infinite;
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes slowSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Rotating Circular Stamp */
.stamp-spin {
  animation: slowSpin 24s linear infinite;
}

/* Glass Navbar on Scroll */
.nav-scrolled {
  background-color: rgba(11, 9, 9, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.22);
}

/* Brand title reveal on scroll (for Home page) */
.nav-brand-hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.nav-scrolled .nav-brand-hidden {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Form Inputs */
.luxury-input {
  background-color: rgba(11, 9, 9, 0.72);
  border: 1px solid rgba(200, 169, 110, 0.28);
  color: var(--text-cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.luxury-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.18);
}
.luxury-input::placeholder {
  color: rgba(184, 178, 166, 0.55);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .orbit-ring,
  .orbit-ring-reverse,
  .stamp-spin,
  .orbit-plate-enter {
    animation: none !important;
  }
  .luxury-card,
  .luxury-card img,
  .btn-gold-outline,
  .btn-gold-solid {
    transition: none !important;
  }
}
