/* Homepage hero slider (Admin > Homepage slider) + material sample board section */

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--lime); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__track { display: grid; }
.hero__slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility 0s .6s; }
.hero__slide.is-active { visibility: visible; opacity: 1; transition: opacity .6s ease; z-index: 1; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px) 28px; }
.hero__kicker { font-weight: 600; color: var(--oak-deep); margin-bottom: 18px; }
.hero__title {
  font-size: clamp(38px, 5vw, 66px); line-height: 1.03; letter-spacing: -.025em;
  font-variation-settings: "wdth" 116; font-weight: 720; max-width: 14ch;
}
.hero__lead { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--ink-soft); max-width: 46ch; margin: 22px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; margin: 0; aspect-ratio: 4 / 3.1; border-radius: var(--r-lg); overflow: hidden; background: var(--line); box-shadow: 0 40px 60px -40px rgba(24, 48, 45, .7), 0 0 0 1px rgba(24, 48, 45, .08); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__media img { animation: hero-zoom 7s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
.hero__media figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94); padding: 7px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }

.hero__bar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.hero__promises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero__promises li { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 16px; }
.hero__promises li::before { content: ""; width: 18px; height: 6px; background: var(--oak); border-radius: 1px; flex-shrink: 0; }
.hero__controls { display: flex; align-items: center; gap: 14px; }
.hero__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.hero__arrow:hover { background: var(--ink); color: #fff; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 28px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: rgba(24, 48, 45, .2); cursor: pointer; transition: background-color .2s, width .2s; }
.hero__dot.is-active { background: var(--oak); width: 44px; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .hero__title { max-width: 18ch; }
}
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__promises { display: none; }
  .hero__bar { justify-content: center; }
}

/* ---------- Material sample board section ---------- */
.material { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.material__copy p { color: var(--ink-soft); margin: 16px 0 26px; max-width: 40ch; }
@media (max-width: 900px) { .material { grid-template-columns: 1fr; } }
.board { position: relative; }
.board__stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: #ddd; box-shadow: 0 0 0 1px rgba(24, 48, 45, .08); }
.board__slide { position: absolute; inset: 0; margin: 0; }
.board__slide[hidden] { display: none; }
.board__slide img { width: 100%; height: 100%; object-fit: cover; }
.board__slide.is-active img { animation: board-in .45s ease both; }
@keyframes board-in { from { opacity: .2; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.board__caption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: rgba(255, 255, 255, .95); border-radius: var(--r); padding: 12px 16px; font-size: 15px; color: var(--concrete); }
.board__caption b { display: block; color: var(--ink); font-size: 17px; }
.board__caption a { font-weight: 650; color: var(--ink); white-space: nowrap; text-decoration: none; border-bottom: 1.5px solid var(--oak); }
.board__chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.board__chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; background: transparent; border: 1.5px solid transparent; border-radius: var(--r); cursor: pointer; font-size: 13.5px; font-weight: 550; color: var(--ink-soft); }
.board__chip img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.board__chip:hover { background: #fff; }
.board__chip.is-active { border-color: var(--ink); background: #fff; color: var(--ink); }
@media (max-width: 520px) {
  .board__chip span { font-size: 11.5px; }
  .board__chip img { width: 36px; height: 36px; }
  .board__caption { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide.is-active { transition: none; }
  .hero__slide.is-active .hero__media img { animation: none; }
}
