:root {
  --ink: #08344a;
  --ink-strong: #06293a;
  --sky: #0d91c4;
  --blue: #096ea3;
  --gold: #f0aa1c;
  --rose: #c72f54;
  --green: #49785e;
  --paper: #ffffff;
  --mist: #eef6f8;
  --line: #d9e7ec;
  --text: #263944;
  --muted: #667986;
  --danger: #8f1730;
  --success: #22663f;
  --shadow: 0 18px 45px rgba(6, 41, 58, 0.14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.5;
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(8, 52, 74, 0.12);
  backdrop-filter: blur(12px);
}

.utility-bar,
.main-nav,
.news-band,
.quick-services,
.schedule,
.media-section,
.archive-section,
.intro-band,
.narrow,
.dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.utility-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.utility-bar .spacer { flex: 1; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.social-icon-only {
  width: 30px;
  height: 30px;
  justify-content: center;
  gap: 0;
}

.social-icon-only span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.main-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  color: var(--ink);
}

.brand-logo {
  width: 54px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(6, 41, 58, 0.12));
}

.brand strong,
.brand small { display: block; }
.brand small {
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.button.small { min-height: 36px; padding: 0 14px; font-size: 0.82rem; }
.button-soft { color: #fff; background: var(--rose); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 30px rgba(9, 110, 163, 0.25); }
.button-outline { color: var(--blue); border-color: var(--blue); background: transparent; }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  padding: 10px;
  border: 0;
  background: var(--ink);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  min-height: clamp(680px, 88vh, 920px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 41, 58, 0.08) 5%, rgba(6, 41, 58, 0.84) 92%),
    linear-gradient(90deg, rgba(6, 41, 58, 0.72), rgba(6, 41, 58, 0.24) 58%, rgba(6, 41, 58, 0.1));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 54px;
  color: #fff;
  display: grid;
  justify-items: end;
  text-align: right;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}

.hero-actions,
.service-grid,
.media-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-actions a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.intro-band,
.news-band,
.quick-services,
.schedule,
.media-section {
  padding: 76px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.intro-band p:last-child {
  color: var(--muted);
  font-size: 1.2rem;
}

.section-heading { margin-bottom: 28px; }
.section-heading.centered { text-align: center; }

h1, h2, h3 { color: var(--ink); }
h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}
h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.2fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.placeholder-media {
  min-height: 240px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(240, 170, 28, 0.7), rgba(9, 110, 163, 0.88)),
    radial-gradient(circle at 30% 20%, #fff 0 8%, transparent 9%);
}

.featured-photo {
  width: 100%;
  min-height: 240px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.tag {
  margin: 0 0 8px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-card p:not(.tag),
.campaign-strip p,
.newsletter p,
.liturgy-card p { color: var(--muted); }

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--rose);
  font-weight: 900;
  text-transform: uppercase;
}

.heading-link {
  color: inherit;
}

.heading-link:hover,
.heading-link:focus-visible {
  color: var(--blue);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.campaign-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 41, 58, 0.94), rgba(9, 110, 163, 0.82)),
    linear-gradient(135deg, var(--ink), var(--green));
}

.campaign-strip h2,
.campaign-strip p { color: #fff; }
.campaign-strip p { margin-bottom: 0; }
.mass-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}
.mass-grid span {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}
.mass-grid strong {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.source-note {
  font-size: 0.9rem;
  color: var(--muted);
}
.campaign-strip .source-note {
  color: rgba(255, 255, 255, 0.78);
}

.liturgy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 38px;
  border-top: 4px solid #25a760;
  background: #fff;
  box-shadow: 0 18px 50px rgba(6, 41, 58, 0.1);
}

.liturgy-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.liturgy-topbar h2 {
  color: #25a760;
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
}

.liturgy-date-form {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  text-align: left;
}

.liturgy-date-form label {
  grid-column: 1 / -1;
  margin: 0;
}

.liturgy-date-form input {
  min-height: 42px;
}

.liturgy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 6px;
  color: #25a760;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.liturgy-title {
  margin-bottom: 8px;
  color: #8c7e5b;
  font-size: 1.35rem;
}

.liturgy-page .reference {
  margin-bottom: 24px;
}

.liturgy-page small {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.liturgy-readings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.liturgy-readings li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--mist);
  font-weight: 800;
}

.liturgy-card a {
  color: var(--blue);
  font-weight: 900;
}

.liturgy-carousel {
  display: grid;
  gap: 22px;
}

.liturgy-slides {
  min-height: 420px;
  display: grid;
}

