/* Software-first BenTec homepage. All rules are scoped to the custom template. */
.bentec-home {
  --bentec-home-red: var(--bentec-red);
  --bentec-home-red-dark: var(--bentec-red-hover);
  --bentec-home-black: var(--bentec-black);
  --bentec-home-surface: rgba(10, 10, 10, 0.94);
  --bentec-home-surface-raised: rgba(19, 19, 19, 0.96);
  --bentec-home-text: var(--bentec-text);
  --bentec-home-muted: var(--bentec-muted);
  --bentec-home-border: rgba(255, 0, 0, 0.7);
  --bentec-home-radius: 1rem;

  box-sizing: border-box;
  width: 100%;
  max-width: var(--bentec-shell-max, 1680px);
  margin: 0 auto;
  padding-right: var(--bentec-shell-gutter, clamp(1rem, 2.25vw, 2.25rem));
  padding-left: var(--bentec-shell-gutter, clamp(1rem, 2.25vw, 2.25rem));
  color: var(--bentec-home-text);
  overflow: visible;
}

.bentec-home,
.bentec-home * {
  box-sizing: border-box;
}

.bentec-home :where(h1, h2, h3, p, ul) {
  margin-top: 0;
}

.bentec-home :where(h1, h2, h3) {
  color: var(--bentec-home-text);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.bentec-home h1 {
  width: 100%;
  max-width: none;
  margin-bottom: 1.25rem;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  text-wrap: pretty;
}

.bentec-home h2 {
  width: 100%;
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  text-wrap: pretty;
}

.bentec-home h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.bentec-section-heading h2,
.bentec-card h3,
.bentec-section-cta h3,
.bentec-closing h2 {
  color: var(--bentec-home-red);
}

.bentec-hero h1 {
  color: var(--bentec-home-red);
}

.bentec-home p {
  color: var(--bentec-home-muted);
  line-height: 1.7;
}

.bentec-home :where(section[id]) {
  scroll-margin-top: 2rem;
}

.bentec-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: min(76vh, 780px);
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  animation: bentec-reveal 0.55s ease-out both;
}

.bentec-hero::before {
  display: none;
}

