/* ============================================================
   Divan Restaurant - Shared Stylesheet
   ============================================================ */

/* === Section 1: Reset, Custom Properties, Typography === */

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

:root {
  --color-red: #C41E3A;
  --color-red-dark: #A01830;
  --color-black: #1A1A1A;
  --color-white: #FFFFFF;
  --color-olive: #556B2F;
  --color-olive-light: #6B8E3A;
  --color-gray-light: #F5F5F5;
  --color-gray: #E0E0E0;
  --color-gray-dark: #666666;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --section-padding: 100px 20px;
  --container-max: 1200px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-black);
}


/* === Section 2: Navigation === */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-black);
  padding: 0 20px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  font-weight: 700;
}

.navbar-logo span {
  color: var(--color-red);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--color-white);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-red);
}

.lang-toggle {
  background: var(--color-olive);
  color: var(--color-white);
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s;
}

.lang-toggle:hover {
  background: var(--color-olive-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-black);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav-links.active {
    display: flex;
  }
}


/* === Section 3: Buttons === */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-red-dark);
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
}


/* === Section 4: Hero === */

.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}


/* === Section 5: About === */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-gray-dark);
}

.about-image img {
  border-radius: 8px;
}

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


/* === Section 6: Gallery === */

.gallery {
  background: var(--color-gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* === Section 7: Contact + Footer === */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-olive);
}

.contact-item a {
  color: var(--color-red);
}

.contact-item a:hover {
  text-decoration: underline;
}

.map-placeholder {
  width: 100%;
  border-radius: 8px;
  transition: opacity 0.3s;
}

.map-placeholder:hover {
  opacity: 0.85;
}

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

.footer {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.footer-social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  color: var(--color-gray);
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--color-red);
}


/* === Section 8: Menu Page === */

.menu-page {
  padding-top: 90px;
  padding-bottom: 60px;
}

.menu-page-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.menu-tab {
  padding: 10px 20px;
  border: 2px solid var(--color-olive);
  background: transparent;
  color: var(--color-olive);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.menu-tab:hover,
.menu-tab.active {
  background: var(--color-olive);
  color: var(--color-white);
}

.menu-category {
  display: none;
}

.menu-category.active {
  display: block;
}

.category-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--color-black);
}

.category-title span {
  color: var(--color-gray-dark);
  font-weight: 400;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.menu-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.3s;
}

.menu-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.menu-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-nr {
  font-size: 0.8rem;
  color: var(--color-gray-dark);
  font-weight: 600;
}

.menu-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.menu-desc {
  font-size: 0.9rem;
  color: var(--color-gray-dark);
}

.menu-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-red);
  margin-top: auto;
}

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

  .menu-tabs {
    gap: 6px;
  }

  .menu-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}


/* === Hero Animations === */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://placehold.co/1920x1080/1A1A1A/FFFFFF?text=Hero') center/cover no-repeat;
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-particles span {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: var(--opacity, 0.6);
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(5px); }
  50% { transform: translateY(-35px) translateX(-5px); }
  75% { transform: translateY(-15px) translateX(8px); }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animated .stagger-1 { transition-delay: 0.1s; }
.animate-on-scroll.animated .stagger-2 { transition-delay: 0.2s; }
.animate-on-scroll.animated .stagger-3 { transition-delay: 0.3s; }
.animate-on-scroll.animated .stagger-4 { transition-delay: 0.4s; }
.animate-on-scroll.animated .stagger-5 { transition-delay: 0.5s; }
.animate-on-scroll.animated .stagger-6 { transition-delay: 0.6s; }


/* === Section Dividers === */
.section-divider {
  display: flex;
  align-items: center;
  padding: 0 40px;
  margin: 0;
  color: var(--color-red);
  font-size: 0.8rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--color-gray);
}

.section-divider::before {
  margin-right: 16px;
}

.section-divider::after {
  margin-left: 16px;
}

/* === Enhanced Section Title === */
.section-title {
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-red);
  border-radius: 2px;
}


/* === Enhanced Menu Cards === */
.menu-card {
  border-left: 3px solid var(--color-olive);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.menu-nr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-olive);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.menu-price::before {
  content: '';
  border-top: 1px dotted var(--color-gray);
  display: block;
  margin-bottom: 6px;
}

/* === Enhanced Category Title === */
.menu-category-title {
  border-left: 4px solid var(--color-olive);
  padding-left: 16px;
}

/* === Contact Icons === */
.contact-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === Social Icons === */
.social-link {
  display: inline-flex;
  align-items: center;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--color-gray);
  transition: fill 0.3s;
}

.social-link:hover svg {
  fill: var(--color-red);
}
