/* ============================================================
   ZoneLex — Brand stylesheet
   Palette (Trust-Theory):
     Trust Slate        #2B3B46  (anchor: headers, footer, dark sections)
     Premium Gold       #C5A03A  (10% — high-priority actions only)
     Jurisdictional Blue#1F497D  (secondary structure/accents)
     Veridical Green     #2A5D45  (success states)
     Audit Crimson       #8B332B  (errors / risk flags)
     Pure White          #FFFFFF
     Soft Cool-Grey      #F8F9FA  (panel separation)
     Discovery Neutral   #E0E4E7  (borders, depth)
   Type: Open Sans (body + headings), Montserrat (subheads/nav/labels)
   ============================================================ */

:root {
  --slate: #2B3B46;
  --gold: #C5A03A;
  --gold-hover: #b08f31;
  --blue: #1F497D;
  --green: #2A5D45;
  --crimson: #8B332B;

  --white: #FFFFFF;
  --grey: #F8F9FA;
  --neutral: #E0E4E7;

  --text: #2B3B46;
  --text-muted: #5d6b75;
  --text-on-dark: #eef1f3;
  --text-on-dark-muted: #aeb9c1;

  --max-width: 1080px;
  --narrow-width: 720px;
  --radius: 10px;

  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;          /* generous line height for dense legal reading */
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.narrow { max-width: var(--narrow-width); }

/* ---------- Header ---------- */
.site-header {
  background: var(--slate);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.logo { display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a { color: var(--text-on-dark-muted); }
.nav a:hover { color: var(--white); text-decoration: none; }
.nav .nav-cta {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--slate);
}
.btn-gold:hover { background: var(--gold-hover); text-decoration: none; }
.btn-gold:disabled { opacity: 0.6; cursor: progress; }

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--neutral);
}
.btn-ghost:hover { background: var(--grey); text-decoration: none; }
.btn-ghost.on-dark {
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost.on-dark:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--slate) 0%, var(--blue) 130%);
  color: var(--text-on-dark);
}
.hero-inner {
  padding: 5.5rem 1.5rem 5rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--gold);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.text-gold {
  color: var(--gold);
}

.lead {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  font-size: 1.2rem;
  color: var(--text-on-dark-muted);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost {
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-grey { background: var(--grey); }
.section-anchor { background: var(--slate); }

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.6rem;
}
.section-eyebrow.on-dark { color: var(--gold); }

.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
  max-width: 26ch;
}
.section-title.on-dark { color: var(--white); }

.prose {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 70ch;          /* ~75 char line length for comfortable reading */
  margin: 0 0 1.1rem;
}
.prose.on-dark { color: var(--text-on-dark-muted); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--neutral);
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  padding: 1.75rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--slate);
}
.card p { margin: 0; color: var(--text-muted); }

/* ---------- Form ---------- */
.form {
  margin-top: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--neutral);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--neutral);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 73, 125, 0.15);
}
.field textarea { resize: vertical; }

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Honeypot — visually hidden */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.is-success { color: var(--green); font-weight: 600; }
.form-status.is-error { color: var(--crimson); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: var(--text-on-dark-muted);
  border-top: 3px solid var(--gold);
}
.footer-inner {
  text-align: center;
  padding: 3rem 1.5rem;
}
.footer-logo-img {
  display: block;
  height: 46px;
  width: auto;
  margin: 0 auto;
}
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold);
  margin: 0.5rem 0 1.25rem;
}
.footer-copy { font-size: 0.85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .nav { gap: 1rem; font-size: 0.85rem; }
  .nav a:not(.nav-cta) { display: none; }   /* keep header uncluttered on mobile */
  .hero-inner { padding: 4rem 1.5rem 3.5rem; }
  .form { padding: 1.5rem; }
  .form-actions .btn { width: 100%; text-align: center; }
}
