/* ==========================================================
   Haven Investigations — brand styles
   Graphite #2A2D2F · Sea Glass #3BB4A5 · White
   Display font: Righteous (self-hosted, see fonts/ folder)
   ========================================================== */

/* Righteous is loaded from your own site so it works with the
   page's Content Security Policy (font-src 'self').
   Put Righteous-Regular.ttf in a "fonts" folder next to this file. */
@font-face {
  font-family: "Righteous";
  src: url("fonts/Righteous-Regular.woff2") format("woff2"),
       url("fonts/Righteous-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #2A2D2F;
  --graphite-soft: #4A4F53;
  --muted: #5F666C;
  --sea: #3BB4A5;          /* fills, lines, accents */
  --sea-deep: #1E7369;     /* sea glass dark enough for text on white */
  --sea-tint: #EEF7F6;     /* very light sea glass wash */
  --white: #FFFFFF;
  --line: #E3E6E6;
  --danger: #B3261E;

  --display: "Righteous", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sea-deep); text-underline-offset: 3px; }
a:hover { color: var(--graphite); }

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

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

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.85rem;
  color: var(--sea-deep);
  margin-bottom: 1.1em;
}

.lede {
  font-size: 0.85rem;
  color: var(--graphite-soft);
  max-width: 36em;
}

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--graphite);
  text-decoration: none;
}

.brand-mark { width: 82px; height: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--display);
  text-transform: uppercase;
}

.brand-name {
  font-size: 1.55rem;
  letter-spacing: 0.12em;
}

.brand-tag {
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px 22px;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--graphite);
  text-decoration: none;
  padding: 10px 2px;
}

.nav a:hover { color: var(--sea-deep); }

.nav a.nav-cta {
  background: var(--graphite);
  color: var(--white);
  padding: 11px 18px;
  border-radius: 999px;
}

.nav a.nav-cta:hover { background: var(--sea-deep); color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--graphite); color: var(--white); }
.btn-primary:hover { background: var(--sea-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--graphite);
  border-color: var(--sea);
}
.btn-ghost:hover { background: var(--sea-tint); color: var(--graphite); }

.btn-block { width: 100%; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-copy { flex: 999 1 520px; min-width: 0; }

.hero-mark {
  flex: 1 1 300px;
  max-width: 420px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }

/* Privacy section: graphite band */
.section-alt {
  background: var(--graphite);
  color: #E9ECEC;
}
.section-alt h2 { color: var(--white); }
.section-alt p { color: #D5DADA; }

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sea);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
}

.card h3 { margin-bottom: 0.7em; }
.card p { color: var(--graphite-soft); }
.card b, .card strong { color: var(--graphite); }

.card ul {
  margin: 0.4em 0 1em;
  padding-left: 1.2em;
  color: var(--graphite-soft);
}
.card li { margin: 0.2em 0; }
.card li::marker { color: var(--sea); }

/* ---------- Privacy steps ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 66px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--graphite);
  font-family: var(--display);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong { color: var(--white); }

/* ---------- Request form ---------- */

.form-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .form-wrap { grid-template-columns: 1fr 2fr; }
  .form-intro { position: sticky; top: 110px; }
}

.form-intro p { color: var(--graphite-soft); }

.lock-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--sea-tint);
  border-radius: 12px;
  color: var(--sea-deep) !important;
  font-weight: 600;
  font-size: 0.95rem;
}
.lock-note svg { width: 20px; height: 20px; flex: none; }

form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

fieldset {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}

legend {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--graphite);
  padding: 0 0 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--sea);
  width: 100%;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 14px 0 0;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 18px;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  min-height: 48px;
  font: inherit;
  font-weight: 400;
  color: var(--graphite);
  background: var(--white);
  border: 1.5px solid #C9CFD0;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea { resize: vertical; min-height: 120px; }

input::placeholder, textarea::placeholder { color: #80878C; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sea-deep);
  box-shadow: 0 0 0 3px rgba(59, 180, 165, 0.3);
}

