/* Morning Brew - Main Styles */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--espresso);
  background-color: var(--foam);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(62, 39, 35, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--foam);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  font-size: var(--text-3xl);
}

.nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--foam);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--honey);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--honey);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foam);
  font-size: var(--text-2xl);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--espresso) 0%, var(--roasted) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transform: scale(1);
  transition: transform 10s ease-out;
}

.hero:hover .hero-background {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(62, 39, 35, 0.7) 0%, rgba(62, 39, 35, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--foam);
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--honey);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  color: var(--cream);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.about {
  background-color: var(--cream);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--espresso);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--roasted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about-text .highlight {
  color: var(--honey);
  font-weight: 600;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Menu Section */
.menu {
  background: linear-gradient(to bottom, var(--foam) 0%, var(--cream) 100%);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* Loyalty Program Section */
.loyalty {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--roasted) 100%);
  position: relative;
  overflow: hidden;
}

.loyalty::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(232, 184, 77, 0.1) 0%, transparent 70%);
}

.loyalty-container {
  position: relative;
  z-index: 1;
}

.loyalty-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--foam);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.loyalty-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--espresso);
  text-align: center;
  margin-bottom: var(--space-md);
}

.loyalty-content p {
  text-align: center;
  color: var(--roasted);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

.loyalty-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.benefit-item {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--cream);
  border-radius: var(--radius-md);
}

.benefit-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.benefit-text {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  color: var(--espresso);
  font-weight: 600;
}

#loyalty-form .btn {
  width: 100%;
}

#loyalty-message {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-label);
  font-weight: 600;
  display: none;
}

#loyalty-message.success {
  background-color: #c8e6c9;
  color: #2e7d32;
  display: block;
}

#loyalty-message.error {
  background-color: #ffcdd2;
  color: #c62828;
  display: block;
}

/* Location Section */
.location {
  background-color: var(--cream);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.location-info h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--espresso);
  margin-bottom: var(--space-md);
}

.info-block {
  margin-bottom: var(--space-lg);
}

.info-label {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--honey);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.info-text {
  font-size: var(--text-lg);
  color: var(--roasted);
  line-height: 1.8;
}

.location-map {
  background-color: var(--latte);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.map-placeholder {
  text-align: center;
  color: var(--foam);
}

.map-placeholder-icon {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-md);
}

.map-placeholder-text {
  font-family: var(--font-label);
  font-size: var(--text-lg);
}

/* Footer */
.footer {
  background-color: var(--espresso);
  color: var(--cream);
  padding: var(--space-2xl) 0 var(--space-md);
}

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

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--honey);
  margin-bottom: var(--space-md);
}

.footer-section p {
  line-height: 1.8;
  color: var(--cream);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

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

.footer-links a:hover {
  color: var(--honey);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--roasted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foam);
  text-decoration: none;
  font-size: var(--text-xl);
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--honey);
  color: var(--espresso);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--roasted);
  color: var(--latte);
  font-size: var(--text-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--espresso);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    transition: right var(--transition-base);
  }

  .nav.active {
    right: 0;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

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

  .loyalty-content {
    padding: var(--space-lg);
  }

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

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

  .location-map {
    height: 300px;
  }

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