/* ============================================================
   St. Luke's & St. Patrick's Catholic Churches — kccatholics.com
   ============================================================ */

:root {
  --ink: #0e3140;          /* deep teal-navy, from the IHS mark */
  --ink-2: #1b4a5e;
  --ink-soft: #3d6273;
  --gold: #a9812e;
  --gold-soft: #c9a45c;
  --cream: #f7f3eb;
  --paper: #ffffff;
  --line: #e6dfd1;
  --text: #2b3138;
  --text-soft: #5a6570;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --prose: 46rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #cfdde4; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 2.25rem; gap: 1rem; }
.topbar a { color: #e8f0f4; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar .social { display: flex; gap: .35rem; }
.topbar .social a { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; }
.topbar .social a:hover { background: rgba(255,255,255,.15); }
.topbar svg { width: .95rem; height: .95rem; fill: currentColor; }

/* ---------- masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: center; gap: 1.75rem; padding: 1.15rem 1.25rem; }
.masthead .mark img { width: 4.6rem; height: auto; }
.masthead .steeple img { width: 3.2rem; height: auto; }
.masthead .names { text-align: center; text-decoration: none; color: var(--ink); }
.masthead .names .church { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.15; }
.masthead .names .town { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft); letter-spacing: .02em; }
.masthead .names .amp { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.05rem; margin: .1rem 0; }

/* ---------- navigation ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.nav .wrap { display: flex; align-items: center; justify-content: center; }
.nav ul { list-style: none; display: flex; }
.nav > .wrap > ul > li { position: relative; }
.nav a {
  display: block; padding: .85rem 1.05rem; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .93rem; letter-spacing: .04em; text-transform: uppercase;
}
.nav > .wrap > ul > li > a:hover, .nav li.active > a { color: var(--gold); }
.nav li.active > a { box-shadow: inset 0 -3px 0 var(--gold); }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 14rem; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 12px 28px rgba(14,49,64,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
  flex-direction: column;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub a { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .97rem; padding: .6rem 1.1rem; }
.nav .sub a:hover { background: var(--cream); color: var(--ink); }
.nav .caret { font-size: .62rem; margin-left: .3rem; color: var(--gold); }

/* mobile nav */
.navtoggle { display: none; }
.hamburger {
  display: none; background: none; border: 0; cursor: pointer; padding: .8rem 1rem;
  color: var(--ink); font: inherit; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .93rem;
  align-items: center; gap: .5rem;
}
.hamburger svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; }

@media (max-width: 880px) {
  .masthead .steeple { display: none; }
  .masthead .names .church { font-size: 1.35rem; }
  .masthead .mark img { width: 3.6rem; }
  .nav .wrap { justify-content: flex-start; }
  .hamburger { display: flex; }
  .nav > .wrap > ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; max-height: calc(100vh - 3.5rem); overflow-y: auto;
    box-shadow: 0 18px 30px rgba(14,49,64,.18);
  }
  .nav.open > .wrap > ul { display: flex; }
  .nav > .wrap > ul > li { border-top: 1px solid var(--line); }
  .nav .sub {
    position: static; opacity: 1; visibility: visible; transform: none; display: flex;
    border: 0; border-top: 0; box-shadow: none; background: var(--cream); min-width: 0;
  }
  .nav .sub a { padding-left: 2.2rem; }
  .topbar .contact .addr { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
/* bg starts 26% in so the figure sits right of the text column on wide screens */
.hero .bg { position: absolute; inset: 0; left: 33%; background-size: cover; background-position: center 30%; }
.hero .bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,34,45,1) 0%, rgba(10,34,45,.35) 45%, rgba(10,34,45,.12) 100%); }
@media (max-width: 880px) {
  .hero .bg { left: 0; }
  .hero .bg::after { background: linear-gradient(to right, rgba(10,34,45,.82) 0%, rgba(10,34,45,.45) 55%, rgba(10,34,45,.25) 100%); }
}
.hero .wrap { position: relative; z-index: 1; padding-top: 7rem; padding-bottom: 7rem; max-width: var(--maxw); }
.hero .eyebrow { font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.12; max-width: 22ch; }
.hero p { margin-top: 1.1rem; max-width: 44ch; font-size: 1.15rem; color: #e5edf1; }
.hero .ctas { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .78rem 1.6rem; text-decoration: none; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; font-size: .88rem; border-radius: 2px;
  transition: .15s ease;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #94701f; }
.btn-ghost { border: 1px solid rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }

/* ---------- mass times band ---------- */
.times { background: var(--cream); border-bottom: 1px solid var(--line); }
.times .wrap { padding: 3rem 1.25rem; }
.times h2 { text-align: center; }
.times-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2rem; }
.time-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.4rem 1.3rem; text-align: center; }
.time-card .day { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.time-card .hour { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); margin-top: .4rem; line-height: 1.25; }
.time-card .note { font-size: .9rem; color: var(--text-soft); margin-top: .35rem; line-height: 1.45; }
.times .below { text-align: center; margin-top: 1.6rem; font-size: .97rem; color: var(--text-soft); }
.times .below a { color: var(--ink-2); font-weight: 600; }
@media (max-width: 880px) { .times-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .times-grid { grid-template-columns: 1fr; } }