.liturgy-slide {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 0 4px;
  border-top: 1px solid #ece7dd;
  background: #fff;
  text-align: left;
}

.liturgy-slide[hidden] {
  display: none;
}

.liturgy-slide .tag {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 1rem;
  text-transform: none;
}

.liturgy-slide p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

.liturgy-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.liturgy-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e9e2d6;
  border-radius: 0;
}

.liturgy-tabs button {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid #e9e2d6;
  color: #9a8e72;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.liturgy-tabs button:last-child {
  border-right: 0;
}

.liturgy-tabs button[aria-current="true"] {
  color: #fff;
  background: #8c7e5b;
}

.liturgy-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.liturgy-arrow:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.liturgy-full {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  text-align: left;
}

.liturgy-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.liturgy-section h3 {
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.liturgy-section p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.liturgy-page small,
.reference,
.muted {
  color: var(--muted);
}

.daily-liturgy-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 86px;
}

.daily-liturgy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.daily-liturgy-head h1 {
  margin: 0 0 12px;
  color: #25a760;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-style: italic;
  line-height: 1;
}

.daily-liturgy-head p:last-child {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.daily-liturgy-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid #25a760;
  background: #fff;
  box-shadow: 0 12px 34px rgba(6, 41, 58, 0.08);
}

.daily-liturgy-body {
  display: grid;
  gap: 34px;
}

.daily-liturgy-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.daily-liturgy-date {
  display: grid;
  gap: 8px;
  color: #25a760;
  font-weight: 900;
}

.daily-liturgy-date span {
  font-size: 1.45rem;
}

.daily-liturgy-date small {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.daily-liturgy-summary h2 {
  margin-bottom: 8px;
  color: #8c7e5b;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.daily-liturgy-summary p:last-child {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.daily-word {
  display: grid;
  gap: 22px;
}

.daily-word .liturgy-page {
  max-width: none;
  width: 100%;
  margin: 0;
}

.daily-reading {
  padding: 0 0 28px;
  border-bottom: 1px solid #ece7dd;
}

.daily-reading h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.08rem;
}

.daily-reading p {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

.daily-source {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.daily-source a {
  color: var(--blue);
  font-weight: 800;
}

.homily-box {
  padding: 28px 0 4px;
  border-top: 1px solid #ece7dd;
}

.homily-box h3 {
  margin-bottom: 12px;
  color: #8c7e5b;
  font-size: 1.35rem;
}

.homily-box p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.visit-zone {
  width: 100%;
  padding: 76px max(16px, calc((100% - 1180px) / 2));
  background: #f7fbfc;
}

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

.visit-grid > a {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(180deg, transparent, rgba(6, 41, 58, 0.84)),
    linear-gradient(135deg, var(--sky), var(--green));
}

.visit-grid > a small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.pastorais-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.pastorais-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.pastorais-page .section-heading p:last-child {
  max-width: 720px;
  color: var(--muted);
}

.pastorais-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pastoral-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.pastoral-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mist);
}

.pastoral-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 2rem;
  font-weight: 900;
}

.pastoral-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.pastoral-card p:not(.tag) {
  color: var(--muted);
}

.pastoral-card .button {
  margin-top: 8px;
}

.page-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.06);
}

.page-subnav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-subnav a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
}

.paroquia-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.paroquia-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.paroquia-page .section-heading > p:last-child {
  max-width: 780px;
  color: var(--muted);
}

.church-pyramid {
  padding: 22px 0 48px;
}

.pyramid-stack {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.pyramid-level {
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(6, 41, 58, 0.08);
}

.pyramid-level-1 { width: min(360px, 100%); border-top: 4px solid var(--gold); }
.pyramid-level-2 { width: min(520px, 100%); border-top: 4px solid var(--green); }
.pyramid-level-3 { width: min(700px, 100%); border-top: 4px solid var(--blue); }
.pyramid-level-4 { width: min(880px, 100%); border-top: 4px solid var(--rose); }

.pyramid-level h3 {
  font-size: 1.15rem;
}

.clergy-photo {
  width: 112px;
  height: 148px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  background: var(--mist);
}

.clergy-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 2rem;
  font-weight: 900;
}

.pyramid-level p:last-child {
  margin: 0;
  color: var(--muted);
}

