:root {
  --bg: #f8f5f0;
  --bg-alt: #efe8df;
  --surface: #fffdfa;
  --text: #14213a;
  --muted: #4f5a6b;
  --line: #ded8cd;
  --line-strong: #b9b2a4;
  --field-line: #767f90;
  --accent-ink: #7d5c1e;
  --primary: #0b2545;
  --primary-hover: #1d3b66;
  --on-primary: #fff8f2;
  --band: #0e1f3a;
  --band-text: #f7efe6;
  --band-muted: #c7cedb;
  --band-line: rgba(247, 239, 230, .2);
  --band-accent: #d4af6a;
  --on-band-accent: #0e1f3a;
  --overlay: rgba(8, 17, 33, .6);
  --error: #a3271c;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 10vw, 136px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-ink); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Filled buttons: the text colour is light, so give the ring the page's ink colour */
.btn-primary:focus-visible, .btn-gold:focus-visible { outline-color: var(--text); }
/* On the dark bands every ring uses the gold accent (7.8:1) */
.on-band :focus-visible, .on-band .btn-gold:focus-visible, .site-footer :focus-visible { outline-color: var(--band-accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-band .eyebrow { color: var(--band-accent); }

.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.6vw, 50px); line-height: 1.12;
  margin: 20px 0 0; text-wrap: balance;
}
.lede { margin: 24px 0 0; color: var(--muted); text-wrap: pretty; }

/* Photo boxes: the image fills its frame like a cover background */
.photo { position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font: inherit; font-weight: 600;
  border-radius: 2px; cursor: pointer; transition: background .15s, border-color .15s, filter .15s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-gold { background: var(--band-accent); color: var(--on-band-accent); border: 1px solid var(--band-accent); font-size: 16px; padding: 16px 28px; }
.btn-gold:hover { filter: brightness(1.1); color: var(--on-band-accent); }
.btn-ghost { background: transparent; color: var(--band-text); border: 1px solid var(--band-text); font-size: 16px; padding: 16px 28px; }
.btn-ghost:hover { background: var(--band-line); color: var(--band-text); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--bg); box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 28px -14px rgba(0, 0, 0, .28); }
.header-bar {
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  color: var(--text); text-decoration: none; font-size: 16px; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--accent-ink); color: var(--text); }
.nav .btn { font-size: 15px; padding: 12px 20px; }
.header-mobile { display: none; align-items: center; gap: 8px; }
.call-btn { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 15px; }
.menu-toggle {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-strong);
  border-radius: 2px; cursor: pointer; color: var(--text);
}
.menu-toggle:hover { border-color: var(--text); }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; }
.mobile-menu {
  border-top: 1px solid var(--line); background: var(--bg);
  padding: 8px var(--gutter) 24px; display: flex; flex-direction: column;
}
.mobile-menu a:not(.btn) {
  color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 22px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; text-align: center; font-size: 16px; padding: 14px 20px; }

@media (max-width: 959px) {
  .nav { display: none; }
  .header-mobile { display: flex; }
}
@media (min-width: 960px) {
  .mobile-menu { display: none !important; }
}

/* Hero */
.hero {
  position: relative; background: var(--band); color: var(--band-text);
  min-height: min(860px, 94vh); display: flex; align-items: flex-end;
  padding-top: 76px; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  background-color: #101b2d; filter: saturate(.55);
}
.hero-overlay { position: absolute; inset: 0; background: var(--overlay); }
.hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) var(--gutter) clamp(48px, 6vw, 72px);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 78px); line-height: 1.08; letter-spacing: -.01em;
  margin: 28px 0 0; max-width: 17ch; text-wrap: balance;
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--band-muted);
  margin: 24px 0 0; max-width: 40em; text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta {
  margin-top: clamp(56px, 8vw, 96px); padding-top: 20px; border-top: 1px solid var(--band-line);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted);
}
.hero-meta .accent { color: var(--band-accent); }

/* Results */
.results { background: var(--band); color: var(--band-text); padding: 0 0 clamp(64px, 8vw, 104px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 40px 32px; }
.stat { border-top: 1px solid var(--band-line); padding-top: 28px; }
.stat-num { font-family: var(--serif); font-size: clamp(36px, 3.8vw, 54px); line-height: 1; color: var(--band-accent); }
.stat p { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--band-muted); max-width: 24ch; }

