/* Sprocket Solutions, LLC — site styles
   Static, no build step, no external CDN. Mobile-first. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f5f7fb;
  --surface: #ffffff;
  --text: #0d1526;
  --text-muted: #46556b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --on-primary: #ffffff;
  --ring: rgba(37, 99, 235, 0.40);
  --shadow: 0 1px 2px rgba(13, 21, 38, 0.06), 0 8px 24px rgba(13, 21, 38, 0.06);
  --success-bg: #ecfdf3;
  --success-text: #08623a;
  --success-border: #a6f0c6;
  --error-bg: #fef3f2;
  --error-text: #912018;
  --error-border: #fda29b;
  --radius: 14px;
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-subtle: #0f1729;
    --surface: #131c30;
    --text: #f1f5f9;
    --text-muted: #aeb9cc;
    --border: #263251;
    --primary: #6f9bff;
    --primary-strong: #88adff;
    --on-primary: #08122a;
    --ring: rgba(111, 155, 255, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.45);
    --success-bg: #07251a;
    --success-text: #6ee7b7;
    --success-border: #14523b;
    --error-bg: #2a1414;
    --error-text: #fca5a5;
    --error-border: #5b2120;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: block;
  border-radius: 8px;
  flex: none;
}
.brand-name {
  font-size: 1.05rem;
}
.brand-suffix {
  color: var(--text-muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
  text-decoration: none;
}
.nav .nav-cta {
  color: var(--on-primary);
  background: var(--primary);
}
.nav .nav-cta:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: progress;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
}
.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 50% -20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  padding: 5rem 1.25rem 4.5rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}
.hero-tagline {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.hero-meta {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}
.section-lead {
  max-width: 44rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Services grid */
.services-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.card p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.contact-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot — visually and programmatically hidden, off-screen for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form status message */
.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.form-status.is-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}
.form-status.is-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: var(--error-border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-legal {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.footer-location {
  margin: 0;
}
.footer-nav {
  margin-left: auto;
}
.footer-nav a {
  color: var(--text-muted);
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--text);
}

/* Privacy / article pages */
.page {
  padding: 3.5rem 0 4.5rem;
}
.page .container {
  max-width: 760px;
}
.page h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}
.page h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}
.page .updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: -0.25rem;
}
.page ul {
  padding-left: 1.25rem;
}
.page li {
  margin-bottom: 0.4rem;
}

/* Larger screens */
@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
