/* ShowFirst Studio design system — 8px grid, 60/30/10, WCAG AA */
:root {
  --neutral: #ffffff;
  --neutral-alt: #f8fafc;
  --tint: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --accent: #1D4ED8;
  --accent-dark: #1E3A8A;
  --on-accent: #ffffff;
  --radius: 12px;
  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--neutral);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--display-font, "Barlow Condensed", "Inter", sans-serif); color: var(--ink); }
h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s3);
}
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 var(--s2); max-width: 65ch; color: var(--ink-2); }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; padding: 12px 16px;
  background: var(--ink); color: #fff; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s3); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 64px;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw; }
.site-header nav { display: flex; gap: var(--s3); margin-left: auto; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:hover { color: var(--ink); }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 var(--s2);
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius); font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { background: var(--accent-dark); }

/* hero */
.hero { padding: var(--s7) 0 var(--s6); background: var(--neutral-alt); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s4); align-items: center; }
.hero-copy p.sub { font-size: 1.15rem; color: var(--muted); max-width: 55ch; }
.hero-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin: var(--s4) 0 var(--s3); }

.hero-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-figure img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

.trust { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.trust li { font-size: .9rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s3);
  font: inherit; font-weight: 700; font-size: 1rem;
  border-radius: var(--radius); text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--neutral); color: var(--ink); border-color: #cbd5e1; }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-ghost { background: var(--neutral); color: var(--ink); border-color: #cbd5e1; }

/* sections */
.services { padding: var(--s6) 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.card {
  background: var(--neutral); border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: var(--s2); box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.card svg { color: var(--accent); margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); margin-bottom: 0; }
.more { margin-top: var(--s3); font-weight: 600; }

.split { padding: var(--s6) 0; background: var(--tint); }
.proof { padding: var(--s4) 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.proof h2 { font-size: 1.15rem; color: var(--muted); letter-spacing: 0; margin-bottom: var(--s2); }
.proof .trust li { color: var(--ink); }
.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s4); align-items: start; }
.panel { background: var(--neutral); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: var(--s3); }
.panel .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; font-weight: 700; }
.panel p:last-child { margin-bottom: 0; }
.panel-img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.panel-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

.page-head { padding: var(--s6) 0 var(--s3); background: var(--neutral-alt); border-bottom: 1px solid #e2e8f0; }

.cta-band { padding: var(--s6) 0; background: var(--ink); color: #fff; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: #cbd5e1; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #64748b; }

/* form */
.quote-form { display: grid; gap: var(--s2); }
.quote-form label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.quote-form input, .quote-form textarea {
  font: inherit; font-size: 16px; padding: 12px; min-height: 44px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink);
}
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form button { margin-top: 8px; }

.factlist { list-style: none; padding: 0; margin: var(--s3) 0; }
.factlist li { padding: 8px 0; border-bottom: 1px solid #e2e8f0; font-size: .96rem; color: var(--ink-2); }
.factlist li:last-child { border-bottom: none; }
.factlist strong { color: var(--ink); font-weight: 600; }

/* footer */
.site-footer { background: var(--neutral-alt); border-top: 1px solid #e2e8f0; padding: var(--s4) 0; }
.footer-inner { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; }
.site-footer p { font-size: .9rem; margin: 4px 0; color: var(--muted); }
.site-footer strong { color: var(--ink); }
.fine { font-size: .8rem; color: #64748b; }

/* mobile sticky bar — only under 768px */
.mobile-bar { display: none; }

@media (max-width: 768px) {
  .hero { padding: var(--s5) 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-copy p.sub { font-size: 1.05rem; }
  .services, .split, .cta-band { padding: var(--s5) 0; }
  .cards, .split-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .site-header nav { display: none; }
  .header-inner { justify-content: space-between; gap: var(--s2); }
  .brand { max-width: 30vw; font-size: .9rem; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: unset; line-height: 1.2; }
  .header-call { font-size: .92rem; padding: 0 12px; }
  .site-footer { padding: var(--s3) 0 calc(var(--s5) + 60px); }
  .footer-inner { flex-direction: column; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    padding: 10px 12px 12px; background: rgba(255,255,255,.97);
    border-top: 1px solid #e2e8f0;
  }
  .mobile-bar .btn { width: 100%; min-height: 48px; }
}

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