/* ========================================
   ASSET+ FLEET SOLUTIONS — Components
======================================== */

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 2.2rem;
  border: 2px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

/* Arrow icon in buttons — slides right on hover */
.btn .btn-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  font-size: 1em;
  line-height: 1;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Fill-from-bottom animation — all buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--text-primary);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--text-light); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }

/* Primary — red fill, dark sweep */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

.btn-primary::before { background: var(--text-primary); }
.btn-primary:hover { color: var(--text-light); border-color: var(--text-primary); box-shadow: 0 4px 20px var(--accent-20); }

/* Outline — muted border, dark sweep */
.btn-outline {
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-light);
}

/* Dark section buttons — white sweep */
.dark-section .btn {
  border-color: var(--text-light);
  color: var(--text-light);
}

.dark-section .btn::before {
  background: var(--text-light);
}

.dark-section .btn:hover {
  background: transparent;
  color: var(--bg-dark);
}

/* ========== DATA MODULES ========== */
.data-module {
  border: 1px solid var(--grid-line);
  padding: var(--space-lg);
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.data-module:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.data-module::before {
  content: attr(data-index);
  position: absolute;
  top: 0; left: 0;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-tech);
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
}

.data-subtitle {
  font-family: var(--font-tech);
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

/* ========== SPEC TABLES ========== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-tech);
  font-size: 0.95rem;
}

.spec-table th, .spec-table td {
  padding: 1.2rem 0.5rem;
  border-bottom: 1px solid var(--grid-line);
  text-align: left;
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.spec-table td { color: var(--text-primary); }
.spec-table td.highlight { color: var(--accent); font-weight: 700; }

/* Dark section tables */
.dark-section .spec-table th { color: rgba(255,255,255,0.6); }
.dark-section .spec-table td { color: var(--text-light); }
.dark-section .spec-table td.highlight { color: var(--accent); }
.dark-section .spec-table th,
.dark-section .spec-table td { border-bottom-color: var(--grid-line-light); }

/* ========== FORMS ========== */
.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--grid-line);
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-reading);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-color);
  box-shadow: 0 0 0 3px var(--accent-08);
}

textarea.form-control { min-height: 150px; resize: vertical; }

/* ========== FEATURE LISTS ========== */
.feature-list { list-style: none; }

.feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--grid-line);
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '+';
  position: absolute;
  left: 0; top: 1rem;
  color: var(--accent);
  font-family: var(--font-tech);
  font-weight: 700;
}

/* Dark section feature lists */
.dark-section .feature-list li { border-bottom-color: var(--grid-line-light); color: rgba(255,255,255,0.88); }

/* ========== CUTAWAY SECTION ========== */
.cutaway-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  border-radius: 4px;
  padding: var(--space-lg);
}

.cutaway-section img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

/* ========== STATS GRID ========== */
.stat-item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.stat-item .tech-number {
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  position: relative;
}

/* Accent underline under stat numbers */
.stat-item .tech-number::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
}

/* ========== FAQ ACCORDION ========== */
.faq-section {
  padding: 8vw 0;
  border-bottom: 1px solid var(--grid-line);
}

.faq-item {
  border-bottom: 1px solid var(--grid-line);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  margin: 0 -1rem;
  font-family: var(--font-heavy);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
  background: none;
  border: none;
  width: calc(100% + 2rem);
  text-align: left;
  line-height: 1.3;
}

.faq-question:hover {
  color: var(--accent);
  background: var(--accent-03);
}

.faq-item.open .faq-question {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-family: var(--font-tech);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.4s var(--ease-snap);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s ease;
  padding: 0 0 0 0;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 70ch;
}

/* Dark section FAQ */
.dark-section .faq-question { color: var(--text-light); }
.dark-section .faq-item { border-bottom-color: var(--grid-line-light); }
.dark-section .faq-answer p { color: rgba(255,255,255,0.75); }

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-tech);
  font-size: 0.95rem;
}

.comparison-table th {
  padding: 1.2rem 1rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--grid-line);
}

.comparison-table th:first-child {
  color: var(--text-muted);
  font-weight: 400;
}