.paroquia-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.paroquia-story,
.paroquia-pastorais {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.paroquia-story h2,
.paroquia-pastorais h2 {
  margin-bottom: 14px;
}

.paroquia-story p:not(.eyebrow),
.paroquia-pastorais p:not(.eyebrow) {
  color: var(--muted);
}

.historia-article {
  max-width: 820px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.historia-article p {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.85;
}

.history-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.history-timeline article {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.history-timeline time {
  display: block;
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-timeline h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.history-timeline p {
  color: var(--muted);
}

.priests-timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.priests-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 128px;
  width: 2px;
  background: var(--line);
}

.priest-entry {
  position: relative;
  display: grid;
  grid-template-columns: 96px 112px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.priest-period {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(6, 41, 58, 0.06);
  z-index: 1;
}

.priest-photo {
  width: 112px;
  height: 148px;
  border: 4px solid #fff;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  background: var(--mist);
  box-shadow: 0 10px 24px rgba(6, 41, 58, 0.12);
  z-index: 1;
}

.priest-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 2.2rem;
  font-weight: 900;
}

.priest-info {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.priest-info h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.priest-info p:not(.tag) {
  color: var(--muted);
}

.pastoral-disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.whatsapp-cta {
  gap: 8px;
  text-transform: none;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.capelas-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.capelas-page h1,
.capela-hero-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
}

.capelas-page .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
}

.capelas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.capela-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(6, 41, 58, 0.08);
}

.capela-card-banner {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
}

.capela-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 41, 58, 0.08), rgba(6, 41, 58, 0.82));
}

.capela-card-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.capela-card-banner span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.capela-card-body {
  padding: 24px;
}

.capela-card h2,
.capela-info-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.capela-card p,
.capela-info-card p {
  color: var(--muted);
}

.capela-times {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.capela-times span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfc;
  color: var(--text);
  font-weight: 800;
}

.capela-times strong {
  color: var(--ink);
}

.capela-hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.capela-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capela-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 76px;
  color: #fff;
}

.capela-hero-content h1 {
  max-width: 760px;
  color: #fff;
}

.capela-hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.capela-detail-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.capela-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
}

.capela-info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}

.capela-times-large span {
  padding: 14px;
  font-size: 1.05rem;
}

.capela-next {
  margin-top: 0;
}

