/* ============================================================
   customer.css — ScanIt Customer Website
   Font: Sora (headings) + Inter (body)
============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --accent:       #f59e0b;
  --text:         #111827;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --bg:           #f9fafb;
  --white:        #ffffff;
  --radius:       14px;
  --radius-sm:    8px;
  --wa-green:     #25d366;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 800;
}

.btn-request-nav {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-request-nav:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #fefce8 100%);
  padding: 4rem 0 3.5rem;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1rem;
}

.hero-highlight {
  color: var(--primary);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Search */
.hero-search { margin-bottom: 1.5rem; }

.search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 480px;
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.search-input::placeholder { color: #9ca3af; }

.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-dark); }

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}
.hero-blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  top: -100px; right: -80px;
}
.hero-blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  bottom: -60px; right: 200px;
}

/* ---- SERVICES SECTION ---- */
.services-section {
  padding: 3rem 0 4rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.clear-search {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}
.clear-search:hover { text-decoration: underline; }

/* Services grid: 4 col desktop, 2 col mobile */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* Service Tile */
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1rem;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  text-align: left;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.service-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tile-color);
  opacity: 0;
  transition: opacity 0.18s;
}

.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--tile-color, var(--primary));
}

.service-tile:hover::before { opacity: 1; }

.tile-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--tile-bg, #f3f4f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tile-body { flex: 1; min-width: 0; }

.tile-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-arrow {
  color: var(--text-muted);
  margin-top: auto;
  transition: color 0.15s, transform 0.15s;
}
.service-tile:hover .tile-arrow {
  color: var(--tile-color, var(--primary));
  transform: translateX(3px);
}

/* No results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.no-results-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* ---- HOW IT WORKS ---- */
.how-section {
  background: #fff;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2rem;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 200px;
  flex: 1 1 160px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.35rem;
}

.step-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.step-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.how-divider {
  flex: 0 0 30px;
  height: 1px;
  background: var(--border);
  margin-top: 1.1rem;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .how-steps { flex-direction: column; align-items: flex-start; padding: 0 1rem; }
  .how-divider { width: 1px; height: 20px; flex: 0 0 20px; margin: 0 0 0 17px; }
}

/* ---- REQUEST MODAL ---- */
.request-modal {
  border-radius: 18px;
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.btn-request {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn-request:hover { background: var(--primary-dark); color: #fff; }
.btn-request:disabled { opacity: 0.7; }

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-whatsapp:hover { background: #1da851; color: #fff; }

.success-icon { font-size: 2.5rem; }

/* ---- FOOTER ---- */
.site-footer {
  padding: 2rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
