:root {
  --header-height: 80px;
  --green: #0f5633;
  --green-dark: #0b3f26;
  --gold: #d8bb64;
  --text: #1f2a24;
  --muted: #66736b;
  --light: #f7f7f4;
  --white: #ffffff;
  --shadow: 0 14px 28px rgba(15, 86, 51, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-light {
  background: #fff;
  color: var(--green);
  margin-top: 14px;
}

.link-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 34px;
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: #253027;
}

/* ── Hero ── */

.hero {
  position: relative;
}

/* ── Hero Swiper ── */

.hero-swiper {
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  position: relative;
}

.hero-swiper::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(transparent, rgba(247, 247, 244, 0.98));
  pointer-events: none;
  z-index: 10;
}

.hero-swiper .swiper-slide {
  position: relative;
  height: 100%;
  color: var(--white);
  display: flex;
  align-items: center;
}

.slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.33), rgba(0, 0, 0, 0.44));
  z-index: 1;
}

.slide-bg img,
.slide-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper navigation & pagination */

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.2s;
  z-index: 12;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  opacity: 1;
}

.hero-swiper .swiper-pagination {
  z-index: 12;
}

.hero-swiper .swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.6;
  width: 10px;
  height: 10px;
  transition: background 0.2s, opacity 0.2s;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--gold);
  opacity: 1;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(16px, calc((100% - 1120px) / 2));
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(15, 86, 51, 0.9);
  backdrop-filter: blur(6px);
  color: var(--white);
}

.logo {
  width: 86px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  flex: 0 0 auto;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.menu > li { position: relative; padding: 10px 0; }

.menu a {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.menu > li:hover > a,
.menu a:focus {
  color: var(--gold);
  opacity: 1;
}

/* WordPress uses .sub-menu for dropdown lists */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  padding: 18px 20px;
  list-style: none;
  background: rgba(222, 235, 238, 0.82);
  color: var(--white);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
  text-transform: none;
  font-size: 20px;
  font-weight: 500;
}

.sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(222, 235, 238, 0.82);
}

.menu > li:hover > .sub-menu,
.menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sub-menu li + li { margin-top: 8px; }

.sub-menu a {
  display: block;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sub-menu a:hover,
.sub-menu a:focus {
  color: var(--gold);
}

/* Nested sub-menu (second level) */
.sub-menu .sub-menu {
  top: -14px;
  left: calc(100% + 16px);
  min-width: 260px;
  font-size: 16px;
}

.sub-menu .sub-menu::before {
  top: 22px;
  left: -10px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid rgba(222, 235, 238, 0.82);
  border-left: 0;
}

/* WordPress uses .menu-item-has-children for items with sub-menus */
.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.sub-menu .menu-item-has-children > a::after {
  float: right;
  margin-top: 8px;
  transform: rotate(-45deg);
}

/* ── Hero content ── */

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 430px;
  text-align: center;
  padding-top: var(--header-height);
  width: 100%;
}

.hero h1 {
  max-width: 920px;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0,0,0,0.38);
}

.hero p {
  margin: 16px auto 24px;
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 500;
}

/* ── Quick cards ── */

.quick-cards {
  margin-top: -62px;
  position: relative;
  z-index: 4;
  padding-bottom: 56px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.quick-card {
  min-height: 188px;
  padding: 34px 24px 28px;
  text-align: center;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.quick-card::before {
  content: "";
  width: 70px;
  height: 46px;
  position: absolute;
  top: 16px;
  right: 20px;
  opacity: 0.35;
  background:
    linear-gradient(135deg, transparent 45%, var(--gold) 46% 55%, transparent 56%),
    linear-gradient(45deg, transparent 45%, var(--gold) 46% 55%, transparent 56%);
}

.quick-card h2 {
  margin-top: 14px;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  line-height: 1;
  color: var(--green-dark);
  text-transform: uppercase;
}

.quick-card p {
  margin: 12px auto 18px;
  max-width: 270px;
  font-size: 14px;
  color: var(--muted);
}

/* ── Sections ── */

section { padding: 54px 0; }

/* ── Activities ── */

.activities { background: var(--white); }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 54px;
}

.activity-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}

.thumb {
  min-height: 105px;
  background: linear-gradient(135deg, #293b52, #b48b3a);
  border-radius: 2px;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.activity-card h3 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green-dark);
}

.activity-card p {
  margin-top: 6px;
  font-size: 14px;
  color: #4d5a52;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

/* ── Sacraments ── */

.sacraments { background: #faf9f7; }

.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 48px;
  text-align: center;
}

.sacrament-frame {
  filter: drop-shadow(0 0 10px rgba(216, 187, 100, 0.7));
}

.sacrament-shape {
  clip-path: polygon(
    0 0,
    calc(100% - 28px) 10px, 100% 28px,
    100% 100%, 0 100%
  );
  overflow: hidden;
}

.sacrament img,
.sacrament-placeholder {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.sacrament-placeholder {
  background: linear-gradient(135deg, var(--green-dark), var(--gold));
}

.sacrament span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

/* ── Communities ── */

.communities { background: var(--white); }

.community-list {
  display: grid;
  gap: 18px;
}

.community-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  box-shadow: 9px 9px 18px rgba(15, 86, 51, 0.22);
  border-right: 8px solid var(--green);
}

.community-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.community-body { padding: 22px 28px; }

.community-body h3 {
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.1;
}

.community-body p {
  margin-top: 7px;
  font-size: 14px;
  color: #3d4b43;
}

.community-body strong { color: #1f2a24; }

/* ── Footer ── */

.footer {
  padding: 56px 0 46px;
  color: var(--white);
  background: var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 50px;
}

.footer h2,
.footer h3 {
  font-family: "Playfair Display", serif;
  text-decoration: underline;
}

.footer h2 {
  margin-bottom: 16px;
  font-size: 34px;
}

.footer p,
.footer li {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  font-weight: 700;
}

.contact-line span:first-child {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
}

.footer-map {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.footer-links ul {
  list-style: none;
  margin-top: 10px;
}

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

/* ── Inner pages ── */

.page-spacer { height: var(--header-height); }

.page-content { padding: 54px 0; }

.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.page-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 780px;
}

.page-body h2,
.page-body h3 {
  font-family: "Playfair Display", serif;
  color: var(--green-dark);
  margin: 28px 0 12px;
}

.page-body p { margin-bottom: 16px; }

.post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.single-thumb {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
}

.single-thumb img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.mt-16 { margin-top: 16px; }

/* ── Social links ── */

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.social-link--facebook  { background: #1877f2; }
.social-link--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
