/* --------------------------------------------------
   8up.ai Shared Styles
   -------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', 'Noto Color Emoji', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
  overflow-x: hidden;
}

/* --------------------------------------------------
   Navigation
   -------------------------------------------------- */
nav {
  background: linear-gradient(135deg, #2d5a2d 0%, #4a7c59 100%);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-area:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #7cb342, #8bc34a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
}

.logo-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #a8d8a8;
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: #a8d8a8;
  transform: translateY(-2px);
}

/* Highlight current page link */
.nav-links a.active {
  color: #a8d8a8;
}

/* --------------------------------------------------
   Layout Helpers
   -------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------------
   Hero (for homepage)
   -------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #4a7c59 0%, #6ba16b 50%, #8bc34a 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content p {
  font-size: 1.4rem;
  line-height: 1.7;
  margin: 1.2rem auto;
}

.cta-button {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
  color: #4a7c59;
  padding: 18px 40px;
  border: 3px solid #ffffff;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(124, 179, 66, 0.4);
}

/* --------------------------------------------------
   How It Works / Cards
   -------------------------------------------------- */
.how-it-works {
  background: white;
  padding: 50px 2rem;
}

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

/* Cards */
.how-card {
  background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.how-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Icons – improved readability */
.how-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #ffffff; /* clean white base */
  border: 3px solid #7cb342;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #2d5a2d; /* dark green for better contrast */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.how-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  color: #2d5a2d;
  margin-bottom: 0.8rem;
}

.how-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------
   Content Pages (About, FAQ, etc.)
   -------------------------------------------------- */
.content-page {
  padding: 80px 0;
  background: white;
  min-height: 100vh;
}

.content-header {
  text-align: center;
  margin-bottom: 4rem;
}

.content-header h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  color: #2d5a2d;
  margin-bottom: 1rem;
}

.content-page h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  color: #2d5a2d;
  margin-bottom: 1rem;
}

