/* =================================================================
   FSC MODAL
   Forest Stewardship Council certification overview shown from the
   Earth sustainability page. Trigger card + modal panel with a 3-up
   grid of certification labels.
   ================================================================= */

/* =================================================================
   TRIGGER CARD
   ================================================================= */

.fsc-card {
  float: right;
  width: 280px;
  margin: 0 0 20px 25px;
}

.fsc-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fsc-card__trigger:hover {
  box-shadow: 0 8px 25px rgb(46, 125, 50, 0.15);
  transform: translateY(-2px);
}

.fsc-card__thumbnail {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 25px;
}

.fsc-card__thumbnail img {
  width: auto;
  height: 80px;
  border-radius: 4px;
}

.fsc-card__overlay {
  position: absolute;
  background: rgb(46, 125, 50, 0);
  transition: background 0.2s ease;
  inset: 0;
}

.fsc-card__trigger:hover .fsc-card__overlay {
  background: rgb(46, 125, 50, 0.05);
}

.fsc-card__info {
  padding: 15px 20px;
  text-align: left;
  background: white;
}

.fsc-card__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #2e7d32;
}

.fsc-card__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #1b5e20;
}

/* =================================================================
   MODAL CONTAINER
   ================================================================= */

.fsc-modal {
  position: fixed;
  z-index: 1000;
  display: none;
  inset: 0;
}

.fsc-modal.is-active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fsc-modal__backdrop {
  position: absolute;
  background: rgb(0, 0, 0, 0.7);
  inset: 0;
}

.fsc-modal__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90dvh;
  padding: 40px;
  overflow-y: auto;
  background: white;
  border-radius: 16px;
}

.fsc-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: #666;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.fsc-modal__close:hover {
  background: #e0e0e0;
}

.fsc-modal__title {
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #1b5e20;
}

.fsc-modal__subtitle {
  margin-bottom: 30px;
  font-family: var(--font-body);
  font-size: 16px;
  text-align: center;
  color: #666;
}

.fsc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.fsc-grid__item {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 12px;
}

.fsc-grid__label-img {
  max-width: 100px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 6px;
}

.fsc-grid__name {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #2e7d32;
}

.fsc-grid__description {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.fsc-modal__stats {
  margin-bottom: 25px;
  padding: 20px;
  text-align: center;
  background: #e8f5e9;
  border-radius: 8px;
}

.fsc-modal__stats p {
  margin: 0;
  font-size: 15px;
  color: #2e7d32;
}

.fsc-modal__stats strong {
  font-weight: 700;
}

.fsc-modal__cta {
  text-align: center;
}

.fsc-modal__cta a {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: #2e7d32;
  border-radius: 6px;
  transition: background 0.2s;
}

.fsc-modal__cta a:hover {
  background: #1b5e20;
}
