/* Search Engine Foundry - site styles. No external requests. */

:root {
  --ink: #0f1b2d;
  --ink-2: #1b2a42;
  --ink-3: #2a3b57;
  --text: #1f2937;
  --muted: #4b5563;
  --bg: #ffffff;
  --bg-alt: #f6f4f1;
  --line: #e4e2de;
  --accent: #c2410c;        /* 5.2:1 on white */
  --accent-hover: #9a3412;
  --accent-bright: #fb923c; /* for use on --ink backgrounds */
  --focus: #f97316;
  --radius: 10px;
  --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::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 { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.5rem 0;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current] { color: var(--accent); }
.site-nav .nav-cta { margin-top: 0.5rem; }
.site-nav .nav-cta a { display: inline-block; }

/* With JS available, collapse the nav on small screens behind the toggle. */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 56rem) {
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.5rem; padding: 0; }
  .site-nav a { padding: 0.5rem 0; }
  .site-nav .nav-cta { margin-top: 0; }
  .site-nav .nav-cta a.button { padding: 0.55rem 1.1rem; }
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.site-nav a.button { color: #fff; }
.site-nav a.button:hover { color: #fff; }
.button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #dbe2ee;
  padding: 4rem 0 4.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  right: -10rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, rgba(249, 115, 22, 0.12) 40%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero p { max-width: 40rem; font-size: 1.15rem; }
.hero a:not(.button) { color: var(--accent-bright); }
.page-hero { padding: 3rem 0 3.25rem; }
.page-hero h1 { max-width: 24ch; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: #8a97ad; }
.breadcrumb a { color: #c3cddd; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* Sections */
.section { padding: 3.75rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section-alt .card { border-color: #e2ded8; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link h3 a { color: var(--ink); text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { border-color: var(--accent); }
.card-link:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-link h3 a:focus-visible { outline: none; }
.card-more { display: inline-block; margin-top: 0.75rem; font-weight: 700; color: var(--accent); }
.card-mark {
  display: block;
  width: 2.25rem;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 2px;
  background: var(--accent);
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { margin: 0; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .steps-4 { grid-template-columns: repeat(4, 1fr); } .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.step p { margin-bottom: 0; }

/* Lists */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
}
.cross-list { list-style: none; padding: 0; }
.cross-list li { position: relative; padding-left: 1.6rem; }
.cross-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.95em;
  width: 0.7rem;
  height: 2px;
  background: var(--ink-3);
}

/* Two-column prose blocks */
.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  position: relative;
  font-weight: 700;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.85rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #dbe2ee;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -8rem;
  top: -10rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 40rem; }
.cta-band a:not(.button) { color: var(--accent-bright); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 3fr 2fr; gap: 3.5rem; } }
.email-big { font-size: 1.3rem; font-weight: 700; word-break: break-word; }
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; }
.form-field .hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #8b93a1;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus-visible,
.form-field textarea:focus-visible { border-color: var(--focus); }
.form-status { margin-top: 1rem; color: var(--ink-2); }
.form-status:empty { display: none; }
.js-only { display: none; }
.js .js-only { display: block; }
.js .no-js-only { display: none; }

/* Footer */
.site-footer {
  background: #0b1422;
  color: #b9c3d3;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: var(--accent-bright); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 26rem; margin-top: 0.5rem; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 0.75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.4rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-bottom p { margin: 0; }

/* 404 */
.notfound { padding: 5rem 0; }

/* Contact form: honeypot + thank-you state */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-thanks { padding: 1.5rem; border: 1px solid #e5e7eb; border-left: 4px solid #c2410c; border-radius: 10px; background: #fff; }
.form-thanks h3 { margin-top: 0; }
.form-status.is-error { color: #b91c1c; }
