/* =========================================================
   AIO VEND — STATES 6.0
   Nationwide Smart Vending Expansion Module
========================================================= */

.vending-states-pro {
  padding: clamp(6rem, 8vw, 9rem) 1.5rem;
  position: relative;
  background:
    linear-gradient(
      180deg,
      var(--body-bg-color) 0%,
      rgba(16,185,129,0.05) 40%,
      rgba(37,99,235,0.05) 70%,
      var(--body-bg-color) 100%
    );
    margin-top: -4rem;
    margin-bottom: -8rem;
}


/* Header */

.states-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem auto;
}

.states-header h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.states-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* Grid */

.states-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */

.state-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 2rem;
  border: 1px solid var(--clr-border);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .state-card {
  background: rgba(15,23,42,0.7);
}

.state-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(37,99,235,0.2);
}

/* Gradient Accent Border */

.state-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(37,99,235,0.4),
    rgba(16,185,129,0.3),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

/* Typography */

.state-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.state-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.state-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.state-card li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

/* CTA */

.states-cta {
  margin-top: 4rem;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.states-cta p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

/* Animation */

.state-card {
  opacity: 0;
  transform: translateY(30px);
}

.state-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}