.comparison-table th.standard { color: var(--text-muted); }
.comparison-table th.double-deck { color: var(--accent); }

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--grid-line);
  font-size: 0.9rem;
}

.comparison-table td:first-child {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.comparison-table td.standard-val { color: var(--text-primary); }
.comparison-table td.dd-val { color: var(--accent); font-weight: 700; }

/* Dark section comparison table */
.dark-section .comparison-table th { border-bottom-color: var(--grid-line-light); }
.dark-section .comparison-table td { border-bottom-color: var(--grid-line-light); }
.dark-section .comparison-table th:first-child,
.dark-section .comparison-table td:first-child { color: rgba(255,255,255,0.6); }
.dark-section .comparison-table td.standard-val { color: rgba(255,255,255,0.8); }
.dark-section .comparison-table td.dd-val { color: var(--accent); }

/* ========== TRUST BADGES ========== */
.trust-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border: 1px solid var(--grid-line);
  background: var(--bg-light);
}

.trust-badge .trust-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ========== FORM SELECT (styled dropdown) ========== */
.form-select {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--grid-line);
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-reading);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-color);
  box-shadow: 0 0 0 3px var(--accent-08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23CC0000' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}

/* ========== FORM ROW 2-COL ========== */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ========== ROI GRID ========== */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--grid-line);
}

.roi-item {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-right: 1px solid var(--grid-line);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.roi-item:last-child { border-right: none; }

/* Index badge — upgraded with wider tag look */
.roi-item::before {
  content: attr(data-index);
  position: absolute;
  top: 0; left: 0;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  z-index: 2;
}

/* Corner crosshair — bottom-right industrial accent */
.roi-item::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--accent-20);
  border-bottom: 1px solid var(--accent-20);
  transition: border-color 0.3s ease;
  pointer-events: none;
}

/* Hover — subtle background shift + accent corners */
.roi-item:hover {
  background: radial-gradient(circle at 50% 50%, var(--accent-04), transparent 12rem);
}

.roi-item:hover::after {
  border-color: var(--accent);
}

.roi-value {
  font-family: var(--font-heavy);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  position: relative;
}

/* Accent underline — animates in from left */
.roi-value::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent);
  transition: width 0.6s var(--ease-snap);
}

.roi-item:hover .roi-value::after {
  width: 80px;
}

.roi-label {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: block;
  line-height: 1.6;
}

/* Dark section ROI */
.dark-section .roi-grid { border-color: var(--grid-line-light); }
.dark-section .roi-item { border-right-color: var(--grid-line-light); }
.dark-section .roi-label { color: rgba(255,255,255,0.5); }
.dark-section .roi-item::after {
  border-color: var(--accent-15);
}
.dark-section .roi-item:hover {
  background: radial-gradient(circle at 50% 50%, var(--accent-08), transparent 12rem);
}
.dark-section .roi-item:hover::after {
  border-color: var(--accent);
}

/* ========== ELC PROCESS STEPS ========== */
.boxed-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--grid-line-light);
}

.elc-step {
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--grid-line-light);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.elc-step:last-child { border-right: none; }

.elc-step::before {
  content: attr(data-index);
  position: absolute;
  top: 0; left: 0;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  z-index: 2;
}

/* Corner crosshair — bottom-right */
.elc-step::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--accent-15);
  border-bottom: 1px solid var(--accent-15);
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.elc-step:hover {
  background: radial-gradient(circle at 50% 50%, var(--accent-04), transparent 12rem);
}

.elc-step:hover::after {
  border-color: var(--accent);
}

/* Red accent line on top of title */
.elc-step-title {
  font-family: var(--font-heavy);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 2px solid var(--accent);
}

.elc-step-desc {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
  .boxed-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .elc-step:nth-child(2) { border-right: none; }
  .elc-step:nth-child(1),
  .elc-step:nth-child(2) { border-bottom: 1px solid var(--grid-line-light); }
}

@media (max-width: 768px) {
  .boxed-grid-4 { grid-template-columns: 1fr; }
  .elc-step { border-right: none; border-bottom: 1px solid var(--grid-line-light); }
  .elc-step:last-child { border-bottom: none; }
}

