/* ============================================================
   DOWN & CONNOR DIOCESE — Design System
   A modern, episcopal design language.
   ============================================================ */

/* ---------- CSS Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:clip}
body{overflow-x:clip;max-width:100vw;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img,picture,video,canvas,svg{display:block;max-width:100%}
input,button,textarea,select{font:inherit}
p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --stone: #4A5568;
  --stone-light: #718096;
  --stone-dark: #2D3748;
  --violet: #6B4C9A;
  --violet-light: #8B6FBF;
  --violet-dark: #553C7B;
  --green: #2D6A4F;
  --green-light: #40916C;
  --gold: #C9A84C;
  --gold-light: #D4BC6A;
  --gold-dark: #A68A3A;
  --bg: #FAF8F5;
  --bg-alt: #F0EDE8;
  --bg-card: #FFFFFF;
  --bg-dark: #1A202C;
  --text: #1A202C;
  --text-muted: #4A5568;
  --text-light: #718096;
  --text-inverse: #FAF8F5;
  --border: #E2E8F0;
  --border-dark: #CBD5E0;
  --mist: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.12);

  /* Liturgical accent — default is Ordinary Time (green) */
  --accent: var(--violet);
  --accent-light: var(--violet-light);

  /* Typography */
  --ff-display: 'Playfair Display', 'Georgia', serif;
  --ff-heading: 'Cormorant Garamond', 'Georgia', serif;
  --ff-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Layout */
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
  --bg: #1A202C;
  --bg-alt: #242B38;
  --bg-card: #2D3748;
  --text: #E2E8F0;
  --text-muted: #A0AEC0;
  --text-light: #718096;
  --text-inverse: #1A202C;
  --border: #4A5568;
  --border-dark: #2D3748;
  --mist: #2D3748;
  --violet: #9F7AEA;
  --violet-light: #B794F4;
  --accent: var(--violet);
  --accent-light: var(--violet-light);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.35);
}

/* ---------- Liturgical Season Bar ---------- */
.liturgical-bar {
  height: 4px;
  background: var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transition: background 0.5s ease;
}

/* ---------- Base Typography ---------- */
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-light); }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

.display-text {
  font-family: var(--ff-display);
  font-weight: 700;
}

.section-label {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-sm);
}

.section-title {
  margin-bottom: var(--sp-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.section {
  padding: var(--sp-4xl) 0;
  overflow-x: clip;
}

.section-alt {
  padding: var(--sp-4xl) 0;
  background: var(--bg-alt);
  overflow-x: clip;
}

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-xl); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .header {
  background: rgba(26,32,44,0.92);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.header-brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.header-brand-text {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.header-brand-text small {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(107,76,154,0.06);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  margin-left: var(--sp-sm);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--sp-sm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--accent);
  background: rgba(107,76,154,0.06);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  padding: 6px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
  position: absolute;
  left: 6px;
  width: calc(100% - 12px);
}
.burger span:nth-child(1) { top: 8px; }
.burger span:nth-child(2) { top: 17px; }
.burger span:nth-child(3) { top: 26px; }
.burger.active span:nth-child(1) { transform: rotate(45deg); top: 17px; }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg); top: 17px; }

/* Mobile Menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.active { display: block; opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg);
  z-index: 999;
  padding: calc(var(--header-h) + var(--sp-xl)) var(--sp-xl) var(--sp-xl);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.mobile-menu.active { right: 0; }

.mobile-nav-link {
  display: block;
  padding: var(--sp-md) 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--accent); }

.mobile-nav-cta {
  display: block;
  text-align: center;
  padding: var(--sp-md);
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-lg);
  text-decoration: none;
  margin-top: var(--sp-lg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  margin-top: calc(var(--header-h) + 4px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 1.2s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,32,44,0.85) 0%, rgba(45,55,72,0.65) 50%, rgba(26,32,44,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-inverse);
  max-width: 720px;
  padding: var(--sp-4xl) 0;
}

.hero-motto {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--gold);
  margin-bottom: var(--sp-lg);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: var(--sp-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero .lead {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: var(--sp-2xl);
  max-width: 560px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107,76,154,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--bg-dark);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: var(--sp-xl);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(107,76,154,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: var(--sp-sm); }

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Quick Access Grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  color: var(--text);
}
.quick-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(107,76,154,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
  color: var(--accent);
  transition: background 0.2s;
}
.quick-card:hover .icon {
  background: var(--accent);
  color: #fff;
}
.quick-card .icon svg { width: 26px; height: 26px; }
.quick-card h4 { font-size: 1rem; margin-bottom: var(--sp-xs); }
.quick-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; }

/* ---------- Bishop Portrait (bishop.html) ---------- */
.bishop-portrait-wrap {
  position: relative;
}
.bishop-motto-overlay {
  position: absolute;
  bottom: var(--sp-lg);
  left: var(--sp-lg);
  right: var(--sp-lg);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
}

/* ---------- Bishop Welcome Section ---------- */
.bishop-welcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.bishop-photo {
  width: 200px;
  height: 260px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.bishop-welcome blockquote {
  font-family: var(--ff-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--sp-lg);
  padding-left: var(--sp-lg);
  border-left: 3px solid var(--gold);
}

.bishop-welcome cite {
  display: block;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
}

/* ---------- News / Pulse Section ---------- */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.pulse-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pulse-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.pulse-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--mist);
}

