/* Cathedral Directories — brochure site
   Plain CSS. Heritage-leaning: deep navy, dusty-teal accent, cream ground, serif display. */

:root {
  --navy: #16263f;
  --navy-deep: #0f1c30;
  --accent: #2c6b70;        /* dusty teal — text, links, marks on light */
  --accent-fill: #34727a;   /* button / solid fill */
  --accent-soft: #7fc0c4;   /* bright teal — on navy / dark grounds */
  --cream: #f7f3ea;
  --paper: #ffffff;
  --ink: #1d2530;
  --muted: #5b6573;
  --line: #e3ddcf;
  --maxw: 1140px;
  --radius: 6px;
  --shadow: 0 8px 30px rgba(15, 28, 48, 0.10);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.035em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }

p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .8em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-family: var(--sans);
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: var(--accent-soft); color: #fff; background: rgba(127,192,196,.15); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--accent-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  background: var(--cream); border: 2px solid var(--accent-soft); border-radius: 8px;
  display: grid; place-items: center; padding: 5px; overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { color: #fff; line-height: 1.05; }
.brand-name strong { font-family: var(--serif); font-size: 1.15rem; display: block; letter-spacing: .02em; }
.brand-name span { font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-soft); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #e9e4d8; text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: 9px 13px; border-radius: 4px; display: block;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .btn { margin-left: 8px; padding: 9px 18px; }
.nav-links .btn-primary { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 0 16px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  }
  .nav-links.open { max-height: 560px; padding: 8px 16px 18px; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin: 12px 8px 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(rgba(15,28,48,.86), rgba(15,28,48,.92)),
    url("../assets/hero.svg") center/cover no-repeat, var(--navy);
  color: #fff;
  padding: 88px 0 74px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  gap: 64px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 18ch; }
/* One sentence per line at desktop and tablet widths. 16ch was fitted to
   the previous, shorter headline and broke this one mid-sentence. */
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 0.1em; }
.hero .lede { font-size: 1.25rem; color: #d8dee8; max-width: 56ch; margin-bottom: 1.6em; }
.hero .eyebrow { color: var(--accent-soft); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-collage { height: 390px; position: relative; }
.hero-collage img {
  position: absolute;
  object-fit: cover;
  border: 8px solid rgba(255,255,255,.96);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
}
.hero-image-main { width: 350px; height: 310px; top: 8px; right: 0; }
.hero-image-accent { width: 250px; height: 185px; bottom: 0; left: 0; }
.heritage-seal {
  position: absolute;
  right: 18px;
  bottom: 4px;
  z-index: 2;
  width: 128px;
  height: 128px;
  border: 6px solid var(--navy-deep);
  border-radius: 50%;
  background: var(--accent-fill);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
}
.heritage-seal strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 7px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { max-width: 24ch; }
  .hero-collage { width: min(520px, 100%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .hero { padding: 60px 0 54px; }
  .hero-grid { gap: 34px; }
  .hero-collage { height: 285px; }
  .hero-image-main { width: 78%; height: 225px; }
  .hero-image-accent { width: 62%; height: 142px; }
  .heritage-seal { width: 96px; height: 96px; right: 0; border-width: 4px; font-size: .56rem; }
  .heritage-seal strong { font-size: 1.45rem; margin-bottom: 5px; }
}

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--paper); }
.section.navy { background: var(--navy); color: #e9e4d8; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 64ch; margin-bottom: 44px; }
.section-head.intro-copy { margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.12rem; color: var(--muted); }
.section.navy .lede { color: #c3ccd9; }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid { gap: 18px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .proof .grid-4 { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 2px 8px rgba(15,28,48,.04);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 8px; background: var(--cream);
  border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 16px;
  color: var(--accent); font-size: 1.5rem; font-family: var(--serif);
}
.card h3 a { text-decoration: none; }
.card .more { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--accent); }
.card .more:hover { color: var(--navy); }

/* ---------- proof strip ---------- */
.proof { background: var(--navy-deep); color: #fff; padding: 46px 0; }
.proof .grid-4 { text-align: center; }
.proof .stat { font-family: var(--serif); font-size: 2.6rem; color: var(--accent-soft); line-height: 1; }
.proof .label { font-size: .9rem; color: #b9c2d0; letter-spacing: .04em; margin-top: 8px; }

/* ---------- how it works ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }

/* Two columns -- the number, then a text block with the heading stacked over
   its paragraph.

   This was a flex row holding three children: the number, the h3 and the p.
   That put the heading and the body side by side, each sized to its own
   content, so a long heading stole width from its paragraph and pushed it
   right -- leaving the body column ragged from one step to the next, and the
   raggedness got worse the more the heading wrapped. The margin-bottom on the
   h3 is the giveaway that it was always meant to sit above the paragraph.

   minmax(0, 1fr) rather than 1fr because a grid track's default min-width is
   auto, which refuses to shrink below the longest unbreakable word -- on a
   narrow phone that silently pushes the whole row wider than the viewport. */
.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
}
.step .num {
  counter-increment: step;
  grid-column: 1; grid-row: 1 / span 2;
  width: 48px; height: 48px;
  border-radius: 50%; background: var(--navy); color: var(--cream);
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  display: grid; place-items: center;
}
.step .num::before { content: counter(step); }
.step h3 { grid-column: 2; grid-row: 1; margin-bottom: .2em; }
.step p { grid-column: 2; grid-row: 2; margin: 0; color: var(--muted); }

/* ---------- lists ---------- */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { position: relative; padding-left: 30px; }
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.cols-2 { columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .cols-2 { columns: 1; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split .media {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 280px; box-shadow: var(--shadow); display: grid; place-items: center;
  color: var(--muted); padding: 30px; text-align: center;
}
.photo {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--paper);
}
.photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.photo figcaption { padding: 11px 16px; font-size: .85rem; color: var(--muted); }

/* ---------- callout ---------- */
.callout {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff; border-radius: 10px; padding: 50px 44px; text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: #cdd5e1; max-width: 56ch; margin: 0 auto 1.4em; }

/* ---------- faq ---------- */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px;
  font-family: inherit; font-size: 1rem; background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- contact info ---------- */
.contact-line { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-line .k { color: var(--accent); font-weight: 700; flex: 0 0 84px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb8c6; padding: 56px 0 28px; font-size: .94rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.site-footer a { color: #aeb8c6; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-brand .brand-name strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem;
}

/* ---------- page hero (interior) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0; border-bottom: 3px solid var(--accent-soft); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #cdd5e1; max-width: 58ch; font-size: 1.12rem; margin: 0; }
.page-hero .hero-cta { margin-top: 26px; }
.crumbs { font-size: .85rem; color: var(--accent-soft); margin-bottom: 14px; }
.crumbs a { color: var(--accent-soft); }

.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ---------- tablet balance ---------- */
@media (max-width: 900px) {
  .hero { padding: 60px 0 66px; }
  .hero h1 { max-width: 26ch; }
  .hero .lede { max-width: none; }
  .section { padding: 60px 0; }
  .proof { padding: 38px 0; }
  .proof .grid-4 { gap: 22px 18px; }
}

/* ---------- mobile balance ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 10px 18px; }
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; padding: 4px; }
  .brand-name strong { font-size: .98rem; }
  .brand-name span { font-size: .6rem; letter-spacing: .14em; }
  .wrap { padding: 0 18px; }
  h1 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 1.75rem); }
  h3 { font-size: 1.15rem; }
  .hero { padding: 40px 0 46px; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.15rem); max-width: none; }
  .hero .lede { font-size: 1.02rem; line-height: 1.55; margin-bottom: 1.4em; }
  .hero .eyebrow { margin-bottom: .6em; }
  .page-hero { padding: 36px 0 42px; }
  .page-hero p { font-size: 1rem; }
  .page-hero .hero-cta { margin-top: 20px; }
  .crumbs { margin-bottom: 10px; }
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 26px; }
  .lede { font-size: 1.04rem; }
  .btn { padding: 13px 20px; font-size: .95rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
  .card { padding: 22px 20px; }
  .card .ico { margin-bottom: 12px; }
  .proof { padding: 32px 0; }
  .proof .stat { font-size: 2rem; }
  .proof .label { font-size: .82rem; }
  .steps { gap: 16px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .step .num { width: 40px; height: 40px; font-size: 1.1rem; }
  .split { gap: 22px; }
  .split .media { min-height: 0; padding: 24px; }
  .callout { padding: 34px 22px; }
  .form-card { padding: 24px 18px; }
  .site-footer { padding: 40px 0 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { margin-top: 28px; }
}
.turnstile-container {
  min-height: 65px;
  margin: 16px 0;
}
