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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #faf7f2;
  color: #3d2e1f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
.site-header {
  text-align: center;
  padding: 48px 20px 24px;
  background: linear-gradient(180deg, #f5ebe0 0%, #faf7f2 100%);
}

.logo {
  display: inline-block;
  text-decoration: none;
}

.logo-img {
  max-width: 180px;
  height: auto;
}

.logo span {
  color: #b8860b;
  font-weight: 500;
}

.tagline {
  font-size: 0.95rem;
  color: #8b7355;
  margin-top: -2px;
  font-weight: 400;
}

/* === Landing Page === */
.landing-header {
  padding: 60px 20px 12px;
}

.landing-header .logo-img {
  max-width: 280px;
}

.landing-main {
  text-align: center;
  padding: 40px 20px 80px;
  font-size: 1.1rem;
  color: #6b5744;
}

.landing-main a {
  color: #b8860b;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
  transition: border-color 0.2s ease;
}

.landing-main a:hover {
  border-color: #b8860b;
}

/* === Social Links === */
.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.social-links a {
  color: #6b5744;
  border: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #b8860b;
  transform: scale(1.1);
  border: none;
}

.social-handle {
  font-size: 0.95rem;
  color: #8b7355;
  margin-bottom: 8px;
}

.phone-link {
  margin-bottom: 24px;
}

.phone-link a {
  color: #6b5744;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.phone-link a:hover {
  color: #b8860b;
}

/* === Sticky Nav === */
.variant-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  padding: 12px 0;
}

.nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 640px;
  margin: 0 auto;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: #6b5744;
  background: #f0e6d6;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-pill:hover {
  background: #e8dac6;
  color: #3d2e1f;
}

.nav-pill.active {
  background: #3d2e1f;
  color: #faf7f2;
}

/* === Variant Cards === */
.variant-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(61, 46, 31, 0.06);
  border: 1px solid rgba(184, 134, 11, 0.1);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.variant-card.highlighted {
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.15);
  border-color: rgba(184, 134, 11, 0.3);
}

.variant-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0e6d6;
}

.variant-header h2 {
  font-family: 'Yeseva One', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #3d2e1f;
  margin-bottom: 4px;
}

.variant-tagline {
  font-size: 0.9rem;
  color: #8b7355;
  font-weight: 400;
}

/* === Nutrition Grid === */
.nutrition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #f5ebe0;
  border-radius: 12px;
  overflow: hidden;
}

.nutrition-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  font-size: 0.88rem;
}

.nutrition-item .label {
  color: #6b5744;
  font-weight: 400;
}

.nutrition-item .value {
  font-weight: 600;
  color: #3d2e1f;
}

.nutrition-item.serving,
.nutrition-item.calories {
  grid-column: 1 / -1;
}

.nutrition-item.serving {
  background: #faf7f2;
}

.nutrition-item.calories {
  background: #f5ebe0;
}

.nutrition-item.calories .value {
  font-size: 1.3rem;
  color: #b8860b;
  font-weight: 700;
}

.disclaimer {
  font-size: 0.78rem;
  color: #a89279;
  margin-top: 16px;
  font-style: italic;
}

/* === Daily Value Badge === */
.dv {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8b7355;
  margin-left: 4px;
}

/* === Nutrition Title & Serving === */
.nutrition-title {
  font-family: 'Yeseva One', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d2e1f;
  margin-bottom: 4px;
}

.nutrition-serving {
  font-size: 0.85rem;
  color: #6b5744;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #3d2e1f;
}

.nutrition-item.dv-header {
  grid-column: 1 / -1;
  background: #faf7f2;
  font-size: 0.78rem;
  font-style: italic;
  justify-content: flex-end;
}

.nutrition-item.dv-header .label {
  color: #8b7355;
  font-weight: 500;
}

/* === Ingredients & Allergens === */
.ingredients {
  margin-top: 20px;
  padding: 16px;
  background: #faf7f2;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #6b5744;
  line-height: 1.7;
}

.ingredients strong {
  color: #3d2e1f;
}

.allergens {
  margin-top: 12px;
  padding: 10px 16px;
  background: #fff3e0;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #8b5e3c;
  border-left: 3px solid #b8860b;
}

.allergens strong {
  color: #3d2e1f;
}

/* === Footer === */
.site-footer {
  text-align: center;
  padding: 48px 20px;
  margin-top: 20px;
}

.footer-logo-img {
  max-width: 120px;
  height: auto;
  margin-bottom: 8px;
}

.footer-logo span {
  color: #b8860b;
}

.footer-text {
  font-size: 0.82rem;
  color: #a89279;
}

/* === Mobile Dropdown Nav === */
.nav-dropdown {
  display: none;
  padding: 0 20px;
  max-width: 640px;
  margin: 0 auto;
}

.nav-dropdown select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3d2e1f;
  background: #f0e6d6;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233d2e1f' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.nav-dropdown select:focus {
  outline: 2px solid #b8860b;
  outline-offset: 2px;
}

/* === Responsive === */
@media (max-width: 480px) {
  .nav-scroll {
    display: none;
  }

  .nav-dropdown {
    display: block;
  }

  .logo {
    font-size: 2rem;
  }

  .variant-card {
    padding: 24px 20px;
    margin: 14px 0;
  }

  .variant-header h2 {
    font-size: 1.35rem;
  }

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

  .nutrition-item.serving,
  .nutrition-item.calories {
    grid-column: 1;
  }

  .nav-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}
