@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Tacos Theme Custom Palette (Burgundy/Beige) */
  --color-primary: #701016; /* Deep Burgundy */
  --color-dark: #1C1B1B;    /* Black/Dark Text */
  --color-beige: #EAE6DF;   /* Background Beige */
  --color-cream: #F5F3ED;   /* Surface Cream */
  --color-whatsapp: #25d366; /* Official WhatsApp Green */
  
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

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

html, body {
  background-color: var(--color-beige);
  color: var(--color-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-dark);
  text-transform: uppercase;
}

a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* Mobile padding */
}

.section {
  padding: 3rem 0; /* Mobile padding */
}

/* Header & Nav */
.site-header {
  background-color: var(--color-beige);
  border-bottom: 1px solid rgba(28, 27, 27, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
}

/* Hide desktop nav on mobile by default */
.desktop-nav {
  display: none; 
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-dark);
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* Mobile Sticky Order Button */
.mobile-sticky-order {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  padding: 1.2rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 100;
  animation: pulseGlow 2s infinite;
  text-align: center;
  /* Hidden on desktop, shown on mobile */
  display: block; 
}

/* Header Order Button (Hidden on Mobile) */
.header-order-btn {
  display: none;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 80px; /* Above the sticky order button */
  right: 20px;
  background-color: var(--color-whatsapp);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 25px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* Hero Section */
.hero {
  background-color: var(--color-primary);
  color: #FFF;
  padding: 4rem 0; /* Mobile padding */
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.hero-content h1 {
  color: #FFF;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(28, 27, 27, 0.1);
}

/* Footer */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-cream);
  padding: 3rem 0;
  margin-bottom: 60px; /* Space for sticky mobile button */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-link {
  color: var(--color-cream);
  opacity: 0.8;
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* DESKTOP STYLES (min-width: 768px) */
@media screen and (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .hero {
    padding: 6rem 0;
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero-content {
    flex: 1;
    padding-right: 2rem;
  }

  .hero-image {
    flex: 1;
  }

  /* Show desktop nav */
  .desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .desktop-nav a {
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
  }

  /* Swap order button styles */
  .mobile-sticky-order {
    display: none; 
  }

  .header-order-btn {
    display: inline-flex;
  }

  .whatsapp-float {
    bottom: 40px; /* Reset position since sticky button is gone */
    right: 40px;
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .site-footer {
    margin-bottom: 0;
  }
}
