/*
Theme Name: Aylmer CRC
Theme URI: https://aylmercrc.org
Author: Go Vertical Media Group
Author URI: https://govertical.media
Description: Custom, fully ACF-editable theme for Aylmer Christian Reformed Church. Classic PHP theme, no page builder, no framework. Built from the GVMG Client Theme Playbook.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acrc
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --acrc-teal:        #588b8b; /* primary text/link teal */
  --acrc-teal-dark:   #476f6f; /* link hover */
  --acrc-teal-accent: #6fa3a3; /* eyebrows, card hover bg */
  --acrc-teal-soft:   #85b4b4; /* icon ring, ministry hover overlay */
  --acrc-teal-announce:#4d7d7d;/* announcement bar */
  --acrc-teal-footer: #5f9494; /* footer bg */
  --acrc-teal-footer-border:#557f7f;
  --acrc-tan:         #9f7b6b; /* CTA / buttons */
  --acrc-tan-dark:    #876456; /* CTA hover */
  --acrc-live:        #ff5a5a; /* live-stream pulse dot */

  /* Neutrals */
  --acrc-ink:         #16181a; /* headings */
  --acrc-body:        #5a5f5f; /* body text */
  --acrc-muted-bg:    #f3f4f4; /* alternating section bg */
  --acrc-rule:        #e4e6e6; /* hairline rules */
  --acrc-white:       #ffffff;
  --acrc-footer-bar:  #5b5b5b; /* footer copyright bar */
  --acrc-hero-base:   #3f4242; /* hero fallback bg */

  /* Type */
  --acrc-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --acrc-h2:   2.441rem;

  /* Layout */
  --acrc-max:      1300px;
  --acrc-max-wide: 1440px;
  --acrc-max-narrow:1180px;
  --acrc-gutter:   2.5rem;

  /* Effects */
  --acrc-radius:   0.5rem;
  --acrc-radius-lg:0.75rem;
  --acrc-shadow:   0 4px 20px rgb(0 0 0 / 0.08);
  --acrc-shadow-hover: 0 16px 36px rgb(0 0 0 / 0.16);
  --acrc-pill:     9999px;
}

/* ============================================================
   2. BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--acrc-font);
  color: var(--acrc-body);
  background: var(--acrc-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acrc-teal); text-decoration: none; }
a:hover { color: var(--acrc-teal-dark); }
:focus-visible { outline: 3px solid var(--acrc-teal-accent); outline-offset: 2px; }
.acrc-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--acrc-white); color: var(--acrc-ink); padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--acrc-radius) 0; font-weight: 700;
}
.acrc-skip-link:focus { left: 0; }
.acrc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Image slot / placeholder helper */
.acrc-img { display: block; width: 100%; height: 100%; }
.acrc-img--cover { object-fit: cover; }
.acrc-img--contain { object-fit: contain; }
.acrc-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; height: 100%; min-height: 80px;
  background: repeating-linear-gradient(45deg, #eef0f0, #eef0f0 10px, #e7eaea 10px, #e7eaea 20px);
  color: #8a9090; font-size: 0.8rem; font-weight: 600; padding: 0.5rem;
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.acrc-wrap { max-width: var(--acrc-max); margin: 0 auto; padding: 0 var(--acrc-gutter); }
.acrc-wrap--wide { max-width: var(--acrc-max-wide); }
.acrc-wrap--narrow { max-width: var(--acrc-max-narrow); }
.acrc-section { padding: 6rem 0; }
.acrc-section--muted { background: var(--acrc-muted-bg); }
.acrc-eyebrow {
  text-transform: uppercase; font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.1em; color: var(--acrc-teal-accent);
}
.acrc-h2 { font-weight: 700; font-size: var(--acrc-h2); color: var(--acrc-ink); margin-top: 0.5rem; line-height: 1.15; }
.acrc-head-center { text-align: center; }
.acrc-body { font-size: 1rem; line-height: 1.6; color: var(--acrc-body); }

/* Buttons */
.acrc-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--acrc-tan); color: var(--acrc-white);
  text-transform: uppercase; font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.08em; padding: 0.85rem 2rem; border-radius: var(--acrc-pill);
  border: 0; cursor: pointer; transition: background 0.25s ease, transform 0.25s ease;
}
.acrc-btn:hover { background: var(--acrc-tan-dark); color: var(--acrc-white); transform: translateY(-2px); }
.acrc-btn--sm { font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.5rem 1rem; }

