/* ==========================================================================
   ShopGridd — Design System
   Blue / White / Charcoal, subtle automotive accent. Clean, honest, fast.
   ========================================================================== */

:root {
  /* Color */
  --color-primary: #1b4f8c;
  --color-primary-dark: #123a68;
  --color-primary-light: #2e7cd6;
  --color-charcoal: #20242b;
  --color-charcoal-soft: #3a4048;
  --color-white: #ffffff;
  --color-offwhite: #f5f7fa;
  --color-surface: #ffffff;
  --color-border: #e2e6eb;
  --color-text: #20242b;
  --color-text-muted: #5c6570;
  --color-text-on-dark: #f5f7fa;
  --color-text-on-dark-muted: #a9b2bd;
  --color-accent: #d9682f;
  --color-accent-dark: #b4531f;
  --color-success: #1f8a4c;
  --color-success-bg: #eaf7ef;
  --color-danger: #c0392b;
  --color-danger-bg: #fdecea;
  --color-star: #e8a33d;

  /* Typography */
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.375rem;
  --fs-4xl: 3rem;

  /* Spacing (8pt scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(32, 36, 43, 0.06), 0 1px 3px rgba(32, 36, 43, 0.08);
  --shadow-md: 0 4px 12px rgba(32, 36, 43, 0.10), 0 2px 4px rgba(32, 36, 43, 0.06);
  --shadow-lg: 0 12px 32px rgba(32, 36, 43, 0.16);

  --duration-fast: 150ms;
  --duration-base: 220ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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; }
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--space-4); color: var(--color-text-muted); }
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-5); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #fff;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md); border: 2px solid transparent;
  font-weight: 600; font-size: var(--fs-md);
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
  touch-action: manipulation;
  white-space: normal;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; border-color: var(--color-charcoal); color: var(--color-charcoal); }
.btn-secondary:hover { background: var(--color-charcoal); color: #fff; }
.btn-on-dark { background: #fff; color: var(--color-primary-dark); }
.btn-on-dark:hover { background: var(--color-offwhite); }
.btn-outline-on-dark { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--fs-lg); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--color-accent); display: inline-block; }

.section { padding-block: var(--space-9); }
.section-alt { background: var(--color-offwhite); }
.section-dark { background: var(--color-charcoal); color: var(--color-text-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--color-text-on-dark-muted); }
.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-3); gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg); color: var(--color-charcoal); }
/* images/logo-mark.png is a pre-cropped, pre-downsampled copy of the full
   logo (wordmark only, tagline + icon strip dropped) made by shrinking the
   source in several small steps instead of one steep jump — a lot cleaner
   at this size than asking the browser to squash the full-size photo/render
   straight down to header height. Height is fixed, width left auto since
   the file's own aspect ratio is already correct. */
.brand-logo { height: 52px; width: auto; display: block; border-radius: 6px; }
/* The logo's dark background is baked into the image itself, so on dark
   surfaces (footer, staff topbar) it needs no white card behind it anymore
   — just a rounded clip to match the mark's own corners. */
.brand-logo-card { display: inline-flex; border-radius: var(--radius-sm); overflow: hidden; }
.brand-logo-card .brand-logo { height: 40px; }
.brand small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--color-text-muted); }

.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { font-weight: 500; color: var(--color-charcoal-soft); padding: var(--space-2) 0; border-bottom: 2px solid transparent; transition: color var(--duration-base), border-color var(--duration-base); }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); border-color: var(--color-primary); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-call {
  display: none; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--color-charcoal);
}
.nav-call svg { width: 20px; height: 20px; color: var(--color-primary); }

.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: #fff; color: var(--color-charcoal-soft); flex-shrink: 0;
  transition: border-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.nav-icon-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.nav-icon-btn svg { width: 22px; height: 22px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none; flex-direction: column; gap: var(--space-1);
  border-top: 1px solid var(--color-border); background: #fff;
  padding: var(--space-4) 0 var(--space-5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm); font-weight: 600; color: var(--color-charcoal); }
