:root {
  --ground: #FFFFFF;
  --surface: #FFFFFF;
  --white: #FFFFFF;
  --band: #EEF3F9;
  --line: #DCE3EC;
  --line-strong: #B9C5D6;
  --ink: #17202F;
  --body: #364154;
  --muted: #4A5568;
  --quiet: #5A6577;
  --blue: #1C3F7A;
  --blue-deep: #0F2244;
  --blue-tint: #E3EBF7;
  --gold: #B8861F;
  --gold-text: #7E5A0E;
  --gold-tint: #FBF1DA;
  --green: #2F6B4F;
  --green-text: #24503B;
  --green-tint: #E3EFE7;
  --red: #A12C2C;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1184px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--blue); margin: 0; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.0; }
h2 { font-size: clamp(32px, 4.2vw, 46px); }
h3 { font-size: 28px; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 12px 16px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.brand .mark { flex: none; width: 48px; height: 48px; }
.brand-name { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: 0.2px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-group { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.nav-parent:hover, .nav-group.current .nav-parent, .nav-group.open .nav-parent { color: var(--blue); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-parent svg { transition: transform .15s; }
.nav-group.open .nav-parent svg { transform: rotate(180deg); }
.submenu { display: none; position: absolute; top: 100%; left: -16px; z-index: 20; min-width: 230px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(22, 41, 74, .14); }
.nav-group.open .submenu, .nav-group:hover .submenu, html:not(.js) .nav-group:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav .submenu a:hover { background: var(--blue-tint); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .nav-parent svg { transition: none; } }

.menu-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--blue); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1100px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; font-size: 17px; }
  .js .nav.open { display: flex; }
  .js .nav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-top: 1px solid var(--line); }
  .js .nav a:hover, .js .nav a[aria-current="page"] { box-shadow: none; }
  .js .nav-parent { width: 100%; min-height: 44px; padding: 14px 4px 2px; border-top: 1px solid var(--line); box-shadow: none !important; pointer-events: none; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text) !important; }
  .js .nav-parent svg { display: none; }
  .js .submenu { display: block; position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .js .nav .submenu a { display: flex; padding: 0 4px 0 16px; border-top: 0; border-radius: 0; }
  .js .nav .submenu a:hover { background: none; }
  .js .nav .btn { width: 100%; min-height: 52px; margin-top: 12px; border-top: none; justify-content: center; font-size: 16px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-light { background: var(--surface); color: var(--blue); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; color: var(--white); }
.nav .btn:hover { box-shadow: none; color: var(--white); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); }
.lede { font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); }
.pill-green { background: var(--green-tint); color: var(--green-text); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collage img { width: 100%; height: 190px; object-fit: cover; border-radius: 18px; }
.collage img:first-child { grid-column: span 2; height: clamp(220px, 28vw, 330px); }
.collage-4 img, .collage-4 img:first-child { grid-column: auto; height: clamp(150px, 17vw, 230px); }

/* Sections */
.section { padding: clamp(44px, 7vw, 80px) 0; }
.section-tight { padding-top: 0; }
.band { background: var(--band); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card p { font-size: 15px; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }

.home-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); }
.home-card:hover { border-color: var(--blue); color: var(--ink); }
.home-card img { width: 100%; height: 220px; object-fit: cover; }
.home-card .body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; align-items: flex-start; }
.home-card .name { font-family: var(--display); font-size: 27px; font-weight: 600; color: var(--blue); line-height: 1.15; }
.home-card .place { font-size: 14px; color: var(--quiet); }
.home-card .facts { font-size: 14px; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.steps strong { display: block; font-size: 17px; }
.steps span { font-size: 15px; color: var(--muted); }
.steps-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }

