:root {
  --ink: #172127;
  --muted: #5e6b73;
  --paper: #fbfaf6;
  --wash: #f0eee6;
  --line: rgba(23, 33, 39, 0.12);
  --red: #9f2d2d;
  --red-dark: #712020;
  --blue: #1f5f78;
  --gold: #c99a45;
  --green: #4b6f53;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 33, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active,
.subpage .site-header {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 12px 40px rgba(23, 33, 39, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
}

.nav-action {
  padding: 0 18px;
  color: var(--white);
  background: var(--red);
}

.site-header:not(.is-scrolled):not(.menu-active) .nav-action {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.subpage .site-header:not(.is-scrolled):not(.menu-active) .nav-action {
  background: var(--red);
  border: 0;
}

.site-nav [aria-current="page"] {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 160px clamp(20px, 5vw, 72px) 40px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 19, 25, 0.82), rgba(10, 19, 25, 0.44) 48%, rgba(10, 19, 25, 0.15)),
    linear-gradient(0deg, rgba(10, 19, 25, 0.5), rgba(10, 19, 25, 0.06) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker,
.card-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 150px;
  padding: 0 22px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(113, 32, 32, 0.25);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.quick-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(860px, 100%);
  margin-top: 70px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.quick-panel div {
  min-height: 104px;
  padding: 20px;
}

.quick-panel span,
.notice-band span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.notice-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--red-dark);
  color: var(--white);
}

.notice-band a {
  min-height: 116px;
  padding: 26px clamp(20px, 3vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.notice-band strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}

.section,
.split-section,
.contact-section,
.bulletin-band {
  padding: clamp(64px, 8vw, 118px) clamp(20px, 5vw, 72px);
}

.page-hero {
  display: grid;
  min-height: 500px;
  padding: 150px clamp(20px, 5vw, 72px) 76px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 33, 39, 0.88), rgba(23, 33, 39, 0.58)),
    url("https://masstimesusa.com/wp-content/uploads/2025/12/929-Granada-Hills-St.-John-Baptist-de-la-Salle.jpg") center / cover;
}

.page-hero.compact-hero {
  min-height: 460px;
  background:
    linear-gradient(90deg, rgba(113, 32, 32, 0.92), rgba(31, 95, 120, 0.68)),
    url("https://images.unsplash.com/photo-1514896856000-91cb6de818e0?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.page-hero > div {
  align-self: end;
  width: min(850px, 100%);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.intro-section {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  max-width: 1180px;
}

.intro-grid p,
.split-copy p,
.ministry-grid p,
.office-hours {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin-bottom: 34px;
}

.text-link {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.schedule-section {
  background: var(--wash);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
}

.schedule-card,
.ministry-grid article {
  min-height: 292px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 39, 0.06);
}

.schedule-card.featured {
  color: var(--white);
  background: var(--blue);
}

.schedule-card ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-card li {
  display: grid;
  gap: 4px;
}

.schedule-card li span {
  color: var(--muted);
}

.schedule-card.featured li span {
  color: rgba(255, 255, 255, 0.75);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  background: var(--paper);
}

.split-copy {
  max-width: 640px;
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-list a {
  display: block;
  padding: 24px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--wash);
}

.action-list span {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-weight: 900;
}

.action-list strong {
  display: block;
  font-size: 1.05rem;
}

.ministries-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ed 100%);
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1180px;
}

.ministry-grid article {
  display: flex;
  flex-direction: column;
}

.ministry-grid a {
  margin-top: auto;
  color: var(--red);
  font-weight: 900;
}

.social-section {
  background: var(--wash);
}

.social-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
}

.social-tile {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 39, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-tile:hover {
  box-shadow: 0 18px 46px rgba(23, 33, 39, 0.11);
  transform: translateY(-3px);
}

.social-tile.facebook-tile {
  border-top-color: var(--blue);
}

.social-tile.youtube-tile {
  border-top-color: var(--red);
}

.social-tile span {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-tile h3 {
  margin-bottom: 8px;
}

.social-tile p {
  margin-top: 0;
  color: var(--muted);
}

.social-tile a {
  margin-top: auto;
  color: var(--red);
  font-weight: 900;
}

.bulletin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 18px;
  background: var(--paper);
}

.feature-panel,
.info-panel,
.mission-panel,
.resource-grid article,
.ministry-directory article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 39, 0.06);
}

.feature-panel {
  padding: clamp(30px, 5vw, 58px);
}

.feature-panel p,
.info-panel p,
.resource-grid p,
.ministry-directory p,
.mission-panel p,
.contact-cta p {
  color: var(--muted);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button.light {
  color: var(--ink);
  background: var(--wash);
}

.info-panel {
  align-self: stretch;
  padding: 30px;
  color: var(--white);
  background: var(--blue);
}

.info-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.info-panel a {
  display: block;
  margin: 22px 0 8px;
  font-size: 1.5rem;
  font-weight: 900;
}

.info-panel span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.archive-section,
.directory-section {
  background: var(--wash);
}

.recent-bulletins-section {
  background: var(--paper);
}

.resource-grid,
.ministry-directory,
.bulletin-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
}

.resource-grid article,
.ministry-directory article,
.bulletin-tile {
  min-height: 252px;
  padding: 26px;
}

.bulletin-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 39, 0.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bulletin-tile:hover,
.bulletin-tile:focus-visible {
  border-color: rgba(159, 45, 45, 0.42);
  box-shadow: 0 18px 46px rgba(23, 33, 39, 0.12);
  transform: translateY(-3px);
}

.resource-grid span,
.ministry-directory span,
.bulletin-tile span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-grid a,
.ministry-directory a,
.bulletin-tile strong {
  color: var(--red);
  font-weight: 900;
}

.bulletin-tile p {
  color: var(--muted);
}

.bulletin-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 39, 0.58);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.bulletin-modal {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.bulletin-modal h2 {
  margin-bottom: 10px;
}

.bulletin-modal p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--wash);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mission-panel {
  max-width: none;
  background: var(--paper);
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.mission-panel blockquote {
  max-width: 1000px;
  margin: 16px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1.05;
}

.mission-panel p {
  max-width: 760px;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(54px, 7vw, 90px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--green);
}

.contact-cta h2 {
  margin-bottom: 12px;
}

.contact-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.bulletin-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--white);
  background:
    linear-gradient(rgba(31, 95, 120, 0.9), rgba(31, 95, 120, 0.9)),
    url("https://images.unsplash.com/photo-1514896856000-91cb6de818e0?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.bulletin-band h2 {
  max-width: 820px;
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  background: var(--paper);
}

address {
  margin: 22px 0;
  color: var(--muted);
  font-style: normal;
}

address strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

address a {
  color: var(--red);
  font-weight: 900;
}

.map-wrap {
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.site-footer .social-links {
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.68;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1020px) {
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ministry-grid,
  .social-tile-grid,
  .resource-grid,
  .ministry-directory,
  .bulletin-tile-grid,
  .notice-band {
    grid-template-columns: 1fr;
  }

  .notice-band a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(251, 250, 246, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-action {
    margin-top: 4px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 124px;
  }

  .quick-panel,
  .intro-grid,
  .split-section,
  .bulletin-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-panel div {
    min-height: 86px;
  }

  .section-heading,
  .bulletin-band,
  .contact-cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer .social-links {
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding-bottom: 24px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .schedule-card,
  .ministry-grid article,
  .social-tile {
    min-height: 0;
  }
}