.mobile-menu a:hover { background: var(--color-offwhite); }
.mobile-menu .btn { margin-top: var(--space-3); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-call { display: inline-flex; }
}
@media (max-width: 899px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-charcoal) 0%, #262b33 55%, var(--color-primary-dark) 130%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(46,124,214,0.35), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: var(--space-8);
  padding-block: var(--space-9);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  padding: var(--space-2) var(--space-4); border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--space-5);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--color-star); }
.hero h1 { font-size: clamp(2.25rem, 5vw, var(--fs-4xl)); color: #fff; max-width: 15ch; }
.hero-sub { font-size: var(--fs-md); color: var(--color-text-on-dark-muted); max-width: 46ch; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }
.hero-note { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--color-text-on-dark-muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--color-success); flex-shrink: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-7); border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-6); }
.hero-stat .num { font-family: var(--font-heading); font-size: var(--fs-2xl); font-weight: 700; color: #fff; }
.hero-stat .label { font-size: var(--fs-xs); color: var(--color-text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hero-media { position: relative; z-index: 1; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: auto; display: block; }
.hero-media-caption {
  position: absolute; left: var(--space-5); bottom: var(--space-5); right: var(--space-5);
  background: rgba(32,36,43,0.85); backdrop-filter: blur(6px);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm); font-weight: 500;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.trust-bar-inner { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; padding-block: var(--space-5); }
.trust-item { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--fs-sm); color: var(--color-charcoal-soft); }
.trust-item svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }

/* ---------- Why Choose / feature grid ---------- */
.feature-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.feature-card {
  min-width: 0;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: #eaf1fb; color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { margin-bottom: 0; font-size: var(--fs-sm); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.service-card {
  min-width: 0;
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.service-card-body p { font-size: var(--fs-sm); margin-bottom: var(--space-3); flex: 1; }
.service-tag {
  display: inline-flex; align-self: flex-start; font-size: var(--fs-xs); font-weight: 700;
  color: var(--color-primary); background: #eaf1fb; padding: 0.25rem 0.6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- How it works ---------- */
.steps { display: grid; gap: var(--space-6); grid-template-columns: 1fr; counter-reset: step; position: relative; }
.step { position: relative; text-align: left; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading);
  font-weight: 700; font-size: var(--fs-lg); margin-bottom: var(--space-4);
}
.step h3 { margin-bottom: var(--space-2); font-size: var(--fs-md); }
.step p { font-size: var(--fs-sm); margin-bottom: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before {
    content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 16px);
  }
}

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.review-card { min-width: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review-stars { display: flex; gap: 2px; color: var(--color-star); margin-bottom: var(--space-3); }
.review-stars svg { width: 18px; height: 18px; }
.review-quote { font-size: var(--fs-md); color: var(--color-text); margin: 0; }
.review-quote-rest { margin-top: var(--space-3); margin-bottom: var(--space-2); }
.review-source { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: var(--space-4); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-offwhite); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-primary); position: relative; overflow: hidden; flex-shrink: 0; }
/* Real reviewer photo, cropped in from their full post screenshot via
   position offsets (dialed in visually) instead of a separate cropped
   file — keeps one source image per person. */
.review-avatar-photo img { position: absolute; width: 1000px; left: -148px; top: -54px; max-width: none; }

/* Read More / Read Less — native <details> so no JS is needed. The
   browser's default disclosure triangle is stripped and replaced with a
   text label that swaps based on the open state via CSS alone. */
.review-details { flex: 1; }
.review-summary { cursor: pointer; list-style: none; }
.review-summary::-webkit-details-marker { display: none; }
.review-summary::marker { content: ''; }
.review-toggle-label { display: inline-block; margin-left: 6px; color: var(--color-primary); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.review-toggle-label:hover { text-decoration: underline; }
.review-details:not([open]) .label-less { display: none; }
.review-details[open] .label-more { display: none; }
@media (min-width: 700px) { .review-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: center; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: auto; display: block; }
.about-social-row { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }
.about-social-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 0.55rem 1rem;
  border-radius: var(--radius-md); font-size: var(--fs-sm); font-weight: 700; color: #fff;
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.about-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.about-social-btn:hover { opacity: 0.9; }
.about-social-facebook { background: #1877F2; }
.about-social-youtube { background: #FF0000; }
.about-social-tiktok { background: #000000; }
.about-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.about-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--color-text); }
.about-list svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; } }