.pledge { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 18px; }
.story { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; font-size: clamp(17px, 1.9vw, 19px); line-height: 1.65; color: var(--body); }
.story p { margin: 0; }
.founder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.founder img { width: 100%; height: auto; border-radius: 18px; }
.founder-text { display: flex; flex-direction: column; gap: 14px; font-size: clamp(17px, 1.9vw, 19px); line-height: 1.65; color: var(--body); }
.founder-text p { margin: 0; }
@media (max-width: 820px) { .founder { grid-template-columns: minmax(0, 1fr); } }
.mission { max-width: 880px; margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.pledge blockquote { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; color: var(--ink); }

.cta-dark { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: clamp(28px, 4vw, 40px); background: var(--blue); color: var(--white); border-radius: 20px; }
.cta-dark h2, .cta-dark h3 { color: var(--white); }
.cta-dark .eyebrow { color: #E9C77F; }
.cta-dark ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; color: #E6ECF4; }
.cta-light { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: clamp(28px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.cta-light p { color: var(--muted); font-size: 16px; }

/* Forms */
.form-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-intro { display: flex; flex-direction: column; gap: 16px; }
form.hh-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(22px, 3.5vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field .opt { font-weight: 400; color: var(--quiet); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--white); }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue-tint); border-color: var(--blue); }
.field .err { font-size: 13px; font-weight: 500; color: var(--red); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
fieldset.choice { grid-column: 1 / -1; border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.choice legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; background: var(--white); }
.choices input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-foot small { font-size: 13px; color: var(--quiet); }
.form-status { grid-column: 1 / -1; font-size: 15px; font-weight: 500; padding: 14px 16px; border-radius: 12px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--green-tint); color: var(--green-text); }
.form-status.bad { background: #F6E3E3; color: #7A2A2A; }

/* Home detail */
.crumbs { font-size: 14px; color: var(--quiet); padding: 28px 0 0; }
.crumbs a { color: var(--quiet); }
.home-head { display: flex; flex-direction: column; gap: 14px; padding: 14px 0 22px; align-items: flex-start; }
.home-head h1 { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.05; }
.home-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 224px; gap: 12px; border-radius: 18px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; }
.gallery.three img:nth-child(n+2) { grid-column: span 2; }
.home-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 5vw, 64px); align-items: start; padding: 40px 0 clamp(48px, 7vw, 80px); }
.home-text { display: flex; flex-direction: column; gap: 32px; }
.home-text h2 { font-size: 34px; margin-bottom: 12px; }
.home-text p { color: var(--body); }
.facts-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; font-size: 16px; color: var(--body); }
.facts-list li { display: flex; gap: 10px; align-items: flex-start; }
.note { padding: 18px 20px; background: var(--band); border-radius: 14px; font-size: 15px; color: var(--body); }
.aside-form { position: sticky; top: 20px; }
.aside-form form.hh-form { grid-template-columns: minmax(0, 1fr); }
.aside-form h2 { font-size: 30px; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #D5DEEC; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand .mark rect { fill: #24508F; }
.site-footer a { color: #D5DEEC; }
.site-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-footer nav a { padding: 10px 0; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-main { grid-template-columns: minmax(0, 1fr); }
  .aside-form { position: static; }
}
@media (max-width: 820px) {
  .hero .wrap, .form-panel, .grid-3, .grid-2, .steps-cols { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .gallery img:first-child { grid-row: span 1; height: 240px; }
  .gallery img:first-child { grid-auto-rows: auto; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  form.hh-form { grid-template-columns: minmax(0, 1fr); }
  .facts-list { grid-template-columns: minmax(0, 1fr); }
  .collage img { height: 140px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Show all photos */
.gallery-wrap { position: relative; }
.gallery img[data-photo] { cursor: zoom-in; }
.gallery-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 10px; background: var(--white); font: 600 15px var(--sans); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.gallery-all:hover { background: var(--ground); }
.gallery-all[hidden] { display: none; }
.lb-open, .lb-open body { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #12161F; color: #F3F0EA; }
.lightbox::backdrop { background: #12161F; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lb-count { margin: 0; font: 600 15px var(--sans); letter-spacing: .04em; }
.lb-stage { margin: 0; padding: 0 clamp(16px, 8vw, 96px) 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.lb-img { display: block; max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lb-cap { max-width: 70ch; text-align: center; font-size: 15px; color: #C9CED8; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
@media (max-width: 700px) {
  .lb-stage { padding: 0 0 88px; }
  .lb-img { border-radius: 0; max-height: calc(100dvh - 200px); }
  .lb-cap { padding: 0 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .gallery-all { right: 10px; bottom: 10px; min-height: 40px; padding: 0 12px; font-size: 14px; }
}

/* Holy Homes Exclusive badge */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-exclusive { background: #F2B632; color: #1C2331; font-weight: 700; box-shadow: 0 1px 0 #C98F12, 0 2px 8px rgba(242, 182, 50, .35); }
.pill-exclusive svg { color: var(--blue); }

/* Owner form: follow-up questions and the parish search */
.when-field { max-width: 300px; margin-top: 4px; }
.when-field[hidden], fieldset.choice[hidden], .parish-finder[hidden] { display: none; }
fieldset.choice .err { font-size: 13px; font-weight: 500; color: var(--red); }
.parish-finder { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.parish-finder > p { margin: 0; font-size: 15px; }
.finder-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.finder-row .field { flex: 1 1 240px; }
.link-btn { align-self: flex-start; padding: 0; border: none; background: none; font-family: var(--sans); font-size: 15px; color: var(--blue); text-decoration: underline; cursor: pointer; }
.link-btn:disabled, .finder-row .btn:disabled { opacity: .6; cursor: default; }
.finder-note { margin: 0; font-size: 13px; color: var(--quiet); }
.finder-error { margin: 0; font-size: 15px; color: #7A2A2A; }
.place-list { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; }
.place-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.place-list li > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.place-meta { font-size: 14px; color: var(--quiet); }
.place-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; align-items: center; }
@media (max-width: 640px) { .finder-row .btn { width: 100%; } }
