/* =========================================================
   AGRIMPEX EUROPE
   Block: About Hero
   File: blocks/about-hero/style.css
   ========================================================= */

.about-hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--ah-section-pt, 76px);
  padding-bottom: var(--ah-section-pb, 74px);
  background: var(--ah-section-bg, #ffffff);
  color: var(--ah-text, #000000);
  border-bottom: 1px solid var(--ah-border, #e7e7e7);
}

.about-hero-container {
  position: relative;
  z-index: 2;
  width: min(
    calc(100% - (var(--ah-container-padding-x, 32px) * 2)),
    var(--ah-container-max, 1440px)
  );
  margin-inline: auto;
}

.about-hero-section[style*="--ah-container-max:none"] .about-hero-container {
  width: calc(100% - (var(--ah-container-padding-x, 32px) * 2));
  max-width: none;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: var(
    --ah-grid-template,
    minmax(0, 34fr) minmax(0, 44fr) minmax(270px, 22fr)
  );
  gap: var(--ah-grid-gap, 34px);
  align-items: stretch;
}

/* =========================================================
   Content
   ========================================================= */

.about-hero-content {
  width: 100%;
  max-width: var(--ah-content-max, 500px);
  display: flex;
  flex-direction: column;
  align-self: var(--ah-content-align, center);
  justify-self: start;
  min-width: 0;
}

.about-hero-eyebrow {
  margin: 0 0 var(--ah-eyebrow-mb, 20px);
  color: var(--ah-accent, #4a8a4a);
  font-family: var(--ah-eyebrow-family, Inter, Arial, sans-serif);
  font-size: var(--ah-eyebrow-size, 12px);
  font-weight: var(--ah-eyebrow-weight, 700);
  line-height: var(--ah-eyebrow-line, 1);
  letter-spacing: var(--ah-eyebrow-spacing, 0em);
  text-transform: var(--ah-eyebrow-transform, uppercase);
}

.about-hero-heading {
  margin: 0 0 var(--ah-heading-mb, 26px);
  color: var(--ah-text, #000000);
  font-family: var(--ah-heading-family, Inter, Arial, sans-serif);
  font-size: var(--ah-heading-size, 54px);
  font-weight: var(--ah-heading-weight, 800);
  line-height: var(--ah-heading-line, 0.98);
  letter-spacing: var(--ah-heading-spacing, -0.04em);
  text-transform: var(--ah-heading-transform, none);
  text-wrap: balance;
}

.about-hero-heading__main,
.about-hero-heading__highlight {
  display: inline;
}

.about-hero-heading__highlight {
  color: var(--ah-highlight, #26ad21);
}

.about-hero-description {
  max-width: 100%;
  margin: 0 0 var(--ah-description-mb, 30px);
  color: var(--ah-muted, #4a4a4a);
  font-family: var(--ah-description-family, Lato, Arial, sans-serif);
  font-size: var(--ah-description-size, 16px);
  font-weight: var(--ah-description-weight, 400);
  line-height: var(--ah-description-line, 1.6);
  letter-spacing: var(--ah-description-spacing, 0em);
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ah-button-gap, 14px);
}

.about-hero-button {
  min-height: var(--ah-button-height, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 var(--ah-button-padding-x, 24px);
  border-width: var(--ah-button-border-w, 1px);
  border-style: solid;
  border-radius: var(--ah-button-radius, 999px);
  font-family: var(--ah-button-family, Lato, Arial, sans-serif);
  font-size: var(--ah-button-size, 15px);
  font-weight: var(--ah-button-weight, 700);
  line-height: var(--ah-button-line, 1);
  letter-spacing: var(--ah-button-spacing, 0em);
  text-transform: var(--ah-button-transform, none);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--ah-transition, 240ms) ease,
    color var(--ah-transition, 240ms) ease,
    background-color var(--ah-transition, 240ms) ease,
    border-color var(--ah-transition, 240ms) ease,
    box-shadow var(--ah-transition, 240ms) ease;
}

.about-hero-button--primary {
  color: var(--ah-primary-color, #ffffff);
  background: var(--ah-primary-bg, #4a8a4a);
  border-color: var(--ah-primary-border, #4a8a4a);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ah-primary-bg, #4a8a4a) 18%, transparent);
}

.about-hero-button--secondary {
  color: var(--ah-secondary-color, #000000);
  background: var(--ah-secondary-bg, transparent);
  border-color: var(--ah-secondary-border, #4a8a4a);
}

.about-hero-button:hover {
  transform: translateY(-2px);
}

.about-hero-button--primary:hover {
  color: var(--ah-primary-color-hover, #ffffff);
  background: var(--ah-primary-bg-hover, #26ad21);
  border-color: var(--ah-primary-border-hover, #26ad21);
}

.about-hero-button--secondary:hover {
  color: var(--ah-secondary-color-hover, #000000);
  background: var(--ah-secondary-bg-hover, #f0f0f0);
  border-color: var(--ah-secondary-border-hover, #26ad21);
}

.about-hero-button__arrow {
  display: inline-flex;
  transition: transform var(--ah-transition, 240ms) ease;
}

.about-hero-button:hover .about-hero-button__arrow {
  transform: translateX(var(--ah-arrow-x, 4px));
}

/* =========================================================
   Media collage
   ========================================================= */

.about-hero-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ah-media-gap, 10px);
}

.about-hero-media__main,
.about-hero-media__small {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: var(--ah-media-radius, 0px);
}

.about-hero-media__main {
  height: var(--ah-main-image-h, 360px);
}

.about-hero-media__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ah-media-gap, 10px);
}

.about-hero-media__small {
  height: var(--ah-small-image-h, 205px);
}

.about-hero-picture,
.about-hero-picture img {
  width: 100%;
  height: 100%;
  display: block;
}

.about-hero-picture img {
  object-fit: cover;
  object-position: var(--ah-picture-position, center center);
  transition:
    transform var(--ah-transition, 240ms) ease,
    filter var(--ah-transition, 240ms) ease;
}

.about-hero-media__main:hover img,
.about-hero-media__small:hover img {
  transform: scale(1.015);
}

.about-hero-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(74, 138, 74, 0.08), transparent 55%),
    #f0f0f0;
  color: #6a6a6a;
  border: 1px dashed rgba(74, 138, 74, 0.35);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* =========================================================
   Company profile
   ========================================================= */

.about-hero-profile {
  position: relative;
  width: min(100%, var(--ah-profile-w, 320px));
  align-self: center;
  justify-self: end;
  min-width: 0;
  padding: var(--ah-profile-padding, 30px);
  color: var(--ah-text, #000000);
  background: var(--ah-profile-bg, #ffffff);
  border-width: var(--ah-profile-border-w, 1px);
  border-style: solid;
  border-color: var(--ah-profile-border, #e7e7e7);
  border-radius: var(--ah-profile-radius, 12px);
  box-shadow: var(--ah-profile-shadow, 0 16px 48px rgba(0, 0, 0, 0.10));
}

.about-hero-profile__title {
  margin: 0 0 28px;
  color: var(--ah-accent, #4a8a4a);
  font-family: var(--ah-profile-title-family, Inter, Arial, sans-serif);
  font-size: var(--ah-profile-title-size, 12px);
  font-weight: var(--ah-profile-title-weight, 700);
  line-height: var(--ah-profile-title-line, 1);
  letter-spacing: var(--ah-profile-title-spacing, 0em);
  text-transform: var(--ah-profile-title-transform, uppercase);
}

.about-hero-profile__items {
  display: flex;
  flex-direction: column;
  gap: var(--ah-profile-item-gap, 24px);
}

.about-hero-profile__item {
  display: grid;
  grid-template-columns: var(--ah-profile-icon-size, 34px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.about-hero-profile__icon {
  width: var(--ah-profile-icon-size, 34px);
  height: var(--ah-profile-icon-size, 34px);
  display: grid;
  place-items: center;
  color: var(--ah-accent, #4a8a4a);
}

.about-hero-profile__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-hero-profile__copy {
  min-width: 0;
}

.about-hero-profile__copy strong {
  display: block;
  margin: 1px 0 5px;
  color: var(--ah-text, #000000);
  font-family: Inter, Arial, sans-serif;
  font-size: var(--ah-profile-item-title-size, 15px);
  font-weight: var(--ah-profile-item-title-weight, 700);
  line-height: 1.22;
}

.about-hero-profile__copy p {
  margin: 0;
  color: var(--ah-muted, #4a4a4a);
  font-family: Lato, Arial, sans-serif;
  font-size: var(--ah-profile-item-text-size, 13px);
  font-weight: 400;
  line-height: var(--ah-profile-item-text-line, 1.45);
}

/* =========================================================
   Decorative technical linework
   ========================================================= */

.about-hero-decoration {
  display: none;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: var(--ah-decoration-opacity, 0.34);
}

.about-hero-section.has-decorations .about-hero-decoration {
  display: block;
}

.about-hero-decoration--left {
  width: 360px;
  height: 280px;
  left: 31%;
  top: 48px;
  background:
    radial-gradient(circle, var(--ah-accent, #4a8a4a) 1px, transparent 1.2px) 0 0 / 9px 9px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%, transparent 92%);
  mask-image: linear-gradient(to right, transparent, #000 45%, transparent 92%);
}

.about-hero-decoration--right {
  width: 330px;
  height: 390px;
  right: -95px;
  top: -58px;
  border: 1px solid color-mix(in srgb, var(--ah-accent, #4a8a4a) 55%, transparent);
  border-radius: 50%;
}

.about-hero-decoration--right::before {
  content: "";
  position: absolute;
  width: 165px;
  height: 210px;
  right: 58px;
  top: 145px;
  background: radial-gradient(circle, var(--ah-accent, #4a8a4a) 1px, transparent 1.2px) 0 0 / 8px 8px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
}

.about-hero-decoration--right::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 58px;
  top: 36px;
  background: var(--ah-highlight, #26ad21);
  transform: rotate(45deg);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {
  .about-hero-section {
    padding-top: var(--ah-tablet-pt, 58px);
    padding-bottom: var(--ah-tablet-pb, 58px);
  }

  .about-hero-container,
  .about-hero-section[style*="--ah-container-max:none"] .about-hero-container {
    width: calc(100% - (var(--ah-tablet-padding-x, 26px) * 2));
  }

  .about-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px 28px;
  }

  .about-hero-heading {
    font-size: var(--ah-tablet-heading-size, 46px);
  }

  .about-hero-media__main {
    height: var(--ah-tablet-main-image-h, 330px);
  }

  .about-hero-media__small {
    height: var(--ah-tablet-small-image-h, 180px);
  }

  .about-hero-profile {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .about-hero-profile__items {
    display: grid;
    grid-template-columns: repeat(var(--ah-tablet-profile-columns, 2), minmax(0, 1fr));
    gap: 24px 34px;
  }

  .about-hero-decoration--left {
    left: 44%;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
  .about-hero-section {
    padding-top: var(--ah-mobile-pt, 42px);
    padding-bottom: var(--ah-mobile-pb, 44px);
  }

  .about-hero-container,
  .about-hero-section[style*="--ah-container-max:none"] .about-hero-container {
    width: calc(100% - (var(--ah-mobile-padding-x, 20px) * 2));
  }

  .about-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .about-hero-content {
    max-width: none;
    align-self: stretch;
  }

  .about-hero-heading {
    font-size: var(--ah-mobile-heading-size, 38px);
    line-height: var(--ah-mobile-heading-line, 1.02);
  }

  .about-hero-description {
    font-size: var(--ah-mobile-description-size, 16px);
  }

  .about-hero-media__main {
    height: var(--ah-mobile-main-image-h, 250px);
  }

  .about-hero-media__row {
    grid-template-columns: repeat(var(--ah-mobile-media-columns, 2), minmax(0, 1fr));
  }

  .about-hero-media__small {
    height: var(--ah-mobile-small-image-h, 160px);
  }

  .about-hero-picture img {
    object-position: var(--ah-picture-mobile-position, var(--ah-picture-position, center center));
  }

  .about-hero-profile {
    grid-column: auto;
    width: 100%;
    padding: max(22px, calc(var(--ah-profile-padding, 30px) * 0.86));
  }

  .about-hero-profile__items {
    grid-template-columns: repeat(var(--ah-mobile-profile-columns, 1), minmax(0, 1fr));
  }

  .about-hero-section.mobile-buttons-full .about-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero-section.mobile-buttons-full .about-hero-button {
    width: 100%;
  }

  .about-hero-section.mobile-hides-decorations .about-hero-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-hero-media__row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .about-hero-button,
  .about-hero-button__arrow,
  .about-hero-picture img {
    transition: none !important;
  }

  .about-hero-button:hover,
  .about-hero-button:hover .about-hero-button__arrow,
  .about-hero-media__main:hover img,
  .about-hero-media__small:hover img {
    transform: none !important;
  }
}
