/* Page: home */

/* ---------- hero: full-bleed poster slot (three ad panels) ---------- */
.hero {
  /* --hero-track and --hero-inset keep the copy on the same grid line as every
     section below, while the photo still runs to the edge of the screen */
  --hero-track: min(100vw, 1600px);
  --hero-inset: max(20px, calc((var(--hero-track) - 1180px) / 2 + 20px));
  --hero-gap: clamp(24px, 3.4vw, 52px);
  --hero-pad: clamp(30px, 2.6vw, 46px);
  --hero-top: clamp(20px, 2.2vw, 30px);
  padding-top: var(--hero-top);
  background-color: #fff;
  background-image: linear-gradient(180deg, #e8f1eb 0, #ffffff var(--hero-top));
  background-repeat: no-repeat;
  box-shadow: inset 0 10px 16px -12px rgba(16, 31, 25, 0.26);
  border-bottom: 1px solid var(--line);
}
.hero-track { display: grid; width: 100%; max-width: 1600px; margin: 0 auto; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  align-items: center;
  min-height: 340px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease, visibility 0s linear 520ms;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 520ms ease, transform 520ms ease;
}
/* alternate composition: the photo sits on the left for the middle poster */
.hero-slide--left { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
.hero-slide--left .slide-copy { order: 2; }
.hero-slide--left .slide-media { order: 1; }

.slide-copy { padding: var(--hero-pad) var(--hero-gap) var(--hero-pad) var(--hero-inset); }
.hero-slide--left .slide-copy { padding: var(--hero-pad) var(--hero-inset) var(--hero-pad) var(--hero-gap); }
.slide-title { font-size: clamp(1.65rem, 2.9vw, 2.55rem); line-height: 1.16; letter-spacing: -0.015em; margin: 0 0 16px; max-width: 620px; }
.slide-text { font-size: 1.01rem; color: var(--muted); margin: 0 0 18px; max-width: 520px; }
.slide-stats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.slide-stats li {
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(12, 111, 30, 0.16);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* the photo matches the height of the copy block and runs to the edge of the slot */
.slide-media { position: relative; align-self: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
/* soften the seam between the photo and the copy side */
.slide-media::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 64px;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.hero-slide--left .slide-media::after {
  inset: 0 0 0 auto;
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

/* third poster: photo band with the copy laid over it */
.hero-slide--band { display: flex; align-items: center; background: var(--bg-deep); }
.hero-slide--band .slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scaleX(-1); }
.hero-slide--band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(9, 22, 16, 0.95) 0%, rgba(9, 22, 16, 0.82) 46%, rgba(9, 22, 16, 0.24) 100%);
}
.hero-slide--band .slide-copy { position: relative; z-index: 1; max-width: 880px; }
.hero-slide--band .slide-title { color: #fff; }
.hero-slide--band .slide-text { color: #c6d6ce; }
.hero-slide--band .eyebrow { color: var(--brand); }
.hero-slide--band .slide-stats li { color: #d8f7d4; background: rgba(46, 214, 66, 0.14); border-color: rgba(46, 214, 66, 0.32); }
.hero-slide--band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.hero-slide--band .btn-ghost:hover { border-color: var(--brand); color: #fff; }

/* controls */
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 18px; }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot {
  position: relative;
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
  transition: width var(--t);
}
.hero-dot::after {
  content: "";
  position: absolute;
  inset: 10px 0;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background var(--t);
}
.hero-dot:hover::after { background: var(--brand-dark); }
.hero-dot.is-active { width: 46px; }
.hero-dot.is-active::after { background: var(--brand-deep); }
.hero-dot:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.hero-arrow:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.hero-arrow:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.hero-arrow svg { width: 18px; height: 18px; }

/* ---------- home sections ---------- */
.category-strip { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; }
.category-strip li { margin: 0; }
.category-strip a { display: block; color: var(--ink); text-align: center; }
.category-strip a:hover { text-decoration: none; color: var(--brand-deep); }
.category-strip .strip-thumb { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; aspect-ratio: 1 / 1; transition: border-color var(--t), box-shadow var(--t); }
.category-strip a:hover .strip-thumb { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.category-strip img { width: 100%; height: 100%; object-fit: cover; }
.category-strip .strip-name { display: block; margin-top: 10px; font-size: 0.89rem; font-weight: 600; }
.capability { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.review-band { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; justify-content: space-between; }
.review-band .score { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; }
.review-band .score span { display: block; font-size: 0.82rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.review-band img { max-width: 320px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.contact-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.contact-band .band-list { list-style: none; padding: 0; margin: 0; }
.contact-band .band-list li { margin: 0 0 10px; font-size: 1rem; }
.contact-band .band-list a { color: #fff; }
.contact-band .band-list .k { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa79d; }

@media (max-width: 1024px) {
  .category-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { --hero-pad: 30px; --hero-gap: 26px; }
}
@media (max-width: 860px) {
  .hero { padding-top: 14px; --hero-top: 14px; }
  .hero-track { max-width: none; }
  .hero-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-slide--left .slide-copy, .hero-slide--left .slide-media { order: 0; }
  .slide-copy, .hero-slide--left .slide-copy { padding: 26px 20px 24px; }
  .slide-media { aspect-ratio: 16 / 10; align-self: auto; }
  .slide-media::after { display: none; }
  .hero-slide--band { min-height: 300px; }
  .hero-slide--band .slide-copy { padding: 30px 20px; max-width: none; }
  .hero-slide--band::after { background: linear-gradient(180deg, rgba(9, 22, 16, 0.92) 0%, rgba(9, 22, 16, 0.86) 58%, rgba(9, 22, 16, 0.72) 100%); }
  .contact-band { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .capability { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-band img { max-width: 100%; }
  .slide-title { font-size: 1.5rem; }
  .slide-stats li { font-size: 0.75rem; }
  .hero-arrow { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .hero-dot, .hero-dot::after, .hero-arrow { transition: none; }
}
