/* ============================================================
   ICKSP Ireland – style.css
   Classic-premium liturgical design system
   Burgundy #8c0e21 · Gold #c9a227 · Green #2E5D3A · Cream #fcf3e3
   ============================================================ */

/* --------------------------------------------------------------------------
   1. Design Tokens (Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Core palette */
  --burgundy:       #8c0e21;
  --burgundy-dark:  #6b0a19;
  --burgundy-light: #a8122a;
  --gold:           #c9a227;
  --gold-dark:      #a8871f;
  --gold-light:     #e0be48;
  --cream:          #fcf3e3;
  --cream-dark:     #f5e8d0;
  --dark:           #2d2218;
  --slate:          #3d3229;
  --slate-dark:     #1a1410;
  --green:          #2E5D3A;
  --green-dark:     #1B3D26;
  --green-light:    #3D7A4F;

  /* Semantic colors */
  --bg:             var(--cream);
  --bg-alt:         #f8eeda;
  --bg-card:        #ffffff;
  --bg-dark:        var(--slate-dark);
  --text:           var(--dark);
  --text-muted:     #6b5e52;
  --text-light:     rgba(255,255,255,.85);
  --border:         #e8dcc8;
  --shadow:         rgba(45,34,24,.08);

  /* Footer */
  --footer-bg:      var(--slate-dark);
  --footer-text:    #c5b9a8;

  /* Typography */
  --ff-heading:     'Playfair Display', 'Georgia', serif;
  --ff-body:        'Lora', 'Georgia', serif;
  --ff-ui:          'Inter', -apple-system, sans-serif;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.25rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2rem;
  --fs-3xl:   2.5rem;
  --fs-4xl:   3.25rem;
  --fs-5xl:   4rem;

  /* 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:      8px;
  --radius-lg:   12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition:      0.35s cubic-bezier(.22,1,.36,1);
  --transition-fast: 0.2s ease;

  /* Layout */
  --max-w:    1200px;
  --header-h: 80px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  width: 100%;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,h5 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.5rem, 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(1.8rem, 3.5vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-xl);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--sp-3xl);
}
.section-header .label {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--sp-sm);
}
.section-header h2 { margin-bottom: var(--sp-md); }
.section-header p { color: var(--text-muted); font-size: var(--fs-md); }
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-full);
  margin: var(--sp-md) auto;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(140,14,33,.25);
}
.btn-primary:hover {
  background: var(--burgundy-light);
  box-shadow: 0 6px 20px rgba(140,14,33,.35);
}
.btn-secondary {
  background: rgba(0,0,0,0.005);  /* near-invisible: ensures touch events fire on mobile */
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
}
.btn-outline:hover {
  background: var(--burgundy);
  color: #fff;
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(201,162,39,.25);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 20px rgba(201,162,39,.35);
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46,93,58,.25);
}
.btn-green:hover {
  background: var(--green-light);
  box-shadow: 0 6px 20px rgba(46,93,58,.35);
}
.btn-sm { padding: 0.6em 1.2em; font-size: var(--fs-xs); }
.btn-lg { padding: 1em 2.4em; font-size: var(--fs-base); }
.btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1060;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-header.scrolled {
  background: rgba(252,243,227,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(45,34,24,.08);
  height: 70px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-lg);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo-icon svg { width: 100%; height: 100%; }
.site-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.site-logo-text {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  transition: color var(--transition);
}
.site-logo-text small {
  display: block;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 400;
  opacity: .7;
  letter-spacing: .04em;
}
.scrolled .site-logo-text { color: var(--dark); }
.site-header .container { height: 100%; }

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}
.main-nav a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.scrolled .main-nav a {
  color: var(--text-muted);
}
.scrolled .main-nav a:hover, .scrolled .main-nav a.active {
  color: var(--burgundy);
  background: rgba(140,14,33,.06);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
#search-trigger {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: color var(--transition-fast), background var(--transition-fast);
}
#search-trigger:hover { color: #fff; background: rgba(255,255,255,.1); }
.scrolled #search-trigger {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; color: var(--text-muted); }
.scrolled #search-trigger:hover { color: var(--burgundy); background: rgba(140,14,33,.06); }
#search-trigger svg { width: 20px; height: 20px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  background: rgba(0,0,0,0.001);
}
.burger span {
  pointer-events: none;
  display: block;
  width: 100%; height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.scrolled .burger span { background: var(--dark); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,.6);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   6. Mobile Navigation
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0; transform: translateX(100%);
    width: 300px; height: 100dvh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + var(--sp-lg)) var(--sp-xl) var(--sp-xl);
    gap: var(--sp-xs);
    z-index: 1050;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    transition: transform var(--transition);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a {
    color: var(--text);
    padding: var(--sp-md);
    border-radius: var(--radius);
    font-size: var(--fs-base);
  }
  .main-nav a:hover, .main-nav a.active {
    color: var(--burgundy);
    background: rgba(140,14,33,.06);
  }
  .header-actions .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; display: none; }
  .burger { display: flex; }
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0d0a07;
}
.hero-bg video, .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg video { position: absolute; inset: 0; }
.hero-bg .hero-poster { position: absolute; inset: 0; transition: opacity .6s ease; }
.hero-bg video[data-loaded] + .hero-poster { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
  .hero-bg video { display: none; }
  .hero-bg .hero-poster { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg video { display: none; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,20,16,.75) 0%,
    rgba(45,34,24,.55) 50%,
    rgba(140,14,33,.35) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--sp-3xl) var(--sp-xl);
}
.hero-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-inner.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-label {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-lg);
  padding: var(--sp-sm) var(--sp-lg);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: var(--radius-full);
  background: rgba(201,162,39,.08);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, var(--fs-5xl));
  margin-bottom: var(--sp-lg);
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2vw, var(--fs-lg));
  color: rgba(255,255,255,.8);
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. Mass Times Cards
   -------------------------------------------------------------------------- */
