/* Restaurant Starter Template - Custom Styles */

/* CSS Variables */
:root {
  --color-cream: #FAF7F2;
  --color-charcoal: #2C2C2C;
  --color-warm-brown: #8B4513;
  --color-gold-accent: #C9A227;
  --color-sage: #7D8471;
  --color-white: #FFFFFF;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection colour */
::selection {
  background-color: var(--color-gold-accent);
  color: white;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-gold-accent);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-gold-accent);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Scroll reveal - initially hidden */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold-accent);
  transition: width 0.3s ease;
}

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

/* Mobile menu transitions */
.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu.hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header scroll transition */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: var(--color-cream) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-link {
  color: var(--color-charcoal);
}

header.scrolled .logo-text {
  color: var(--color-charcoal);
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Image hover effects */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

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

/* Gallery overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* Menu tabs */
.menu-tab {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.menu-tab:hover,
.menu-tab.active {
  color: var(--color-gold-accent);
  border-bottom-color: var(--color-gold-accent);
}

/* Menu item styling */
.menu-item {
  padding: 1rem 0;
  border-bottom: 1px dashed #e5e5e5;
}

.menu-item:last-child {
  border-bottom: none;
}

/* Dietary tags */
.dietary-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  margin-right: 4px;
}

.dietary-tag.v {
  background-color: #22c55e;
  color: white;
}

.dietary-tag.vg {
  background-color: #16a34a;
  color: white;
}

.dietary-tag.gf {
  background-color: #f59e0b;
  color: white;
}

.dietary-tag.n {
  background-color: #ef4444;
  color: white;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: white;
}

.form-input:focus {
  border-color: var(--color-gold-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
  outline: none;
}

.form-input.error {
  border-color: #ef4444;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-charcoal);
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-gold-accent);
  color: white;
  border: 2px solid var(--color-gold-accent);
}

.btn-primary:hover {
  background-color: #b8922a;
  border-color: #b8922a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

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

.btn-outline:hover {
  background-color: white;
  color: var(--color-charcoal);
  transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
  background-color: var(--color-charcoal);
  color: white;
  transform: translateY(-2px);
}

/* Card styles */
.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Decorative elements */
.decorative-line {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold-accent);
  margin: 1rem auto;
}

.decorative-line-left {
  margin-left: 0;
}

/* Quote marks for testimonials */
.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--color-gold-accent);
  opacity: 0.3;
  line-height: 1;
}

/* Star rating */
.star-rating {
  color: var(--color-gold-accent);
}

/* Page header overlay */
.page-header-overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-sage);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-warm-brown);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Print styles */
@media print {
  header, footer, .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }
}