.pulse-card-body {
  padding: var(--sp-lg);
}

.pulse-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}

.pulse-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-sm);
  line-height: 1.4;
}

.pulse-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pulse-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: var(--sp-sm);
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
  padding: var(--sp-2xl);
  background: var(--bg-dark);
  border-radius: var(--radius-2xl);
  text-align: center;
  color: #fff;
}

.stat-item .stat-num {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: var(--sp-xs);
}

/* ---------- Page Hero ---------- */
.page-hero {
  background: var(--bg-dark);
  padding: calc(var(--header-h) + 4px + var(--sp-4xl)) 0 var(--sp-3xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,32,44,0.95) 0%, rgba(45,55,72,0.88) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: var(--sp-md);
}

.page-hero .lead {
  color: rgba(255,255,255,0.75);
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-lg);
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 var(--sp-sm); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item.major::before {
  width: 18px;
  height: 18px;
  left: -35px;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.timeline-year {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-xs);
}

.timeline-item.major .timeline-year {
  color: var(--gold-dark);
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-sm);
}

.timeline-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Info Grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

/* ---------- Form ---------- */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: var(--sp-sm);
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,76,154,0.12);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-4xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-3xl);
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: var(--sp-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--sp-lg);
}

.footer-brand .motto {
  font-family: var(--ff-heading);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: var(--sp-xs) 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-safeguarding {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  margin-top: var(--sp-lg);
  border-left: 3px solid var(--gold);
}

.footer-safeguarding h4 {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: var(--sp-sm);
}

.footer-safeguarding p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-safeguarding a {
  color: var(--gold-light);
  display: inline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--sp-md);
}

.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-light); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(25px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ---------- Donate Nav CTA ---------- */
.nav-donate {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  margin-left: var(--sp-sm);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-donate:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .theme-toggle { display: none; }
  .nav-donate { display: none; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
  .pulse-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .bishop-welcome { grid-template-columns: 1fr; text-align: center; }
  .bishop-photo { margin: 0 auto; }
  /* Force inline grids to stack */
  [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  :root { --sp-4xl: 3rem; --sp-3xl: 2.5rem; }
  .hero { min-height: 75vh; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .pulse-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: var(--sp-xl); border-radius: var(--radius-xl); }
  .stat-item .stat-num { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
  .quick-card { padding: var(--sp-lg) var(--sp-md); }
  .container { padding: 0 var(--sp-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* Page hero tighten */
  .page-hero { padding-top: calc(var(--header-h) + 4px + var(--sp-2xl)); padding-bottom: var(--sp-xl); }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .page-hero .lead { font-size: 1rem; }
  /* Timeline mobile */
  .timeline { padding-left: 30px; }
  .timeline-year { font-size: 1.2rem; }
  /* Card mobile */
  .card { padding: var(--sp-lg); }
  /* Section label tighten */
  .section-title { font-size: clamp(1.4rem, 4vw, 2rem); }
  /* Force all inline 2-col grids to single column */
  [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Bishop portrait on mobile — motto below photo */
  .bishop-portrait-wrap img {
    max-width: 320px;
    margin: 0 auto;
  }
  .bishop-motto-overlay {
    position: static;
    margin-top: var(--sp-md);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; --sp-4xl: 2.5rem; --sp-3xl: 2rem; --sp-2xl: 1.5rem; }
  .header-brand-text { font-size: 1.05rem; }
  .header-brand-crest { width: 34px; height: 34px; }
  .hero { min-height: 70vh; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card .icon { width: 44px; height: 44px; }
  .quick-card .icon svg { width: 22px; height: 22px; }
  .quick-card h4 { font-size: 0.9rem; }
  .section { padding: var(--sp-2xl) 0; }
  .section-alt { padding: var(--sp-2xl) 0; }
  .card { padding: var(--sp-md); }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.88rem; }
  /* Timeline tighter */
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -27px; width: 12px; height: 12px; }
  .timeline-item.major::before { left: -29px; width: 14px; height: 14px; }
  /* Footer compact */
  .footer { padding: var(--sp-2xl) 0 var(--sp-lg); }
  .footer-brand h3 { font-size: 1.1rem; }
  /* Button mobile */
  .btn { font-size: 0.88rem; padding: 0.65rem 1.25rem; }
  /* Text sizes */
  h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  h3 { font-size: clamp(1.05rem, 3.5vw, 1.3rem); }
  .lead { font-size: 1rem; }
  /* Breadcrumb */
  .breadcrumb { font-size: 0.8rem; }
  /* Safeguarding banner flex */
  [style*="display:flex"][style*="min-width:280px"] {
    min-width: auto !important;
  }
  /* Force flex min-widths to auto on small screens */
  [style*="min-width:250px"] {
    min-width: 100% !important;
  }
  [style*="min-width:200px"] {
    min-width: 100% !important;
  }
  /* Inline font sizes */
  [style*="font-size:1.35rem"] {
    font-size: 1.15rem !important;
  }
  [style*="font-size:1.8rem"] {
    font-size: 1.4rem !important;
  }
  [style*="font-size:2rem"] {
    font-size: 1.5rem !important;
  }
  [style*="font-size:clamp(2.2rem"] {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
}
