/* ==================== */
/* CSS Variables & Reset */
/* ==================== */

:root {
  --espresso-dark: #2D1B12;
  --caramel-warm: #C17A3F;
  --cream-light: #F4EBE1;
  --latte-foam: #E8DCC8;
  --amber-glow: #D4965C;
  --steam-blue: #A8C7D8;
  --cinnamon-spice: #8B4513;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Crimson Pro', serif;
  color: var(--espresso-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== */
/* Typography */
/* ==================== */

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--espresso-dark);
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--cinnamon-spice);
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ==================== */
/* Utility Classes */
/* ==================== */

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

/* Fade-in animation for scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==================== */
/* Navigation Bar */
/* ==================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(45, 27, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--cream-light);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--cream-light);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber-glow);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--amber-glow);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 40% 60%, #C17A3F 0%, #2D1B12 80%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 10;
  color: var(--cream-light);
}

.hero-logo {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  font-style: italic;
  opacity: 0.9;
}

/* Steam Animation */
.steam-container {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 400px;
  pointer-events: none;
}

.steam-wisp {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: steam-rise 4s infinite ease-out;
  opacity: 0;
}

.steam-wisp-1 {
  left: 40%;
  animation-delay: 0s;
}

.steam-wisp-2 {
  left: 50%;
  animation-delay: 1.3s;
}

.steam-wisp-3 {
  left: 60%;
  animation-delay: 2.6s;
}

@keyframes steam-rise {
  0% {
    transform: translateY(0) translateX(0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.4;
    transform: translateY(-150px) translateX(20px) scale(1.2);
  }
  100% {
    transform: translateY(-300px) translateX(-30px) scale(1.5);
    opacity: 0;
  }
}

/* ==================== */
/* Menu Section */
/* ==================== */

.menu-section {
  padding: 6rem 0;
  background: var(--cream-light);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.menu-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(45, 27, 18, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(45, 27, 18, 0.15);
}

.menu-item-name {
  font-size: 1.75rem;
  color: var(--espresso-dark);
  margin-bottom: 1rem;
}

.menu-item-description {
  font-size: 1.1rem;
  color: var(--cinnamon-spice);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.menu-item-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--caramel-warm);
}

/* ==================== */
/* Location Section */
/* ==================== */

.location-section {
  padding: 6rem 0;
  background: var(--latte-foam);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.location-map {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(45, 27, 18, 0.1);
}

.map-placeholder p {
  margin-top: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--cinnamon-spice);
  font-weight: 500;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block h3 {
  font-size: 1.5rem;
  color: var(--espresso-dark);
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.info-block p {
  font-size: 1.1rem;
  color: var(--cinnamon-spice);
  line-height: 1.8;
}

.hours-list {
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1.1rem;
  color: var(--cinnamon-spice);
  border-bottom: 1px solid rgba(45, 27, 18, 0.1);
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li span:first-child {
  font-weight: 600;
}

/* ==================== */
/* Loyalty Section */
/* ==================== */

.loyalty-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #F4EBE1 0%, #D4E7F2 100%);
}

.loyalty-form-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.loyalty-form {
  transition: opacity 0.3s ease;
}

.loyalty-form.form-hidden {
  opacity: 0;
  pointer-events: none;
}

.form-group {
  display: flex;
  gap: 0.5rem;
  background: white;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(45, 27, 18, 0.1);
}

.form-group input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--espresso-dark);
}

.form-group input::placeholder {
  color: var(--cinnamon-spice);
  opacity: 0.6;
}

.submit-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  background: var(--caramel-warm);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.submit-btn:hover {
  background: var(--amber-glow);
  transform: scale(1.05);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn.loading {
  background: var(--cinnamon-spice);
  pointer-events: none;
}

.btn-text,
.btn-loading {
  transition: opacity 0.3s ease;
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: inline;
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  min-height: 1.5rem;
  transition: all 0.3s ease;
}

.form-message.error {
  color: #d32f2f;
  animation: shake 0.5s;
}

.form-message.success {
  color: #2e7d32;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.success-message.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.success-message svg {
  margin-bottom: 1.5rem;
  animation: success-pop 0.5s ease;
}

@keyframes success-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-message h3 {
  font-size: 2rem;
  color: var(--espresso-dark);
  margin-bottom: 0.5rem;
}

.success-message p {
  font-size: 1.1rem;
  color: var(--cinnamon-spice);
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
  background: var(--espresso-dark);
  color: var(--cream-light);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin: 0.5rem 0;
  opacity: 0.8;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.95rem;
}

/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 768px) {
  /* Typography */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-logo {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(45, 27, 18, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-links li {
    padding: 1rem 2rem;
    text-align: center;
  }

  .nav-links a::after {
    display: none;
  }

  /* Sections */
  .menu-section,
  .location-section,
  .loyalty-section {
    padding: 3rem 0;
  }

  /* Menu Grid */
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Location Grid */
  .location-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .map-placeholder {
    padding: 2rem;
  }

  .map-placeholder svg {
    width: 150px;
    height: 150px;
  }

  /* Loyalty Form */
  .form-group {
    flex-direction: column;
    gap: 1rem;
    border-radius: 20px;
  }

  .form-group input {
    text-align: center;
  }

  .submit-btn {
    width: 100%;
  }

  /* Container padding */
  .container {
    padding: 0 1.5rem;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    font-size: 2.5rem;
  }

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

  .menu-item-name {
    font-size: 1.5rem;
  }
}