/* ============================================================
   4. ANNOUNCEMENT BAR
   ============================================================ */
.acrc-announce {
  background: var(--acrc-teal-announce); color: var(--acrc-white);
  text-align: center; padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap;
}
.acrc-announce a { color: var(--acrc-white); text-decoration: underline; font-weight: 700; }

/* ============================================================
   5. HEADER / NAV (overlays hero)
   ============================================================ */
.acrc-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  padding: 1.75rem 0; pointer-events: none;
}
.acrc-header__inner {
  max-width: var(--acrc-max-wide); margin: 0 auto; padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.acrc-header__spacer { width: 150px; flex: none; }
.acrc-nav { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: center; pointer-events: auto; }
.acrc-nav a {
  color: var(--acrc-white); text-transform: uppercase; font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.12em; position: relative;
}
.acrc-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--acrc-white); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.acrc-nav a:hover::after, .acrc-nav a[aria-current="page"]::after { transform: scaleX(1); }
.acrc-header__actions { flex: none; display: flex; gap: 1.25rem; align-items: center; pointer-events: auto; }
.acrc-live {
  display: flex; align-items: center; gap: 0.5rem; background: var(--acrc-tan);
  color: var(--acrc-white); text-transform: uppercase; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; padding: 0.6rem 1.35rem; border-radius: var(--acrc-pill);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.acrc-live:hover { background: var(--acrc-tan-dark); color: var(--acrc-white); transform: translateY(-2px); box-shadow: 0 6px 16px rgb(0 0 0 / 0.18); }
.acrc-live__dot {
  width: 9px; height: 9px; border-radius: var(--acrc-pill); background: var(--acrc-live);
  display: inline-block;
}
.acrc-header__icons { display: flex; gap: 1.1rem; align-items: center; }
.acrc-header__icons a { color: var(--acrc-white); display: inline-flex; transition: transform 0.25s ease, opacity 0.25s ease; }
.acrc-header__icons a:hover { transform: translateY(-2px); opacity: 0.82; }
.acrc-header__icons svg { display: block; }

@keyframes acrc-livepulse {
  0% { box-shadow: 0 0 0 0 rgba(255,90,90,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,90,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,90,0); }
}
@media (prefers-reduced-motion: no-preference) {
  .acrc-live__dot { animation: acrc-livepulse 1.6s ease-out infinite; }
}

/* Logo box: white card flush to top-left, overlapping hero */
.acrc-logo-box {
  position: absolute; top: 0; z-index: 45; background: var(--acrc-white);
  /* Align to the left edge of the centered max-width band; never past 2.5rem on narrow screens. */
  left: max(2.5rem, calc(50% - (var(--acrc-max-wide) / 2) + 2.5rem));
  border-radius: 0 0 8px 8px; box-shadow: 0 4px 20px rgb(0 0 0 / 0.12); padding: 1rem;
  pointer-events: auto;
}
.acrc-logo-box__img { width: 120px; height: 120px; }
.acrc-logo-box__img .acrc-img { object-fit: contain; }

/* Sticky solid header variant (added by JS on scroll) */
.acrc-header.is-solid {
  position: fixed; top: 0; background: var(--acrc-teal-footer); padding: 0.85rem 0;
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.18); animation: acrc-slidedown 0.3s ease;
}
@keyframes acrc-slidedown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Offset fixed elements below the WordPress admin toolbar when logged in */
body.admin-bar .acrc-header.is-solid,
body.admin-bar .acrc-mobile-panel { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .acrc-header.is-solid,
  body.admin-bar .acrc-mobile-panel { top: 46px; }
}

