/* Scoped Tablet & Mobile Touch-Target Polish (v213)
   Loaded after css/homepage.css on index.html and case-study-*.html
   without modifying locked styles.css or css/homepage.css. */

@media (max-width: 1024px) {
  #nav-toggle,
  body .evg-menu-btn.hp-mobile-pill-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }

  body .hp-header-ctas .hp-btn.hp-nav-cta-primary,
  body .hp-header-ctas .hp-nav-cta-primary {
    min-height: 44px !important;
    border-radius: 999px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  body .hp-hero-btn {
    min-height: 44px !important;
  }

  body.page-case-study .hp-btn-sm,
  body.page-case-study .cs-cta-btn,
  body.page-case-study .cs-back-link {
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
  }
}

body table,
body .cs-kpi-val,
body .hp-metric,
body .hp-stat-val {
  font-variant-numeric: tabular-nums;
}

/* Mobile Sticky Call + Fast Quote Bar (v220) */
.evg-mobile-sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .evg-mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    transform: translateY(115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .evg-mobile-sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.modal-open .evg-mobile-sticky-cta,
  body.drawer-open .evg-mobile-sticky-cta {
    transform: translateY(115%);
    opacity: 0;
    pointer-events: none;
  }

  body.has-mobile-sticky-cta footer {
    padding-bottom: 84px;
  }

  .evg-mcta-call,
  .evg-mcta-quote {
    min-height: 48px;
    border-radius: 999px;
    font-family: 'Outfit', 'Source Sans 3', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0 12px;
    white-space: nowrap;
  }

  .evg-mcta-call {
    background: #FFFFFF;
    color: #0F172A;
    border: 1.5px solid #0F172A;
  }

  .evg-mcta-quote {
    background: #006837;
    color: #FFFFFF;
    border: 1.5px solid #006837;
  }
}

@media (min-width: 768px) {
  .evg-mobile-sticky-cta {
    display: none !important;
  }
}

/* Interactive 20-Second Service & Turnaround Finder (v220) */
.evg-finder-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.evg-finder-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

@media (max-width: 900px) {
  .evg-finder-layout {
    grid-template-columns: 1fr;
  }
}

.evg-finder-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.evg-finder-group-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 8px;
}

.evg-finder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evg-finder-chip {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.evg-finder-chip:hover {
  border-color: #006837;
  color: #006837;
}

.evg-finder-chip.is-active {
  background: #006837;
  border-color: #006837;
  color: #FFFFFF;
}

.evg-finder-result {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #006837;
  border-radius: 14px;
  padding: 20px 22px;
}

.evg-finder-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.evg-finder-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #E6F4EC;
  color: #006837;
}

.evg-finder-tat {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
}

.evg-finder-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #0F172A;
  line-height: 1.3;
}

.evg-finder-summary {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.evg-finder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.evg-finder-actions .btn,
.evg-finder-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
