/* Layout: sticky header, lake-and-sunrise hero, then one band per sitemap section (Home, About, Leadership, Faith, Caritas, Give). */
/* ============================================================
   COLOURS AND FONTS: change the look of the whole site here
   ============================================================ */
:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #eaf0f4;
  --fg: #12202e;
  --muted: #51626f;
  --line: #d5dee5;
  --lake: #0f3a52;
  --lake-2: #17506f;
  --gold: #b8821b;
  --gold-soft: #f4e6c4;
  --green: #2b6a4d;
  --on-dark: #f4f8fb;
  --hero-sky-a: #0f3a52;
  --hero-sky-b: #2a6a7e;
  --hero-sun: #f0c25a;
  --focus: #b8821b;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:
    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1620;
    --surface: #122230;
    --surface-2: #182d3e;
    --fg: #e8eff4;
    --muted: #9db0bd;
    --line: #264052;
    --lake: #0a2433;
    --lake-2: #133d56;
    --gold: #e0ad4a;
    --gold-soft: #3a3018;
    --green: #6cc29a;
    --on-dark: #f4f8fb;
    --hero-sky-a: #071a26;
    --hero-sky-b: #1b4a5e;
    --hero-sun: #e8b64f;
    --focus: #e0ad4a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1620;
  --surface: #122230;
  --surface-2: #182d3e;
  --fg: #e8eff4;
  --muted: #9db0bd;
  --line: #264052;
  --lake: #0a2433;
  --lake-2: #133d56;
  --gold: #e0ad4a;
  --gold-soft: #3a3018;
  --green: #6cc29a;
  --on-dark: #f4f8fb;
  --hero-sky-a: #071a26;
  --hero-sky-b: #1b4a5e;
  --hero-sun: #e8b64f;
  --focus: #e0ad4a;
  color-scheme: dark;
}
/* ============================================================
   BASE STYLES: page, text, links, layout width
   ============================================================ */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--lake);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  font-weight: 600;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section {
  scroll-margin-top: 84px;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

/* ============================================================
   HEADER AND NAVIGATION MENU
   ============================================================ */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--lake);
  color: var(--on-dark);
  border-bottom: 3px solid var(--gold);
}
.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand svg {
  flex: none;
}
.brand b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
nav.main {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
nav.main a {
  color: var(--on-dark);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
nav.main a:hover {
  background: rgba(255, 255, 255, 0.12);
}
nav.main a.give {
  background: var(--gold);
  color: #1b1405;
  margin-left: 6px;
}
nav.main a.give:hover {
  filter: brightness(1.08);
}
.icon-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--on-dark);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.menu-btn {
  display: none;
}
.tools {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}
@media (max-width: 1020px) {
  .menu-btn {
    display: grid;
  }
  nav.main {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--lake);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px;
    border-bottom: 3px solid var(--gold);
    display: none;
  }
  nav.main.open {
    display: flex;
  }
  nav.main a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
  }
  nav.main a.give {
    margin: 12px 0 0;
    text-align: center;
    border-radius: 8px;
    border: 0;
  }
  .tools {
    margin-left: auto;
  }
}

/* ============================================================
   HOME HERO BANNER AND MESSAGE FROM THE BISHOP
   ============================================================ */

.hero {
  background: linear-gradient(180deg, var(--hero-sky-a), var(--hero-sky-b));
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding-block: 64px 0;
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  letter-spacing: -0.01em;
}
.hero .sw {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--hero-sun);
  font-size: 1.2rem;
  margin-top: 10px;
}
.hero p.lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 1.12rem;
  opacity: 0.92;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn.gold {
  background: var(--hero-sun);
  color: #1b1405;
}
.btn.gold:hover {
  filter: brightness(1.07);
}
.btn.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--on-dark);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.bishop {
  background: var(--surface);
  color: var(--fg);
  border-radius: 12px 12px 0 0;
  padding: 26px 26px 30px;
  margin-bottom: 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.18);
}
.bishop .portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  margin-bottom: 14px;
}
.bishop h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.bishop blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.bishop cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
}
.waves {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 44px 0;
    gap: 30px;
  }
}

/* ============================================================
   SECTION BANDS, GRIDS AND CARDS (used by every section)
   ============================================================ */

.band {
  padding-block: 72px;
}
.band.alt {
  background: var(--surface-2);
}
.band.dark {
  background: var(--lake);
  color: var(--on-dark);
}
.sec-head {
  max-width: 46rem;
  margin-bottom: 34px;
}
.sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  margin-top: 8px;
}
.sec-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.08rem;
}
.dark .sec-head p {
  color: var(--on-dark);
  opacity: 0.85;
}
.grid {
  display: grid;
  gap: 20px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .g4,
  .g3,
  .g2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .band {
    padding-block: 52px;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 1rem;
}
.card ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}
.card li {
  margin: 4px 0;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--gold-soft);
  color: var(--fg);
  border: 1px solid var(--gold);
}