.newsletter {
  grid-column: span 2;
  grid-row: span 2;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

textarea { resize: vertical; }
.checkbox {
  grid-template-columns: 20px 1fr;
  align-items: start;
}
.checkbox input { width: auto; min-height: 0; margin-top: 4px; }
.form-note {
  min-height: 24px;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.archive-section {
  padding: 76px 0;
}
.archive-section .section-heading p:last-child {
  max-width: 680px;
  color: var(--muted);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.archive-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 41, 58, 0.08);
}
.archive-card img,
.archive-card-fallback {
  width: 100%;
  height: 180px;
}
.archive-card img {
  object-fit: cover;
}
.archive-card-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.archive-card > div {
  padding: 18px;
}
.archive-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.archive-card h3 {
  min-height: 54px;
}
.archive-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.archive-source {
  margin-top: 24px;
}

.blog-list-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.blog-list-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.blog-list-page .section-heading p:last-child {
  max-width: 680px;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  color: var(--ink);
  font-weight: 900;
}

.pagination a,
.pagination span,
.pagination strong {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pagination a {
  color: var(--blue);
}

.pagination span {
  color: var(--muted);
}

.blog-post-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.blog-post-page header {
  margin: 20px 0 30px;
}

.blog-post-page time {
  display: block;
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-post-page h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.blog-post-cover {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.blog-post-content {
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.8;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: var(--radius);
}

.blog-post-content a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}

.blog-post-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: var(--mist);
}

.schedule {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.schedule .button {
  justify-self: start;
  grid-column: 1;
}

.event-list {
  grid-row: span 2;
  display: grid;
  gap: 12px;
}

.event-list a {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.event-list time {
  height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  text-transform: uppercase;
}

.event-list time strong {
  font-size: 1.55rem;
  line-height: 1;
}

.event-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.media-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.media-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-links a {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  background: var(--mist);
  text-align: center;
}

.media-links .social-link {
  display: flex;
  gap: 10px;
}

.media-links .social-icon {
  width: 24px;
  height: 24px;
}

.site-footer {
  color: #c9d9e2;
  background: var(--ink-strong);
  font-size: 0.92rem;
}

.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.05fr;
  gap: 40px;
  padding: 64px 0 56px;
}

.footer-title {
  margin: 0 0 28px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 22px;
}

.footer-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.footer-brand p {
  max-width: 260px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li { margin-top: 14px; }

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  color: #e4eef3;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: rotate(45deg);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 0 0 20px;
}

.footer-contact-item + .footer-contact-item {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-contact-item p {
  margin: 0;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  margin: 8px 0;
  color: #e4eef3;
  transition: color 0.2s ease;
}

.footer-social:hover,
.footer-social:focus-visible { color: var(--gold); }

.footer-social .social-icon {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 4px;
  background: #fff;
  box-sizing: content-box;
}

.footer-bottom-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  font-size: 0.86rem;
}

.footer-bottom a {
  color: #fff;
  font-weight: 800;
}

.footer-bottom a:hover { color: var(--gold); }

.auth {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 16px;
  background: var(--mist);
}

.panel,
.callout,
.notice {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth .panel { width: min(460px, 100%); }
.auth h1,
.narrow h1,
.dashboard h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.alert,
.success {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}
.alert { color: var(--danger); background: #fde7ec; }
.success { color: var(--success); background: #e2f4ea; }

.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 70px 0;
}
.dashboard aside {
  border-right: 1px solid var(--line);
  padding-right: 26px;
}
.dashboard-content > * { margin-bottom: 24px; }
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--mist);
  font-weight: 800;
}
.link-button {
  border: 0;
  background: none;
  color: var(--rose);
  padding: 20px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}
.radio {
  grid-template-columns: 20px 1fr;
  align-items: center;
  font-weight: 600;
}
.radio input { width: auto; min-height: 0; }

.narrow {
  max-width: 820px;
  min-height: 65vh;
  padding: 76px 0;
}
.narrow.wide { max-width: 1100px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.legal {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}
.legal h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}
.legal h2 {
  margin-top: 32px;
  font-size: 1.45rem;
}
.legal h3 {
  margin: 24px 0 8px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 8px 0;
}
.legal a {
  color: var(--blue);
  font-weight: 800;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  color: var(--ink);
  background: var(--mist);
  font-size: 0.86rem;
  text-transform: uppercase;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .utility-bar { display: none; }
  .menu-toggle { display: inline-block; }
  .main-nav { flex-wrap: wrap; }
  .nav-links {
    width: 100%;
    display: none;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.is-open { display: flex; }
  .hero-actions,
  .service-grid,
  .news-grid,
  .archive-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-card,
  .schedule,
  .media-section,
  .intro-band,
  .dashboard,
  .paroquia-sections {
    grid-template-columns: 1fr;
  }
  .visit-grid,
  .pastorais-grid,
  .history-timeline,
  .capelas-grid,
  .capela-info-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capela-info-card:first-child {
    grid-column: 1 / -1;
  }
  .newsletter { grid-column: 1 / -1; }
  .footer-grid { gap: 40px 32px; }
  .campaign-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .brand { min-width: 0; }
  .brand-logo {
    width: 42px;
    height: 58px;
  }
  .brand small { display: none; }
  .hero { min-height: 700px; }
  .hero-content {
    justify-items: start;
    text-align: left;
  }
  .hero-actions,
  .service-grid,
  .news-grid,
  .archive-grid,
  .liturgy-readings,
  .visit-grid,
  .pastorais-grid,
  .history-timeline,
  .capelas-grid,
  .capela-info-grid,
  .media-links,
  .footer-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .capela-info-card:first-child {
    grid-column: auto;
  }
  .capela-hero {
    min-height: 620px;
  }
  .pastoral-card {
    grid-template-columns: 76px 1fr;
    padding: 18px;
  }
  .pastoral-photo {
    width: 76px;
    height: 76px;
  }
  .featured-card,
  .panel,
  .callout,
  .notice {
    padding: 16px;
  }
  .liturgy-page {
    padding: 24px 18px;
  }
  .liturgy-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .liturgy-date-form {
    grid-template-columns: 1fr;
  }
  .daily-liturgy-head,
  .daily-liturgy-summary {
    grid-template-columns: 1fr;
  }
  .daily-liturgy-form {
    width: 100%;
  }
  .page-subnav a {
    flex: 1 1 100%;
  }
  .pyramid-level {
    width: 100%;
    text-align: left;
  }
  .priests-timeline::before {
    left: 55px;
  }
  .priest-entry {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .priest-period {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .priest-photo {
    width: 74px;
    height: 98px;
  }
  .liturgy-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .liturgy-tabs button:nth-child(2n) {
    border-right: 0;
  }
  .liturgy-slides,
  .liturgy-slide {
    min-height: 0;
  }
  .footer-grid { padding: 48px 0 40px; }
  .footer-title { margin-bottom: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
