/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors - Casual Pizza Restaurant Theme */
  --primary-color: #d32f2f;
  --primary-dark: #b71c1c;
  --primary-light: #ff6659;
  --secondary-color: #ffa000;
  --secondary-dark: #f57c00;
  --secondary-light: #ffc947;
  --accent-color: #388e3c;
  --text-dark: #212121;
  --text-medium: #616161;
  --text-light: #9e9e9e;
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-medium: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --overlay: rgba(0, 0, 0, 0.5);

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

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

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1140px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
}

/* ==================== 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);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

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

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

ul {
  list-style: none;
}

/* ==================== LAYOUT COMPONENTS ==================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 0 auto var(--spacing-sm);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: transform var(--transition-normal);
}

.navbar.navbar--hidden {
  transform: translateY(-100%);
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.navbar__brand {
  display: flex;
  flex-direction: column;
}

.navbar__logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.navbar__tagline {
  font-size: 0.875rem;
  color: var(--text-medium);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition-fast);
}

.navbar__menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.navbar__link {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.navbar__link:hover {
  background: var(--bg-light);
}

.navbar__link--cta {
  background: var(--primary-color);
  color: var(--bg-white);
}

.navbar__link--cta:hover {
  background: var(--primary-dark);
  color: var(--bg-white);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  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(135deg, rgba(211, 47, 47, 0.7), rgba(56, 142, 60, 0.5));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--spacing-md);
}

.hero__title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
}

.rating__stars {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.rating__score {
  font-size: 1.25rem;
  font-weight: 700;
}

.rating__count {
  font-size: 0.875rem;
  opacity: 0.9;
}

.hero__price {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.125rem;
}

.hero__buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid var(--bg-white);
  border-radius: 15px;
  position: relative;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--bg-white);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary-color);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

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

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

.btn--secondary:hover {
  background: var(--bg-white);
  color: var(--primary-color);
}

/* ==================== ABOUT SECTION ==================== */
.about {
  background: var(--bg-light);
}

.about__description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.highlight {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight__icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.highlight__title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.highlight__text {
  color: var(--text-medium);
}

/* ==================== FEATURES SECTION ==================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.feature-card__text {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

/* ==================== GALLERY SECTION ==================== */
.gallery {
  background: var(--bg-light);
}

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

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

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

/* ==================== REVIEWS SECTION ==================== */
.reviews__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
}

.reviews__score {
  text-align: center;
}

.reviews__score-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.reviews__score-stars {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: var(--spacing-xs) 0;
}

.reviews__score-text {
  color: var(--text-medium);
}

.reviews__distribution {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.distribution-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.distribution-bar__label {
  min-width: 70px;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.distribution-bar__track {
  flex: 1;
  height: 8px;
  background: var(--bg-medium);
  border-radius: 4px;
  overflow: hidden;
}

.distribution-bar__fill {
  height: 100%;
  background: var(--secondary-color);
  transition: width var(--transition-slow);
}

.distribution-bar__count {
  min-width: 30px;
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-medium);
}

.reviews__carousel {
  position: relative;
  margin-top: var(--spacing-lg);
}

.reviews__slider {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--spacing-sm) 0;
  scrollbar-width: none;
}

.reviews__slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 calc(33.333% - var(--spacing-md));
  background: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.review-card__stars {
  color: var(--secondary-color);
  font-size: 1.125rem;
}

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

.review-card__text {
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__footer {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

.review-card__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.review-card__rating {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.review-card__price,
.review-card__recommendation {
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.carousel__btn:hover {
  background: var(--primary-color);
  color: var(--bg-white);
}

.carousel__btn--prev {
  left: -20px;
}

.carousel__btn--next {
  right: -20px;
}

/* ==================== OPENING HOURS ==================== */
.hours {
  background: var(--bg-light);
}

.hours__grid {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hours__day {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

.hours__day:last-child {
  border-bottom: none;
}

.hours__day:hover {
  background: var(--bg-light);
}

.hours__day-name {
  font-weight: 600;
  color: var(--text-dark);
}

.hours__day-time {
  color: var(--accent-color);
  font-weight: 500;
}

.hours__day--closed .hours__day-time {
  color: var(--primary-color);
}

/* ==================== CONTACT SECTION ==================== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact__item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.contact__item:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.contact__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact__value {
  font-size: 1rem;
  color: var(--text-dark);
}

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

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

/* ==================== FOOTER ==================== */
.footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer__logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--primary-light);
  margin-bottom: var(--spacing-xs);
}

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

.footer__text {
  margin-bottom: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
}

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

.footer__bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.lightbox.active {
  display: flex;
}

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

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  color: var(--bg-white);
  border: none;
  font-size: 2rem;
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: var(--border-radius);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__close {
  top: var(--spacing-md);
  right: var(--spacing-md);
}

.lightbox__prev {
  left: var(--spacing-md);
}

.lightbox__next {
  right: var(--spacing-md);
}

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

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

@keyframes scroll {
  0% {
    opacity: 0;
    top: 8px;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 30px;
  }
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 1023px) {
  .review-card {
    flex: 0 0 calc(50% - var(--spacing-md));
  }

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

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

@media (max-width: 767px) {
  /* Navigation */
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .navbar__menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Hero */
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .hero__rating {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .hero__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }

  /* Reviews */
  .review-card {
    flex: 0 0 calc(100% - var(--spacing-md));
  }

  .carousel__btn {
    display: none;
  }

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

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .section {
    padding: var(--spacing-md) 0;
  }

  .hero__title {
    font-size: 1.75rem;
  }

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

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