/* HERO */
.hero {
  height: 70vh;
  background: url("https://png.pngtree.com/thumb_back/fh260/background/20241030/pngtree-tofu-and-meat-dish-with-green-onions-image_16341679.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  pointer-events: none;    /* BUG FIX: overlay must not block button clicks */
  z-index: 0;              /* BUG FIX: sits below content, above bg */
}

.hero-content {
  position: relative;
  z-index: 1;              /* BUG FIX: raise above ::after overlay */
  color: white;
  text-align: center;
  animation: fadeUp 1s ease;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 50px;
  margin: 0;
}

.hero-content button {
  margin-top: 20px;
  padding: 12px 25px;
  border: none;
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  color: white;
  cursor: pointer;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;  /* BUG FIX: was missing */
}

.hero-content button:hover {   /* BUG FIX: added hover state */
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 94, 98, 0.4);
}

/* STORY */
.story-hero {
  text-align: center;
  padding: 40px 20px 20px;
}

.story-hero h1 { font-size: 36px; }
.story-hero p  { color: #777; font-size: 15px; }

/* WRAPPER */
.story-wrapper {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* MAIN SECTION */
.story-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  gap: 30px;
  background: #f8fafc;
  border-radius: 20px;
  transition: transform 0.3s ease;   /* BUG FIX: was `0.3s` (all props) */
}

.story-section:hover { transform: translateY(-2px); }

/* TEXT */
.story-content { flex: 1; }

.story-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.story-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  text-align: justify;
}

/* IMAGE */
.story-image { flex: 1; }

.story-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: block;                    /* BUG FIX: removes inline-image gap */
}

/* FEATURES */
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f7fa, #eef2f3);
  flex-wrap: wrap;
}

/* CARD */
.feature-card {
  width: 260px;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;  /* BUG FIX: scoped */
  position: relative;
  overflow: hidden;
  isolation: isolate;                /* BUG FIX: confines ::before to this card */
}

/* GLOW EFFECT — sits BEHIND card content */
.feature-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  top: -100%;
  left: -100%;
  transition: top 0.6s ease, left 0.6s ease;   /* BUG FIX: was `0.6s` */
  pointer-events: none;
  z-index: -1;                       /* BUG FIX: no longer covers the icon/text */
}

.feature-card:hover::before { top: 0; left: 0; }

.feature-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ICON */
.icon {
  font-size: 40px;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

/* TEXT */
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2d3e50;
}

.feature-card p {
  font-size: 14px;
  color: #666;
}

/* PRODUCTS */
.products {
  padding: 80px 20px;
  text-align: center;
  background: #f8fafc;
}

.products h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #2d3e50;
}

/* GRID */
.product-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* CARD */
.product-card {
  width: 260px;
  transition: transform 0.4s ease;   /* BUG FIX: was `0.4s ease` (all props) */
}

/* IMAGE BOX */
.image-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.image-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;     /* BUG FIX: was `0.4s` */
}

/* BUTTON */
.overlay button {
  padding: 10px 20px;
  border: none;
  background: white;
  color: #333;
  border-radius: 20px;
  cursor: pointer;
  transform: translateY(20px);
  transition: transform 0.4s ease;   /* BUG FIX: scoped */
}

/* HOVER EFFECTS */
.product-card:hover img           { transform: scale(1.1); }
.product-card:hover .overlay      { opacity: 1; }
.product-card:hover .overlay button { transform: translateY(0); }

.product-card h3 {
  margin-top: 12px;
  font-size: 18px;
  color: #333;
  transition: color 0.3s ease;       /* BUG FIX: was `0.3s` */
}

.product-card:hover h3 { color: #4a6741; }
.product-card:hover    { transform: translateY(-10px); }

/* CTA */
.cta {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #4a6741, #7ca982);
}

.cta-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease;
}

.cta h2 { font-size: 36px; margin-bottom: 10px; }
.cta p  { font-size: 16px; margin-bottom: 25px; opacity: 0.9; }

/* BUTTON */
.cta a {
  display: inline-block;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  background: white;
  color: #4a6741;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;             /* BUG FIX: strip anchor underline */
  transition: transform 0.3s ease, box-shadow 0.3s ease;  /* BUG FIX: scoped */
  position: relative;
  isolation: isolate;                /* BUG FIX: keep ::after behind text */
}

.cta a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* GLOW EFFECT — behind label */
.cta a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: rgba(255,255,255,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;     /* BUG FIX: was `0.3s` */
  z-index: -1;                       /* BUG FIX: was on top of text */
}

.cta a:hover::after { opacity: 1; }

/* FLOATING SHAPES */
.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  animation: floatUp 6s infinite ease-in-out;
  pointer-events: none;              /* BUG FIX: shouldn't block button clicks */
}

.shape1 {
  width: 120px; height: 120px;
  background: white;
  top: 20%; left: 10%;
}

.shape2 {
  width: 80px; height: 80px;
  background: white;
  bottom: 20%; right: 15%;
  animation-delay: 2s;
}

.shape3 {
  width: 150px; height: 150px;
  background: white;
  top: 10%; right: 5%;
  animation-delay: 4s;
}

  .tofu-banner-section{
  padding: 80px 5%;
  background: #f5f7fa;
}

  .tofu-banner-section h2{
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: #1f3d2b;
  margin-bottom: 60px;
  position: relative;
}

.tofu-banner-section h2::after{
  content: "";
  width: 90px;
  height: 4px;
  background: #9acd32;
  display: block;
  margin: 15px auto 0;
  border-radius: 10px;
}

.tofu-product-card{
  max-width: 1200px;
  margin: auto;

  background: #ffffff;

  border-radius: 30px;

  padding: 35px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.08);

  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

/* LEFT SIDE IMAGE */
.tofu-banner{
  display: flex;
  justify-content: center;
  align-items: center;
}

.tofu-banner img{
  width: 100%;
  max-width: 450px;

  height: 400px;
  object-fit: center;

  border-radius: 25px;

  display: block;
}

/* RIGHT SIDE CONTENT */
.tofu-product-info{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tofu-product-info p{
  font-size: 2rem;
  font-weight: 700;
  color: #1f3d2b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tofu-product-info span{
  color: #9acd32;
}

.tofu-product-info ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tofu-product-info ul li{
  margin-bottom: 12px;
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}


/* ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* BUG FIX: removed non-existent `.story-card` from selector list */

  .hero            { height: 55vh; }             /* BUG FIX: less empty screen on phones */
  .hero-content h1 { font-size: 30px; }          /* BUG FIX: was 50px, overflowed */
  .story-hero h1   { font-size: 26px; }

  .story-section {
    flex-direction: column;
    padding: 20px;
  }

  .story-image img { height: 220px; }

  .features,
  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .cta h2 { font-size: 26px; }
  .cta    { padding: 70px 20px; }


  .tofu-banner-section h2{
  font-size: 2rem;
}

    .tofu-product-card{
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .tofu-banner{
    /* display: flex; */
  justify-content: center;
  /* align-items: center; */
  }

  .tofu-banner img{
  max-width: 450px;
  height: 350px;
}

  .tofu-product-info{
    
    align-items: center;
    justify-content: center;
  }

  .tofu-product-info ul{
    text-align: center;
  }

  .tofu-product-info p{
    font-size: 1.5rem;
  }
}