.mass-times { padding: var(--sp-4xl) 0; background: var(--bg); }
.mass-times-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
.mass-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
}
.mass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45,34,24,.12);
}
.mass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--burgundy));
}
.mass-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: rgba(140,14,33,.06);
  border-radius: var(--radius);
  margin-bottom: var(--sp-lg);
  color: var(--burgundy);
}
.mass-card-icon svg { width: 26px; height: 26px; }
.mass-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-xs);
}
.mass-card-location {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
}
.mass-card-times {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.mass-card-row {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-sm);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--border);
}
.mass-card-row:last-child { border-bottom: none; }
.mass-card-day {
  font-family: var(--ff-ui);
  font-weight: 600;
  color: var(--text);
}
.mass-card-time {
  font-family: var(--ff-ui);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

/* --------------------------------------------------------------------------
   9. Feature Cards (Featured Sections on Home)
   -------------------------------------------------------------------------- */
.features { padding: var(--sp-4xl) 0; background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45,34,24,.12);
  color: inherit;
}
.feature-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream-dark);
}
.feature-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.feature-card:hover .feature-card-img img { transform: scale(1.05); }
.feature-card-body {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.feature-card-body h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-sm);
}
.feature-card-body p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  flex-grow: 1;
}
.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--burgundy);
  margin-top: var(--sp-md);
  transition: gap var(--transition-fast);
}
.feature-card:hover .feature-card-link { gap: var(--sp-sm); color: var(--green); }
.feature-card-link svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   10. About Preview / Split Section
   -------------------------------------------------------------------------- */
.about-preview { padding: var(--sp-4xl) 0; background: var(--bg); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(45,34,24,.12);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-text h2 { margin-bottom: var(--sp-lg); }
.split-text p {
  color: var(--text-muted);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-lg);
}

/* --------------------------------------------------------------------------
   11. Apostolate Cards
   -------------------------------------------------------------------------- */
.apostolate-preview { padding: var(--sp-4xl) 0; background: var(--bg-alt); }
.apostolate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
.apostolate-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.apostolate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45,34,24,.12);
  color: inherit;
}
.apostolate-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-lg);
  border-radius: 50%;
  background: rgba(46,93,58,.08);
  color: var(--green);
}
.apostolate-card-icon svg { width: 28px; height: 28px; }
.apostolate-card h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-xs);
}
.apostolate-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Quote Section
   -------------------------------------------------------------------------- */
