/* ============================================
   21-Day Smoothie Slim Down - Global Styles
   ============================================ */

/* CSS Variables */
:root {
  --green-primary: #2D8A4E;
  --green-secondary: #4CAF50;
  --gold: #F5A623;
  --coral: #FF6B6B;
  --teal: #1A5F7A;
  --charcoal: #2C3E50;
  --slate: #64748B;
  --light-gray: #F1F5F9;
  --off-white: #FAFAF5;
  --white: #FFFFFF;
  --dark: #1A1A2E;
  --gradient-hero: linear-gradient(135deg, #2D8A4E, #4CAF50);
  --gradient-cta: linear-gradient(135deg, #F5A623, #FF6B6B);
  --gradient-trust: linear-gradient(135deg, #1A5F7A, #2D8A4E);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; font-weight: 600; }
h2 { font-size: 2rem; font-weight: 500; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; }
p { margin-bottom: 1em; }
.script { font-family: 'Dancing Script', cursive; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   Announcement Bar
   ============================================ */
.announcement-bar {
  background: var(--gradient-cta);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.announcement-bar span { font-weight: 700; }
.countdown-inline { font-weight: 700; font-family: 'Poppins', sans-serif; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  background: var(--white);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green-primary);
}
.nav-logo span { color: var(--charcoal); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a { color: var(--charcoal); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--green-primary); text-decoration: none; }
.nav-cta {
  background: var(--gradient-cta);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--charcoal); transition: 0.3s; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--gradient-cta);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--white);
}
.btn-secondary {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--green-secondary); color: var(--white); text-decoration: none; }
.btn-ghost {
  display: inline-block;
  color: var(--slate);
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: underline;
}
.btn-sub { display: block; font-size: 0.8rem; color: var(--slate); margin-top: 0.5rem; }

/* ============================================
   Sections
   ============================================ */
section { padding: 4rem 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--light-gray); }
.bg-cream { background: var(--off-white); }
.bg-green { background: var(--gradient-hero); color: var(--white); }
.bg-teal { background: var(--gradient-trust); color: var(--white); }
.bg-dark { background: var(--dark); color: #ccc; }
.text-center { text-align: center; }
.section-title { margin-bottom: 2rem; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 4rem 0 3rem;
  background: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-pre {
  display: inline-block;
  background: rgba(45,138,78,0.1);
  color: var(--green-primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1rem; color: var(--charcoal); }
.hero p { font-size: 1.1rem; color: var(--slate); margin-bottom: 1.5rem; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.stars { color: var(--gold); }
.hero-image {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-style: italic;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-trust { justify-content: center; }
  .hero-image { min-height: 250px; }
  .btn-primary { width: 100%; }
}

/* ============================================
   Social Proof Bar
   ============================================ */
.social-proof {
  background: var(--light-gray);
  padding: 2.5rem 0;
}
.social-proof h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.proof-card {
  background: var(--white);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.proof-card .stars { font-size: 0.85rem; display: block; margin-bottom: 0.5rem; }
.proof-card p { font-size: 0.9rem; margin-bottom: 0.5rem; font-style: italic; }
.proof-card .name { font-size: 0.8rem; color: var(--slate); font-style: normal; font-weight: 600; }

@media (max-width: 768px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Problem Section
   ============================================ */
.problem-list { list-style: none; max-width: 600px; margin: 1.5rem auto; }
.problem-list li {
  padding: 0.8rem 0;
  font-size: 1.05rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.problem-list .icon { color: var(--coral); font-weight: 700; flex-shrink: 0; }
.problem-cta { margin-top: 1.5rem; font-size: 1.1rem; font-weight: 600; color: var(--green-primary); }

/* ============================================
   Product Showcase
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.product-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card.bonus {
  border: 2px solid var(--gold);
  position: relative;
}
.product-card.bonus::before {
  content: 'BONUS';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.product-card h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.product-card .value { color: var(--slate); font-size: 0.9rem; }
.product-card ul { text-align: left; list-style: none; margin-top: 0.8rem; }
.product-card ul li { font-size: 0.85rem; padding: 0.2rem 0; }
.product-card ul li::before { content: '✓ '; color: var(--green-primary); font-weight: 700; }

.value-stack {
  text-align: center;
  margin: 2rem 0;
}
.value-stack .original {
  font-size: 1.2rem;
  color: var(--slate);
  text-decoration: line-through;
}
.value-stack .price {
  font-size: 3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--green-primary);
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ============================================
   GLP-1 Section
   ============================================ */
.glp1-section { padding: 4rem 0; }
.glp1-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.glp1-features { list-style: none; margin: 1.5rem 0; }
.glp1-features li {
  padding: 0.5rem 0;
  font-size: 1.05rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.glp1-features .icon { flex-shrink: 0; }
.glp1-quote {
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0.9;
  border-left: 3px solid rgba(255,255,255,0.5);
  padding-left: 1rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 0.8rem; display: block; }
.testimonial-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.testimonial-card p { font-size: 0.9rem; color: var(--slate); }
.testimonial-card .author { font-weight: 600; color: var(--charcoal); font-size: 0.85rem; margin-top: 1rem; }

@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Who Is For
   ============================================ */
.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.for-card { padding: 1.5rem; }
.for-card h3 { margin-bottom: 1rem; }
.for-card ul { list-style: none; }
.for-card ul li { padding: 0.5rem 0; display: flex; gap: 0.5rem; }
.for-card.yes .icon { color: var(--green-primary); }
.for-card.no .icon { color: var(--coral); }

@media (max-width: 600px) {
  .for-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Pricing Card
   ============================================ */
.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--green-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.pricing-card .badge {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.pricing-card .price-original {
  font-size: 1.2rem;
  color: var(--slate);
  text-decoration: line-through;
}
.pricing-card .price {
  font-size: 3.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--green-primary);
}
.pricing-card .price-sub { font-size: 0.9rem; color: var(--slate); }
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}
.pricing-card ul li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.pricing-card ul li::before { content: '✓ '; color: var(--green-primary); font-weight: 700; }
.pricing-card .guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--slate);
}

/* ============================================
   Guarantee
   ============================================ */
.guarantee-box {
  max-width: 700px;
  margin: 0 auto;
  border: 2px solid var(--green-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: var(--white);
}
.guarantee-box .shield { font-size: 3rem; margin-bottom: 1rem; }
.guarantee-box h2 { color: var(--green-primary); }

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover { color: var(--green-primary); }
.faq-question .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 1.2rem;
  color: var(--slate);
  line-height: 1.7;
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.final-cta p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }
.final-cta .ps {
  margin-top: 2rem;
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--dark);
  color: #999;
  padding: 2rem 0;
  font-size: 0.8rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a { color: #ccc; }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  color: #777;
}

/* ============================================
   Cookie Consent
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 1rem;
  display: none;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-banner.show { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cookie-banner p { font-size: 0.85rem; margin: 0; }
.cookie-banner a { color: var(--gold); }
.cookie-btn {
  background: var(--green-primary);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ============================================
   Animations (Scroll Fade-In)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Utility Classes
   ============================================ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================
   Simple/Focused Pages (lead magnet, upsell, etc.)
   ============================================ */
.simple-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
}
.simple-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.simple-page p { color: var(--slate); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--green-primary); }

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.countdown-box {
  background: var(--charcoal);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 60px;
}
.countdown-box .number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  display: block;
}
.countdown-box .label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; }

/* Upsell/Downsell specific */
.offer-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.offer-table td { padding: 0.5rem; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
.offer-table td:first-child { font-weight: 500; }
.offer-table td:last-child { text-align: right; color: var(--slate); }

/* Legal pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.legal-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal-page .updated { color: var(--slate); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.legal-page p, .legal-page ul { font-size: 0.95rem; color: var(--slate); }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ============================================
   Image Centering Fixes (QA Review 2026-03-23)
   ============================================ */

/* Ensure all images inside text-center or centered containers are properly centered */
.text-center img,
.simple-page img {
  margin-left: auto;
  margin-right: auto;
}

/* Hero image centering within grid cell */
.hero-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Testimonial card images centered */
.testimonial-card img {
  display: block;
  margin: 0 auto 0.8rem;
}

/* Guarantee box image centered */
.guarantee-box img {
  display: block;
  margin: 0 auto 1rem;
}

/* GLP-1 badge image centered */
.glp1-section img {
  display: block;
  margin: 0 auto 1rem;
}

/* Pricing card guarantee badge images centered */
.pricing-card .guarantee-badge img {
  display: block;
  margin: 0 auto;
}

/* Ensure product showcase smoothie lineup image centered */
#product > .container > img {
  display: block;
  margin: 0 auto 2rem;
}

/* Mobile full-width buttons fix - ensure all CTAs are full width on mobile */
@media (max-width: 768px) {
  .btn-primary {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .btn-secondary {
    width: 100%;
  }
  
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  
  .container, .container-narrow {
    padding: 0 1rem;
    overflow-x: hidden;
  }
  
  /* Delivery page download cards stack on mobile */
  .simple-page div[style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Ensure no horizontal scroll on any screen */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