/* ---------- Social / Meet ShopGridd ---------- */
.social-panel {
  display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: center;
}
.social-stats { display: flex; gap: var(--space-6); margin: var(--space-5) 0; flex-wrap: wrap; }
.social-stat .num { font-family: var(--font-heading); font-size: var(--fs-2xl); font-weight: 700; color: #fff; }
.social-stat .label { font-size: var(--fs-xs); color: var(--color-text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.video-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9/16; max-width: 320px;
  background: var(--color-charcoal-soft); box-shadow: var(--shadow-lg); margin-inline: auto;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-play span {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform var(--duration-base) var(--ease-out);
}
.video-frame:hover .video-play span { transform: scale(1.08); }
.video-play svg { width: 26px; height: 26px; color: var(--color-primary); margin-left: 3px; }
@media (min-width: 900px) { .social-panel { grid-template-columns: 1.2fr 0.8fr; } }

/* ---------- Legal pages (Terms / Privacy): plain readable prose, no
   flourishes, matching the rest of the site's type. ---------- */
.legal-content { max-width: 720px; margin-inline: auto; }
.legal-content h1 { margin-bottom: var(--space-2); }
.legal-content h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); font-size: var(--fs-xl); }
.legal-content p, .legal-content li { color: var(--color-text); line-height: 1.7; }
.legal-content ul { margin: var(--space-2) 0 var(--space-4); padding-left: 1.3em; display: grid; gap: var(--space-2); }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-callout {
  background: #eaf1fb; border: 1px solid #c7dcf5; border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-4); margin: var(--space-5) 0 var(--space-6);
}
.legal-callout h2 { margin-top: 0; font-size: var(--fs-lg); }
.legal-callout ul { margin-bottom: var(--space-3); }

.fb-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 360px; margin-inline: auto; background: #fff; }
.fb-embed iframe { width: 100%; display: block; }

/* ---------- Network hand off visual: a purely decorative loop showing a
   job moving from one member to another and getting accepted. Nothing in
   here is a real control — pointer-events is off on the whole thing so it
   never reads as clickable. ---------- */
.network-viz {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  width: 360px; max-width: 100%; height: 340px; margin-inline: auto;
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: var(--space-5);
  pointer-events: none; user-select: none;
}
.network-viz-card {
  flex: 1 1 0; min-width: 0; background: rgba(255,255,255,0.96); border-radius: var(--radius-md);
  padding: var(--space-3); box-shadow: var(--shadow-md);
}
.network-viz-card-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.network-viz-card-title { font-weight: 800; color: var(--color-charcoal); margin-top: 2px; }
.network-viz-card-sub { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 2px; }
.network-viz-card-accept, .network-viz-card-paid {
  display: flex; align-items: center; gap: 6px; margin-top: var(--space-2);
  font-size: var(--fs-xs); font-weight: 700; color: var(--color-success);
  opacity: 0;
}
.network-viz-card-accept svg, .network-viz-card-paid svg { width: 14px; height: 14px; flex-shrink: 0; }
.network-viz-card-accept { animation: networkVizAccept 9s ease-in-out infinite; }
.network-viz-card-paid { animation: networkVizPaid 9s ease-in-out infinite; }
.network-viz-from { animation: networkVizFromGlow 9s ease-in-out infinite; }
.network-viz-to { animation: networkVizToGlow 9s ease-in-out infinite; }
.network-viz-track { position: relative; width: 56px; height: 24px; flex: none; }
.network-viz-packet { position: absolute; top: 0; left: 0; opacity: 0; }
.network-viz-packet svg { width: 22px; height: 22px; }
.network-viz-packet-job { color: var(--color-accent-dark, #d97706); animation: networkVizPacketJob 9s ease-in-out infinite; }
.network-viz-packet-money { color: var(--color-success); animation: networkVizPacketMoney 9s ease-in-out infinite; }

/* Leg 1: the job itself, sent from you to them. */
@keyframes networkVizPacketJob {
  0%, 6% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; transform: translate(4px, -4px); }
  38% { opacity: 1; transform: translate(38px, 4px); }
  44%, 100% { opacity: 0; transform: translate(48px, 4px); }
}
/* Leg 2: their cut going back to you, once it's accepted. */
@keyframes networkVizPacketMoney {
  0%, 55% { opacity: 0; transform: translate(48px, 4px); }
  64% { opacity: 1; transform: translate(38px, 10px); }
  86% { opacity: 1; transform: translate(4px, 2px); }
  92%, 100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes networkVizFromGlow {
  0%, 10% { box-shadow: var(--shadow-md); }
  18% { box-shadow: 0 0 0 3px rgba(217,119,6,0.35), var(--shadow-md); }
  30%, 84% { box-shadow: var(--shadow-md); }
  92% { box-shadow: 0 0 0 3px rgba(31,138,76,0.35), var(--shadow-md); }
  100% { box-shadow: var(--shadow-md); }
}
@keyframes networkVizToGlow {
  0%, 40% { box-shadow: var(--shadow-md); }
  48% { box-shadow: 0 0 0 3px rgba(31,138,76,0.35), var(--shadow-md); }
  60%, 100% { box-shadow: var(--shadow-md); }
}
@keyframes networkVizAccept {
  0%, 46% { opacity: 0; }
  54%, 90% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes networkVizPaid {
  0%, 88% { opacity: 0; }
  94%, 99% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .network-viz-packet, .network-viz-from, .network-viz-to, .network-viz-card-accept, .network-viz-card-paid { animation: none; }
  .network-viz-packet { opacity: 0; }
  .network-viz-card-accept, .network-viz-card-paid { opacity: 1; }
}
@media (max-width: 480px) {
  .network-viz { flex-direction: column; height: auto; padding: var(--space-4); gap: var(--space-2); }
  .network-viz-track { width: 24px; height: 48px; }
  .network-viz-packet svg { transform: rotate(90deg); }
}

/* ---------- Compare (without vs. with) ---------- */
.compare-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.compare-card { border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--color-border); }
.compare-card.without { background: var(--color-danger-bg); border-color: #f3c9c3; }
.compare-card.with { background: var(--color-success-bg); border-color: #bfe5cc; }
.compare-card h3 { margin-bottom: var(--space-4); }
.compare-card.without h3 { color: var(--color-danger); }
.compare-card.with h3 { color: var(--color-success); }
.compare-list { display: grid; gap: var(--space-3); }
.compare-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--color-text); }
.compare-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.compare-card.without svg { color: var(--color-danger); }
.compare-card.with svg { color: var(--color-success); }
@media (min-width: 800px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature grid, 3-up variant (fewer, larger cards) ---------- */
.feature-grid-3 { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start; }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.area-list li { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--fs-sm); padding: var(--space-3) var(--space-4); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.area-list svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }
.area-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.area-map iframe, .area-map svg { width: 100%; height: 100%; border: 0; display: block; }
.area-note { display: flex; gap: var(--space-3); background: #eaf1fb; border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-5); font-size: var(--fs-sm); }
.area-note svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--space-3); max-width: 760px; margin-inline: auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5); background: none; border: 0; text-align: left;
  font-weight: 600; font-size: var(--fs-md); color: var(--color-charcoal);
}
.faq-question svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; transition: transform var(--duration-base) var(--ease-out); }
.faq-item[data-open="true"] .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--duration-base) var(--ease-out); }
.faq-answer-inner { padding: 0 var(--space-5) var(--space-5); font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------- Contact / CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff; border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6);
  display: grid; gap: var(--space-6); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 56ch; margin-inline: auto; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }

