/* sections/hero.css: existing styles; responsive and motion rules stay with their owner. */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--color-dark);
  background-image: url("../../assets/images/hero.png");
  background-position: 58% 42%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--color-dark), transparent 96px),
    linear-gradient(90deg, rgb(33 22 18 / 92%) 0%, rgb(43 25 21 / 72%) 28%, rgb(69 32 24 / 28%) 55%, rgb(69 32 24 / 10%) 78%),
    linear-gradient(180deg, rgb(33 22 18 / 24%) 0%, rgb(33 22 18 / 10%) 50%, rgb(33 22 18 / 40%) 100%);
}

.hero__container {
  display: flex;
  align-items: center;
  padding-block: clamp(124px, 18svh, 168px) clamp(40px, 8svh, 96px);
}

.hero__content {
  width: 100%;
  max-width: 700px;
}

.hero__eyebrow {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(64px, 5vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero__accent {
  color: var(--color-accent);
}

.hero__description {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: clamp(18px, 1.3vw, 20px);
  line-height: 1.55;
}

.hero__action {
  margin-top: 34px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: var(--color-champagne);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 240ms ease;
}

.hero__note {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.hero__trust-item + .hero__trust-item {
  padding-left: 24px;
  border-left: 1px solid rgb(246 242 235 / 18%);
}

.hero__trust-icon {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: rgb(211 186 142 / 75%);
}

@media (min-width: 768px) and (max-width: 1279px) {
  .hero {
    background-position: 44% 42%;
  }

  .hero__container {
    padding-block: clamp(112px, 16svh, 152px) clamp(32px, 7svh, 64px);
  }

  .hero__content {
    max-width: 600px;
  }

  .hero__title {
    max-width: 560px;
    font-size: clamp(54px, 5vw, 64px);
  }

  .hero__description {
    max-width: 520px;
  }

  .hero__trust {
    gap: 16px;
  }

  .hero__trust-item + .hero__trust-item {
    padding-left: 16px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 126vh;
    min-height: 126svh;
    background-position: 42% top;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgb(33 22 18 / 8%) 0%, rgb(43 25 21 / 18%) 25%, rgb(43 25 21 / 60%) 42%, rgb(33 22 18 / 92%) 60%, rgb(33 22 18 / 98%) 82%, var(--color-dark) 100%),
      linear-gradient(90deg, rgb(69 32 24 / 24%) 0%, rgb(69 32 24 / 6%) 100%);
  }

  .hero__container {
    align-items: stretch;
    min-height: inherit;
    padding-block: clamp(192px, 38svh, 384px) max(104px, env(safe-area-inset-bottom));
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero__eyebrow {
    max-width: 330px;
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero__title {
    font-size: clamp(44px, 11.8vw, 54px);
    line-height: 0.98;
  }

  .hero__description {
    max-width: 420px;
    margin-top: 36px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero__action {
    margin-top: 48px;
  }

  .hero__cta {
    width: 100%;
    max-width: 380px;
    min-height: 54px;
  }

  .hero__note {
    margin-top: 24px;
  }

  .hero__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin-top: 48px;
  }

  .hero__trust-item {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    text-align: center;
  }

  .hero__trust-icon {
    width: 36px;
    height: 36px;
  }

  .hero__trust-item + .hero__trust-item {
    padding-left: 0;
    border-left: 0;
  }

}

@media (max-width: 359px) {
  .hero__title {
    font-size: clamp(38px, 12.2vw, 44px);
  }
}

@media (max-width: 767px) and (max-height: 740px) {
  .hero__container {
    padding-block: clamp(156px, 26svh, 192px) max(96px, env(safe-area-inset-bottom));
  }

  .hero__eyebrow {
    margin-bottom: 16px;
  }

  .hero__description {
    margin-top: 32px;
  }

  .hero__action {
    margin-top: 40px;
  }

  .hero__note {
    margin-top: 20px;
  }

  .hero__trust {
    margin-top: 40px;
  }

  .hero__trust-item {
    gap: 6px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta {
    transition: none;
  }
}