/* Mobile menu toggle (hidden on desktop) */
.acrc-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: 0; cursor: pointer;
  pointer-events: auto; padding: 0;
}
.acrc-burger span { display: block; width: 26px; height: 2px; background: var(--acrc-white); transition: transform 0.3s ease, opacity 0.3s ease; margin: 0 auto; }
.acrc-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.acrc-burger.is-open span:nth-child(2) { opacity: 0; }
.acrc-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.acrc-mobile-panel {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--acrc-teal-footer); padding: 5rem 1.5rem 2rem;
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0.35rem;
  transform: translateY(-100%); transition: transform 0.35s ease; visibility: hidden;
}
.acrc-mobile-panel.is-open { transform: translateY(0); visibility: visible; }
.acrc-mobile-panel a {
  color: var(--acrc-white); text-transform: uppercase; font-weight: 600;
  letter-spacing: 0.08em; padding: 0.85rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.acrc-mobile-panel .acrc-live { margin-top: 1.25rem; justify-content: center; }
.acrc-mobile-close {
  position: absolute; top: 1.1rem; right: 1.25rem; width: 40px; height: 40px;
  background: transparent; border: 0; color: var(--acrc-white); font-size: 2rem; line-height: 1; cursor: pointer;
}
body.acrc-noscroll { overflow: hidden; }

/* ============================================================
   6. HERO
   ============================================================ */
.acrc-hero {
  position: relative; overflow: visible; background: var(--acrc-hero-base);
}
.acrc-hero--home { height: 70vh; min-height: 600px; }
.acrc-hero--interior { height: 45vh; min-height: 400px; }
.acrc-hero__media { position: absolute; inset: 0; overflow: hidden; }
.acrc-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.acrc-hero__slide:first-child, .acrc-hero__slide.is-active { opacity: 1; }
.acrc-hero__overlay { position: absolute; inset: 0; background: #131515; opacity: 0.38; pointer-events: none; }
.acrc-hero__title-wrap {
  position: absolute; inset: 0; z-index: 15; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 0 1.5rem; pointer-events: none;
}
.acrc-hero__title {
  color: var(--acrc-white); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.0; font-size: clamp(3rem, 7.5vw, 6rem);
}
.acrc-hero__title span { display: block; }

/* ============================================================
   7. FEATURE CARDS (home) — overlap the hero
   ============================================================ */
.acrc-features {
  max-width: var(--acrc-max); margin: -96px auto 0; padding: 0 var(--acrc-gutter);
  position: relative; z-index: 30;
}
.acrc-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.acrc-fcard {
  display: flex; flex-direction: column; background: var(--acrc-white);
  border-radius: var(--acrc-radius); box-shadow: var(--acrc-shadow);
  padding: 1.6rem 1.6rem 1.75rem;
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.acrc-fcard__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.acrc-fcard__title { font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; letter-spacing: 0.01em; color: var(--acrc-teal); transition: color 0.35s ease; }
.acrc-fcard__icon { flex: none; width: 44px; height: 44px; }
.acrc-fcard__rule { height: 1px; background: var(--acrc-rule); margin: 1rem 0 0.85rem; transition: background 0.35s ease; }
.acrc-fcard__body { font-size: 0.875rem; line-height: 1.55; color: var(--acrc-body); transition: color 0.35s ease; }
.acrc-fcard.is-active { background: var(--acrc-teal-accent); transform: translateY(-10px); box-shadow: var(--acrc-shadow-hover); }
.acrc-fcard.is-active .acrc-fcard__title { color: var(--acrc-white); }
.acrc-fcard.is-active .acrc-fcard__body { color: rgba(255,255,255,0.92); }
.acrc-fcard.is-active .acrc-fcard__rule { background: rgba(255,255,255,0.35); }

/* ============================================================
   8. ABOUT (image + vision/mission) — shared row pattern
   ============================================================ */
.acrc-about__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 3.5rem; align-items: center; }
.acrc-about__media { border-radius: var(--acrc-radius); overflow: hidden; aspect-ratio: 4/5; }
.acrc-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.75rem; }
.acrc-vm__label { font-weight: 600; color: var(--acrc-teal-accent); font-size: 1.05rem; margin-bottom: 0.5rem; }
.acrc-vm__text { font-size: 1rem; line-height: 1.6; color: var(--acrc-body); }

/* Generic split row (About page rows) */
.acrc-row { display: grid; gap: 3.5rem; align-items: center; }
.acrc-row--4x5 { grid-template-columns: 0.92fr 1.08fr; }
.acrc-row--wide-left { grid-template-columns: 1.1fr 0.9fr; }
.acrc-row__media { border-radius: var(--acrc-radius); overflow: hidden; }
.acrc-row__media--4x5 { aspect-ratio: 4/5; }
.acrc-row__media--16x11 { aspect-ratio: 16/11; }

/* ============================================================
   9. MINISTRY CARDS (home)
   ============================================================ */
.acrc-mins__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: end; margin-top: 3rem; }
.acrc-mcard {
  position: relative; border-radius: var(--acrc-radius-lg); overflow: hidden; height: 380px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.acrc-mcard__overlay {
  position: absolute; inset: 0; pointer-events: none; transition: background 0.4s ease, opacity 0.4s ease;
  background: linear-gradient(to top, rgba(19,21,21,0.8) 0%, rgba(19,21,21,0.15) 55%, rgba(19,21,21,0) 100%);
}
.acrc-mcard__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; pointer-events: none; }
.acrc-mcard__title { color: var(--acrc-white); font-weight: 700; font-size: var(--acrc-h2); line-height: 1; }
.acrc-mcard__text { color: rgba(255,255,255,0.92); font-size: 0.9rem; line-height: 1.5; margin-top: 0.5rem; }
.acrc-mcard__btn {
  pointer-events: auto; display: inline-block; background: var(--acrc-tan); color: var(--acrc-white);
  text-transform: uppercase; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em;
  border-radius: var(--acrc-pill); opacity: 0; max-height: 0; margin-top: 0; padding: 0 1.4rem; overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin-top 0.35s ease, padding 0.35s ease;
}
.acrc-mcard.is-active { transform: translateY(-10px); box-shadow: 0 20px 42px rgb(0 0 0 / 0.28); }
.acrc-mcard.is-active .acrc-mcard__overlay { background: var(--acrc-teal-soft); opacity: 0.72; }
.acrc-mcard.is-active .acrc-mcard__btn { opacity: 1; max-height: 60px; margin-top: 1rem; padding: 0.75rem 1.4rem; }

