/* JSA Solutions — styles */

:root {
  --paper: #f3f0e8;
  --paper-2: #e9e4d8;
  --ink: #161513;
  --ink-soft: #4a4740;
  --line: #d3ccbc;
  --accent: #c8401a;
  --accent-dark: #a5320f;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
ol { list-style: none; margin: 0; padding: 0; }

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

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; text-decoration: none;
}
.brand span { font-weight: 400; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:not(.nav-cta):hover { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 0.55rem 1rem; border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  font: inherit; font-weight: 500; font-size: 0.95rem;
  background: none; border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 0.4rem 0.9rem; color: var(--ink); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-full { width: 100%; }

.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem, 10vw, 8rem) 0 0; overflow: hidden; }
.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic; font-weight: 400;
  color: var(--accent);
}
.hero-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: end;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.ticker { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; padding: 0.9rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span {
  font-size: 1.1rem; font-weight: 500; white-space: nowrap; padding: 0 1.5rem;
}
.ticker-track span::after { content: "\2217"; margin-left: 3rem; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Promises ---------- */
.promises { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.promise-grid div { display: flex; flex-direction: column; gap: 0.35rem; }
.promise-grid strong { font-size: 1.05rem; }
.promise-grid span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); max-width: 20ch; }

/* Services list */
.services li {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
  align-items: baseline;
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services .num { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.services h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.services p { color: var(--ink-soft); max-width: 52ch; }
.services li:hover .num { color: var(--accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step-label { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

/* Why */
.why { background: var(--ink); color: var(--paper); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem 5rem; }
.why h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.why-copy { display: flex; flex-direction: column; gap: 1.25rem; color: #cfc9bc; font-size: 1.1rem; }
.why-copy p:first-child { color: var(--paper); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 5rem; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; font-weight: 700; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--accent);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--ink-soft); padding: 0 0 1.5rem; max-width: 60ch; }

/* Contact */
.contact { padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem 5rem; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.contact-lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 40ch; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full, .form .btn { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; }
.opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; width: 100%;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; color: var(--ink-soft); font-size: 0.95rem; }
.brand-footer { color: var(--ink); }
.small { font-size: 0.85rem; }

/* Simple page (thanks / 404) */
.simple { min-height: 70vh; display: flex; align-items: center; padding: 4rem 0; }
.simple h1 { font-size: clamp(2.4rem, 7vw, 5rem); margin-bottom: 1.25rem; }
.simple p { color: var(--ink-soft); font-size: 1.15rem; max-width: 44ch; margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-foot, .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .promise-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .services li { grid-template-columns: 3rem 1fr; }
  .services p { grid-column: 2; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 1rem; text-align: center; border: 0; }
}

@media (max-width: 560px) {
  .promise-grid, .steps, .form { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 1fr; gap: 0.5rem; }
  .services p { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  * { transition: none !important; }
}