/* Responsive: ROI + comparison + FAQ */
@media (max-width: 768px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-item { border-right: none; border-bottom: 1px solid var(--grid-line); }
  .roi-item:last-child { border-bottom: none; }
  .dark-section .roi-item { border-bottom-color: var(--grid-line-light); }

  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table th, .comparison-table td {
    padding: 0.8rem 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .faq-question { font-size: 0.95rem; padding: 1.2rem 0; }
}

/* ========== HERO TRUST STRIP ========== */
.hero-trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.hero-trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-trust-strip .trust-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Dark section trust strip */
.dark-section .hero-trust-strip .trust-item {
  color: rgba(255,255,255,0.6);
}

/* ========== BURGERS PARTNER BADGE ========== */
.partner-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: var(--space-sm);
}

.partner-lockup img {
  height: 28px;
  opacity: 0.7;
  filter: grayscale(100%);
}

.partner-lockup .partner-label {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: 1px solid var(--grid-line);
  padding-left: 0.8rem;
}

/* ========== MID-PAGE CTA LINK ========== */
.section-cta-link {
  text-align: center;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--grid-line);
}

.section-cta-link a {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: opacity 0.3s ease;
}

.section-cta-link a:hover {
  opacity: 0.7;
}

.dark-section .section-cta-link {
  border-top-color: var(--grid-line-light);
}

/* ========== 2-STEP FORM ========== */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: formStepIn 0.4s var(--ease-snap);
}

@keyframes formStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.form-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--grid-line);
  background: transparent;
  transition: all 0.3s ease;
}

.form-progress-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.form-progress-line {
  width: 30px;
  height: 2px;
  background: var(--grid-line);
}

/* ========== ELC VS NEW COMPARISON CARD ========== */
.elc-comparison-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--grid-line-light);
  overflow: hidden;
}

.elc-comparison-card .compare-col {
  padding: var(--space-lg) var(--space-md);
}

.elc-comparison-card .compare-col:first-child {
  border-right: 1px solid var(--grid-line-light);
}

.elc-comparison-card .compare-col.elc-highlight {
  border-left: 3px solid var(--accent);
}

.elc-comparison-card .compare-heading {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  display: block;
}

.elc-comparison-card .compare-heading.muted { color: rgba(255,255,255,0.4); }
.elc-comparison-card .compare-heading.accent { color: var(--accent); }

.elc-comparison-card .compare-row {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--grid-line-light);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.elc-comparison-card .compare-row:last-child { border-bottom: none; }

.elc-comparison-card .compare-check {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 480px) {
  .elc-comparison-card {
    grid-template-columns: 1fr;
  }
  .elc-comparison-card .compare-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--grid-line-light);
  }
}

/* ========== REFERENCE LOGO GRID ========== */
.reference-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--grid-line-light);
}

.reference-logo-item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--grid-line-light);
}

.reference-logo-item:last-child { border-right: none; }

.reference-logo-item img {
  display: block;
  margin: 0 auto 1.25rem;
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.reference-logo-item:hover img {
  filter: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .reference-logo-grid { grid-template-columns: 1fr; }
  .reference-logo-item { border-right: none; border-bottom: 1px solid var(--grid-line-light); }
  .reference-logo-item:last-child { border-bottom: none; }
}

/* ========== WHY-US GRID ========== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--grid-line);
}

.why-us-item {
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--grid-line);
  position: relative;
}

.why-us-item:last-child { border-right: none; }

.why-us-item {
  transition: background 0.4s ease;
}

.why-us-item:hover {
  background: radial-gradient(circle at 50% 50%, var(--accent-03), transparent 12rem);
}

.why-us-item .why-label {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.why-us-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-us-item p {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: none;
  margin: 0;
}

@media (max-width: 1024px) {
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-item:nth-child(2) { border-right: none; }
  .why-us-item:nth-child(1),
  .why-us-item:nth-child(2) { border-bottom: 1px solid var(--grid-line); }
}

@media (max-width: 768px) {
  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-item { border-right: none; border-bottom: 1px solid var(--grid-line); }
  .why-us-item:last-child { border-bottom: none; }
}