input:user-invalid, select:user-invalid, textarea:user-invalid {
  border-color: var(--danger);
}

/* the field after a textarea inside the same label (e.g. urgency) */
label textarea + select { margin-top: 10px; }

.req { color: var(--danger); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  margin: 8px 0 24px;
  color: var(--graphite-soft);
}

.check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--sea-deep);
}

/* Honeypot: keep hidden from people */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#turnstile-box { margin: 0 0 20px; }

.form-status {
  margin: 14px 0 0;
  min-height: 1.6em;
  font-weight: 600;
  color: var(--graphite-soft);
}
.form-status.success, .form-status.ok, .form-status[data-state="success"] { color: var(--sea-deep); }
.form-status.error, .form-status.err, .form-status[data-state="error"] { color: var(--danger); }

/* ---------- Footer ---------- */

.footer {
  background: var(--graphite);
  color: #C9CFD0;
  padding: 40px 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-mark { width: 100px; margin-bottom: 14px; }

.footer strong {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
}

.footer p { margin: 0 0 6px; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { position: static; }
  .topbar-inner { justify-content: center; }
  .nav { justify-content: center; }
  .hero { padding: 48px 0 56px; }
  .hero-mark { max-width: 260px; order: -1; }
  .section { padding: 56px 0; }
  form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
/* ---------- Service-based form fields ----------
   Add this to the end of styles.css. The first rule is required:
   without it, labels set to display:block would ignore the hidden attribute. */

[hidden] { display: none !important; }

.svc-group { margin: 0; }

.field-note {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--muted, #5F666C);
}
.form-status.busy { color: var(--muted); }

/* ---------- Investigator card (under "Confidential request") ---------- */

.investigator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 20px;
}

.investigator-photo {
  width: 120px;
  height: 120px;
  flex: none;
  border-radius: 50%;
  background: var(--sea-tint) url("images/mak-rigsby.jpg") center / cover no-repeat;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--sea);
  -webkit-user-select: none;
  user-select: none;
}

.investigator p { margin: 0; }

.investigator-kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--sea-deep) !important;
}

.investigator-name {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--graphite) !important;
  line-height: 1.25;
}

.investigator-title {
  font-size: 0.92rem;
  color: var(--muted) !important;
}

/* "Everything Else" fills the two open columns beside OSINT */
.card-wide { grid-column: span 2; }

.policy-grid {
  columns: 2 260px;          
  column-gap: 36px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.policy {
  break-inside: avoid;       
  margin-bottom: 20px;
}

.policy li { font-size: 0.95rem; }
.policy p { font-size: 0.95rem; margin-bottom: 0.8em; }
.policy ul { margin: 0; }

/* One column for phones */
@media (max-width: 700px) {
  .card-wide { grid-column: auto; }
}


.nowrap { white-space: nowrap; }

/* Slightly smaller headings inside service cards, so long ones fit */
.card h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: 0.06em;
}

/* AI policy badge */
.policy-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.6em;
}
.policy-head h3 { margin: 0; }

.ai-badge { width: 64px; height: 64px; flex: none; }

.ai-badge-big {
  font-family: var(--display);
  font-size: 30px;
  fill: #2A2D2F;
  letter-spacing: 1px;
}
.ai-badge-small {
  font-family: var(--display);
  font-size: 10.5px;
  fill: #1E7369;
  letter-spacing: 2px;
}

/* "My background" list under the investigator photo */
.background-label {
  font-family: var(--display);        
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--sea-deep) !important;
  margin: 18px 0 8px;
}

.background-list {
  font-family: var(--body);           
  font-size: 0.88rem;                
  line-height: 1.5;
  color: var(--graphite-soft);
  margin: 0 0 20px;
  padding-left: 1.1em;
}

.background-list li { margin: 3px 0; }
.background-list li::marker { color: var(--sea); }   

/* Mask DOB */
.masked:not(:focus) { -webkit-text-security: disc; }