/* About Tarmak */

@media (prefers-reduced-motion: reduce) {
  .about-reveal,
  .about-fade,
  .about-value {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.about-section {
  background: #f9f9f9;
  padding: 120px 0 clamp(2rem, 3.5vw, 3rem);
  overflow: hidden;
}

.about-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .about-section__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    margin-bottom: 4rem;
  }
}

.about-section__visual {
  position: relative;
}

.about-section__image,
.about-section__video-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  padding: 0;
  border: none;
  cursor: pointer;
  overflow: hidden;
  background: #014d33;
  text-align: left;
}

.about-section__video-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.about-section__video-preview.is-ready {
  opacity: 1;
}

.about-section__video-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 102, 68, 0.08) 0%,
    rgba(1, 77, 51, 0.55) 100%
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.about-section__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.about-section__play-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(1, 102, 68, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.about-section__play .material-symbols-outlined {
  position: relative;
  z-index: 1;
  font-size: 2.75rem;
  color: #f7af28;
  margin-left: 0.15rem;
}

.about-section__video-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  pointer-events: none;
}

.about-section__video-trigger:hover .about-section__video-preview,
.about-section__video-trigger:focus-visible .about-section__video-preview {
  transform: scale(1.04);
}

.about-section__video-trigger:hover .about-section__play-ring,
.about-section__video-trigger:focus-visible .about-section__play-ring {
  transform: scale(1.08);
  background: rgba(1, 102, 68, 0.88);
  border-color: rgba(247, 175, 40, 0.65);
}

.about-section__video-trigger:focus-visible {
  outline: 2px solid #f7af28;
  outline-offset: 3px;
}

/* Video popup */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 30, 20, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #ffffff;
  border: 1px solid rgba(1, 102, 68, 0.15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  animation: video-modal-in 0.35s ease;
}

@keyframes video-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f9f9f9;
}

.video-modal__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #016644;
  margin: 0;
}

.video-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #016644;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.video-modal__close:hover {
  background: #e8f5ef;
  border-color: rgba(1, 102, 68, 0.25);
  color: #014d33;
}

.video-modal__close .material-symbols-outlined {
  font-size: 1.25rem;
}

.video-modal__body {
  background: #000000;
}

.video-modal__player {
  display: block;
  width: 100%;
  max-height: min(70vh, 540px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
}

.about-section__badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  min-width: 140px;
  box-shadow: 0 12px 40px rgba(1, 102, 68, 0.15);
  border-left: 4px solid #f7af28;
}

.about-section__badge-num {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  color: #016644;
  margin-bottom: 0.25rem;
}

.about-section__badge-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #3f4947;
  font-weight: 500;
}

.about-section__locations {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(1, 102, 68, 0.92);
  color: #ffffff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.625rem 1rem;
  backdrop-filter: blur(8px);
}

.about-section__locations .material-symbols-outlined {
  font-size: 1rem;
  color: #f7af28;
}

.about-section__content {
  max-width: 36rem;
}

.about-section__label {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #765b00;
  margin-bottom: 0.75rem;
}

.about-section__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  color: #016644;
  margin-bottom: 1.25rem;
}

.about-section__text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #3f4947;
  margin-bottom: 1rem;
}

.about-section__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.about-section__cert {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #014d33;
  background: #e8f5ef;
  border: 1px solid rgba(1, 102, 68, 0.15);
  padding: 0.4rem 0.75rem;
}

.about-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #016644;
  padding: 1rem 2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.about-section__cta:hover {
  background: #014d33;
  transform: translateY(-2px);
}

.about-section__values {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid #e2e8f0;
}

.about-section__values-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 36rem;
}

.about-section__values-head .about-section__label {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: #016644;
  margin-bottom: 1rem;
}

.about-section__values-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.12;
  font-weight: 600;
  color: #014d33;
  margin-bottom: 1rem;
}

.about-section__values-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #3f4947;
  margin: 0;
  max-width: 34rem;
}

.about-section__values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-section__values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.about-value {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-value:hover {
  transform: translateY(-4px);
  border-color: #f7af28;
  box-shadow: 0 16px 40px rgba(1, 102, 68, 0.1);
}

.about-value__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #014d33;
}

.about-value__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 77, 51, 0) 35%,
    rgba(1, 77, 51, 0.55) 100%
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.about-value:hover .about-value__media::after {
  opacity: 0.85;
}

.about-value__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-value:hover .about-value__media img {
  transform: scale(1.05);
}

.about-value__index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  background: rgba(1, 102, 68, 0.88);
  padding: 0.35rem 0.55rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.about-value__icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #f7af28;
  box-shadow: 0 6px 20px rgba(247, 175, 40, 0.35);
  transition: transform 0.35s ease, background 0.35s ease;
}

.about-value:hover .about-value__icon {
  transform: scale(1.06);
  background: #ffdf94;
}

.about-value__icon .material-symbols-outlined {
  font-size: 1.35rem;
  color: #251a00;
}

.about-value__body {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-value__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #014d33;
  margin: 0;
  transition: color 0.3s ease;
}

.about-value:hover .about-value__title {
  color: #016644;
}

.about-value__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3f4947;
  margin: 0;
}

.about-section__text,
.about-section__values-intro,
.about-value__text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-reveal {
  opacity: 0;
  transform: translateX(-32px);
  will-change: transform, opacity;
}

.about-fade {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.about-section .about-value {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

@media (max-width: 1023px) {
  .about-section {
    padding: 80px 0 2rem;
  }

  .about-section__image,
  .about-section__video-trigger {
    aspect-ratio: 16 / 11;
    max-height: none;
  }
}

@media (max-width: 639px) {
  .about-value__body {
    padding: 1.15rem 1.15rem 1.35rem;
  }

  .about-section__certs {
    gap: 0.4rem;
  }

  .about-section__cert {
    font-size: 0.625rem;
    padding: 0.35rem 0.6rem;
  }
}
