/* Accreditations page — modern layout (matches about / services theme) */

.accred-page {
  padding-top: 4.25rem;
  background: #f9f9f9;
  min-height: 100vh;
  overflow-x: clip;
}

.accred-page__container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.accred-page-hero {
  position: relative;
  min-height: 280px;
  max-height: 420px;
  overflow: hidden;
  background: #014d33;
}

.accred-page-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.accred-page-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  background: linear-gradient(180deg, rgba(1, 30, 20, 0.25) 0%, rgba(1, 77, 51, 0.92) 100%);
  color: #ffffff;
}

.accred-page-hero__label {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7af28;
  margin-bottom: 0.75rem;
}

.accred-page-hero__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem;
  max-width: 32rem;
}

.accred-page-hero__lead {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.accred-page__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .accred-page__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.accred-page__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid #f7af28;
  backdrop-filter: blur(8px);
}

.accred-page__stat-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.accred-page__stat-num--iso {
  font-size: clamp(0.875rem, 2vw, 1rem);
  letter-spacing: 0.02em;
}

.accred-page__stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}

/* Intro strip */
.accred-intro {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.accred-intro__inner {
  max-width: 40rem;
}

.accred-intro__label {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #016644;
  margin-bottom: 0.75rem;
}

.accred-intro__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 600;
  color: #014d33;
  margin: 0 0 1rem;
}

.accred-intro__text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #3f4947;
  margin: 0;
}

/* Sections */
.accred-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.accred-section--certs {
  background: #f9f9f9;
  border-bottom: 1px solid #e2e8f0;
}

.accred-section--regs {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.accred-section__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 36rem;
}

.accred-section__label {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #016644;
  margin-bottom: 0.75rem;
}

.accred-section__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 600;
  color: #014d33;
  margin: 0 0 0.75rem;
}

.accred-section__intro {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #3f4947;
  margin: 0;
}

/* Grids */
.accred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .accred-grid--certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .accred-grid--regs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Cards — shared */
.accred-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2rem 1.75rem 1.75rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.accred-card:hover {
  transform: translateY(-4px);
  border-color: #f7af28;
  box-shadow: 0 16px 40px rgba(1, 102, 68, 0.1);
}

button.accred-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.accred-card.accred-card--reg {
  text-align: center;
}

.accred-card--has-image:hover .accred-card__view,
.accred-card--has-image:focus-visible .accred-card__view {
  color: #016644;
}

.accred-card--has-image:focus-visible {
  outline: 2px solid #f7af28;
  outline-offset: 2px;
}

.accred-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(1, 102, 68, 0.55);
  transition: color 0.25s ease;
}

.accred-card__view .material-symbols-outlined {
  font-size: 1rem;
}

.accred-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(1, 102, 68, 0.25);
}

.accred-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  background: #e8f5ef;
  color: #016644;
}

.accred-card__icon .material-symbols-outlined {
  font-size: 1.375rem;
}

.accred-card__badge {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #016644;
  background: #e8f5ef;
  border: 1px solid rgba(1, 102, 68, 0.15);
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.875rem;
}

.accred-card__name {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #014d33;
  margin: 0 0 0.625rem;
  line-height: 1.3;
}

.accred-card__desc {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3f4947;
  margin: 0;
}

/* ISO certification cards — green accent top */
.accred-card--cert {
  border-top: 3px solid #016644;
}

.accred-card--cert:hover {
  border-top-color: #f7af28;
}

/* Registration cards — compact */
.accred-card--reg {
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accred-card__icon--reg {
  margin-bottom: 1rem;
}

.accred-card__badge--reg {
  margin-bottom: 0.75rem;
}

.accred-card--reg .accred-card__name {
  font-size: 1rem;
}

.accred-card--reg .accred-card__desc {
  font-size: 0.875rem;
}

/* Standards band */
.accred-standards {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(135deg, #014d33 0%, #016644 55%, #01875a 100%);
}

.accred-standards__head {
  max-width: 36rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.accred-standards__label {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f7af28;
  margin-bottom: 0.75rem;
}

.accred-standards__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.accred-standards__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.accred-standards__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.accred-standards__tag {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #014d33;
  background: #f7af28;
  padding: 0.55rem 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.accred-standards__tag:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* CTA band */
.accred-cta-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.accred-cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .accred-cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.accred-cta-band__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #014d33;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.accred-cta-band__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3f4947;
  margin: 0;
  max-width: 32rem;
}

.accred-cta-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #016644;
  padding: 1rem 1.75rem;
  transition: background 0.25s ease, transform 0.25s ease, gap 0.25s ease;
}

.accred-cta-band__btn:hover {
  background: #014d33;
  transform: translateY(-2px);
  gap: 0.75rem;
}

/* Certificate lightbox */
.accred-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.accred-lightbox[hidden] {
  display: none;
}

.accred-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 20, 14, 0.92);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
}

.accred-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.accred-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.accred-lightbox__title {
  margin: 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #014d33;
}

.accred-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: #e8f5ef;
  color: #016644;
  cursor: pointer;
}

.accred-lightbox__close:hover {
  background: #016644;
  color: #ffffff;
}

.accred-lightbox__body {
  overflow: auto;
  padding: 1rem;
  background: #f4f7f6;
}

.accred-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 780px);
  object-fit: contain;
  margin: 0 auto;
  background: #ffffff;
}

.accred-page .nav-link--active {
  color: #014d33;
}

.accred-page-hero__lead,
.accred-intro__text,
.accred-section__intro,
.accred-card__desc,
.accred-standards__text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