.quote-section {
  padding: var(--sp-3xl) 0;
  background: var(--burgundy-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  overflow: hidden;
  content: '\201C';
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-heading);
  font-size: 15rem;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
}
.quote-section blockquote {
  font-family: var(--ff-heading);
  font-size: clamp(1.3rem, 2.5vw, var(--fs-2xl));
  font-style: italic;
  color: #fff;
  max-width: 750px;
  margin-inline: auto;
  padding: 0;
  border-left: none;
  background: none;
}
.quote-section cite {
  display: block;
  margin-top: var(--sp-lg);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-style: normal;
  color: var(--gold);
  letter-spacing: .05em;
}

/* --------------------------------------------------------------------------
   13. Newsletter Section
   -------------------------------------------------------------------------- */
.newsletter-section {
  padding: var(--sp-3xl) 0;
  background: var(--green-dark);
  color: #fff;
  text-align: center;
}
.newsletter-section h2 { color: #fff; margin-bottom: var(--sp-sm); }
.newsletter-section p {
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--sp-xl);
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin-inline: auto;
  gap: var(--sp-sm);
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: .85em 1.2em;
  border: 2px solid rgba(255,255,255,.20);
  border-radius: var(--radius);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.50); }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.15);
}
.newsletter-form .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   14. Page Hero (Internal Pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--slate-dark);
  padding: calc(var(--header-h) + var(--sp-3xl)) 0 var(--sp-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--sp-sm);
  position: relative;
}
.page-hero p {
  color: rgba(255,255,255,.70);
  font-size: var(--fs-md);
  max-width: 600px;
  margin-inline: auto;
  position: relative;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: rgba(0,0,0,.10);
  padding: var(--sp-md) 0;
  position: relative;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
}
.breadcrumb a {
  color: rgba(255,255,255,.60);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.30); font-size: var(--fs-xs); }
.breadcrumb-current { color: var(--gold-light); font-weight: 500; }

/* --------------------------------------------------------------------------
   15. Apostolate Detail Page
   -------------------------------------------------------------------------- */
.apostolate-section { padding: var(--sp-4xl) 0; }
.apostolate-section:nth-child(even) { background: var(--bg-alt); }
.apostolate-section:nth-child(odd) { background: var(--bg); }
.apostolate-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}
.apostolate-detail.reverse { direction: rtl; }
.apostolate-detail.reverse > * { direction: ltr; }
.apostolate-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(45,34,24,.12);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}
.apostolate-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.apostolate-detail-text h2 { margin-bottom: var(--sp-sm); }
.apostolate-detail-text .subtitle {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--green);
  font-weight: 600;
  margin-bottom: var(--sp-lg);
}
.apostolate-detail-text p {
  color: var(--text-muted);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-md);
}
.apostolate-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}
.apostolate-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}
.apostolate-info-item svg {
  width: 20px; height: 20px;
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 3px;
}
.apostolate-info-item span {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.6;
}
.apostolate-info-item a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   16. Video Grid (Recorded Masses)
   -------------------------------------------------------------------------- */
