/* CSS Variables */
:root {
  --primary-color: #8B4513;
  --secondary-color: #D2691E;
  --accent-color: #DEB887;
  --text-color: #2c2c2c;
  --text-light: #666666;
  --background-color: #ffffff;
  --background-alt: #f8f7f4;
  --border-color: #e0e0e0;
  --success-color: #52c41a;
  --warning-color: #faad14;
  --error-color: #f5222d;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

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

/* Layout Components */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

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

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

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

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.navbar__logo {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.navbar__menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

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

.navbar__toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 70px;
}

.hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__slide--active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(210, 105, 30, 0.6));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero__arrow--left {
  left: 20px;
}

.hero__arrow--right {
  right: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: white;
  border-color: white;
}

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

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--background-alt);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature-card__text {
  color: var(--text-light);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about__text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.highlight {
  text-align: center;
  padding: 1rem;
  background: var(--background-alt);
  border-radius: 8px;
}

.highlight h4 {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.amenities-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.amenity-item {
  padding-left: 1.5rem;
  position: relative;
}

.amenity-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.amenity-item.available::before {
  content: '✓';
  background: var(--success-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.amenity-item.unavailable {
  opacity: 0.5;
  text-decoration: line-through;
}

.amenity-item.unavailable::before {
  content: '×';
  background: var(--error-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Menu Section */
.menu {
  padding: 5rem 0;
  background: var(--background-alt);
}

.menu__categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.menu__category-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.menu__category-btn:hover,
.menu__category-btn--active {
  background: var(--primary-color);
  color: white;
}

.menu__section {
  display: none;
}

.menu__section--active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.menu-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.menu-item__name {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.menu-item__description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.menu-item__price {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.menu-item__tag {
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Gallery Section */
.gallery {
  padding: 5rem 0;
}

.gallery__filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery__filter {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery__filter:hover,
.gallery__filter--active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 69, 19, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__zoom {
  color: white;
  font-size: 2rem;
  font-weight: 300;
}

/* Reviews Section */
.reviews {
  padding: 5rem 0;
  background: var(--background-alt);
}

.reviews__summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.reviews__rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
}

.reviews__score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.reviews__count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.distribution-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.distribution-bar span:first-child {
  width: 30px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.bar-container {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.5s ease;
}

.distribution-bar span:last-child {
  width: 40px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-light);
}

.reviews__carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.reviews__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-card__rating {
  display: flex;
  gap: 2px;
}

.review-card__date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.review-card__text {
  color: var(--text-color);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-card__footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-card__badge,
.review-card__context {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--background-alt);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.reviews__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
  z-index: 2;
}

.reviews__arrow:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.reviews__arrow--left {
  left: 0;
}

.reviews__arrow--right {
  right: 0;
}

/* Hours & Location Section */
.hours-location {
  padding: 5rem 0;
}

.hours-location__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.hours-card,
.location-card,
.popular-times-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.hours-card__title,
.location-card__title,
.popular-times-card__title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hours-card__schedule {
  margin-bottom: 1.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hours-item--current {
  background: var(--background-alt);
  padding: 0.75rem 1rem;
  margin: 0 -1rem;
  border-radius: 8px;
  font-weight: 600;
}

.hours-card__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item__icon {
  font-size: 1.5rem;
}

.info-item__content strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.location-card__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.popular-times__chart {
  height: 200px;
  margin-bottom: 1rem;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.popular-times__legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-item::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-item--quiet::before {
  background: #a8e6cf;
}

.legend-item--moderate::before {
  background: #ffd3b6;
}

.legend-item--busy::before {
  background: #ffaaa5;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ddd;
  font-size: 1.2rem;
}

.star.filled {
  color: #ffd700;
}

.star.half {
  position: relative;
  color: #ddd;
}

.star.half::before {
  content: '★';
  position: absolute;
  color: #ffd700;
  width: 50%;
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--text-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__brand h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.footer__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__section h5 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer__section ul {
  list-style: none;
}

.footer__section li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer__section a {
  color: white;
  opacity: 0.8;
}

.footer__section a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

.lightbox__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox__close:hover {
  transform: scale(1.2);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: var(--transition);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  transform: translateY(-50%) scale(1.2);
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Media Queries */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .review-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 720px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .navbar__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: left 0.3s ease;
  }

  .navbar__menu.active {
    left: 0;
  }

  .navbar__toggle {
    display: flex;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .about__content {
    grid-template-columns: 1fr;
  }

  .reviews__summary {
    grid-template-columns: 1fr;
  }

  .reviews__rating {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .review-card {
    flex: 0 0 100%;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }

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

  .hours-location__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__arrow {
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
  }

  .features__grid,
  .menu__grid,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .location-card__buttons {
    flex-direction: column;
  }
}