/* ============================================================
   QUICK LINKS BAR
   ============================================================ */

.quick {
  margin-top: -1px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.quick .wrap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}
.quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.quick a:last-child {
  border-right: 1px solid var(--line);
}
.quick a:hover {
  background: var(--surface-2);
}
.quick svg {
  color: var(--lake-2);
}
:root[data-theme="dark"] .quick svg {
  color: var(--gold);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quick svg {
    color: var(--gold);
  }
}
@media (max-width: 860px) {
  .quick .wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick a {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .quick .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   NEWS AND EVENTS
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
.news {
  display: grid;
  gap: 16px;
}
.news article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.news .ph {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lake-2), var(--hero-sky-b));
  display: grid;
  place-items: center;
  color: var(--on-dark);
  min-height: 96px;
}
.news h3 {
  font-size: 1.15rem;
  margin: 6px 0;
}
.news time {
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 520px) {
  .news article {
    grid-template-columns: minmax(0, 1fr);
  }
  .news .ph {
    min-height: 80px;
  }
}
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.events li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.date {
  background: var(--lake);
  color: var(--on-dark);
  border-radius: 8px;
  text-align: center;
  padding: 8px 0;
  line-height: 1.1;
}
.date b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.date span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.events h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}
.events p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   MEDIA CENTRE: photo gallery
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery div {
  aspect-ratio: 4/3;
  max-width: 100%;
  border-radius: 10px;
  display: grid;
  place-items: end start;
  padding: 10px 12px;
  color: var(--on-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
.gallery div:nth-child(1) {
  background: linear-gradient(135deg, #0f3a52, #2a6a7e);
}
.gallery div:nth-child(2) {
  background: linear-gradient(135deg, #7a5a14, #d0a23a);
}
.gallery div:nth-child(3) {
  background: linear-gradient(135deg, #1f5a42, #4c9a74);
}
.gallery div:nth-child(4) {
  background: linear-gradient(135deg, #3a2f63, #6f62a8);
}
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   ABOUT THE DIOCESE
   ============================================================ */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pillar {
  border-top: 4px solid var(--gold);
  background: var(--surface);
  padding: 22px;
  border-radius: 0 0 12px 12px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.pillar p,
.pillar li {
  color: var(--muted);
}
.pillar ul {
  padding-left: 1.1em;
  margin: 0;
}

/* ============================================================
   DIOCESAN LEADERSHIP
   ============================================================ */

.org {
  display: grid;
  gap: 14px;
}
.org .top {
  display: grid;
  place-items: center;
}
.node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 0;
}
.node h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}
.node p {
  font-size: 0.92rem;
  color: var(--muted);
}
.node.root {
  background: var(--lake);
  color: var(--on-dark);
  border-color: var(--lake);
  text-align: center;
  width: min(100%, 360px);
}
.node.root p {
  color: var(--on-dark);
  opacity: 0.8;
}
.rows {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .rows {
    grid-template-columns: minmax(0, 1fr);
  }
}
.depts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.depts span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ============================================================
   TABS (Faith and Caritas sections)
   ============================================================ */

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 2px solid var(--line);
  margin-bottom: 28px;
  scrollbar-width: thin;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.tabs button:hover {
  color: var(--fg);
}
.tabs button[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--gold);
}
.dark .tabs {
  border-color: rgba(255, 255, 255, 0.2);
}
.dark .tabs button {
  color: var(--on-dark);
  opacity: 0.7;
}
.dark .tabs button[aria-selected="true"] {
  opacity: 1;
}
.sub-title {
  font-size: 1.1rem;
  margin: 30px 0 14px;
  font-family: var(--font-display);
}
.sub-title:first-child {
  margin-top: 0;
}

/* ============================================================
   PARISH DIRECTORY AND SEARCH
   ============================================================ */

.search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--fg);
}
.empty {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 26px;
  color: var(--muted);
  text-align: center;
}
.parish-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .parish-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .parish-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   LITURGICAL CALENDAR BOX
   ============================================================ */

.cal {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  flex-wrap: wrap;
}
.cal .big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
}

/* ============================================================
   DONATIONS AND SUPPORT
   ============================================================ */

.donate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .donate {
    grid-template-columns: minmax(0, 1fr);
  }
}
.donate .card {
  background: var(--lake-2);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-dark);
}
.donate .card p,
.donate .card li {
  color: var(--on-dark);
  opacity: 0.85;
}
.momo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.momo span {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--lake);
  color: var(--on-dark);
  padding-block: 48px 28px;
  border-top: 3px solid var(--gold);
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 860px) {
  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
}
footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-sun);
  margin-bottom: 12px;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
footer a {
  text-decoration: none;
  opacity: 0.9;
}
footer a:hover {
  text-decoration: underline;
}
.copy {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
