/* ==========================================================
   GENREQ Information Services — global styles
   Extracted from site/index.html and site/contact.html
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #fafaf7;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --rule: #e8e6e0;
  --accent-red: #c63333;
  --accent-blue: #1f6fc9;
  --accent-gold: #b89233;
  --max-w: 720px;
  --max-w-wide: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a:hover { border-bottom-color: var(--accent-blue); }

/* ---------- Header ---------- */
header {
  padding: 32px 24px 0;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.logo {
  display: block;
  width: 340px;
  height: auto;
  max-width: 100%;
}

/* ---------- Sections ---------- */
section {
  padding: 64px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero {
  padding-top: 96px;
  padding-bottom: 88px;
}

.intro {
  padding-top: 88px;
  padding-bottom: 32px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Default h1 (home/hero scale) */
h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 18ch;
}

h1 .accent {
  color: var(--accent-red);
  font-style: italic;
  font-weight: 500;
}

/* Contact-page h1 (slightly smaller, wider clamp) */
.page-contact h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 22ch;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.page-contact h2 {
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.25;
  margin-bottom: 16px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 40px;
}

.page-contact .lede {
  font-size: 19px;
  max-width: 38ch;
  margin-bottom: 8px;
}

p { margin-bottom: 16px; }
p.tight { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta:hover {
  gap: 14px;
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}
.cta::after {
  content: '→';
  font-size: 16px;
}

/* ---------- Sections with alt background ---------- */
.section-alt-wrap {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-alt-wrap section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ---------- Lists ---------- */
ul.signals {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 32px;
}
ul.signals li {
  padding-left: 22px;
  position: relative;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
ul.signals li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* ---------- How we work cards ---------- */
.how-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}
.how-item {
  padding-left: 20px;
  border-left: 2px solid var(--accent-red);
}
.how-item p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- Constraint callout ---------- */
.callout {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
}
.callout::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: 4px;
  height: calc(100% + 2px);
  background: var(--accent-red);
}
.callout p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.callout strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- About ---------- */
.about p {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- Form ---------- */
.form-section {
  padding-top: 24px;
  padding-bottom: 56px;
}

form {
  display: grid;
  gap: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.field input,
.field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-bottom: 1.5px solid var(--rule);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  border: 1.5px solid var(--rule);
  padding: 14px 16px;
  border-radius: 4px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b5b5b5;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

button[type="submit"] {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.01em;
}
button[type="submit"]:hover {
  background: var(--accent-red);
}

.form-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 38ch;
}

/* ---------- Or contact directly ---------- */
.or-direct {
  padding-top: 32px;
  padding-bottom: 56px;
  border-top: 1px solid var(--rule);
}
.or-direct h2 { margin-bottom: 12px; }
.or-direct .email {
  display: inline-block;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  margin-top: 8px;
}
.or-direct .email:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* ---------- What happens next ---------- */
.next-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.next-section section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.next-section h2 { margin-bottom: 18px; }
.next-section p { color: var(--ink-soft); }

/* ---------- Success message ---------- */
.success {
  display: none;
  padding: 28px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-gold);
  border-radius: 4px;
  margin-top: 16px;
}
.success.show { display: block; }
.success h2 { margin-bottom: 8px; }
.success p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.back-link:hover {
  color: var(--ink);
  border-bottom-color: transparent;
  gap: 10px;
}
.back-link::before { content: '←'; }

/* ---------- Footer ---------- */
footer {
  padding: 48px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
footer .footer-mark {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
footer a { color: var(--muted); }
footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Fade-in entrance ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  header { padding-top: 24px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .lede { font-size: 18px; }
  .page-contact .lede { font-size: 17px; }
  .page-contact .logo { width: 260px; }
  .logo { width: 260px; }
  .intro { padding-top: 56px; }
  .callout { padding: 22px 24px; }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
