/* public/css/sections/hero.css */

.hero {
  padding: 32px 24px 0;
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;

  background: var(--color-bg);
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 56px 64px;
}

.hero__title {
  margin: 0;
  max-width: 560px;

  color: var(--color-text);
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
}

.hero__subtitle {
  margin: 24px 0 0;
  max-width: 620px;

  color: var(--color-text);
  font-size: 18px;
  line-height: 1.22;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: var(--cta-height);
  padding: 0 var(--cta-pad-x);

  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: var(--radius-sm);

  color: #22c55e;
  background: var(--color-bg);
  text-decoration: none;

  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition);
}

.hero__cta-secondary:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.04);
}

.hero__cta-secondary-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.hero__cta-secondary-text {
  display: inline-block;

  font-size: var(--cta-font-size);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-cta);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.hero__slides {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  height: 100%;

  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;

  transition:
    opacity 920ms ease,
    transform 920ms ease;
}

.hero__slide--active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 18px 24px 20px;
  background: var(--color-bg);
}

.hero__dot {
  width: 22px;
  height: 22px;
  padding: 0;

  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hero__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;

  width: 16px;
  height: 16px;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: transparent;
  box-sizing: border-box;
}

.hero__dot--active::before {
  background: var(--color-primary);
}

@media (max-width: 1120px) {
  .hero {
    padding: 24px 18px 0;
  }

  .hero__container {
    grid-template-columns: 1fr;
  }

  .hero__content {
    order: 2;
    padding: 28px 26px 20px;
  }

  .hero__media {
    order: 1;
  }

  .hero__title {
    max-width: 420px;
    font-size: 28px;
  }

  .hero__subtitle {
    margin-top: 18px;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.2;
  }

  .hero__actions {
    width: 100%;
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__slides {
    min-height: 320px;
  }

  .hero__pagination {
    padding: 14px 18px 18px;
  }
}

@media (max-width: 820px) {
  .hero__content {
    padding: 24px 18px 18px;
  }

  .hero__title {
    max-width: 320px;
    font-size: 24px;
  }

  .hero__subtitle {
    max-width: 320px;
    font-size: 15px;
  }

  .hero__actions {
    align-items: stretch;
    gap: 12px;
  }

  .hero__cta-primary,
  .hero__cta-secondary {
    width: 100%;
  }

  .hero__slides {
    min-height: 220px;
  }

  .hero__pagination {
    gap: 8px;
    padding-top: 12px;
  }

  .hero__dot {
    width: 20px;
    height: 20px;
  }

  .hero__dot::before {
    width: 14px;
    height: 14px;
  }
}