/* ============================================================
   10. CALENDAR PLACEHOLDER
   ============================================================ */
.acrc-calendar { background: var(--acrc-white); padding: 9rem 0; display: flex; align-items: center; justify-content: center; }
.acrc-calendar__embed { width: 100%; }

/* ============================================================
   11. SERMONS
   ============================================================ */
.acrc-sermons__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.acrc-sermon { background: var(--acrc-white); border-radius: var(--acrc-radius); box-shadow: var(--acrc-shadow); overflow: hidden; display: block; }
.acrc-sermon:hover { color: inherit; }
.acrc-sermon__thumb { position: relative; aspect-ratio: 16/9; }
.acrc-sermon__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.acrc-sermon__play span {
  width: 54px; height: 54px; border-radius: var(--acrc-pill); background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease, background 0.25s ease;
}
.acrc-sermon:hover .acrc-sermon__play span { transform: scale(1.08); background: rgba(255,255,255,0.98); }
.acrc-sermon__title { text-align: center; font-weight: 700; font-size: 0.875rem; color: var(--acrc-ink); padding: 1rem 0.9rem; }

/* ============================================================
   12. GOOGLE REVIEWS
   ============================================================ */
.acrc-reviews__embed { margin-top: 3rem; }
.acrc-reviews__placeholder {
  margin-top: 3rem; border: 2px dashed #cbcece; border-radius: var(--acrc-radius); background: #f9fafa;
  min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.85rem; padding: 3rem 2rem; color: #9ea3a3;
}

/* ============================================================
   13. ABOUT PAGE — priorities + staff
   ============================================================ */
