/*
 * TrickrGo customer website system
 * Shared tokens and interaction patterns for the server-rendered pages.
 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-ink: #1e3a8a;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --border: #dbe5f4;
  --bg: #f8fafc;
  --card: #ffffff;
  --trust: #0f766e;
  --accent: #f59e0b;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(30, 64, 175, 0.1);
  --content-width: 1120px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background: var(--bg);
  color: var(--text);
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.site-nav {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: rgba(219, 229, 244, 0.9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.nav-wrap {
  max-width: var(--content-width);
  height: 68px;
  padding-inline: 20px;
}

.brand-name {
  color: var(--primary-ink);
  font-size: 19px;
  letter-spacing: -0.6px;
}

.nav-right {
  gap: 4px;
}

.nav-link {
  color: var(--text-2);
  border-radius: 10px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  background: #eaf2ff;
  color: var(--primary-ink);
}

.nav-btn,
.search-btn,
.svc-browse-btn,
.btn-profile {
  background: var(--primary);
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
}

.nav-btn:hover,
.search-btn:hover,
.svc-browse-btn:hover,
.btn-profile:hover {
  background: var(--primary-dark);
  box-shadow: 0 7px 18px rgba(29, 78, 216, 0.22);
}

.store-btn,
.store-btn-light {
  min-height: 58px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  transition: opacity 0.15s, transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.store-btn:hover,
.store-btn-light:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
}

.cta-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: -1;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--primary-ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 21px;
  height: 21px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-footer {
  background: #0b1730;
}

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.13), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(14, 116, 144, 0.08), transparent 26%),
    var(--bg);
  padding-top: 84px;
}

.hero h1 {
  max-width: 740px;
  margin-inline: auto;
  color: var(--text);
}

.hero-accent {
  color: var(--primary);
}

.hero-sub {
  color: var(--text-2);
  max-width: 570px;
}

.hero-eyebrow {
  background: #eaf2ff;
  border-color: #c7d9fb;
  color: var(--primary-ink);
}

.hero-dot {
  background: var(--primary);
}

.search-row {
  border-color: #b9ccef;
  box-shadow: var(--shadow-md);
  min-height: 58px;
}

.search-input {
  font-size: 15px;
}

.section,
.svc-section {
  max-width: var(--content-width);
}

.section-eyebrow {
  color: var(--primary);
}

.section-title,
.svc-cat-title {
  color: var(--text);
}

.section-sub,
.svc-cat-desc,
.val-body,
.step-body {
  color: var(--text-2);
}

.val-card,
.partner-card {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.val-card:hover,
.partner-card:hover {
  box-shadow: var(--shadow-md);
}

.val-icon,
.card-logo {
  background: #eaf2ff;
}

.cta-section {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.page-header {
  background:
    radial-gradient(circle at 85% 0%, rgba(96, 165, 250, 0.3), transparent 30%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.filters-bar {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.type-tab {
  min-height: 42px;
}

.verified-chip,
.verified-badge {
  color: var(--trust);
}

/* Verification is used for data filtering, not as a public listing-card badge. */
.partner-card .card-info > div > span:not(.card-type),
.partner-card .card-info > div > svg,
.partner-card .card-info > .verified-chip {
  display: none !important;
}

.empty-state,
.loading-state {
  border-radius: var(--radius-lg);
}

.motion-wheel {
  width: 62px;
  height: 62px;
  margin: 4px auto 24px;
  border: 5px solid rgba(37, 99, 235, 0.16);
  border-top-color: var(--primary);
  border-right-color: #60a5fa;
  border-radius: 50%;
  animation: trickrgo-wheel-spin 8s linear infinite;
  position: relative;
}

.motion-wheel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(30, 58, 138, 0.35);
  border-radius: 50%;
}

@keyframes trickrgo-wheel-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-wrap {
    position: relative;
    padding-inline: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .nav-right {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

  .nav-right.is-open {
    display: flex;
  }

  .nav-link,
  .nav-btn {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .nav-btn {
    justify-content: center;
    margin-top: 4px;
  }

  .store-btn,
  .store-btn-light {
    min-height: 54px;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .search-row {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 8px 10px;
  }

  .search-input {
    min-width: calc(100% - 34px);
  }

  .search-btn {
    width: 100%;
    min-height: 44px;
  }

  .section,
  .svc-section {
    padding-inline: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}