:root {
  --primary: #ff2e00;
  --secondary: #ffc300;
  --bg: #fff9f4;
  --text: #1c1c1c;
  --muted: #6e6e6e;
  --success: #28a745;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border: #e9ecef;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);

  --font-heading: "Bebas Neue", cursive;
  --font-body: "Open Sans", sans-serif;

  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #e02600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 46, 0, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
}

.btn-secondary:hover {
  background: #e0ae00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 195, 0, 0.3);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 249, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  min-height: 70px;
}

.logo {
  font-size: 2rem;
  color: var(--primary);
  margin: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--light-gray);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(25%, -25%);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 46, 0, 0.8), rgba(255, 195, 0, 0.6));
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Menu Section */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.menu-item {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  position: relative;
}

.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.menu-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item:hover .menu-image img {
  transform: scale(1.1);
}

.menu-info {
  padding: 1.5rem;
}

.menu-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.menu-description {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.menu-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.menu-item:hover .add-to-cart {
  opacity: 1;
  transform: translateY(0);
}

/* Promo Section */
.promo {
  background: var(--light-gray);
}

.promo-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.promo-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.promo-slide {
  min-width: 100%;
  background: var(--white);
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.promo-image {
  flex: 1;
  max-width: 300px;
}

.promo-image img {
  border-radius: var(--border-radius);
}

.promo-info {
  flex: 1.5;
}

.promo-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.promo-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.promo-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1rem;
}

.new-price {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
}

.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.promo-nav:hover {
  background: var(--white);
  box-shadow: 0 4px 12px var(--shadow);
}

.promo-nav.prev {
  left: 1rem;
}

.promo-nav.next {
  right: 1rem;
}

.promo-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--white);
}

.promo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.promo-dot.active {
  background: var(--primary);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.feature-info h4 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.feature-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

/* Testimonials Section */
.testimonials {
  background: var(--light-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.stars {
  color: var(--secondary);
  font-size: 1.25rem;
}

.testimonial-text {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h5 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
}

.author-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.contact-item h5 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-item p {
  color: var(--muted);
  margin: 0;
}

/* Form Styles */
.order-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.order-form h3 {
  margin-bottom: 2rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 46, 0, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #dc3545;
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-links h5,
.footer-contact h5,
.footer-social h5 {
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.social-links a:hover {
  color: var(--primary);
  background: rgba(255, 46, 0, 0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Shopping Cart Modal */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cart-modal.show {
  display: flex;
}

.cart-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  margin: 0;
  color: var(--text);
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.cart-close:hover {
  background: var(--light-gray);
  color: var(--text);
}

.cart-body {
  padding: 1.5rem;
  min-height: 200px;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--primary);
  font-weight: bold;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: var(--light-gray);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.remove-item {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.remove-item:hover {
  background: rgba(220, 53, 69, 0.1);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 100px;
  right: 1rem;
  background: var(--success);
  color: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-lg);
  z-index: 3000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: var(--transition);
}

.toast-close:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .order-btn {
    display: none;
  }

  /* Hero */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Sections */
  section {
    padding: 3rem 0;
  }

  /* Menu Grid */
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Promo */
  .promo-content {
    flex-direction: column;
    text-align: center;
  }

  .promo-nav {
    display: none;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Toast */
  .toast {
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .promo-content {
    padding: 1rem;
  }

  .order-form {
    padding: 1.5rem;
  }

  .cart-content {
    margin: 0.5rem;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.cart-btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}