.contact-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-7); }
.contact-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; box-shadow: var(--shadow-sm); }
.contact-card .feature-icon { margin-inline: auto; }
.contact-card h3 { margin-bottom: var(--space-2); }
.contact-card p { flex: 1; }
.contact-card .btn { margin-top: var(--space-2); align-self: stretch; white-space: normal; line-height: 1.3; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .contact-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-charcoal); color: var(--color-text-on-dark-muted); padding-block: var(--space-8) var(--space-6); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-bottom: var(--space-7); }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 40ch; margin-top: var(--space-3); }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a:hover { color: #fff; }
.footer-data-line {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5); margin-bottom: var(--space-4);
  font-size: var(--fs-xs); line-height: 1.6; max-width: 90ch;
}
.footer-data-line a { color: #fff; text-decoration: underline; white-space: nowrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; font-size: var(--fs-xs); }
.footer-credit-row { display: flex; justify-content: flex-start; margin-top: var(--space-4); }
.footer-credit-card {
  display: inline-flex; align-items: center; gap: var(--space-3);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--fs-xs); color: var(--color-text-on-dark-muted);
  transition: all var(--duration-base) var(--ease-out);
}
.footer-credit-card:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.footer-credit-logo-link { flex-shrink: 0; line-height: 0; }
.footer-credit-logo { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; display: block; }
.footer-credit-info { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.footer-credit-name { color: #fff; font-weight: 600; text-decoration: none; }
.footer-credit-name:hover { text-decoration: underline; }
.footer-credit-phone { color: var(--color-text-on-dark-muted); text-decoration: none; }
.footer-credit-phone:hover { color: #fff; text-decoration: underline; }
.footer-credit-email { color: var(--color-text-on-dark-muted); text-decoration: none; }
.footer-credit-email:hover { color: #fff; text-decoration: underline; }
.footer-credit-call-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0;
  background: var(--color-primary); color: #fff; text-decoration: none;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-size: var(--fs-xs); font-weight: 600;
  transition: all var(--duration-base) var(--ease-out);
}
.footer-credit-call-btn:hover { filter: brightness(1.1); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(32,36,43,0.08);
}
.mobile-cta-bar .btn { flex: 1; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
body { padding-bottom: 84px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- Up/down scroll buttons (accessibility: click instead of a mouse wheel/swipe) ---------- */
.scroll-nav-buttons {
  position: fixed; right: var(--space-4); bottom: 104px; z-index: 90;
  display: flex; flex-direction: column; gap: var(--space-2);
}
@media (min-width: 900px) { .scroll-nav-buttons { bottom: 32px; } }
.scroll-nav-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-charcoal); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}
.scroll-nav-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.scroll-nav-btn svg { width: 22px; height: 22px; }

/* ---------- Request form page ---------- */
.form-hero { background: var(--color-offwhite); padding-block: var(--space-7) var(--space-6); border-bottom: 1px solid var(--color-border); }
.form-hero .eyebrow { justify-content: center; }
.form-hero-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.form-progress-note { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--color-text-muted); background: #fff; border: 1px solid var(--color-border); padding: var(--space-2) var(--space-4); border-radius: 999px; margin-top: var(--space-4); }
.form-progress-note svg { width: 16px; height: 16px; color: var(--color-success); }

.form-layout { display: grid; gap: var(--space-7); grid-template-columns: 1fr; padding-block: var(--space-8); }
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

.form-section { padding: var(--space-6); border-bottom: 1px solid var(--color-border); }
.form-section:last-child { border-bottom: 0; }
.form-section-head { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-5); }
.form-section-num {
  width: 36px; height: 36px; border-radius: 50%; background: #eaf1fb; color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.form-section-head h2 { font-size: var(--fs-lg); margin-bottom: 2px; }
.form-section-head p { margin-bottom: 0; font-size: var(--fs-sm); }

.field-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.field-grid.cols-2 { grid-template-columns: 1fr; }
.field-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .field-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .field-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--color-charcoal); }
.field .hint { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: -2px; }
.field .req { color: var(--color-accent); margin-left: 2px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], select, textarea {
  min-height: 48px; padding: 0.65rem 0.9rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-base); color: var(--color-text);
  background: #fff; width: 100%;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
textarea { min-height: 110px; resize: vertical; padding-top: 0.75rem; }
input:hover, select:hover, textarea:hover { border-color: #c3ccd6; }
input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary-light); box-shadow: 0 0 0 4px rgba(46,124,214,0.15); outline: none;
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--color-danger); }
.error-text { display: none; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--color-danger); }
.field.has-error .error-text { display: flex; }
.field.has-error label { color: var(--color-danger); }

