/* ==========================================================================
   MANOW BISTROT - LUXURY DARK MODE DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Canvas Colors */
  --canvas-dark: #1A1A1A;
  --canvas-deep: #0F0F0F;
  --canvas-elevated: #252525;
  
  /* Luxury Accents */
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-glow: rgba(212, 175, 55, 0.3);
  
  /* Text Colors */
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #707070;
  
  /* Semantic Colors */
  --error: #C45C5C;
  --success: #5CC45C;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-accent: 'Lato', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  
  /* Section Padding */
  --section-py: clamp(4rem, 10vw, 8rem);
  --section-px: clamp(1.5rem, 5vw, 6rem);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--canvas-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.h1, h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

.h2, h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
}

.h3, h3 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}

.text-body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
}

.text-small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.text-gold {
  color: var(--gold);
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background-color: var(--canvas-deep);
}

.flex {
  display: flex;
}

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

.flex-center {
  justify-content: center;
  align-items: center;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--canvas-deep);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  color: var(--canvas-deep);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--canvas-deep);
}

/* Magnetic button effect container */
.btn-magnetic {
  position: relative;
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.4) 0%,
    rgba(15, 15, 15, 0.6) 50%,
    rgba(26, 26, 26, 0.95) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
}

.hero__logo {
  width: clamp(120px, 20vw, 200px);
  margin: 0 auto var(--space-lg);
  opacity: 0;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: var(--space-md);
  opacity: 0;
}

.hero__tagline {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--gold-light);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   Philosophy Section
   -------------------------------------------------------------------------- */
.philosophy {
  background: var(--canvas-dark);
}

.philosophy__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.philosophy__subtitle {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.philosophy-card {
  background: var(--canvas-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.philosophy-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.philosophy-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--gold);
}

.philosophy-card__title {
  margin-bottom: var(--space-sm);
}

.philosophy-card__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.philosophy-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Gallery Vibe (Marquee)
   -------------------------------------------------------------------------- */
.gallery-vibe {
  padding: var(--space-3xl) 0;
  overflow: hidden;
  background: var(--canvas-deep);
}

.gallery-vibe__title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.marquee {
  display: flex;
  gap: var(--space-md);
  animation: marquee 30s linear infinite;
}

.marquee--reverse {
  animation-direction: reverse;
}

.marquee__item {
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.marquee__item:hover img {
  transform: scale(1.05);
}

.marquee__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}

.marquee__item:hover::after {
  border-color: var(--gold);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Gallery Gourmet (Carousel)
   -------------------------------------------------------------------------- */
.gallery-gourmet {
  padding: var(--space-4xl) 0;
  background: var(--canvas-dark);
}

.gallery-gourmet__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform var(--transition-smooth);
}

.carousel__slide {
  flex-shrink: 0;
  width: 100%;
  padding: 0 var(--space-md);
}

.carousel__slide img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.carousel__btn:hover {
  background: var(--gold);
  color: var(--canvas-deep);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-base);
}

.carousel__dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Action Grid (CTAs)
   -------------------------------------------------------------------------- */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 60vh;
}

@media (max-width: 768px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  text-align: center;
  overflow: hidden;
  min-height: 400px;
}

.action-card--book {
  background: linear-gradient(135deg, var(--canvas-deep) 0%, #1a1510 100%);
}

.action-card--menu {
  background: var(--canvas-elevated);
}

.action-card__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  z-index: 0;
}

.action-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-card__content {
  position: relative;
  z-index: 1;
}

.action-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  color: var(--gold);
}

.action-card__title {
  margin-bottom: var(--space-sm);
}

.action-card__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 300px;
}

/* --------------------------------------------------------------------------
   Contact Footer
   -------------------------------------------------------------------------- */
.contact-footer {
  background: var(--canvas-deep);
  padding-top: var(--space-4xl);
}

.contact-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 900px) {
  .contact-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Form */
.contact-form {
  max-width: 500px;
}

.contact-form__title {
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--canvas-elevated);
  border: 1px solid var(--canvas-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
}

.form-group input.success,
.form-group textarea.success {
  border-color: var(--gold);
}

.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  text-align: center;
}

.form-message--success {
  background: rgba(92, 196, 92, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-message--error {
  background: rgba(196, 92, 92, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

/* Map Container */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(90%) contrast(90%);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--canvas-elevated);
  padding: var(--space-xl) 0;
}

.footer-bottom__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom__logo {
  width: 80px;
}

.footer-bottom__info {
  text-align: center;
}

.footer-bottom__address {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.footer-bottom__hours {
  color: var(--gold);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Copyright */
.copyright {
  text-align: center;
  padding: var(--space-md) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Custom Cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
}

.cursor.hovering {
  width: 40px;
  height: 40px;
  background: var(--gold-glow);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--canvas-elevated);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Reveal Animations (Base states)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.9);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-py: clamp(3rem, 8vw, 5rem);
  }
  
  .hero__scroll {
    bottom: var(--space-lg);
  }
  
  .philosophy__grid {
    grid-template-columns: 1fr;
  }
  
  .marquee__item {
    width: 250px;
    height: 320px;
  }
  
  .footer-bottom__content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.8rem;
  }
  
  .carousel__nav {
    gap: var(--space-md);
  }
  
  .carousel__btn {
    width: 44px;
    height: 44px;
  }
}