/* ---------- section headings ---------- */
h2.sec { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; }
.sec-sub { color: var(--text-soft); margin-top: .5rem; max-width: 60ch; }
.center { text-align: center; }
.center .sec-sub, .sec-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.rule { width: 3.5rem; height: 3px; background: var(--gold); border: 0; margin: 1rem 0 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- tiles ---------- */
.tiles { padding: 4rem 0; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.tile { position: relative; display: block; text-decoration: none; overflow: hidden; border-radius: 3px;
  aspect-ratio: 4 / 3; background: var(--ink); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,30,40,.88) 0%, rgba(9,30,40,.28) 55%, rgba(9,30,40,.12) 100%); }
.tile .label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.2rem 1.3rem; color: #fff; }
.tile .label .t { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.tile .label .d { display: block; font-size: .9rem; color: #d7e2e8; margin-top: .25rem; line-height: 1.4; }
@media (max-width: 880px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- resources band ---------- */
.resources { background: var(--cream); border-top: 1px solid var(--line); padding: 3.5rem 0 4rem; }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.res { background: var(--paper); border: 1px solid var(--line); padding: 1.3rem 1.25rem; text-decoration: none; transition: .15s ease; }
.res:hover { border-color: var(--gold-soft); box-shadow: 0 8px 20px rgba(14,49,64,.08); }
.res .t { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.res .d { font-size: .88rem; color: var(--text-soft); margin-top: .3rem; line-height: 1.45; }
.res .ext { font-size: .78rem; color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: .6rem; }
@media (max-width: 880px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .res-grid { grid-template-columns: 1fr; } }

/* ---------- interior page banner ---------- */
.pagebanner { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.pagebanner .bg { position: absolute; inset: 0; background-size: cover; background-position: center 22%; opacity: .35; }
.pagebanner .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,34,45,.25), rgba(10,34,45,.55)); }
.pagebanner .wrap { position: relative; z-index: 1; padding-top: 4.2rem; padding-bottom: 4.2rem; }
.pagebanner .crumb { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.pagebanner h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .5rem; }

/* ---------- prose / article ---------- */
.article { padding: 3.5rem 0 4.5rem; }
.article .wrap { display: grid; grid-template-columns: minmax(0, var(--prose)) 1fr; gap: 3rem; }
.article.narrow .wrap { grid-template-columns: minmax(0, var(--prose)); justify-content: center; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-family: var(--serif); color: var(--ink); font-size: 1.75rem; font-weight: 600; margin-top: 2.2rem; }
.prose h3 { font-family: var(--serif); color: var(--ink); font-size: 1.35rem; font-weight: 600; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose li ul { margin-top: .45rem; }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: .35rem 0 .35rem 1.2rem; color: var(--ink-2);
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.5;
}
.prose .verse { font-family: var(--serif); font-size: 1.18rem; color: var(--ink-2); line-height: 1.75; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose .lead { font-size: 1.16rem; color: var(--ink-2); }

/* aside card */
.sidecard { border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--cream); padding: 1.5rem 1.4rem; height: fit-content; position: sticky; top: 4.5rem; }
.sidecard h3 { font-family: var(--serif); color: var(--ink); font-size: 1.3rem; font-weight: 600; }
.sidecard ul { list-style: none; margin-top: .8rem; }
.sidecard li + li { border-top: 1px solid var(--line); }
.sidecard a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 600; font-size: .95rem; }
.sidecard a:hover { color: var(--gold); }
.sidecard p { font-size: .93rem; color: var(--text-soft); margin-top: .6rem; }
@media (max-width: 880px) {
  .article .wrap { grid-template-columns: 1fr; }
  .sidecard { position: static; }
}

/* doc list */
.doclist { list-style: none; padding: 0; }
.doclist li + li { margin-top: .6rem; }
.doclist a {
  display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line);
  padding: .85rem 1.1rem; text-decoration: none; font-weight: 600; transition: .15s ease; background: var(--paper);
}
.doclist a:hover { border-color: var(--gold-soft); box-shadow: 0 6px 16px rgba(14,49,64,.07); }
.doclist svg { width: 1.15rem; height: 1.15rem; fill: var(--gold); flex-shrink: 0; }
.doclist .meta { font-size: .82rem; color: var(--text-soft); font-weight: 400; margin-left: auto; }