.video-section { padding: var(--sp-4xl) 0; background: var(--bg); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45,34,24,.12);
  color: inherit;
}
.video-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--slate);
}
.video-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
  transition: background var(--transition-fast);
}
.video-card:hover .video-card-play { background: rgba(0,0,0,.35); }
.video-card-body {
  padding: var(--sp-lg);
}
.video-card-body h3 {
  font-size: var(--fs-base);
  font-family: var(--ff-ui);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-meta {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.video-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-3xl);
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   17. Bulletin List
   -------------------------------------------------------------------------- */
.bulletin-section { padding: var(--sp-4xl) 0; background: var(--bg); }
.bulletin-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.bulletin-item {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.bulletin-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 24px rgba(45,34,24,.12);
  color: inherit;
}
.bulletin-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px; height: 64px;
  background: rgba(140,14,33,.06);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.bulletin-date-day {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}
.bulletin-date-month {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.bulletin-content { flex-grow: 1; min-width: 0; }
.bulletin-content h3 {
  font-size: var(--fs-base);
  font-family: var(--ff-ui);
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulletin-content p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 0; }
.bulletin-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(140,14,33,.06);
  color: var(--burgundy);
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.bulletin-item:hover .bulletin-download { background: var(--burgundy); color: #fff; }
.bulletin-download svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   18. Patron Cards
   -------------------------------------------------------------------------- */
.patron-section { padding: var(--sp-4xl) 0; background: var(--bg-alt); }
.patron-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
}
.patron-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.patron-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(45,34,24,.12);
}
.patron-card-img {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--sp-lg);
  border: 4px solid var(--gold);
  box-shadow: 0 4px 16px var(--shadow);
  background: var(--cream-dark);
}
.patron-card-img img { width: 100%; height: 100%; object-fit: cover; }
.patron-card h3 { font-size: var(--fs-lg); margin-bottom: 2px; }
.patron-card-title {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--sp-md);
}
.patron-card p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }

/* --------------------------------------------------------------------------
   19. Renovation Cards (with Progress Bars)
   -------------------------------------------------------------------------- */
.renovation-section { padding: var(--sp-4xl) 0; background: var(--bg); }
.renovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-xl);
}
.renovation-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.renovation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(45,34,24,.12);
}
.renovation-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.renovation-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.renovation-card:hover .renovation-card-img img { transform: scale(1.05); }
.renovation-card-body { padding: var(--sp-xl); }
.renovation-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-sm); }
.renovation-card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-lg); }

/* Progress bar */
.progress-bar {
  overflow: hidden;
  width: 100%; height: 10px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--gold), var(--gold-light));
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-sm);
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.progress-info strong { color: var(--green); font-weight: 700; }

/* --------------------------------------------------------------------------
   20. Contact Section
   -------------------------------------------------------------------------- */
.contact-section { padding: var(--sp-4xl) 0; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--sp-lg); }
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  background: var(--bg-card);
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
}
.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(140,14,33,.08);
  color: var(--burgundy);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-text h3 {
  font-size: var(--fs-base);
  font-family: var(--ff-ui);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-info-text p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 0; }
.contact-info-text a { color: var(--burgundy); text-decoration: none; }
.contact-info-text a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  box-shadow: 0 2px 12px var(--shadow);
}
.contact-form h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-xl); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}
.form-group { display: flex; flex-direction: column; gap: var(--sp-xs); }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.form-group label .required { color: var(--burgundy); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .75em 1em;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(140,14,33,.10);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: .6; }
.form-message {
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  border-radius: var(--radius);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.form-message.success { background: #ecfdf5; color: #065f46; }
.form-message.error { background: #fef2f2; color: #991b1b; }

/* --------------------------------------------------------------------------
   21. Other Apostolates / World Grid
   -------------------------------------------------------------------------- */
.world-section { padding: var(--sp-4xl) 0; background: var(--bg-alt); }
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
}
.world-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.world-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,34,24,.12);
  color: inherit;
}
.world-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-md);
  border-radius: 50%;
  background: rgba(46,93,58,.08);
  color: var(--green);
  font-size: var(--fs-xl);
}
.world-card h3 {
  font-size: var(--fs-base);
  font-family: var(--ff-ui);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}