.content-page h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.0rem;
  color: #2d5a2d;
  margin-bottom: 0.8rem;
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */
footer {
  background: linear-gradient(135deg, #2d5a2d 0%, #1a3a1a 100%);
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-top: 0;
}

footer a {
  color: #a8d8a8;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

.footer-tagline {
  margin-top: 1rem;
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --------------------------------------------------
   Animations
   -------------------------------------------------- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
   FUEL diagram
   -------------------------------------------------- */

.fuel-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.fuel-description strong {
  color: #2d5a2d;
}

.fuel-diagram-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 20px;

  /* 🌿 Lighter, fresher gradient */
  background: radial-gradient(circle at center, #eaf7ec 0%, #c9e7d1 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.fuel-diagram {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;  /* Keeps square shape */
  margin: 0 auto;
  animation: rotateLoop 40s linear infinite;
  transform-origin: center center;
}

.fuel-arrows path {
  stroke: #7cb342; /* fresh green */
  stroke-width: 4;
  fill: none;
  marker-end: url(#arrowhead);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;              /* behind the circles */
  pointer-events: none;
}

.fuel-arrows polygon {
  fill: #7cb342; /* match the stroke color */
}

.fuel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
  color: #2d5a2d; /* dark green for readability */
  background: rgba(255, 255, 255, 0.8); /* semi-white bubble */
  border: 2px solid #7cb342; /* soft green outline */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  font-size: 1.1rem;
  width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

.fuel-step {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  color: #2d5a2d; /* dark green for readability */
  background: rgba(255, 255, 255, 0.8); /* semi-white bubble */
  border: 2px solid #7cb342; /* soft green outline */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 3; /* above the loop */
}
.fuel-step:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.25);
}

/* Adjusted positions around larger circle */
.fuel-step.plan { top: 3%; left: 50%; transform: translate(-50%, 0); }
.fuel-step.shop { top: 50%; right: -3%; transform: translate(0, -50%); }
.fuel-step.cook { bottom: 3%; left: 50%; transform: translate(-50%, 0); }
.fuel-step.eat  { top: 50%; left: -3%; transform: translate(0, -50%); }

/* FAQ Section */
.faq-item {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.faq-question {
    background: linear-gradient(135deg, #4a7c59, #2d5a2d);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 200px;
}

/* Forms / Download */
.contact-form, .download-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: #2d5a2d;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #a8d8a8;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
    transform: translateY(-2px);
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.platform-icons {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
}

.platform-icon {
    height: 55px; /* Sets an explicit, equal height for both button containers */
}

.platform-icon img {
    width: auto;   /* Width scales automatically to maintain the aspect ratio */
    height: 100%; /* The image fills the container's fixed height */
}

.platform-icon img:hover {
  transform: scale(1.08);
}

/* Mobile menu button (hamburger) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Feature page */
.feature-container {
  text-align: center;
  padding: 0 1rem;
}

.feature-block {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.feature-block h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2d5a2d;
}

.feature-block p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 auto 2rem;
  color: #444;
  max-width: 650px;        /* narrow enough to read comfortably */
}

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

.feature-snapshots img {
  max-width: 45%;
  border-radius: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7cb342, #8bc34a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7cb342, #8bc34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: #2d5a2d;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Nutrients */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.nutrient-item {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #4a7c59;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nutrient-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: #7cb342;
}

.nutrient-category {
    color: #2d5a2d;
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem 0;
    font-family: 'Fredoka', sans-serif;
    position: relative;
    padding-left: 20px;
}

.nutrients-link {
    color: rgb(72, 125, 72);
    font-weight: 600;
    text-decoration: none;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .how-it-works {
    padding: 40px 1.5rem;
  }

  .content-page {
    padding: 40px 0;
  }

  .content-header h1 {
    font-size: 1.8rem;   /* smaller title */
    margin-top: 0.5rem;  /* tighten top spacing */
    margin-bottom: 2rem; /* less vertical space */
  }

  .content-page h1 {
    font-size: 1.8rem;   /* smaller title */
    margin-top: 0.5rem;  /* tighten top spacing */
    margin-bottom: 2rem; /* less vertical space */
  }

  .content-page h3 {
    font-size: 1.5rem;   /* smaller title */
    margin-top: 0.5rem;  /* tighten top spacing */
    margin-bottom: 1rem; /* less vertical space */
  }

  .fuel-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .fuel-diagram-wrapper {
    margin-top: 2rem;
  }

  .how-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .how-card {
    padding: 1.5rem;
  }

  .how-card h3 {
    font-size: 1.2rem;
  }

  .how-card p {
    font-size: 0.95rem;
  }

  /* Navigation layout */
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Hero section tweaks for small screens */
  .hero {
    padding-top: 3rem;      /* reduce vertical padding */
    padding-bottom: 3rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.9rem;      /* smaller, more natural on phones */
    line-height: 1.2;
    margin-top: 0;          /* remove extra top margin */
    margin-bottom: 1rem;    /* tighter spacing below */
  }

  .hero p {
    font-size: 1rem;        /* balanced paragraph text */
    line-height: 1.5;
    margin-top: 0.5rem;
  }

  /* Stack “How It Works” cards vertically */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: linear-gradient(135deg, #2d5a2d, #4a7c59);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    display: none !important;  /* <— ensure hidden by default */
  }

  /* When mobile-active class is present, show menu */
  .nav-links.mobile-active {
    display: flex !important;  /* <— force show */
    animation: slideDown 0.3s ease forwards;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  .nav-links li {
    text-align: center;
    padding: 0.8rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .feature-block h3 {
    font-size: 1.6rem;
  }

  .feature-block p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
  }

  .feature-snapshots {
    flex-direction: column;
    align-items: center;
  }

  .feature-snapshots img {
    max-width: 100%;
  }
}

/* Video embedding */
.video-embed {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 2rem auto 0;

    /* padding-top: 177.78%; */
    aspect-ratio: 9 / 16;

    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25);
    transition: box-shadow 0.3s ease;
}

.video-embed:hover {
    box-shadow: 0 20px 55px rgba(0,0,0,0.3);
}

.video-embed__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.video-embed__play:hover {
    background: rgba(0,0,0,0.45);
    transform: scale(1.02);
}

.video-embed__play:focus-visible {
    outline: 3px solid rgba(139,195,74,0.8);
    outline-offset: 4px;
}

.video-embed__play-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-embed__play-icon::before {
    content: '';
    margin-left: 6px;
    border-style: solid;
    border-width: 24px 0 24px 38px;
    border-color: transparent transparent transparent #4a7c59;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed.is-playing {
    background-image: none !important;
}

@media (max-width: 600px) {
    .video-embed__play-icon {
        width: 80px;
        height: 80px;
    }

    .video-embed__play-icon::before {
        border-width: 18px 0 18px 28px;
    }
}