/* Services */
.services-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 64px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.services-head p { margin: 0; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px; margin-top: 48px; align-items: start;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .35); }
.svc { padding: 32px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.icon { width: 36px; height: 36px; color: var(--accent-ink); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; margin: 0; }
.svc > p { margin: 0; font-size: 17px; color: var(--muted); }
.svc-more { border-top: 1px solid var(--line); padding-top: 16px; }
.svc-more ul { margin: 0; padding: 0 0 0 18px; font-size: 16px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.svc-more p { margin: 0; font-size: 16px; line-height: 1.6; }
.more-btn {
  align-self: flex-start; margin-top: 4px; background: none; border: 0; padding: 10px 0;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent-ink); text-underline-offset: 6px;
}
.more-btn:hover { color: var(--accent-ink); }

/* Parish map */
.parishes { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px clamp(40px, 6vw, 96px); align-items: center;
}
.steps { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.steps li { display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps .numeral { font-family: var(--serif); color: var(--accent-ink); }
.map-figure { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: clamp(16px, 2.5vw, 32px); min-width: 0; }
.map-box { position: relative; }
.parish-map { display: block; width: 100%; height: auto; }
.parish-map path {
  fill: var(--bg-alt); stroke: var(--line-strong); stroke-width: .8; stroke-linejoin: round;
  cursor: pointer; transition: fill .12s;
}
.parish-map path.home { fill: var(--primary); }
.parish-map path.hover { fill: var(--accent-ink); }
.parish-map .hq { fill: var(--surface); stroke: var(--primary); stroke-width: 2; pointer-events: none; }
.map-tip {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none; background: var(--primary); color: var(--on-primary);
  font-size: 14px; font-weight: 600; padding: 6px 10px; white-space: nowrap;
  opacity: 0; transition: opacity .1s;
}
.map-figure figcaption {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: 15px; color: var(--muted);
}
.map-caption { color: var(--text); font-weight: 600; }
.legend { display: flex; align-items: center; gap: 8px; }
.legend::before { content: ""; width: 12px; height: 12px; background: var(--primary); }

/* Photo band */
.band-photo { height: clamp(240px, 30vw, 440px); background-color: #2f3640; }
.band-photo img { object-position: center 60%; filter: saturate(.5); }

/* Industries */
.industries-photo { aspect-ratio: 4 / 5; max-height: 640px; max-width: 100%; background-color: #3a3a3a; }
.industry-list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: 32px;
}
.industry-list li { padding: 16px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 20px; }

/* History */
.history { background: var(--band); color: var(--band-text); }
.history-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 64px; align-items: end;
}
.history-quote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.4; color: var(--band-text);
  border-left: 1px solid var(--band-accent); padding-left: 24px;
}
.history-photo { margin-top: 56px; height: clamp(220px, 34vw, 430px); background-color: #1b2638; }
.history-photo img { object-position: center 55%; filter: saturate(.6); }
.timeline {
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px 28px;
}
.timeline li { position: relative; border-top: 1px solid var(--band-line); padding-top: 32px; }
.timeline li::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--band); border: 1.5px solid var(--band-accent);
}
.timeline li:last-child::before { background: var(--band-accent); }
.year { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--band-accent); }
.timeline h3 { margin: 16px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.timeline p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--band-muted); }

/* Team */
.team-photo { margin-top: 48px; aspect-ratio: 3 / 2; max-width: 100%; background-color: #38404f; }
.team-photo img { object-position: center 30%; filter: saturate(.75); }
.photo-caption { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.bios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin-top: 24px; }
.bio { padding: 32px; }
.role { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); }
.bio h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 10px 0 0; }
.bio p { margin: 14px 0 0; font-size: 17px; color: var(--muted); text-wrap: pretty; }

/* Contact */
.contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px clamp(40px, 6vw, 96px); align-items: start;
}
.contact .lede { max-width: 30em; }
.pen-photo { margin-top: 32px; aspect-ratio: 16 / 7; max-width: 100%; background-color: #2a2a2a; }
.pen-photo img { filter: saturate(.6); }
.details { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.details > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail-label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.detail-phone {
  display: inline-block; margin-top: 6px; font-family: var(--serif); font-size: 30px;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-ink);
}
.detail-phone:hover { color: var(--accent-ink); }
.detail-value { margin-top: 6px; }
.detail-email { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-ink); overflow-wrap: anywhere; }
.detail-email:hover { color: var(--accent-ink); }
.form-panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); min-width: 0; }
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; padding: 12px 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--field-line); border-radius: 2px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 15px; color: var(--error); }
.form-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 4px;
}
.form-foot span { font-size: 15px; color: var(--muted); }
.form-foot a { color: var(--text); }
.form-foot .btn { font-size: 16px; padding: 16px 28px; }
.form-done { padding: 24px 0; }
.check {
  width: 44px; height: 44px; border: 1.5px solid var(--accent-ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent-ink);
}
.check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; margin: 24px 0 0; }
.form-done p { margin: 12px 0 0; color: var(--muted); }
.btn-outline {
  margin-top: 28px; background: transparent; color: var(--text); border: 1px solid var(--text);
  font-size: 16px; padding: 14px 24px;
}
.btn-outline:hover { background: var(--text); color: var(--surface); }

/* Footer */
.site-footer { background: var(--band); color: var(--band-text); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.wordmark { font-family: var(--serif); font-size: 24px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.wordmark-sub { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; color: var(--band-muted); font-weight: 600; }
.footer-about { margin: 20px 0 0; font-size: 16px; line-height: 1.6; color: var(--band-muted); }
.footer-col { font-size: 16px; line-height: 1.7; color: var(--band-muted); }
.footer-head { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--band-accent); margin-bottom: 12px; }
.footer-col a { color: var(--band-text); }
.footer-col a:hover { color: var(--band-accent); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.footer-nav .footer-head { margin-bottom: 6px; }
.footer-nav a { color: var(--band-text); text-decoration: none; }
.footer-nav a:hover { color: var(--band-accent); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--band-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--band-muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Industries: wider two-column split (moved from an inline style) */
.industries-split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px clamp(40px, 6vw, 96px); }

/* Contact form: spam honeypot (hidden from people) and the send status line */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; }

/* 404 page */
.not-found-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