.acrc-pri__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; margin-top: 5rem; }
.acrc-pcard {
  position: relative; display: flex; flex-direction: column; background: var(--acrc-white);
  border-radius: var(--acrc-radius); box-shadow: var(--acrc-shadow); padding: 3.75rem 2rem 2.5rem;
  text-align: center; transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.acrc-pcard__ring {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px;
  border-radius: var(--acrc-pill); background: var(--acrc-white); border: 2px solid var(--acrc-teal-soft);
  display: flex; align-items: center; justify-content: center;
}
.acrc-pcard__ring > div { width: 48px; height: 48px; }
.acrc-pcard__title { font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1.2; color: var(--acrc-teal); transition: color 0.35s ease; }
.acrc-pcard__item { margin-top: 1.5rem; }
.acrc-pcard__item + .acrc-pcard__item { margin-top: 1.25rem; }
.acrc-pcard__label { font-weight: 600; font-size: 1.05rem; color: var(--acrc-ink); transition: color 0.35s ease; }
.acrc-pcard__body { font-size: 0.95rem; line-height: 1.55; color: var(--acrc-body); margin-top: 0.35rem; transition: color 0.35s ease; }
.acrc-pcard.is-active { background: var(--acrc-teal-accent); transform: translateY(-10px); box-shadow: var(--acrc-shadow-hover); }
.acrc-pcard.is-active .acrc-pcard__title { color: var(--acrc-white); }
.acrc-pcard.is-active .acrc-pcard__label { color: var(--acrc-white); }
.acrc-pcard.is-active .acrc-pcard__body { color: rgba(255,255,255,0.9); }

.acrc-staff__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; margin-top: 3rem; align-items: stretch; }
.acrc-staff { display: flex; flex-direction: column; background: var(--acrc-white); border-radius: var(--acrc-radius); box-shadow: var(--acrc-shadow); overflow: hidden; }
.acrc-staff__photo { aspect-ratio: 1/1; }
.acrc-staff__inner { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.35rem 1.5rem; }
.acrc-staff__name { font-weight: 700; font-size: 1.15rem; color: var(--acrc-ink); }
.acrc-staff__role { text-transform: uppercase; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--acrc-teal-accent); margin-top: 0.25rem; }
.acrc-staff__bio { font-size: 0.875rem; line-height: 1.55; color: var(--acrc-body); margin-top: 0.75rem; flex: 1; }
.acrc-staff__contacts { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--acrc-rule); }
.acrc-staff__contacts a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--acrc-teal); }
.acrc-staff__contacts svg { flex: none; }

/* ============================================================
   14. MINISTRIES PAGE — pills + group items
   ============================================================ */
.acrc-pills { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.acrc-pill-link { color: var(--acrc-white); font-weight: 700; font-size: 1.25rem; padding: 0.85rem 2.25rem; border-radius: var(--acrc-pill); transition: transform 0.2s ease, filter 0.2s ease; }
.acrc-pill-link:hover { color: var(--acrc-white); transform: translateY(-2px); filter: brightness(1.05); }
.acrc-pill-link--accent { background: var(--acrc-teal-accent); }
.acrc-pill-link--tan { background: var(--acrc-tan); }

.acrc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; margin-top: 3rem; }
.acrc-groups--youth { gap: 3rem; }
.acrc-group { display: flex; gap: 1.25rem; align-items: flex-start; }
.acrc-group--youth { gap: 1.5rem; }
.acrc-group--full { grid-column: 1 / -1; gap: 1.5rem; }
.acrc-group__media { flex: none; width: 150px; height: 105px; border-radius: var(--acrc-radius); overflow: hidden; }
.acrc-group__media--youth { width: 180px; height: 220px; }
.acrc-group__title { font-weight: 600; font-size: 1.25rem; color: var(--acrc-teal-accent); }
.acrc-group__text { font-size: 0.875rem; line-height: 1.55; color: var(--acrc-body); margin-top: 0.4rem; }
.acrc-group__email { margin-top: 0.75rem; }

/* ============================================================
   15. FOOTER
   ============================================================ */
