:root {
  --green: #338546;
  --green-bright: #54cd38;
  --blue: #3474b5;
  --teal: #29768f;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --max: 1170px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 "Lato", "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: "Montserrat", sans-serif; line-height: 1.3; color: #222; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Service countdown ribbon */
.service-ribbon { background: var(--blue); color: #fff; font-size: 15px; }
.service-ribbon.is-live { background: #c62828; }
.ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.ribbon-count { font-variant-numeric: tabular-nums; }
.ribbon-when { opacity: .85; }
.ribbon-links { display: inline-flex; gap: 8px; }
.ribbon-links[hidden], .service-ribbon [hidden] { display: none; }
.ribbon-links a { color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; padding: 2px 12px; font-weight: 700; }
.ribbon-links a:hover { background: #fff; color: #c62828; text-decoration: none; }
.live-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #fff; vertical-align: middle; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; gap: 24px; }
.logo img { display: block; width: 250px; max-width: 60vw; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 10px 14px; color: #333;
  font: 700 12px/1.4 "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .5px;
}
.site-nav a:hover, .site-nav li.active > a { color: var(--green); text-decoration: none; }
.site-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
  list-style: none; margin: 0; padding: 6px 0; background: #fff;
  border-top: 3px solid var(--green); box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.site-nav ul ul ul { top: -9px; left: 100%; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.site-nav ul ul a { text-transform: none; font-weight: 400; font-size: 14px; font-family: "Lato", sans-serif; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.visually-hidden) { display: block; width: 26px; height: 3px; margin: 5px 0; background: #333; border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; }
  .site-nav ul ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
}

/* Page headline */
.headline { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.headline h1 { margin: 0; padding: 34px 0; font-size: 30px; font-weight: 400; }

/* Content */
.content { padding-top: 32px; padding-bottom: 56px; }
.content.page h1, .content.page h2, .content.page h3, .content.page h4 { text-align: center; }
.content.page h4 { font-family: "Lato", sans-serif; font-weight: 400; font-size: 19px; }
.content.post { max-width: 820px; }
.content p img { margin: 8px 0; }
.content .embed { position: relative; margin: 24px 0; aspect-ratio: 16 / 9; }
.content .embed iframe, .content .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content table { border-collapse: collapse; width: 100%; }
.content td, .content th { border: 1px solid var(--line); padding: 8px; }
.content blockquote { margin: 24px 0; padding: 4px 20px; border-left: 4px solid var(--green); font-family: "Lora", serif; font-style: italic; color: #444; }
.paypal { text-align: center; margin: 24px 0; }

/* Posts */
.post-meta { color: var(--muted); font-size: 14px; }
.post-card { display: grid; grid-template-columns: 300px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-card:not(:has(.thumb)) { grid-template-columns: 1fr; }
.post-card .thumb img { display: block; width: 100%; aspect-ratio: 42 / 33; object-fit: cover; border-radius: 3px; }
.post-card h3 { margin: 0 0 8px; font-size: 22px; }
.post-card h3 a { color: #222; }
.more-link { display: inline-block; font: 700 12px "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.post-nav, .pagination { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; gap: 14px; } }

/* Home */
.slider { position: relative; max-width: 1280px; margin: 0 auto; aspect-ratio: 1280 / 650; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; right: 8%; bottom: 14%; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cap { color: #fff; font: 300 clamp(26px, 4.4vw, 56px)/1.15 "Lato", sans-serif; padding: 2px 14px; border-radius: 4px; }
.cap-0 { background: var(--green-bright); }
.cap-1 { background: var(--teal); }
.slider button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.slider button:hover { background: rgba(0,0,0,.6); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.slider .slider-dots button {
  position: static; transform: none; width: 24px; height: 24px; padding: 0;
  background: transparent; border-radius: 50%;
}
.slider .slider-dots button::before {
  content: ""; display: block; width: 12px; height: 12px; margin: auto; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
.slider .slider-dots button:hover { background: transparent; }
.slider .slider-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
.slider button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.tagline h2 { text-align: center; font-size: clamp(24px, 3.4vw, 34px); margin: 48px 0 32px; }
.cs-green { color: var(--green); }
.cs-blue { color: var(--blue); }

.worship-band { background: linear-gradient(120deg, var(--green), var(--blue)); color: #fff; text-align: center; padding: 44px 0; }
.worship-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(26px, 4vw, 40px); }
.worship-band p { margin: 0; font-size: 20px; }

.latest { padding-top: 40px; padding-bottom: 32px; }
.section-title { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 16px; color: var(--muted); }
.more { text-align: center; margin-top: 28px; }
.button { display: inline-block; padding: 12px 26px; background: var(--green); color: #fff; border-radius: 3px; font: 700 13px "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.button:hover { background: var(--blue); color: #fff; text-decoration: none; }

.info-band { background: var(--bg-soft); padding: 48px 0; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.info-box { text-align: center; }
.info-box h4 { text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 8px; }
.info-box p { margin: 0 0 8px; color: #444; font-size: 15px; }
.icon { width: 52px; height: 52px; margin: 0 auto; background-color: var(--green); border-radius: 50%; -webkit-mask: var(--i) center / 60% no-repeat; mask: var(--i) center / 60% no-repeat; }
.icon-clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 10.4l3.5 2-1 1.7L11 13V6h2z'/%3E%3C/svg%3E"); }
.icon-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z'/%3E%3C/svg%3E"); }
.icon-kids { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='5' r='2.5'/%3E%3Ccircle cx='16.5' cy='7' r='2'/%3E%3Cpath d='M5 9h6l-1 6v7H7v-6H5zm9 2h5l-1 5v6h-3v-6h-1z'/%3E%3C/svg%3E"); }
.icon-shirt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3l4 2 4-2 6 4-3 4-2-1v11H7V10l-2 1-3-4z'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

.watch { text-align: center; padding: 48px 16px 56px; }
.watch-button { display: inline-flex; align-items: center; gap: 14px; font: 700 20px "Montserrat", sans-serif; color: #1d64c5; }
.watch-button .play { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1d64c5; color: #fff; font-size: 20px; padding-left: 4px; }

/* Footer */
.site-footer { background: #222; color: #bbb; padding-top: 44px; font-size: 15px; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; margin-top: 0; }
.site-footer a { color: #ddd; }
.footer-inner { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px; }
.footer-logo { background: #fff; padding: 8px 12px; border-radius: 3px; }
.social { display: flex; gap: 14px; }
.copyright { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; padding-bottom: 20px; font-size: 13px; color: #888; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer .nl-footer .nl-title { color: #fff; }
