/* Sprintiz website styles
   Colors and fonts are defined once here; change them in :root. */

:root {
  --ground: #FAFAF8;
  --ink: #131B3A;
  --muted: #3B4260;
  --line: #C9CCD6;
  --field-border: #767C92;
  --link-hover: #3A4FB8;

  /* One color per offering */
  --consulting: #A8C5FF;
  --software: #9EDDB5;
  --product-design: #FFA98C;
  --training: #FFD75E;
  --other: #E4E6EC;

  --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
}

a { color: var(--ink); }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 3px solid var(--link-hover);
  outline-offset: 3px;
}

h1, h2, h3, p, dl, dd { margin: 0; }

.wrap {
  width: min(1280px, 100% - clamp(40px, 8vw, 80px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; color: #FFFFFF; }

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 32px 40px;
  font-size: 1rem;
  color: var(--muted);
}
.site-footer--ruled { border-top: 1px solid var(--line); }
.site-footer .nav-link { font-size: 1rem; font-weight: 400; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #26315F; color: #FFFFFF; }
.btn:disabled { opacity: 0.6; cursor: default; }

.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1.125rem; }

.btn--light { min-height: 56px; padding: 0 32px; background: #FFFFFF; color: var(--ink); font-size: 1.125rem; }
.btn--light:hover { background: #E4E6EC; color: var(--ink); }
.btn--light:focus-visible { outline-color: #FFFFFF; }

/* Home: hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding-block: 64px 72px;
}

.hero h1 {
  max-width: 1040px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 620px;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  color: var(--muted);
}

/* Home: the four offerings */

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
  align-items: start;
  padding-bottom: 112px;
}

.offer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 360px;
  padding: 28px;
}

.offer h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.offer p { font-size: 1.0625rem; }

.offer--consulting { background: var(--consulting); }
.offer--software { background: var(--software); }
.offer--product-design { background: var(--product-design); }
.offer--training { background: var(--training); }

/* Blocks step upward from left to right once all four sit in one row */
@media (min-width: 1160px) {
  .offer:nth-child(1) { margin-top: 120px; }
  .offer:nth-child(2) { margin-top: 80px; }
  .offer:nth-child(3) { margin-top: 40px; }
}

/* Home: contact band */

.cta { background: var(--ink); color: #FFFFFF; }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  padding-block: 88px;
}

.cta h2 {
  max-width: 760px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Contact page */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 80px;
  padding-block: 64px 104px;
}

.contact-intro {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-intro h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.contact-intro .lead { max-width: 440px; }

.details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.details dt { font-size: 0.9375rem; color: var(--muted); }
.details dd { margin-top: 2px; font-size: 1.1875rem; font-weight: 500; overflow-wrap: anywhere; }

.form {
  flex: 1.4 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label,
.topics legend {
  font-size: 1rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
}
.field input { height: 52px; }
.field textarea { min-height: 168px; padding-block: 14px; line-height: 1.5; resize: vertical; }

.topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip { position: relative; display: inline-flex; }

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--field-border);
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
}

.chip span::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  background: var(--chip);
}

.chip input:checked + span { background: var(--chip); border-color: var(--ink); font-weight: 600; }
.chip input:checked + span::before { background: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--link-hover); outline-offset: 3px; }

.chip--consulting { --chip: var(--consulting); }
.chip--software { --chip: var(--software); }
.chip--product-design { --chip: var(--product-design); }
.chip--training { --chip: var(--training); }
.chip--other { --chip: var(--other); }

.form .btn { align-self: flex-start; margin-top: 8px; }

.form-status { min-height: 1.5em; font-size: 1.0625rem; font-weight: 500; }
.form-status[data-state="error"] { color: #A3271A; }

/* Honeypot field for spam bots; people never see it */
.hp { display: none; }

/* Small screens */
@media (max-width: 600px) {
  .nav { gap: 8px 16px; }
  .hero { padding-block: 40px 56px; }
  .offer { min-height: 280px; }
  .offers { padding-bottom: 72px; }
  .cta-inner { padding-block: 64px; }
  .contact { padding-block: 40px 72px; }
}