/* ---------- staff ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.4rem; }
.person { border: 1px solid var(--line); background: var(--paper); text-align: center; padding: 2rem 1.4rem 1.6rem; }
.person img { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0 auto; border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--line); }
.person .name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-top: 1.1rem; }
.person .role { font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: .25rem; line-height: 1.45; }
.person .info { font-size: .95rem; color: var(--text-soft); margin-top: .6rem; line-height: 1.5; word-break: break-word; }
.person .info a { color: var(--ink-2); }
@media (max-width: 880px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .staff-grid { grid-template-columns: 1fr; } }

/* ---------- ministries ---------- */
.min-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.2rem; }
.ministry { border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1.4rem 1.5rem; background: var(--paper); }
.ministry h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.ministry p { margin-top: .5rem; font-size: .98rem; }
.ministry .contact { margin-top: .7rem; font-size: .9rem; color: var(--text-soft); }
.ministry .contact strong { color: var(--ink-2); }
@media (max-width: 760px) { .min-grid { grid-template-columns: 1fr; } }

/* ---------- embeds ---------- */
.embed { border: 1px solid var(--line); background: var(--cream); }
.embed iframe { display: block; width: 100%; border: 0; min-height: 70vh; }

/* ---------- churches (two-parish info) ---------- */
.church-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.2rem; }
.churchcard { border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.churchcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.churchcard .body { padding: 1.4rem 1.5rem 1.6rem; }
.churchcard h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.churchcard p { margin-top: .5rem; color: var(--text-soft); font-size: .97rem; }
.churchcard .body a.btn { margin-top: 1rem; }
@media (max-width: 760px) { .church-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #b9cbd4; margin-top: 0; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3.2rem 0 2.4rem; }
footer h4 { font-family: var(--serif); color: #fff; font-size: 1.25rem; font-weight: 600; margin-bottom: .9rem; }
footer p, footer li { font-size: .95rem; line-height: 1.7; }
footer ul { list-style: none; }
footer a { color: #d5e2e9; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .fine { border-top: 1px solid rgba(255,255,255,.14); padding: 1.1rem 0 1.4rem; font-size: .85rem; color: #8fa7b2;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; gap: 1.8rem; } }

/* utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: .5rem; top: .5rem; background: #fff; padding: .5rem 1rem; z-index: 99; }
