/* ===================================
   BUFFET EMPIRE - Design System
   =================================== */

/* CSS Variables - Color Palette */
:root {
  /* Brand Colors */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-navy: #1B3A5C;
  --color-navy-dark: #0F2540;
  --color-navy-light: #2C4E76;
  --color-gold: #B8954D;
  --color-gold-dark: #9A7B3F;
  --color-gold-light: #C9A961;

  /* Semantic Colors */
  --background: var(--color-black);
  --foreground: var(--color-white);
  --primary: var(--color-navy);
  --primary-hover: var(--color-navy-light);
  --secondary: var(--color-gold);
  --secondary-hover: var(--color-gold-dark);

  /* UI Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-hover: rgba(255, 255, 255, 0.08);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography */
  --font-primary: 'DM Serif Display', Georgia, serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  /* Metallic Gold Gradient - Darker Royal Gold */
  --gold-metallic: linear-gradient(135deg,
      #9A7B3F 0%,
      #B8954D 20%,
      #D4AF37 40%,
      #B8954D 60%,
      #8B7355 80%,
      #9A7B3F 100%);
  --gold-shine: linear-gradient(90deg,
      #8B7355 0%,
      #B8954D 25%,
      #D4AF37 50%,
      #B8954D 75%,
      #8B7355 100%);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow-navy: 0 0 40px rgba(27, 58, 92, 0.4);
  --shadow-glow-gold: 0 0 40px rgba(201, 169, 97, 0.3);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

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

body {
  font-family: var(--font-primary);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 20%;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/logo.png');
  background-repeat: repeat;
  background-size: 1000px 500px;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 1.5s linear infinite;
  font-weight: 400;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 2px 8px rgba(184, 149, 77, 0.5));
}

@keyframes shineEffect {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 1.5s linear infinite;
  font-weight: 400;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 2px 6px rgba(184, 149, 77, 0.4));
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 1.5s linear infinite;
  /* Faster animation */
  font-weight: 400;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 1px 4px rgba(184, 149, 77, 0.4));
}

h4 {
  font-size: 1.5rem;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 1s linear infinite;
  /* Faster animation */
  font-weight: 400;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 1px 3px rgba(184, 149, 77, 0.3));
}

h5 {
  font-size: 1.25rem;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 1s linear infinite;
  /* Faster animation */
  font-weight: 400;
  filter: drop-shadow(0 1px 2px rgba(184, 149, 77, 0.3));
}

h6 {
  font-size: 1rem;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 1s linear infinite;
  /* Faster animation */
  font-weight: 400;
  filter: drop-shadow(0 1px 2px rgba(184, 149, 77, 0.2));
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.1), rgba(184, 149, 77, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  border: 2px dashed var(--border);
  transition: all var(--transition-base);
}

.product-card:hover .product-image-placeholder {
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.15), rgba(184, 149, 77, 0.1));
  border-color: var(--color-gold);
  transform: scale(1.02);
}

.product-card ul {
  list-style: none;
  padding: 0;
}

.product-card ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.product-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}


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

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

/* ===================================
   LAYOUT
   =================================== */

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

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 1280px;
  margin: 0 auto;
  max-height: 100px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo {
  height: 120px;
  width: auto;
  transition: transform var(--transition-base);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(184, 149, 77, 0.4));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 1.125rem;
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-shine);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: #D4AF37;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Simple Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-navy-dark);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: rgba(184, 149, 77, 0.15);
  color: var(--color-gold);
  padding-left: 1.5rem;
}

/* Category Links on Products Page */
.category-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(27, 58, 92, 0.2);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.category-link:hover {
  background: var(--color-navy);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-align: center;
}

.btn-primary {
  background: var(--gold-metallic);
  background-size: 200% auto;
  color: var(--color-black);
  box-shadow: 0 4px 12px rgba(184, 149, 77, 0.3);
  animation: shineEffect 1.5s linear infinite;
  border: 1px solid var(--color-gold-dark);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 149, 77, 0.5);
  background-position: right center;
  color: var(--color-navy-dark);
}

.btn-secondary {
  background: var(--gold-metallic);
  background-size: 200% auto;
  color: var(--color-black);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base), background-position 0.5s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4), var(--shadow-md);
  background-position: right center;
  color: var(--color-navy-dark);
}

.btn-outline {
  background: var(--color-navy);
  color: var(--color-white);
  border: 1.5px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 149, 77, 0.3);
}

/* ===================================
   CARDS
   =================================== */

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-shine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-white);
}

.card-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===================================
   GRID LAYOUTS
   =================================== */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(27, 58, 92, 0.15) 0%,
      transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 1.5s linear infinite, fadeInUp 1s ease-out;
  filter: drop-shadow(0 4px 12px rgba(184, 149, 77, 0.6));
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 1s ease-out 0.2s both;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===================================
   FORM ELEMENTS
   =================================== */

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

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-white);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.2);
}

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

/* ===================================
   UTILITIES
   =================================== */

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

.text-gradient {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shineEffect 3s linear infinite;
  filter: drop-shadow(0 2px 6px rgba(184, 149, 77, 0.4));
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

/* ===================================
   PAGE TRANSITIONS
   =================================== */

.page {
  opacity: 0;
  animation: pageIn 0.5s ease-out forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-cta {
    flex-direction: column;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Center align all mobile content */
  .container,
  .hero-content,
  .card,
  .section {
    text-align: center;
  }

  /* Make footer quick links horizontal */
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .logo {
    height: 55px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .card {
    padding: var(--spacing-lg);
  }
}

/* ===================================
   LOADING ANIMATION
   =================================== */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(16, 185, 129, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  background-size: 1000px 100%;
}