.acrc-footer { background: var(--acrc-teal-footer); border-top: 6px solid var(--acrc-teal-footer-border); }
.acrc-footer__inner {
  max-width: var(--acrc-max-wide); margin: 0 auto; display: flex; align-items: stretch;
  justify-content: space-between; gap: 2.5rem; min-height: 300px; padding: 0 4rem;
}
.acrc-footer__logo { flex: none; align-self: flex-start; margin-top: -6px; background: var(--acrc-white); border-radius: 0 0 8px 8px; padding: 1.5rem; }
.acrc-footer__logo > div { width: 200px; height: 200px; }
.acrc-footer__contacts { display: grid; grid-template-columns: auto auto; gap: 2.5rem 5rem; color: var(--acrc-white); padding: 3rem 1rem 3rem 0; align-content: center; min-width: 0; }
.acrc-footer__label { text-transform: uppercase; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; }
.acrc-footer__value { font-weight: 600; font-size: 1.35rem; margin-top: 0.4rem; }
.acrc-footer__value a { color: var(--acrc-white); transition: opacity 0.2s ease; }
.acrc-footer__value a:hover { opacity: 0.78; }
.acrc-footer__bar { background: var(--acrc-footer-bar); color: var(--acrc-white); text-align: center; padding: 1.5rem; font-size: 1rem; font-weight: 600; line-height: 1.7; }
.acrc-footer__bar a { color: var(--acrc-white); text-decoration: underline; transition: opacity 0.2s ease; }
.acrc-footer__bar a:hover { opacity: 0.78; }

/* Back to top */
.acrc-totop {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; width: 46px; height: 46px;
  border-radius: var(--acrc-pill); background: var(--acrc-tan); color: var(--acrc-white); border: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.2);
}
.acrc-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   15b. HOVER STATES (pointer devices only)
   ============================================================ */
@media (hover: hover) {
  /* Parent selector raises specificity so the lift wins over .acrc-reveal.is-in { transform: none } */
  .acrc-features__grid .acrc-fcard:hover { background: var(--acrc-teal-accent); transform: translateY(-10px); box-shadow: var(--acrc-shadow-hover); }
  .acrc-fcard:hover .acrc-fcard__title { color: var(--acrc-white); }
  .acrc-fcard:hover .acrc-fcard__body { color: rgba(255,255,255,0.92); }
  .acrc-fcard:hover .acrc-fcard__rule { background: rgba(255,255,255,0.35); }

  .acrc-pri__grid .acrc-pcard:hover { background: var(--acrc-teal-accent); transform: translateY(-10px); box-shadow: var(--acrc-shadow-hover); }
  .acrc-pcard:hover .acrc-pcard__title { color: var(--acrc-white); }
  .acrc-pcard:hover .acrc-pcard__label { color: var(--acrc-white); }
  .acrc-pcard:hover .acrc-pcard__body { color: rgba(255,255,255,0.9); }

  .acrc-mins__grid .acrc-mcard:hover { transform: translateY(-10px); box-shadow: 0 20px 42px rgb(0 0 0 / 0.28); }
  .acrc-mcard:hover .acrc-mcard__overlay { background: var(--acrc-teal-soft); opacity: 0.72; }
  .acrc-mcard:hover .acrc-mcard__btn { opacity: 1; max-height: 60px; margin-top: 1rem; padding: 0.75rem 1.4rem; }
}

/* ============================================================
   15c. LIVE STREAM EMBED
   ============================================================ */
