/* ================================
   CSS VARIABLES
   ================================ */
:root {
  --color-primary: #d4a574;
  --color-primary-dark: #b88e5f;
  --color-primary-light: #f4e4c1;
  --color-secondary: #fff4e6;
  --color-accent: #ffd6e0;

  --color-text: #2d2d2d;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f8;
  --color-bg-dark: #1a1a1a;

  --color-success: #4ecdc4;
  --color-warning: #ffe66d;
  --color-error: #ff6b6b;

  --font-primary: 'Georgia', 'Times New Roman', serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
  font-weight: 600;
}

/* ================================
   UTILITIES
   ================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  color: inherit;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

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

.btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn--secondary:hover {
  background-color: #ffffff;
  color: var(--color-primary);
}

.stars {
  display: inline-flex;
  gap: 4px;
  color: #ffd700;
  font-size: 1.25rem;
}

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

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-primary-light);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ================================
   NAVIGATION
   ================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

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

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

.nav__logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav__menu {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 30px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

.hero__title {
  font-size: 4rem;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 24px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero__rating {
  margin-bottom: 32px;
}

.hero__rating-text {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  opacity: 0.8;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ================================
   ABOUT
   ================================ */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__text p {
  margin-bottom: 20px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about__features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 12px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.feature__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature__text {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

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

/* ================================
   FLAVORS
   ================================ */
.flavors__intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.9);
}

.flavors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.flavor-card {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.flavor-card:hover {
  background-color: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.flavor-card__icon {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flavor-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.flavor-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-weight: 600;
}

.flavor-card__description {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.flavors__note {
  text-align: center;
  padding: 20px;
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.9);
}

/* ================================
   GALLERY
   ================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 1;
}

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

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

.gallery__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
  opacity: 0;
  transition: var(--transition);
}

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

/* ================================
   REVIEWS
   ================================ */
.reviews__stats {
  max-width: 800px;
  margin: 0 auto 60px;
}

.rating-summary {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  background-color: rgba(255,255,255,0.05);
  padding: 40px;
  border-radius: var(--radius-lg);
}

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

.rating-summary__number {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.rating-summary__stars {
  margin-bottom: 8px;
}

.rating-summary__count {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rating-bar__label {
  width: 60px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
}

.rating-bar__track {
  flex: 1;
  height: 8px;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: width 1s ease;
}

.rating-bar__count {
  width: 40px;
  text-align: right;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.reviews__slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.reviews__carousel {
  overflow: hidden;
  padding: 20px 0;
}

.review-card {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0 10px;
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-card__stars {
  color: #ffd700;
}

.review-card__date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.review-card__text {
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-card__author {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card__badge {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
  z-index: 10;
}

.slider__btn:hover {
  background-color: var(--color-primary);
}

.slider__btn--prev {
  left: -60px;
}

.slider__btn--next {
  right: -60px;
}

/* ================================
   CONTACT
   ================================ */
.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.info-card__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.info-card__text {
  color: var(--color-text-light);
  line-height: 1.6;
}

.info-card__text a {
  color: var(--color-primary);
  font-weight: 500;
}

.info-card__text a:hover {
  text-decoration: underline;
}

.opening-hours__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.opening-hours__row:last-child {
  border-bottom: none;
}

.opening-hours__row--closed .opening-hours__time {
  color: var(--color-error);
  font-weight: 600;
}

.opening-hours__day {
  font-weight: 500;
}

.opening-hours__time {
  color: var(--color-text-light);
}

.contact__price {
  padding: 16px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  text-align: center;
}

.price-level {
  font-weight: 600;
  color: var(--color-text);
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 500px;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background-color: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.footer__heading {
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer__text {
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer__text--small {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.footer__text a {
  color: var(--color-primary);
}

.footer__text a:hover {
  text-decoration: underline;
}

.footer__atmosphere {
  margin-top: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer__source {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

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

.lightbox.active {
  display: flex;
}

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

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background-color: var(--color-primary);
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1023px) {
  .slider__btn--prev {
    left: 0;
  }

  .slider__btn--next {
    right: 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }

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

  .nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: left 0.3s;
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

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

  .about__image {
    order: -1;
  }

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

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

  .rating-summary {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .slider__btn {
    width: 40px;
    height: 40px;
  }

  .slider__btn--prev {
    left: 10px;
  }

  .slider__btn--next {
    right: 10px;
  }

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

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .section-title {
    font-size: 2.25rem;
  }

  .hero__title {
    font-size: 3rem;
  }

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

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

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Intersection Observer classes */
.observe-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

.observe-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-scale.in-view {
  opacity: 1;
  transform: scale(1);
}
