/* ============================================================
   GREEN LABEL SERVICES — CERTIFICATIONS PAGE
   certifications.css
   ============================================================ */


/* ─── SECTION LABEL ─────────────────────────────────────────── */
.section-label {
  display:        inline-flex;
  align-items:    center;
  gap:            0.5rem;
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--color-primary);
  margin-bottom:  0.875rem;
}

.section-label--light {
  color: rgba(23, 199, 20, 0.85);
}

.section-label::before {
  content:       '';
  display:       inline-block;
  width:         24px;
  height:        2px;
  background:    var(--color-primary);
  border-radius: 1px;
}


/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal-up {
  opacity:    0;
  transform:  translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.is-visible {
  opacity:   1;
  transform: translateY(0);
}


/* ─── BTN OUTLINE WHITE ─────────────────────────────────────── */
.btn-outline-white {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             0.5rem;
  padding:         0.75rem 1.75rem;
  font-family:     var(--font);
  font-size:       0.9rem;
  font-weight:     600;
  color:           var(--color-white);
  background:      transparent;
  border:          2px solid rgba(255, 255, 255, 0.5);
  border-radius:   var(--radius-pill);
  cursor:          pointer;
  text-decoration: none;
  transition:      background var(--ease), border-color var(--ease), color var(--ease);
  min-height:      44px;
  min-width:       44px;
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background:   rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  outline:      none;
}


/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.cert-hero {
  position:         relative;
  background:       #0a0f0a;
  min-height:       88vh;
  display:          flex;
  align-items:      center;
  overflow:         hidden;
  padding:          6rem 1.5rem 4rem;
}

/* Decorative background */
.cert-hero__bg {
  position: absolute;
  inset:    0;
  pointer-events: none;
}

.cert-hero__orb {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(80px);
  opacity:       0.18;
}

.cert-hero__orb--1 {
  width:      520px;
  height:     520px;
  background: var(--color-primary);
  top:        -160px;
  right:      -80px;
}

.cert-hero__orb--2 {
  width:      320px;
  height:     320px;
  background: var(--color-accent);
  bottom:     -80px;
  left:       -60px;
}

.cert-hero__grid-lines {
  position:   absolute;
  inset:      0;
  background-image:
    linear-gradient(rgba(23, 199, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 199, 20, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Content */
.cert-hero__container {
  position:   relative;
  z-index:    1;
  max-width:  800px;
  margin:     0 auto;
  text-align: center;
}

.cert-hero__tag {
  display:          inline-flex;
  align-items:      center;
  gap:              0.5rem;
  padding:          0.35rem 1rem;
  background:       rgba(23, 199, 20, 0.12);
  border:           1px solid rgba(23, 199, 20, 0.3);
  border-radius:    var(--radius-pill, 999px);
  color:            var(--color-primary);
  font-size:        0.78rem;
  font-weight:      700;
  letter-spacing:   0.1em;
  text-transform:   uppercase;
  margin-bottom:    1.5rem;
}

.cert-hero__heading {
  font-size:   clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  color:       var(--color-white);
  line-height: 1.1;
  margin:      0 0 1.25rem;
}

.cert-hero__sub {
  font-size:   clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color:       rgba(255, 255, 255, 0.7);
  max-width:   600px;
  margin:      0 auto 2rem;
  line-height: 1.7;
}

.cert-hero__actions {
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-wrap:       wrap;
  gap:             1rem;
  margin-bottom:   2.5rem;
}

.cert-hero__breadcrumb {
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         0.5rem;
  font-size:   0.8rem;
  color:       rgba(255, 255, 255, 0.45);
}

.cert-hero__breadcrumb a {
  color:           rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition:      color 0.2s;
}

.cert-hero__breadcrumb a:hover {
  color: var(--color-primary);
}

.cert-hero__breadcrumb i {
  font-size: 0.6rem;
}


/* ═══════════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════════ */
.cert-stats {
  background: #111711;
  padding:    2.25rem 1.5rem;
  border-top: 1px solid rgba(23, 199, 20, 0.12);
  border-bottom: 1px solid rgba(23, 199, 20, 0.12);
}

.cert-stats__grid {
  display:         flex;
  flex-wrap:       wrap;
  align-items:     center;
  justify-content: center;
  gap:             2rem 4rem;
  max-width:       900px;
  margin:          0 auto;
}

.cert-stats__item {
  display:     flex;
  flex-direction: column;
  align-items: center;
  gap:         0.25rem;
}

.cert-stats__value {
  font-size:   clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color:       var(--color-primary);
  line-height: 1;
}

.cert-stats__label {
  font-size:      0.78rem;
  font-weight:    600;
  color:          rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════
   CERTIFICATE CARDS
═══════════════════════════════════════════════════════════════ */
.cert-cards {
  background: #f7f9f7;
  padding:    5rem 1.5rem;
}

.cert-cards__container {
  max-width: 1160px;
  margin:    0 auto;
}

.cert-cards__header {
  text-align:    center;
  margin-bottom: 3.5rem;
}

.cert-cards__header h2 {
  font-size:   clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color:       #0d1a0d;
  margin:      0 0 1rem;
}

.cert-cards__intro {
  font-size:  1rem;
  color:      #5a6b5a;
  max-width:  620px;
  margin:     0 auto;
  line-height: 1.7;
}

.cert-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap:                   1.75rem;
}

.cert-card {
  display:        flex;
  flex-direction: column;
  background:     var(--color-white);
  border-radius:  1rem;
  box-shadow:     0 2px 16px rgba(0, 0, 0, 0.07);
  padding:        2rem;
  transition:     transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease);
  border:         1px solid rgba(23, 199, 20, 0.1);
}

.cert-card:hover {
  transform:  translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.cert-card__icon-wrap {
  width:           60px;
  height:          60px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(23, 199, 20, 0.1);
  border-radius:   50%;
  margin-bottom:   1.5rem;
  flex-shrink:     0;
}

.cert-card__icon-wrap i {
  font-size: 1.5rem;
  color:     var(--color-primary);
}

.cert-card__body {
  flex: 1;
}

.cert-card__name {
  font-size:     1.15rem;
  font-weight:   700;
  color:         #0d1a0d;
  margin:        0 0 0.4rem;
}

.cert-card__issuer {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
  font-size:   0.8rem;
  font-weight: 500;
  color:       #7a8a7a;
  margin:      0 0 0.75rem;
}

.cert-card__issuer i {
  font-size: 0.75rem;
  color:     var(--color-primary);
}

.cert-card__number {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
  font-size:   0.78rem;
  font-weight: 600;
  color:       var(--color-accent);
  margin:      0 0 0.75rem;
}

.cert-card__number i {
  font-size: 0.7rem;
}

.cert-card__desc {
  font-size:   0.9rem;
  color:       #4a5a4a;
  line-height: 1.7;
  margin:      0;
}

.cert-card__cta {
  margin-top:  auto;
  padding-top: 1.5rem;
}


/* ═══════════════════════════════════════════════════════════════
   COMPLIANCE STRIP
═══════════════════════════════════════════════════════════════ */
.cert-compliance {
  background: #0a0f0a;
  padding:    5rem 1.5rem;
}

.cert-compliance__container {
  max-width: 1160px;
  margin:    0 auto;
}

.cert-compliance__header {
  text-align:    center;
  margin-bottom: 3.5rem;
}

.cert-compliance__title {
  font-size:   clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color:       var(--color-white);
  margin:      0;
}

.cert-compliance__grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap:                   1.75rem;
}

.cert-cap {
  background:    rgba(255, 255, 255, 0.04);
  border:        1px solid rgba(23, 199, 20, 0.15);
  border-radius: 1rem;
  padding:       2rem;
  transition:    background 0.25s, border-color 0.25s;
}

.cert-cap:hover {
  background:    rgba(23, 199, 20, 0.06);
  border-color:  rgba(23, 199, 20, 0.35);
}

.cert-cap__icon {
  width:           52px;
  height:          52px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(23, 199, 20, 0.1);
  border-radius:   50%;
  margin-bottom:   1.25rem;
}

.cert-cap__icon i {
  font-size: 1.3rem;
  color:     var(--color-primary);
}

.cert-cap__heading {
  font-size:     1.05rem;
  font-weight:   700;
  color:         var(--color-white);
  margin:        0 0 0.75rem;
}

.cert-cap__text {
  font-size:   0.875rem;
  color:       rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin:      0;
}


/* ═══════════════════════════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════════════════════════ */
.cert-cta {
  background: var(--color-white);
  padding:    4.5rem 1.5rem;
  border-top: 1px solid #e8f0e8;
}

.cert-cta__container {
  max-width:       1160px;
  margin:          0 auto;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             2rem;
  flex-wrap:       wrap;
}

.cert-cta__text h2 {
  font-size:   clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color:       #0d1a0d;
  margin:      0 0 0.5rem;
}

.cert-cta__text p {
  font-size:   1rem;
  color:       #5a6b5a;
  margin:      0;
  max-width:   540px;
  line-height: 1.6;
}

.cert-cta__actions {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         1rem;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════ */
.cert-lightbox {
  position:        fixed;
  inset:           0;
  z-index:         9000;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         1rem;
}

.cert-lightbox[hidden] {
  display: none;
}

.cert-lightbox__backdrop {
  position:   absolute;
  inset:      0;
  background: rgba(0, 0, 0, 0.8);
  cursor:     pointer;
}

.cert-lightbox__panel {
  position:     relative;
  z-index:      1;
  background:   var(--color-white);
  border-radius: 1rem;
  max-width:    90vw;
  max-height:   90vh;
  overflow:     auto;
  display:      flex;
  flex-direction: column;
  box-shadow:   0 24px 80px rgba(0, 0, 0, 0.4);
  width:        100%;
}

.cert-lightbox__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
  padding:         1.25rem 1.5rem;
  border-bottom:   1px solid #e8f0e8;
  flex-shrink:     0;
}

.cert-lightbox__header-inner {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
  min-width:   0;
}

.cert-lightbox__badge {
  width:           36px;
  height:          36px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(23, 199, 20, 0.1);
  border-radius:   50%;
  flex-shrink:     0;
}

.cert-lightbox__badge i {
  font-size: 0.9rem;
  color:     var(--color-primary);
}

.cert-lightbox__title {
  font-size:     1.05rem;
  font-weight:   700;
  color:         #0d1a0d;
  margin:        0;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.cert-lightbox__close {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  height:          44px;
  min-height:      44px;
  background:      transparent;
  border:          1px solid #dde8dd;
  border-radius:   50%;
  cursor:          pointer;
  color:           #5a6b5a;
  font-size:       1rem;
  transition:      background 0.2s, color 0.2s;
  flex-shrink:     0;
}

.cert-lightbox__close:hover,
.cert-lightbox__close:focus-visible {
  background: #f0f7f0;
  color:      #0d1a0d;
  outline:    none;
}

.cert-lightbox__body {
  padding:    1.5rem;
  overflow:   auto;
  flex:       1;
  display:    flex;
  align-items: center;
  justify-content: center;
}

.cert-lightbox__img-wrap {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           100%;
}

.cert-lightbox__img {
  max-width:     100%;
  max-height:    70vh;
  display:       block;
  border-radius: 0.5rem;
  object-fit:    contain;
}

/* Unavailable state */
.cert-lightbox__unavailable {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  text-align:      center;
  padding:         2rem 1.5rem;
  gap:             1rem;
  width:           100%;
}

.cert-lightbox__unavail-icon {
  width:           72px;
  height:          72px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(23, 199, 20, 0.1);
  border-radius:   50%;
  flex-shrink:     0;
}

.cert-lightbox__unavail-icon i {
  font-size: 1.8rem;
  color:     var(--color-primary);
}

.cert-lightbox__unavail-title {
  font-size:   1.05rem;
  font-weight: 700;
  color:       #0d1a0d;
  margin:      0;
}

.cert-lightbox__unavail-text {
  font-size:   0.9rem;
  color:       #5a6b5a;
  line-height: 1.65;
  max-width:   360px;
  margin:      0;
}

.cert-lightbox__unavail-btn {
  margin-top: 0.5rem;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .cert-hero {
    min-height: auto;
    padding:    5rem 1.25rem 3.5rem;
  }

  .cert-stats__grid {
    gap: 1.5rem 2.5rem;
  }

  .cert-cta__container {
    flex-direction: column;
    text-align:     center;
  }

  .cert-cta__actions {
    justify-content: center;
  }

  .cert-lightbox__panel {
    max-width:  100%;
    max-height: 95vh;
  }
}

@media (max-width: 480px) {
  .cert-cards,
  .cert-compliance {
    padding: 3.5rem 1rem;
  }

  .cert-cta {
    padding: 3rem 1rem;
  }

  .cert-grid,
  .cert-compliance__grid {
    grid-template-columns: 1fr;
  }

  .cert-hero__actions {
    flex-direction: column;
    align-items:    stretch;
  }

  .cert-hero__actions .btn,
  .cert-hero__actions .btn-outline-white {
    text-align:      center;
    justify-content: center;
  }

  .cert-stats__grid {
    gap: 1.25rem 1.5rem;
  }
}