.acrc-live-embed {
  position: relative; width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--acrc-radius); overflow: hidden;
  box-shadow: var(--acrc-shadow); background: #000;
}
.acrc-live-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.acrc-live-offline {
  max-width: 720px; margin: 0 auto; padding: 3.5rem 2rem; border-radius: var(--acrc-radius);
  background: var(--acrc-muted-bg); border: 1px solid var(--acrc-rule);
}
.acrc-live-offline__badge {
  display: inline-block; text-transform: uppercase; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.1em; color: #fff; background: #9aa0a0; padding: 0.35rem 0.9rem; border-radius: var(--acrc-pill);
}
/* Live announcement bar variant */
.acrc-announce--live { background: #b23b3b; }
.acrc-announce__livedot {
  width: 9px; height: 9px; border-radius: var(--acrc-pill); background: #fff; display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .acrc-announce__livedot { animation: acrc-livepulse 1.6s ease-out infinite; }
}

/* ============================================================
   15d. VIDEO LIGHTBOX
   ============================================================ */
.acrc-lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(0,0,0,0.88);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.acrc-lightbox.is-open { opacity: 1; visibility: visible; }
.acrc-lightbox__inner { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; }
.acrc-lightbox__inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--acrc-radius); background: #000; }
.acrc-lightbox__close {
  position: absolute; top: -2.75rem; right: 0; width: 40px; height: 40px;
  background: transparent; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.acrc-lightbox__close:hover { opacity: 0.8; }
.acrc-sermon { cursor: pointer; }

/* ============================================================
   15e. WORSHIP ORDER
   ============================================================ */
.acrc-worship { max-width: 720px; margin: 0 auto; }
.acrc-worship__date { color: var(--acrc-teal-accent); font-weight: 600; font-size: 1.05rem; margin-top: 0.35rem; }
.acrc-worship__list { margin-top: 2.5rem; }
.acrc-worship__item { padding: 0.7rem 0; border-bottom: 1px solid var(--acrc-rule); }
.acrc-worship__item:last-child { border-bottom: 0; }
.acrc-worship__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.acrc-worship__name { font-weight: 600; color: var(--acrc-ink); }
.acrc-worship__item.is-stand .acrc-worship__name { color: var(--acrc-teal-dark); }
.acrc-worship__stand { color: var(--acrc-tan); font-size: 0.7em; margin-right: 0.15rem; vertical-align: 0.15em; }
.acrc-worship__detail { font-style: italic; color: var(--acrc-body); }
.acrc-worship__note { display: block; font-size: 0.85rem; color: #8a9090; margin-top: 0.2rem; }
.acrc-worship__liturgy {
  margin-top: 0.75rem; padding: 1rem 1.25rem; background: var(--acrc-muted-bg);
  border-radius: var(--acrc-radius); border-left: 3px solid var(--acrc-teal-accent);
  font-size: 0.95rem; line-height: 1.65;
}
.acrc-worship__liturgy p { margin: 0 0 0.35rem; }
.acrc-worship__liturgy p:last-child { margin-bottom: 0; }
.acrc-worship__liturgy strong { color: var(--acrc-teal); font-weight: 700; }
.acrc-worship__legend { text-align: center; font-size: 0.8rem; color: #8a9090; margin-top: 1.75rem; }
.acrc-worship__legend span { color: var(--acrc-tan); }
.acrc-worship__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--acrc-rule); text-align: center; color: var(--acrc-body); }
.acrc-worship__footer p { margin: 0.2rem 0; }

/* ============================================================
   16. SCROLL REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .acrc-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .acrc-reveal.is-in { opacity: 1; transform: none; }
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --acrc-gutter: 2rem; }
  .acrc-header__inner { padding: 0 2rem; }
  .acrc-sermons__grid { grid-template-columns: repeat(2, 1fr); }
  .acrc-staff__grid { grid-template-columns: repeat(2, 1fr); }
  .acrc-features__grid { grid-template-columns: 1fr; }
  .acrc-features { margin-top: -70px; }
  .acrc-mins__grid { grid-template-columns: 1fr; }
  .acrc-pri__grid { grid-template-columns: 1fr; gap: 4rem; }
  .acrc-pcard { padding-top: 3.5rem; }
}
@media (max-width: 900px) {
  .acrc-header__spacer { display: none; }
  .acrc-nav, .acrc-header__icons, .acrc-live { display: none; }
  .acrc-burger { display: flex; }
  .acrc-header__actions { gap: 0; }
  .acrc-about__grid, .acrc-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .acrc-groups { grid-template-columns: 1fr; }
  .acrc-group--full { grid-column: auto; }
  .acrc-footer__inner { flex-direction: column; align-items: center; text-align: center; padding: 0 1.5rem 2.5rem; gap: 1.5rem; }
  .acrc-footer__contacts { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 0 1rem; text-align: center; justify-items: center; }
  .acrc-logo-box { left: 1.25rem; padding: 0.75rem; }
  .acrc-logo-box__img { width: 84px; height: 84px; }
}
@media (max-width: 640px) {
  :root { --acrc-gutter: 1.25rem; --acrc-h2: 1.9rem; }
  .acrc-section { padding: 4rem 0; }
  .acrc-vm { grid-template-columns: 1fr; gap: 1.25rem; }
  .acrc-sermons__grid { grid-template-columns: 1fr; }
  .acrc-staff__grid { grid-template-columns: 1fr; }
  .acrc-group__media--youth { width: 130px; height: 160px; }
  .acrc-calendar { padding: 5rem 0; }
  .acrc-pills { gap: 0.75rem; }
  .acrc-pill-link { font-size: 1rem; padding: 0.7rem 1.5rem; }
}
