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

:root {
  --primary: #d9381e;
  --secondary: #2e5b3f;
  --bg: #fdfbf7;
  --text: #1a1a1a;
  --card-bg: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lexend', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ==========================================
   Language Toggle Visibility Rules
   ========================================== */

/* Default State: Spanish visible, English hidden */
.en {
  display: none;
}

.es {
  display: inline;
}

/* Active English State: Triggered when body has .lang-en */
body.lang-en .es {
  display: none !important;
}

body.lang-en .en {
  display: inline !important;
}

/* Header & Navigation */
/* Header & Navigation Alignment */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 30;
  background-color: var(--bg);
}

.beta {position:absolute;color:red;font-size:60%;font-weight:bold;margin-left:3em;margin-top:3em;}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.33rem; 
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  cursor: pointer;
  line-height: 1;
}

.logo svg {
  display: block;
  flex-shrink: 0;
  height: 36px; /* Keeps bag icon proportioned */
  width: auto;
}

.logo span {
  color: var(--primary);
  margin-left: -0.15em;
  padding: 0;
}

/* Hero Billboard Section */
.hero {
  position: relative;
  cursor: pointer;
  max-width: 1000px;
  margin: 0.5rem auto 0;
  text-align: center;
  padding: 1rem 1rem 2rem;
  border-radius: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
}

/* Dim & shrink slightly when obscured by the sliding menu */
.hero.obscured {
  opacity: 0.15;
  transform: scale(0.98);
  pointer-events: none;
}

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

.badge {
  display: inline-block;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  padding: 0;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 1.2rem 0 0.8rem;
  letter-spacing: -1px;
}

h1 span {
  color: var(--secondary);
}

p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #555;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-secondary {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.lang-hint {
  display: inline-block;
  margin-top: 1.8rem; /* Adds space above the text line */
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #718096;
}


/* Impact Cards Inside Billboard */
.impact {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card-bg);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
  text-align: left;
}

.card h3 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--secondary);
}

/* App Feed Section (Sliding Card Sheet) */
.app-container {
  position: relative;
  z-index: 20; /* Sits above billboard */
  background: var(--bg);
  max-width: 1000px;
  margin: 1rem auto 4rem;
  padding: 2rem 1rem;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slides up over billboard */
.app-container.slide-up {
  transform: translateY(-680px);
  margin-bottom: -680px;
}

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.app-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.bag-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  transition: transform 0.2s ease;
}

.bag-card:hover {
  transform: translateY(-4px);
}

.card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 1rem;
}

.bag-tag {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin: 0 0 0.3rem 0;
  font-weight: 700;
}

.cuisine {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
}

.original-price {
  text-decoration: line-through;
  color: #888;
}

.deal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}

.btn-block {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
}

/* Floating Checkout Bar */
.cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 100;
}

.cart-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.btn-checkout {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.business-link-wrapper {
  margin-top: 1.25rem;
  text-align: center;
}

.link-business {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 600px) {
  .navbar {
    padding-left: 0.75em;
    padding-top: 0.5em;
  }
}