.bentec-eyebrow {
  margin-bottom: 0.9rem;
  color: var(--bentec-home-red) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.bentec-hero-copy {
  width: 100%;
  max-width: none;
  margin-bottom: 1.75rem;
  color: var(--bentec-home-text) !important;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.bentec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.bentec-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 2px solid var(--bentec-home-red);
  border-radius: 0.5rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.bentec-button-primary {
  color: var(--bentec-home-black) !important;
  background: var(--bentec-home-red);
}

.bentec-button-secondary {
  color: var(--bentec-home-red) !important;
  background: var(--bentec-home-black);
}

.bentec-button:hover,
.bentec-button:focus-visible {
  color: var(--bentec-home-text) !important;
  background: var(--bentec-home-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.22);
}

.bentec-button:focus-visible,
.bentec-text-link:focus-visible {
  outline: 2px solid var(--bentec-home-text);
  outline-offset: 3px;
}

.bentec-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: 0;
  color: var(--bentec-home-muted);
  list-style: none;
}

.bentec-proof li::before {
  margin-right: 0.5rem;
  color: var(--bentec-home-red);
  content: "■";
}

.bentec-section {
  margin-top: clamp(4rem, 9vw, 8rem);
}

.bentec-section-heading {
  display: grid;
  width: 100%;
  max-width: none;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.bentec-section-heading > p:last-child {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.bentec-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.bentec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  background: transparent;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: none;
  overflow: hidden;
}

.bentec-card::before {
  position: absolute;
  top: 0.8rem;
  left: 0;
  width: min(42%, 11rem);
  height: 4px;
  background: linear-gradient(90deg, var(--bentec-home-red), rgba(255, 0, 0, 0.12));
  border-radius: 999px;
  content: "";
}

.bentec-card-number {
  align-self: flex-end;
  margin-bottom: 1.4rem;
  color: rgba(255, 0, 0, 0.58);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.bentec-card > h3,
.bentec-card > p {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-align: left;
}

.bentec-card > p {
  margin-bottom: 1.2rem;
}

.bentec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.bentec-tags li {
  padding: 0;
  color: #ff6262;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.3;
}

.bentec-section-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bentec-section-cta :where(h3, p) {
  margin-bottom: 0.35rem;
}

.bentec-onsite {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bentec-card-link .bentec-text-link,
.bentec-card-compact .bentec-text-link {
  margin-top: auto;
}

.bentec-text-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  width: fit-content;
  color: var(--bentec-home-red) !important;
  font-weight: 800;
  line-height: 1.4;
  text-underline-offset: 0.25em;
}

.bentec-text-link:hover,
.bentec-text-link:focus-visible {
  color: var(--bentec-home-text) !important;
}

.bentec-card-compact {
  min-height: 230px;
}

.bentec-closing {
  margin-top: clamp(4rem, 9vw, 8rem);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bentec-closing :where(h2, p) {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.bentec-closing .bentec-actions {
  justify-content: flex-start !important;
  width: 100%;
  margin-top: 1.5rem;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

@keyframes bentec-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1100px) {
  .bentec-card-grid-software {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bentec-card-grid-secondary,
  .bentec-card-grid-store {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bentec-home {
    padding-right: var(--bentec-shell-gutter, 0.75rem);
    padding-left: var(--bentec-shell-gutter, 0.75rem);
  }

  .bentec-hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .bentec-actions,
  .bentec-button {
    width: 100%;
  }

  .bentec-proof {
    display: grid;
  }

  .bentec-section-cta {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .bentec-home *,
  .bentec-home *::before,
  .bentec-home *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* One-time, viewport-triggered reveals; content remains static without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .bentec-home.bentec-motion-ready .bentec-scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 520ms ease-out var(--bentec-reveal-delay, 0ms),
      transform 520ms ease-out var(--bentec-reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .bentec-home.bentec-motion-ready .bentec-scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pinned local Lucide icons: consistent line work with a restrained red glow. */
.bentec-card-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  min-height: 2.6rem;
  margin-bottom: 1.1rem;
}

.bentec-card-title-row h3 {
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  text-align: left;
}

.bentec-card-title-row .bentec-card-number {
  align-self: center;
  justify-self: end;
  margin-bottom: 0;
}

.bentec-card-icon {
  display: block;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  background-color: var(--bentec-home-red);
  filter: none;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform 180ms ease, filter 180ms ease;
}

.bentec-card-link:hover .bentec-card-icon,
.bentec-card-link:focus-within .bentec-card-icon,
.bentec-card-compact:hover .bentec-card-icon,
.bentec-card-compact:focus-within .bentec-card-icon {
  filter: drop-shadow(0 0 0.4rem rgba(255, 0, 0, 0.58));
  transform: translateY(-1px) scale(1.04);
}

.bentec-icon-blocks { -webkit-mask-image: url("vendor/lucide/icons/blocks.svg"); mask-image: url("vendor/lucide/icons/blocks.svg"); }
.bentec-icon-monitor { -webkit-mask-image: url("vendor/lucide/icons/monitor.svg"); mask-image: url("vendor/lucide/icons/monitor.svg"); }
.bentec-icon-panels-top-left { -webkit-mask-image: url("vendor/lucide/icons/panels-top-left.svg"); mask-image: url("vendor/lucide/icons/panels-top-left.svg"); }
.bentec-icon-workflow { -webkit-mask-image: url("vendor/lucide/icons/workflow.svg"); mask-image: url("vendor/lucide/icons/workflow.svg"); }
.bentec-icon-database { -webkit-mask-image: url("vendor/lucide/icons/database.svg"); mask-image: url("vendor/lucide/icons/database.svg"); }
.bentec-icon-wrench { -webkit-mask-image: url("vendor/lucide/icons/wrench.svg"); mask-image: url("vendor/lucide/icons/wrench.svg"); }
.bentec-icon-cctv { -webkit-mask-image: url("vendor/lucide/icons/cctv.svg"); mask-image: url("vendor/lucide/icons/cctv.svg"); }
.bentec-icon-router { -webkit-mask-image: url("vendor/lucide/icons/router.svg"); mask-image: url("vendor/lucide/icons/router.svg"); }
.bentec-icon-shield-check { -webkit-mask-image: url("vendor/lucide/icons/shield-check.svg"); mask-image: url("vendor/lucide/icons/shield-check.svg"); }
.bentec-icon-binoculars { -webkit-mask-image: url("vendor/lucide/icons/binoculars.svg"); mask-image: url("vendor/lucide/icons/binoculars.svg"); }
.bentec-icon-shield { -webkit-mask-image: url("vendor/lucide/icons/shield.svg"); mask-image: url("vendor/lucide/icons/shield.svg"); }
.bentec-icon-crosshair { -webkit-mask-image: url("vendor/lucide/icons/crosshair.svg"); mask-image: url("vendor/lucide/icons/crosshair.svg"); }
