/* Empower Life home page */

#page-container.el-home-page,
.el-home {
  --el-green: #1a6b45;
  --el-green-dark: #0f4a30;
  --el-green-light: #e8f5ee;
  --el-green-mid: #2d8f5c;
  --el-text: #1e293b;
  --el-muted: #64748b;
  --el-radius: 12px;
  --el-shadow: 0 4px 24px rgba(15, 74, 48, 0.08);
}

.el-home {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  color: var(--el-text);
}

.el-home main {
  background: #fff;
}

/* Hero */
.el-hero {
  position: relative;
  min-height: 420px;
  background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  overflow: hidden;
}

.el-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.55) 68%, rgba(255, 255, 255, 0.2) 100%);
  z-index: 1;
}

.el-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.el-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--el-green-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.el-hero .el-hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--el-text);
  max-width: 34rem;
  margin-bottom: 0.75rem;
}

.el-hero .el-hero-sub {
  font-size: 0.95rem;
  color: var(--el-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.el-hero-plant {
  max-height: 280px;
  width: auto;
  object-fit: cover;
  border-radius: var(--el-radius);
  box-shadow: var(--el-shadow);
}

.el-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--el-green);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.el-btn-primary:hover {
  background: var(--el-green-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.el-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--el-green) !important;
  border: 2px solid var(--el-green);
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.el-btn-outline:hover {
  background: var(--el-green-light);
  color: var(--el-green-dark) !important;
}

/* Trust bar */
.el-trust-wrap {
  margin-top: -3rem;
  position: relative;
  z-index: 3;
  padding-bottom: 2.5rem;
}

.el-trust-bar {
  background: #fff;
  border-radius: var(--el-radius);
  box-shadow: var(--el-shadow);
  padding: 1.75rem 1.5rem;
}

.el-trust-item {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.el-trust-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--el-green-mid);
  color: var(--el-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.el-trust-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--el-green-dark);
  margin-bottom: 0.35rem;
}

.el-trust-item p {
  font-size: 0.8rem;
  color: var(--el-muted);
  margin: 0;
  line-height: 1.45;
}

/* Section headings */
.el-section {
  padding: 3rem 0;
}

.el-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--el-text);
  margin-bottom: 0.5rem;
}

.el-section-sub {
  text-align: center;
  color: var(--el-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* Category cards */
.el-cat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--el-radius);
  padding: 1.5rem 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.el-cat-card:hover {
  box-shadow: var(--el-shadow);
  transform: translateY(-3px);
  border-color: #cbd5e1;
  color: inherit;
}

.el-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.el-cat-icon--green { background: #dcfce7; color: #15803d; }
.el-cat-icon--blue { background: #dbeafe; color: #1d4ed8; }
.el-cat-icon--purple { background: #ede9fe; color: #6d28d9; }
.el-cat-icon--orange { background: #ffedd5; color: #c2410c; }
.el-cat-icon--teal { background: #ccfbf1; color: #0f766e; }

.el-cat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--el-text);
}

.el-cat-card p {
  font-size: 0.85rem;
  color: var(--el-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.el-cat-arrow {
  color: var(--el-green);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Featured app cards */
.el-feat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--el-radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.el-feat-card:hover {
  box-shadow: var(--el-shadow);
  transform: translateY(-2px);
}

.el-feat-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--el-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-feat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.el-feat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.el-feat-cat {
  font-size: 0.8rem;
  color: var(--el-muted);
  margin-bottom: 0.75rem;
}

.el-feat-card p {
  font-size: 0.875rem;
  color: var(--el-muted);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.el-feat-open {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--el-green);
  text-decoration: none;
}

.el-feat-open:hover {
  color: var(--el-green-dark);
}

/* CTA banner */
.el-cta {
  background: var(--el-green-light);
  border-radius: var(--el-radius);
  padding: 2rem 2.5rem;
  margin: 1rem 0 3rem;
}

.el-cta-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.el-cta-text i {
  color: var(--el-green);
  font-size: 1.5rem;
  margin-top: 0.15rem;
}

.el-cta-text strong {
  color: var(--el-green-dark);
}

.el-cta-text span {
  font-size: 0.95rem;
  color: var(--el-muted);
}

/* All apps section (hidden until View All) */
.el-all-apps {
  display: none;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.el-all-apps.is-visible {
  display: block;
}

/* Footer: dark background + light text (vars must live on .el-home-page, not .el-home) */
.el-home-page #page-footer {
  background: #122f3b !important;
  color: #fff !important;
}

.el-home-page #page-footer .footer-description,
.el-home-page #page-footer .footer-links a,
.el-home-page #page-footer .contact-info p,
.el-home-page #page-footer .copyright {
  color: rgba(255, 255, 255, 0.85) !important;
}

.el-home-page #page-footer .footer-logo h4,
.el-home-page #page-footer .footer-title,
.el-home-page #page-footer .footer-links i,
.el-home-page #page-footer .contact-info i,
.el-home-page #page-footer .copyright strong {
  color: #48e893 !important;
}

.el-home-page #page-footer .footer-links a:hover,
.el-home-page #page-footer .contact-info a:hover {
  color: #48e893 !important;
}

.el-home-page #page-footer .contact-info a {
  color: #fff !important;
}

.el-home-page #page-footer .footer-bottom {
  border-top: 1px solid rgba(72, 232, 147, 0.25);
}

/* Override page container for home */
#page-container.el-home-page {
  background: #fff;
}

header#page-header + main .el-hero {
  margin-top: 0;
}

@media (max-width: 991px) {
  .el-hero .container {
    padding-bottom: 4rem;
  }
  .el-hero-plant-wrap {
    margin-top: 1.5rem;
    text-align: center;
  }
  .el-cta {
    text-align: center;
  }
  .el-cta .el-btn-primary {
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .el-trust-item {
    margin-bottom: 1rem;
  }
  .el-trust-bar .row > [class*='col-']:last-child .el-trust-item {
    margin-bottom: 0;
  }
}
