/* ===================================
   Morning Brew Coffee Shop Styles
   =================================== */

/* CSS Variables */
:root {
  --deep-espresso: #3E2723;
  --roasted-bean: #5D4037;
  --caramel-latte: #D4A574;
  --cream: #F5F1E8;
  --steamed-milk: #FDFAF5;
  --rich-mocha: #6F4E37;
  --warm-gradient: linear-gradient(135deg, #6F4E37 0%, #D4A574 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--deep-espresso);
  background-color: var(--steamed-milk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--warm-gradient);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(62, 39, 35, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--steamed-milk);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

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

.cta-button:active {
  transform: translateY(0);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease-out;
}

.coffee-image-placeholder {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.coffee-image-placeholder svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ===================================
   Menu Section
   =================================== */
.menu-section {
  padding: 6rem 0;
  background-color: var(--steamed-milk);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--deep-espresso);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--roasted-bean);
  text-align: center;
  margin-bottom: 4rem;
}

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

.menu-card {
  background-color: var(--cream);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(93, 64, 55, 0.1);
}

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

.menu-card-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.menu-card-icon svg {
  width: 100%;
  height: 100%;
}

.menu-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-espresso);
  margin-bottom: 1rem;
}

.menu-card-description {
  font-size: 1rem;
  color: var(--roasted-bean);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.menu-card-price {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--caramel-latte);
}

/* ===================================
   Location Section
   =================================== */
.location-section {
  padding: 6rem 0;
  background-color: var(--cream);
}

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

.location-info,
.hours-info {
  background-color: var(--steamed-milk);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.location-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--deep-espresso);
  margin-bottom: 1.5rem;
}

.location-address {
  font-size: 1.125rem;
  color: var(--roasted-bean);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.map-placeholder {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

.location-contact {
  font-size: 1rem;
  color: var(--roasted-bean);
  line-height: 1.8;
}

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

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(93, 64, 55, 0.1);
  font-size: 1.125rem;
}

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

.hours-item .day {
  font-weight: 500;
  color: var(--deep-espresso);
}

.hours-item .time {
  color: var(--roasted-bean);
}

.hours-today {
  background-color: rgba(212, 165, 116, 0.15);
  padding: 1rem;
  margin: 0 -1rem;
  border-radius: 8px;
  border-bottom: 1px solid var(--caramel-latte);
}

.hours-today .day,
.hours-today .time {
  color: var(--rich-mocha);
  font-weight: 600;
}

/* ===================================
   Loyalty Section
   =================================== */
.loyalty-section {
  padding: 6rem 0;
  background-color: var(--steamed-milk);
}

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

.benefit-item {
  text-align: center;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--roasted-bean);
}

.loyalty-form-container {
  max-width: 540px;
  margin: 0 auto;
  background-color: var(--cream);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.loyalty-form {
  width: 100%;
}

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

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

.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: var(--deep-espresso);
  background-color: var(--steamed-milk);
  border: 2px solid rgba(93, 64, 55, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.form-input::placeholder {
  color: rgba(93, 64, 55, 0.5);
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--roasted-bean);
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(76, 175, 80, 0.1);
  color: #2E7D32;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  display: block;
  background-color: rgba(244, 67, 54, 0.1);
  color: #C62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--steamed-milk);
  background: var(--warm-gradient);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(111, 78, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 78, 55, 0.4);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

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

.button-loader {
  width: 24px;
  height: 24px;
}

.button-loader svg {
  width: 100%;
  height: 100%;
}

/* ===================================
   Footer
   =================================== */
.footer {
  padding: 3rem 0;
  background-color: var(--deep-espresso);
  color: var(--cream);
  text-align: center;
}

.footer-text {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--caramel-latte);
  font-style: italic;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-image {
    order: -1;
  }

  .coffee-image-placeholder {
    max-width: 300px;
  }

  /* Menu Section */
  .section-title {
    font-size: 2.25rem;
  }

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

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

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

  .location-info,
  .hours-info {
    padding: 2rem;
  }

  /* Loyalty Section */
  .loyalty-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

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

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

  .loyalty-benefits {
    grid-template-columns: 1fr;
  }

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

  .hours-item {
    font-size: 1rem;
  }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--caramel-latte);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .menu-card,
  .location-info,
  .hours-info,
  .loyalty-form-container {
    border: 2px solid var(--deep-espresso);
  }
}
