/* ============================================================
   B2B Router — shared styles (no framework, no external fonts)
   ============================================================ */
:root {
  --navy: #10314f;
  --navy-dark: #0a2138;
  --accent: #0e7c66;
  --accent-hover: #0a604f;
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #1d2733;
  --muted: #5b6b7b;
  --line: #dfe6ec;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy-dark);
  color: #fff;
  padding: 14px 0;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 700; font-size: 17px; color: #fff; text-decoration: none; letter-spacing: 0.2px; }
.header-note { font-size: 13px; color: #b9c9d8; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 { font-size: 34px; line-height: 1.25; max-width: 760px; margin: 0 auto 14px; }
.hero .sub { font-size: 18px; color: #cfdce8; max-width: 680px; margin: 0 auto; }
.trust-line {
  margin-top: 22px; font-size: 14px; color: #9fd4c7;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.trust-line span::after { content: "·"; margin-left: 10px; color: #5b7186; }
.trust-line span:last-child::after { content: ""; }

/* ---------- entry cards (index) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: -30px auto 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-decoration: none; color: var(--text);
  box-shadow: 0 4px 14px rgba(13, 35, 56, 0.07);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(13, 35, 56, 0.12); }
.card h2 { font-size: 18px; margin-bottom: 8px; color: var(--navy); }
.card p { font-size: 14px; color: var(--muted); flex: 1; }
.card .go { margin-top: 14px; font-weight: 600; color: var(--accent); font-size: 14px; }

/* ---------- sections / forms ---------- */
.section { padding: 40px 0 64px; }
.section h2 { font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.section .lead { color: var(--muted); margin-bottom: 24px; max-width: 640px; }

.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  max-width: 640px; box-shadow: 0 4px 14px rgba(13, 35, 56, 0.06);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--text);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}

/* honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  border: none; border-radius: 7px; padding: 13px 28px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .6; cursor: wait; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-error { display: none; color: #b3261e; font-size: 14px; margin-top: 12px; }
.form-error.show { display: block; }

.turnstile-slot { margin: 18px 0 6px; min-height: 66px; }

/* ---------- direct contact (JS-rendered) ---------- */
.direct-contact {
  margin-top: 26px; padding: 18px 20px; max-width: 640px;
  background: #eef6f3; border: 1px solid #cfe6de; border-radius: var(--radius);
  font-size: 15px;
}
.direct-contact a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- thanks page ---------- */
.thanks-box { text-align: center; padding: 80px 20px; }
.thanks-box h1 { font-size: 30px; color: var(--navy); margin-bottom: 12px; }
.thanks-box p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 26px 0; margin-top: 20px;
  font-size: 13px; color: var(--muted); text-align: center;
}

@media (max-width: 760px) {
  .hero h1 { font-size: 26px; }
  .cards { grid-template-columns: 1fr; margin-top: -20px; }
  .form-card { padding: 22px 18px; }
}
