/* =============================================
   ECOSYSTEM PAGE
   ============================================= */

/* ===== SHARED ===== */
.section-underline {
  width: 96px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 12px auto 0;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp .7s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.scroll-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.eco-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 50%, #EFBA1B 0%, #E8910A 70%);
}

.eco-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .25;
}

.eco-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239,186,27,.92) 0%, rgba(232,145,10,.85) 100%);
}

.eco-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.eco-hero__text {
  flex: 1;
  color: var(--white);
}

.eco-hero__text h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp .7s ease forwards .1s;
}

.eco-hero__tagline {
  font-size: 22px;
  font-weight: 400;
  line-height: 36px;
  margin-bottom: 16px;
  color: rgba(255,255,255,.95);
  opacity: 0;
  animation: fadeInUp .7s ease forwards .25s;
}

.eco-hero__desc {
  font-size: 17px;
  line-height: 28px;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  opacity: 0;
  animation: fadeInUp .7s ease forwards .4s;
}

.eco-hero__visual {
  flex-shrink: 0;
  opacity: 0;
  animation: fadeInUp .7s ease forwards .3s;
}

.eco-hero__visual img {
  height: 320px;
  width: auto;
  object-fit: contain;
  animation: mascotFloat 3s ease-in-out infinite 1s;
}

/* ===== BRANCHES SECTION ===== */
.eco-branches {
  padding: 80px 0;
  background: var(--white);
}

.eco-branches__header {
  text-align: center;
  margin-bottom: 56px;
}

.eco-branches__header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
}

.eco-branches__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.branch-card {
  border-radius: 20px;
  border: 2px solid #F3F4F6;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  border-color: var(--yellow);
}

.branch-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.branch-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.branch-card:hover .branch-card__img img {
  transform: scale(1.05);
}

.branch-card__body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.branch-card__icon {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.branch-card__body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.branch-card__body p {
  font-size: 15px;
  line-height: 26px;
  color: #6B7280;
  flex: 1;
}

.branch-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  transition: gap .2s ease;
}

.branch-card__cta:hover {
  gap: 10px;
}

/* ===== CTA BANNER ===== */
.eco-cta {
  background: radial-gradient(ellipse at 50% 50%, #EFBA1B 0%, #E8910A 80%);
  padding: 72px 0;
}

.eco-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.eco-cta__mascot img {
  height: 260px;
  width: auto;
  object-fit: contain;
  animation: mascotFloat 3s ease-in-out infinite;
}

.eco-cta__text {
  flex: 1;
  color: var(--white);
}

.eco-cta__text h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.eco-cta__text p {
  font-size: 18px;
  line-height: 30px;
  color: rgba(255,255,255,.88);
  margin-bottom: 28px;
}

.btn-eco-cta {
  display: inline-block;
  background: var(--white);
  color: #E8910A;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-eco-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .eco-branches__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .eco-hero { min-height: auto; }
  .eco-hero__inner {
    flex-direction: column;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 24px;
  }
  .eco-hero__text h1 { font-size: 40px; }
  .eco-hero__tagline { font-size: 18px; }
  .eco-hero__desc { max-width: 100%; }
  .eco-hero__visual img { height: 220px; }

  .eco-branches { padding: 48px 0; }
  .eco-branches__grid { grid-template-columns: 1fr; gap: 20px; }

  .eco-cta { padding: 48px 0; }
  .eco-cta__inner { flex-direction: column; text-align: center; gap: 24px; }
  .eco-cta__text h2 { font-size: 30px; }
  .eco-cta__mascot img { height: 180px; }
}