.world-card p { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: var(--sp-4xl);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 33%, var(--gold) 33%, var(--gold) 66%, var(--burgundy) 66%, var(--burgundy) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-3xl);
}
.footer-col h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  color: var(--gold);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--gold-dark);
  display: inline-block;
}
.footer-about p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
  color: var(--footer-text);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-col ul a {
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-col ul a:hover { color: var(--gold-light); padding-left: 6px; }

/* Social icons */
.footer-social { display: flex; gap: var(--sp-sm); }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--footer-text);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--sp-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
}
.footer-bottom p {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  color: rgba(197,185,168,.60);
  margin-bottom: 0;
}
.footer-motto {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   23. Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-xl); right: var(--sp-xl);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(140,14,33,.30);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition-fast);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--burgundy-light);
  transform: translateY(-3px);
}
.back-to-top svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   24. Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 2000;
  background: var(--bg-dark);
  color: rgba(255,255,255,.85);
  padding: var(--sp-lg) var(--sp-xl);
  box-shadow: 0 -4px 20px rgba(0,0,0,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  transition: opacity .4s ease, transform .4s ease;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  margin-bottom: 0;
}
.cookie-banner-buttons { display: flex; gap: var(--sp-sm); }
.cookie-btn-accept {
  padding: .6em 1.4em;
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-reject {
  padding: .6em 1.4em;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border-radius: var(--radius);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.cookie-btn-reject:hover { background: rgba(255,255,255,.15); }

/* --------------------------------------------------------------------------
   25. Search Overlay
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(45,34,24,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.search-overlay.active { opacity: 1; pointer-events: auto; }
.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 0 var(--sp-lg);
  text-align: center;
}
.search-close {
  position: absolute;
  top: var(--sp-xl); right: var(--sp-xl);
  background: none; border: none;
  color: rgba(255,255,255,.60);
  cursor: pointer;
  padding: var(--sp-sm);
  transition: color var(--transition-fast);
}
.search-close:hover { color: #fff; }
.search-close svg { width: 28px; height: 28px; }
.search-overlay label {
  display: block;
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-lg);
}
.search-overlay input[type="search"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--gold);
  padding: var(--sp-md) 0;
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  outline: none;
  caret-color: var(--gold);
}
.search-overlay input[type="search"]::placeholder { color: rgba(255,255,255,.30); }
.search-overlay input[type="search"]::-webkit-search-cancel-button,
.search-overlay input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/* --------------------------------------------------------------------------
   26. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: .4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: .5s; }

/* --------------------------------------------------------------------------
   27. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet (<=768px) */
@media (max-width: 768px) {
  :root { --sp-4xl: 4rem; --sp-3xl: 3rem; }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }

  .mass-times-grid,
  .features-grid,
  .apostolate-grid,
  .patron-grid,
  .renovation-grid { grid-template-columns: repeat(2, 1fr); }

  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .world-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: auto; }
  .split-grid { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .apostolate-detail { grid-template-columns: 1fr; }
  .apostolate-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; width: 100%; }
}

/* Small (<=480px) */
@media (max-width: 480px) {
  :root { --sp-4xl: 3rem; --sp-3xl: 2rem; --header-h: 64px; }
  body { font-size: var(--fs-sm); }
  .container { padding-inline: var(--sp-md); }
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }

  .mass-times-grid,
  .features-grid,
  .apostolate-grid,
  .video-grid,
  .patron-grid,
  .renovation-grid { grid-template-columns: 1fr; }

  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 85vh; min-height: 85dvh; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; width: 100%; max-width: 280px; }
  .back-to-top { right: var(--sp-md); bottom: var(--sp-md); width: 42px; height: 42px; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .bulletin-download { display: none; }
}

/* --------------------------------------------------------------------------
   28. Print & Reduced Motion
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .back-to-top, .cookie-banner,
  .search-overlay, .mobile-overlay, .hero-btns,
  .newsletter-section, .burger { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .hero { min-height: auto; color: #000; }
  .hero-bg, .hero-overlay { display: none; }
  .hero h1 { color: #000; text-shadow: none; }
  a { color: #000; text-decoration: underline; }
  * { box-shadow: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .hero-inner { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   29. Accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -100%; left: var(--sp-md);
  z-index: 9999;
  background: var(--burgundy);
  color: #fff;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   30. Mobile Overflow Fix
   -------------------------------------------------------------------------- */
/* Clip any overflow from reveal animations and absolute elements */
.mass-times, .features, .about-preview, .apostolate-preview,
.quote-section, .newsletter-section, .video-section,
.bulletin-section, .patron-section, .renovation-section,
.contact-section, .world-section, .page-hero {
  overflow: hidden;
}
/* Prevent mass time text from overflowing on small screens */
.mass-card-time { word-break: break-word; text-align: right; }
