/* Church Hire Board — warm, professional design system.
   Deep navy + warm gold. System font stacks only (no external fonts). */
:root {
  --navy: #14263f;
  --navy-deep: #0e1c30;
  --navy-soft: #20365a;
  --gold: #d9a441;
  --gold-dark: #b4832a;
  --cream: #faf6ee;
  --paper: #ffffff;
  --ink: #22303f;
  --muted: #5c6b7a;
  --line: #e3ddcf;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 38, 63, 0.10);
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--cream); line-height: 1.6; font-size: 17px;
}
h1, h2, h3, .serif { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }
a { color: var(--navy-soft); }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 50;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.logo:hover { color: var(--gold); }
.logo svg { flex: none; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { color: #e9eef5; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.98rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--navy-soft); color: #fff; }
.btn {
  display: inline-block; background: var(--gold); color: var(--navy-deep); font-weight: 700;
  padding: 11px 20px; border-radius: 10px; text-decoration: none; border: 2px solid var(--gold);
  cursor: pointer; font-size: 1rem; font-family: var(--sans); text-align: center;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.header-cta { white-space: nowrap; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 70%, #2c4a77 100%); color: #f2ede1; padding: 64px 0 56px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero p.lede { font-size: 1.2rem; max-width: 640px; color: #dde5ef; }
.hero-search {
  display: flex; gap: 10px; flex-wrap: wrap; background: var(--paper); padding: 12px;
  border-radius: var(--radius); box-shadow: var(--shadow); max-width: 760px; margin-top: 28px;
}
.hero-search label { position: absolute; left: -9999px; }
.hero-search input, .hero-search select {
  flex: 1 1 200px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 1rem; font-family: var(--sans);
}
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; color: #c9d4e4; font-size: 0.95rem; }
.hero-stats strong { color: #fff; font-family: var(--serif); font-size: 1.3rem; display: block; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.job-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 2px 8px rgba(20,38,63,0.05); display: flex; flex-direction: column; gap: 6px;
}
.job-card:hover { box-shadow: var(--shadow); }
.job-card-featured { border-color: var(--gold); border-width: 2px; }
.job-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-card-top time { margin-left: auto; color: var(--muted); font-size: 0.85rem; }
.job-card h3 a { color: var(--navy); text-decoration: none; }
.job-card h3 a:hover { color: var(--gold-dark); text-decoration: underline; }
.job-church { margin: 0; font-weight: 600; color: var(--ink); }
.job-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.job-salary { color: var(--navy); font-weight: 700; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.badge-featured { background: var(--gold); color: var(--navy-deep); }
.badge-hiring { background: #e7efe4; color: #33512c; border: 1px solid #c3d4ba; }
.badge-soon { background: #eee7d7; color: #6d5518; border: 1px solid var(--line); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.category-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 2px;
}
.category-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.category-card strong { font-family: var(--serif); color: var(--navy); font-size: 1.1rem; }
.category-card span { color: var(--muted); font-size: 0.9rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .num {
  display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--navy);
  color: var(--gold); font-family: var(--serif); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px;
}

/* Cross-promo */
.crosspromo { background: var(--navy); color: #e7edf5; border-radius: 18px; padding: 34px; }
.crosspromo h2 { color: #fff; }
.crosspromo .kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; }

/* Filters / browse */
.browse-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 92px; }
.filters h2 { font-size: 1.15rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 5px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9c2ae; border-radius: 9px;
  font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--ink);
}
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.field [aria-invalid="true"] { border-color: #b3372c; box-shadow: 0 0 0 2px rgba(179,55,44,0.2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.alert-box { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.alert-error { background: #fbeae8; border: 1px solid #e0a49d; color: #7c2118; }
.alert-ok { background: #e9f3e4; border: 1px solid #b9d2ab; color: #2e4d24; }
.results-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar .field { margin: 0 0 0 auto; min-width: 200px; }
.empty-state { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); }

/* Job detail */
.job-detail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.job-detail h2 { margin-top: 30px; font-size: 1.4rem; }
.apply-box { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 10px; padding: 20px; margin-top: 28px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.price-card.highlight { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.price { font-family: var(--serif); font-size: 2.4rem; color: var(--navy); margin: 6px 0; }
.price small { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.price-card ul { padding-left: 20px; color: var(--ink); }
.price-card .btn { margin-top: auto; }
table.compare { width: 100%; border-collapse: collapse; background: var(--paper); }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
table.compare th { background: var(--navy); color: #fff; font-family: var(--serif); }

/* Prose pages */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink); }
.support-amounts { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.support-amounts .btn { font-size: 1.2rem; padding: 16px 30px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3cede; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; padding: 44px 20px 30px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #dbe3ee; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-legal { border-top: 1px solid #263650; padding: 18px 20px 26px; font-size: 0.9rem; color: #93a3b8; }
.fineprint { font-size: 0.88rem; color: var(--muted); }
.ad-slot { margin: 26px auto; max-width: 970px; text-align: center; }

@media (max-width: 820px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
  .main-nav { margin-left: 0; order: 3; width: 100%; }
  .job-detail { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