select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6570' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }

/* Pill choice groups (radio/checkbox styled as buttons) */
.choice-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.choice-pill { position: relative; }
.choice-pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-pill span {
  display: flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--color-border); border-radius: 999px; font-weight: 600; font-size: var(--fs-sm);
  color: var(--color-charcoal-soft); background: #fff;
  transition: all var(--duration-base) var(--ease-out);
}
.choice-pill span svg { width: 18px; height: 18px; }
.choice-pill input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.choice-pill input:focus-visible + span { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }

/* File upload */
.upload-box {
  border: 2px dashed var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-6); text-align: center; background: var(--color-offwhite);
  transition: border-color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
  position: relative;
}
.upload-box.dragover { border-color: var(--color-primary-light); background: #eaf1fb; }
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { width: 44px; height: 44px; color: var(--color-primary); margin: 0 auto var(--space-3); }
.upload-box strong { display: block; margin-bottom: var(--space-1); }
.upload-box .hint { font-size: var(--fs-xs); color: var(--color-text-muted); }
.preview-strip { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.preview-thumb { position: relative; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--color-border); }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }

.form-submit-bar { padding: var(--space-6); background: var(--color-offwhite); border-top: 1px solid var(--color-border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.form-submit-bar .hint { text-align: center; margin-top: var(--space-3); font-size: var(--fs-xs); }
.signup-data-notice {
  background: #fff; border: 1px solid #c7dcf5; border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-4) var(--space-3);
  margin-bottom: var(--space-4); font-size: var(--fs-sm); line-height: 1.6;
}
.signup-data-notice strong { color: var(--color-charcoal); }
.signup-data-notice ul { margin: var(--space-2) 0 var(--space-2); padding-left: 1.2em; display: grid; gap: 6px; }
.signup-data-notice a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

.form-side { display: grid; gap: var(--space-5); align-content: start; }
.side-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-3); }
.side-card ul { display: grid; gap: var(--space-3); }
.side-card li { display: flex; gap: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }
.side-card svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.side-card.urgent { background: var(--color-danger-bg); border-color: #f3c9c3; }
.side-card.urgent h3 { color: var(--color-danger); }

@media (min-width: 1000px) { .form-layout { grid-template-columns: 1.7fr 1fr; } }

.form-success { display: none; text-align: center; padding: var(--space-9) var(--space-5); }
.form-success.show { display: block; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--color-success-bg); color: var(--color-success); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-5); }
.form-success .check svg { width: 36px; height: 36px; }

/* ---------- Tablet & phone: same horizontal layout as desktop, just
   shrunk to fit — cards stay side-by-side instead of stacking, so each
   section fits on one screen without scrolling. Text gets smaller; the
   visitor pinch-zooms in to read up close. ---------- */
@media (max-width: 1199px) {
  body { zoom: var(--shrink-zoom, 1); }

  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-call { display: inline-flex; }
  .mobile-menu { display: none; }

  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }

  .feature-grid { grid-template-columns: repeat(5, 1fr); }
  .feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before {
    content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 16px);
  }

  .review-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .social-panel { grid-template-columns: 1.2fr 0.8fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }

  .mobile-cta-bar { display: none; }
  body { padding-bottom: 0; }
  .scroll-nav-buttons { bottom: 32px; }

  .field-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .field-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .form-layout { grid-template-columns: 1.7fr 1fr; }
}

/* ---------- Phone only: text-only card rows (no photo to anchor them)
   go too narrow at 5-6 across even shrunk down — wider on real phones than
   it looked in testing. Fewer, wider columns here; tablet keeps the rows
   above untouched. ---------- */
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
