/* ==========================================================================
   Vend with Style - Page-Specific Layouts & Interactive Widgets
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.hero-stats-row {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-mockup-card {
  background: linear-gradient(145deg, rgba(27, 37, 59, 0.8) 0%, rgba(11, 15, 23, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(16, 185, 129, 0.2);
  position: relative;
}

.machine-glow-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(16, 185, 129, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Interactive Matchmaker / Revenue Calculator
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--bg-surface-1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.12);
  margin-top: 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.calc-options-group {
  margin-bottom: 1.75rem;
}

.calc-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.pills-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-option {
  padding: 0.65rem 1.1rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-option:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
}

.pill-option.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.calc-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-slider {
  width: 100%;
  accent-color: var(--color-primary);
  height: 6px;
  background: var(--bg-surface-2);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.calc-result-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.result-amount {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.1;
  margin: 0.5rem 0;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.result-recommendation {
  background: rgba(11, 15, 23, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-size: 0.88rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--color-accent);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Product Catalog & Category Filtering
   -------------------------------------------------------------------------- */
.catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.catalog-tab {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.catalog-tab:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
}

.catalog-tab.active {
  background: var(--color-primary);
  color: #0b0f17;
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.product-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.product-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.15);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1.25rem;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--bg-surface-2);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Machine Hardware Specs Grid
   -------------------------------------------------------------------------- */
.machine-spec-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.specs-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.specs-table td:first-child {
  color: var(--text-dim);
  font-weight: 600;
  width: 38%;
}

.specs-table td:last-child {
  color: var(--text-main);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Service Area Region Accordions & Cards
   -------------------------------------------------------------------------- */
.region-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.region-city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.city-badge {
  background: var(--bg-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   QR Service Scan Portal
   -------------------------------------------------------------------------- */
.qr-service-container {
  max-width: 580px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}

.qr-header-banner {
  text-align: center;
  margin-bottom: 2rem;
}

.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--color-accent);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .hero-content, .calc-grid, .machine-spec-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
