/* Sunny Drip Coffee Shop - Styles */

/* === CSS Variables === */
:root {
  --coffee-brown: #6B4423;
  --cream-ivory: #F5F1E8;
  --warm-gold: #D4A574;
  --deep-espresso: #3E2723;
  --soft-peach: #E8D5C4;
  --light-honey: #F9E8D6;

  --font-headline: 'Merriweather', serif;
  --font-body: 'Lora', serif;
  --font-accent: 'Playfair Display', serif;
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--deep-espresso);
  background-color: var(--cream-ivory);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* === Typography === */
h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  color: var(--coffee-brown);
  margin-bottom: 2rem;
  text-align: center;
}

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

/* === Hero Section === */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--coffee-brown) 0%, var(--warm-gold) 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-accent);
  font-size: 5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--light-honey);
  color: var(--deep-espresso);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: var(--soft-peach);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.menu-card {
  background-color: var(--light-honey);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(107, 68, 35, 0.1);
  transition: all 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(107, 68, 35, 0.2);
  background-color: var(--soft-peach);
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--warm-gold);
  padding-bottom: 0.5rem;
}

.menu-item-name {
  font-size: 1.5rem;
  color: var(--coffee-brown);
}

.menu-item-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--warm-gold);
}

.menu-item-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep-espresso);
}

/* === Location Section === */
.location-section {
  padding: 5rem 0;
  background-color: white;
}

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

.location-text .section-title {
  text-align: left;
  margin-bottom: 2.5rem;
}

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

.detail-group {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--soft-peach);
}

.detail-group:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 1.25rem;
  color: var(--coffee-brown);
  margin-bottom: 0.5rem;
  font-family: var(--font-accent);
}

.detail-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--deep-espresso);
}

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

.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: var(--light-honey);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(107, 68, 35, 0.1);
}

.map-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.7;
}

.map-placeholder p {
  color: var(--coffee-brown);
  font-weight: 600;
  font-size: 1.1rem;
}

/* === Loyalty Section === */
.loyalty-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--warm-gold) 0%, var(--coffee-brown) 100%);
  color: white;
}

.loyalty-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.loyalty-title {
  color: white;
  margin-bottom: 1rem;
}

.loyalty-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.loyalty-form {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  color: var(--coffee-brown);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--soft-peach);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--deep-espresso);
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--coffee-brown);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover:not(:disabled) {
  background-color: var(--deep-espresso);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  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 {
  padding: 2rem 0;
  background-color: var(--deep-espresso);
  color: var(--light-honey);
  text-align: center;
}

.footer p {
  font-size: 0.95rem;
}

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

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

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

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

  .location-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .location-text .section-title {
    text-align: center;
  }

  .map-placeholder {
    height: 300px;
  }

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

  .container {
    padding: 0 1.5rem;
  }
}

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

  .hero {
    min-height: 70vh;
    padding: 3rem 1.5rem;
  }

  .menu-card {
    padding: 1.5rem;
  }

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