/* 508 Ministry - Global Christian Attorney Counsel Network
 * Sunlit Ivory / Deep Navy / Burnished Gold palette
 * Self-hosted SIL OFL 1.1 fonts: Cormorant (headings) + Figtree (body)
 */
:root {
  --bg: #faf7f0;
  --surface: #fffdf8;
  --surface-warm: #f5eee0;
  --navy: #0b1a33;
  --navy-soft: #162a4d;
  --gold: #c8962e;
  --gold-bright: #e0b34c;
  --gold-pale: #fbf3df;
  --ink: #17243a;
  --muted: #526075;
  --border: #e5d8bc;
  --green: #0f6b48;
  --green-bg: #eaf6f0;
  --amber: #8a5a08;
  --amber-bg: #fef7e6;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(11, 26, 51, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
  margin-top: 0;
}

.c-wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* Top announcement strip */
.c-topstrip {
  background: var(--navy);
  color: #f4efe3;
  font-size: 13.5px;
  text-align: center;
  padding: 9px 16px;
  border-bottom: 2px solid var(--gold);
}
.c-topstrip strong { color: #f4d27a; }
.c-topstrip a { color: #f4d27a; font-weight: 700; text-decoration: underline; }

/* Navigation */
.c-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.c-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.c-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
}
.c-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #102446, #0b1a33);
  border: 2px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.c-brand-text { display: flex; flex-direction: column; }
.c-brand-name {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
}
.c-brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #916918;
}
.c-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.c-links a {
  text-decoration: none;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 2px;
}
.c-links a:hover, .c-links a.active { color: #9a6e1b; }
.c-links a.c-nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  border-bottom: 2px solid var(--gold);
}
.c-links a.c-nav-cta:hover { background: var(--navy-soft); color: #fff; }

/* Hero */
.c-hero {
  background: radial-gradient(circle at 82% 18%, rgba(200, 150, 46, 0.18), transparent 46%),
              linear-gradient(180deg, #fffdf8 0%, #f7f0e2 100%);
  border-bottom: 1px solid var(--border);
  padding: 54px 0 44px;
}
.c-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.c-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid #e0c37f;
  color: #7d5710;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.c-hero h1 {
  font-size: clamp(36px, 4.8vw, 54px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.c-lead {
  font-size: 18px;
  color: #2f3e56;
  max-width: 640px;
  margin: 0 0 24px;
}
.c-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.c-btn:hover { transform: translateY(-1px); }
.c-btn-primary {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.c-btn-gold {
  background: linear-gradient(180deg, #e2b54e, #c8962e);
  color: var(--navy);
}
.c-btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #c8962e;
}

.c-hero-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.c-hero-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.c-split-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #ece2cc;
  margin: 14px 0 10px;
}
.c-split-95 { width: 95%; background: linear-gradient(90deg, #0b1a33, #1e3b6d); }
.c-split-5 { width: 5%; background: var(--gold); }
.c-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.c-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 10px;
  text-align: center;
}
.c-stat strong {
  display: block;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.1;
}
.c-stat span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.c-sec { padding: 48px 0; }
.c-sec-alt {
  background: #fffdf8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.c-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.c-sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 6px; }
.c-sec-sub { color: var(--muted); margin: 0; max-width: 680px; }

/* Estimator Panel */
.c-est-panel {
  background: var(--surface);
  border: 1.5px solid #dec998;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.c-est-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}
.c-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b4822;
  margin-bottom: 6px;
}
.c-input, .c-select, .c-textarea {
  width: 100%;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid #d7c49a;
  border-radius: 11px;
  padding: 11px 14px;
}
.c-input:focus, .c-select:focus, .c-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(200, 150, 46, 0.22);
}

/* Coverage Grid */
.c-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.c-chip {
  background: #fff;
  border: 1px solid #d7c49a;
  color: var(--navy);
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.c-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.c-cov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.c-cov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.c-cov-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(11, 26, 51, 0.07);
}
.c-cov-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.c-cov-country {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.c-badge-green { background: var(--green-bg); color: var(--green); border: 1px solid #b8e0cd; }
.c-badge-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid #f0d394; }
.c-badge-navy { background: #eef2f8; color: var(--navy); border: 1px solid #cfd8e8; }
.c-cov-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.c-cov-fee {
  background: var(--bg);
  border: 1px solid #eadec4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.c-cov-fee strong { color: var(--navy); }
.c-cov-lock {
  font-size: 12.5px;
  font-weight: 700;
  color: #7d5710;
  background: var(--gold-pale);
  border-radius: 9px;
  padding: 7px 10px;
}

/* Vault Box (Locked & Unlocked States) */
.c-vault-locked {
  background: linear-gradient(155deg, #0b1a33 0%, #152b50 100%);
  color: #f6f1e4;
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: 0 20px 48px rgba(11, 26, 51, 0.22);
}
.c-vault-locked h2 { color: #fff; font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.c-vault-locked p { color: #dbe4f2; max-width: 740px; }
.c-vault-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 150, 46, 0.2);
  border: 1px solid rgba(224, 179, 76, 0.65);
  color: #f8da8b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.c-unlock-ways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 24px;
}
.c-unlock-way {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(224, 179, 76, 0.35);
  border-radius: 13px;
  padding: 14px;
}
.c-unlock-way strong { display: block; color: #f8da8b; font-size: 14.5px; margin-bottom: 4px; }
.c-unlock-way span { font-size: 13px; color: #d5dfef; line-height: 1.45; }

/* Unlocked Member Directory Grid */
.c-dir-banner {
  background: var(--green-bg);
  border: 1.5px solid #9ad3b7;
  color: #0b4c32;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.c-firm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.c-firm-card {
  background: #fff;
  border: 1.5px solid #dfcca1;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(11, 26, 51, 0.06);
}
.c-firm-card h3 { font-size: 24px; margin-bottom: 6px; }
.c-firm-meta { font-size: 14px; color: var(--muted); margin: 4px 0; }

/* Quote Request Form & Attorney Join Form */
.c-form-card {
  background: var(--surface);
  border: 1.5px solid #dec998;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.c-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.c-span-2 { grid-column: 1 / -1; }
.c-alert {
  border-radius: 13px;
  padding: 15px 18px;
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.55;
}
.c-alert-ok { background: var(--green-bg); border: 1.5px solid #8fd1b2; color: #0b4a31; }
.c-alert-err { background: #fdf0ef; border: 1.5px solid #e6a8a2; color: #7f1d1d; }

/* Footer */
.c-footer {
  background: var(--navy);
  color: #ced8e8;
  padding: 36px 0;
  border-top: 3px solid var(--gold);
  margin-top: 36px;
}
.c-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.c-footer a { color: #f4d27a; text-decoration: none; font-weight: 600; }
.c-footer a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .c-hero-grid { grid-template-columns: 1fr; }
  .c-cov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-unlock-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-est-controls { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .c-cov-grid, .c-firm-grid, .c-form-grid, .c-unlock-ways { grid-template-columns: 1fr; }
  .c-nav { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .c-links { gap: 12px; }
  .c-hero { padding: 34px 0 30px; }
  .c-vault-locked { padding: 24px 18px; }
  .c-form-card { padding: 20px 16px; }
}
