/* ===== CSS Variables ===== */
:root {
  --color-primary: #2C1810;
  --color-cream: #F5F1ED;
  --color-caramel: #D4A574;
  --color-dark-brown: #1A0F08;
  --color-light-caramel: #E8D4BC;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-brown) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(213,165,116,0.1)"/></svg>');
  background-size: 100px 100px;
  animation: float 20s linear infinite;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(26,15,8,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-cream);
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-caramel);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212,165,116,0.3);
  font-size: 1.1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212,165,116,0.5);
  background-color: var(--color-light-caramel);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-caramel);
  border-radius: 25px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-caramel);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { top: 10px; opacity: 1; }
  50% { top: 25px; opacity: 0.5; }
  100% { top: 10px; opacity: 1; }
}

/* ===== Section Titles ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-caramel);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ===== Menu Section ===== */
.menu-section {
  padding: 100px 0;
  background-color: var(--color-cream);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.menu-item {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(44,24,16,0.1);
}

.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(44,24,16,0.2);
}

.menu-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

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

.menu-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.menu-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.menu-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-caramel);
}

/* ===== Location Section ===== */
.location-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-brown) 100%);
  color: var(--color-cream);
}

.location-section .section-title {
  color: var(--color-cream);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.location-info .info-block {
  margin-bottom: 2rem;
}

.location-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-caramel);
}

.location-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.map-placeholder {
  background: rgba(245,241,237,0.1);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212,165,116,0.3);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.map-placeholder p {
  font-size: 1.2rem;
  color: var(--color-light-caramel);
}

/* ===== Loyalty Section ===== */
.loyalty-section {
  padding: 100px 0;
  background-color: var(--color-cream);
}

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

.benefit {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.benefit p {
  color: #666;
}

/* ===== Loyalty Form (Glassmorphism) ===== */
.loyalty-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(44,24,16,0.15);
  border: 1px solid rgba(255,255,255,0.8);
}

.loyalty-form .form-group {
  margin-bottom: 1.5rem;
}

.loyalty-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.loyalty-form input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(212,165,116,0.3);
  border-radius: 15px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
  background: white;
}

.loyalty-form input:focus {
  outline: none;
  border-color: var(--color-caramel);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.1);
}

.submit-button {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--color-caramel) 0%, var(--color-light-caramel) 100%);
  color: var(--color-primary);
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212,165,116,0.4);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.button-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-button.loading .button-text {
  opacity: 0;
}

.submit-button.loading .button-loader {
  display: block;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

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

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-caramel);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-cream);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-caramel);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.social-icons span {
  cursor: pointer;
  transition: var(--transition);
}

.social-icons span:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,241,237,0.2);
  opacity: 0.7;
}

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

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

  .loyalty-form-container {
    padding: 2rem 1.5rem;
  }

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

  .footer-links {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ===== Smooth Animations on Scroll ===== */
@media (prefers-reduced-motion: no-preference) {
  .menu-item,
  .benefit,
  .info-block {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
  }

  .menu-item:nth-child(1) { animation-delay: 0.1s; }
  .menu-item:nth-child(2) { animation-delay: 0.2s; }
  .menu-item:nth-child(3) { animation-delay: 0.3s; }
  .menu-item:nth-child(4) { animation-delay: 0.4s; }
  .menu-item:nth-child(5) { animation-delay: 0.5s; }
  .menu-item:nth-child(6) { animation-delay: 0.6s; }

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