/* ============================================================
   ORRVILLE C&MA CHURCH — SHARED STYLESHEET
   Bootstrap 5.3 + CSS3 Custom Properties
   File: cma.css
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  --cma-navy:    #1a2744;
  --cma-navy-dk: #111a2e;
  --cma-navy-md: #253560;
  --cma-gold:    #c8963e;
  --cma-gold-lt: #e8b96a;
  --cma-cream:   #f9f5ef;
  --cma-sand:    #ede6d8;
  --cma-text:    #2c2c2c;
  --cma-muted:   #6b6b6b;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --radius:      4px;
  --transition:  .25s ease;
}

/* ------------------------------------------------------------
   2. BASE & RESET
   ------------------------------------------------------------ */
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--sans);
  color: var(--cma-text);
  overflow-x: hidden;
  background: #fff;
}
img   { max-width: 100%; height: auto; }
a     { color: var(--cma-gold); transition: color var(--transition); }
a:hover { color: var(--cma-gold-lt); }

/* Keyboard navigation and skip link */
:focus-visible {
  outline: 3px solid var(--cma-gold-lt);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 2000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: #fff;
  color: var(--cma-navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   3. UTILITY CLASSES
   ------------------------------------------------------------ */
.bg-navy    { background-color: var(--cma-navy)    !important; }
.bg-navy-dk { background-color: var(--cma-navy-dk) !important; }
.bg-navy-md { background-color: var(--cma-navy-md) !important; }
.bg-cream   { background-color: var(--cma-cream)   !important; }
.bg-sand    { background-color: var(--cma-sand)    !important; }
.text-gold  { color: var(--cma-gold)    !important; }
.text-gold-lt { color: var(--cma-gold-lt) !important; }
.text-navy  { color: var(--cma-navy)    !important; }
.text-muted-cma { color: var(--cma-muted) !important; }
.font-serif { font-family: var(--serif) !important; }

/* Section eyebrow label */
.section-tag {
  display: inline-block;
  color: var(--cma-gold);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .8rem;
}
.section-tag.lt { color: var(--cma-gold-lt); }

/* Display heading */
.dh {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cma-navy);
}
.dh em       { font-style: italic; color: var(--cma-gold); }
.dh.light    { color: #fff; }
.dh.light em { color: var(--cma-gold-lt); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Published Google Doc bulletin: direct embed, no third-party proxy/parser. */
.bulletin-intro { color: var(--cma-muted); line-height: 1.65; }
.bulletin-document {
  display: block;
  width: 100%;
  min-height: 1450px;
  border: 1px solid var(--cma-sand);
  background: #fff;
}
@media (max-width: 767px) {
  .bulletin-document { min-height: 1100px; }
}

/* Gold divider line */
.gold-rule {
  border: none;
  border-top: 2px solid var(--cma-gold);
  width: 56px;
  margin: 1.25rem 0;
}
.gold-rule.center { margin-inline: auto; }

/* Lead paragraph */
.lead-cma {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cma-muted);
  font-weight: 300;
}

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn-gold {
  background: var(--cma-gold);
  color: var(--cma-navy);
  border: none;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 1.9rem;
  text-decoration: none;
  transition: background var(--transition), transform .15s;
  display: inline-block;
  cursor: pointer;
}
.btn-gold:hover { background: var(--cma-gold-lt); color: var(--cma-navy); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .78rem 1.9rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
  display: inline-block;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

.btn-navy {
  background: var(--cma-navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 1.9rem;
  text-decoration: none;
  transition: background var(--transition);
  display: inline-block;
  cursor: pointer;
}
.btn-navy:hover { background: var(--cma-navy-md); color: #fff; }

.btn-gold-border {
  background: transparent;
  color: var(--cma-gold-lt);
  border: 2px solid var(--cma-gold);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .8rem 1.9rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  display: inline-block;
}
.btn-gold-border:hover { background: var(--cma-gold); color: var(--cma-navy); }

.btn-outline-navy {
  background: transparent;
  color: var(--cma-navy);
  border: 2px solid var(--cma-navy);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  display: inline-block;
}
.btn-outline-navy:hover { background: var(--cma-navy); color: #fff; }

/* ------------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------------ */
#mainNav {
  /* Frosted-glass background lives on ::before, not on #mainNav itself.
     backdrop-filter (like transform) creates a new containing block for
     any position:fixed descendant — since the mobile nav drawer (#navMenu)
     is fixed-positioned and lives inside #mainNav, putting backdrop-filter
     directly on #mainNav would trap the drawer inside the navbar's own box
     instead of letting it cover the full viewport. Isolating the blur to a
     ::before layer avoids that entirely. (No position rule needed here —
     Bootstrap's .fixed-top class already makes #mainNav position:fixed,
     which is enough of a containing block for the ::before below. Adding
     "position: relative" directly on #mainNav would win over .fixed-top's
     "position: fixed" since an ID selector beats a class selector at equal
     specificity otherwise — so we deliberately leave position alone here.) */
  border-bottom: 1px solid rgba(255,255,255,.07);
}
#mainNav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26,39,68,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s;
  z-index: -1;
}

/* Cross logo mark */

#mainNav .nav-link {
  color: rgba(255,255,255,.82);
  font-size: .78rem; letter-spacing: .07em;
  text-transform: uppercase; font-weight: 500;
  padding: .4rem .85rem;
  transition: color var(--transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--cma-gold-lt); }

.btn-nav {
  background: var(--cma-gold); color: var(--cma-navy);
  font-size: .75rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: .45rem 1.1rem;
  border-radius: var(--radius); text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--cma-gold-lt); color: var(--cma-navy); }

#mainNav .navbar-toggler {
  border: 1px solid rgba(255,255,255,.25); padding: .3rem .55rem;
}
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C.85%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menus */
#mainNav .dropdown-menu {
  background: var(--cma-navy-dk);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  min-width: 200px;
  margin-top: .5rem;
}
#mainNav .dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .8rem; letter-spacing: .04em;
  padding: .55rem 1.25rem;
  transition: background var(--transition), color var(--transition);
}
#mainNav .dropdown-item:hover {
  background: rgba(200,150,62,.15);
  color: var(--cma-gold-lt);
}
#mainNav .dropdown-divider { border-color: rgba(255,255,255,.1); }

/* ------------------------------------------------------------
   6. PAGE HERO (inner pages — not video)
   ------------------------------------------------------------ */
.page-hero {
  position: relative;
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, var(--cma-navy) 0%, var(--cma-navy-md) 100%);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.page-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(26,39,68,.72), rgba(26,39,68,.82));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  color: var(--cma-gold-lt);
  font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 500;
  margin-bottom: 1rem; display: block;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; color: #fff; line-height: 1.1;
  margin-bottom: 1.2rem;
}
.page-hero h1 em { font-style: italic; color: var(--cma-gold-lt); }
.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem; line-height: 1.75; font-weight: 300;
  max-width: 580px; margin-inline: auto;
}

/* Breadcrumb */
.cma-breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: 2rem; justify-content: center;
  list-style: none; padding: 0; margin-bottom: 0;
}
.cma-breadcrumb li { font-size: .75rem; color: rgba(255,255,255,.55); }
.cma-breadcrumb li a { color: var(--cma-gold-lt); text-decoration: none; }
.cma-breadcrumb li a:hover { color: #fff; }
.cma-breadcrumb li + li::before {
  content: '/'; margin-right: .5rem; color: rgba(255,255,255,.3);
}

/* ------------------------------------------------------------
   7. SERVICE BAR
   ------------------------------------------------------------ */
#service-bar { background: var(--cma-navy); }

.svc-item {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.35rem 2.2rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 767px) {
  .svc-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    width: 100%;
  }
}
.svc-icon  { font-size: 1.35rem; color: var(--cma-gold); flex-shrink: 0; }
.svc-label { font-size:.64rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.46); margin-bottom:.18rem; }
.svc-value { font-family:var(--serif); font-size:1.05rem; font-weight:600; color:#fff; }

/* ------------------------------------------------------------
   8. CARDS (general)
   ------------------------------------------------------------ */
.cma-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(26,39,68,.08);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,39,68,.07);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.cma-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(26,39,68,.13);
}
.cma-card img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.cma-card-body { padding: 1.5rem; }
.cma-card-tag  { color: var(--cma-gold); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; font-weight:600; margin-bottom:.5rem; display:block; }
.cma-card h3   { font-family:var(--serif); font-size:1.25rem; color:var(--cma-navy); font-weight:600; margin-bottom:.6rem; }
.cma-card p    { font-size:.88rem; color:var(--cma-muted); line-height:1.7; margin:0; }

/* Note: the "Ministry overlay card" (.min-card etc.) and "Recent Sermons
   grid card" (.sermon-card etc.) rules that used to live here were removed
   along with the homepage/worship-page sections that used them — nothing
   on the site generates that markup anymore. */

/* Value card */
.val-card {
  background: var(--cma-cream);
  border-top: 3px solid var(--cma-gold);
  border-radius: var(--radius); padding: 0; height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
  position: relative;
}
.val-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(26,39,68,.1); }
/* Extra hover cue (color/shadow only) so the card visibly signals it does
   something before the 3-second hover-reveal fires or before it's clicked. */
.val-card:hover, .val-card.cv-open {
  border-top-color: var(--cma-navy);
  background: #fff;
  box-shadow: 0 18px 46px rgba(26,39,68,.16);
}
.val-num { font-family:var(--serif); font-size:2.4rem; color:var(--cma-gold); font-weight:700; line-height:1; margin-bottom:.7rem; display:block; }
.val-card h3 { font-family:var(--serif); font-size:1.15rem; color:var(--cma-navy); font-weight:600; margin-bottom:.7rem; }
.val-card p  { font-size:.88rem; color:var(--cma-muted); line-height:1.7; margin:0; }

/* Core Value toggle button — visually identical to the old static card, but
   is now a real <button> so it's keyboard/focus/screen-reader accessible. */
.val-toggle {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 2rem 1.75rem;
  cursor: pointer;
  position: relative;
}
.val-toggle:focus-visible {
  outline: 2px solid var(--cma-navy);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.val-chevron {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  color: var(--cma-muted);
  font-size: .85rem;
  transition: transform .25s, color .25s;
}
.val-card:hover .val-chevron { color: var(--cma-navy); }
.val-card.cv-open .val-chevron { transform: rotate(180deg); color: var(--cma-navy); }

.val-expand {
  display: block;
  overflow: hidden;
  max-height: 0;
  padding: 0 1.75rem;
  transition: max-height .35s ease, padding .35s ease;
}
.val-card.cv-open .val-expand {
  max-height: 600px;
  padding: 0 1.75rem 1.75rem;
}
.val-expand blockquote {
  font-size: .85rem;
  line-height: 1.65;
  color: var(--cma-navy);
  border-left: 2px solid var(--cma-gold);
  padding-left: .9rem;
  margin: 0 0 .9rem;
}
.val-expand blockquote:last-child { margin-bottom: 0; }
.val-expand blockquote a {
  color: var(--cma-gold);
  text-decoration: underline;
  font-weight: 600;
}
.val-expand blockquote a:hover { color: var(--cma-navy); }

/* Pastor card */
.pastor-card {
  display:flex; gap:1.4rem; align-items:flex-start;
  padding:2rem; background:var(--cma-cream); border-radius:var(--radius); height:100%;
}
.pastor-avatar {
  width:86px; height:86px; border-radius:50%; flex-shrink:0; overflow:hidden;
  border:3px solid var(--cma-gold); box-shadow:0 4px 16px rgba(200,150,62,.3);
}
.pastor-avatar img { width:100%; height:100%; object-fit:cover; }
.pastor-info h3 { font-family:var(--serif); font-size:1.2rem; color:var(--cma-navy); font-weight:600; margin-bottom:.12rem; }
.pastor-role { color:var(--cma-gold); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; font-weight:600; display:block; margin-bottom:.55rem; }
.pastor-info p { font-size:.86rem; color:var(--cma-muted); line-height:1.7; margin:0; }

/* ------------------------------------------------------------
   9. MISSION STRIP
   ------------------------------------------------------------ */
.mission-strip {
  background: linear-gradient(135deg, var(--cma-navy), var(--cma-navy-md));
  padding: 4.5rem 0; text-align: center;
}
.mission-strip blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-style: italic; font-weight: 300; color: #fff;
  max-width: 760px; margin: 0 auto .9rem; line-height: 1.45;
}
.mission-strip cite {
  color: var(--cma-gold-lt);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-style: normal;
}

/* ------------------------------------------------------------
   10. GALLERY STRIP
   ------------------------------------------------------------ */
.gal-strip { display: flex; overflow: hidden; }
.gal-strip img {
  flex: 1; min-width: 0; height: 230px; object-fit: cover;
  transition: flex .45s, filter .3s;
  filter: grayscale(20%) brightness(.88);
}
.gal-strip img:hover { flex: 2.4; filter: none; }
@media (max-width: 600px) { .gal-strip img { height: 110px; } }

/* ------------------------------------------------------------
   11. CONTACT / VISIT INFO
   ------------------------------------------------------------ */
.ci { display:flex; gap:1rem; align-items:flex-start; margin-bottom:1.35rem; }
.ci-icon  { color:var(--cma-gold); font-size:1.15rem; margin-top:2px; flex-shrink:0; }
.ci-label { font-size:.64rem; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.44); margin-bottom:.2rem; }
.ci-value { color:rgba(255,255,255,.9); font-size:.93rem; line-height:1.5; }
.ci-value a { color:var(--cma-gold-lt); text-decoration:none; }
.ci-value a:hover { text-decoration:underline; }

.ci-dark .ci-label { color: var(--cma-muted); }
.ci-dark .ci-value { color: var(--cma-text); }
.ci-dark .ci-icon  { color: var(--cma-navy); }
.ci-dark .ci-value a { color: var(--cma-navy); }

.visit-map iframe {
  width:100%; height:100%; min-height:420px;
  border:none; display:block;
  filter: grayscale(25%) contrast(1.05);
}
.visit-info { background: var(--cma-navy); padding: 5rem 4rem; }
@media (max-width: 991px) { .visit-info { padding: 3rem 2rem; } }

/* ------------------------------------------------------------
   12. WORSHIP / SCHEDULE
   ------------------------------------------------------------ */
.sched-list { list-style:none; padding:0; margin-top:1.4rem; }
.sched-list li {
  display:flex; justify-content:space-between; align-items:center;
  padding:.8rem 0; border-bottom:1px solid rgba(255,255,255,.08); font-size:.88rem;
}
.sched-list li:last-child { border-bottom:none; }
.sched-list li span:first-child { color:rgba(255,255,255,.78); }
.sched-list li span:last-child  { color:var(--cma-gold-lt); font-weight:600; }

.sched-list.dark li { border-bottom-color: rgba(26,39,68,.1); }
.sched-list.dark li span:first-child { color: var(--cma-text); }
.sched-list.dark li span:last-child  { color: var(--cma-gold); }

.yt-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.yt-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* ------------------------------------------------------------
   13. STATS
   ------------------------------------------------------------ */
.stat-num   { font-family:var(--serif); font-size:3rem; color:var(--cma-gold-lt); font-weight:300; line-height:1; }
.stat-label { font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.54); margin-top:.4rem; }
.stat-num.dark   { color: var(--cma-gold); }
.stat-label.dark { color: var(--cma-muted); }

/* ------------------------------------------------------------
   14. ACCORDION (FAQ / Beliefs)
   ------------------------------------------------------------ */
.cma-accordion .accordion-item {
  border: 1px solid rgba(26,39,68,.1);
  border-radius: var(--radius) !important;
  margin-bottom: .6rem;
  overflow: hidden;
}
.cma-accordion .accordion-button {
  background: var(--cma-cream);
  color: var(--cma-navy);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: none;
}
.cma-accordion .accordion-button:not(.collapsed) {
  background: var(--cma-navy);
  color: #fff;
}
.cma-accordion .accordion-button::after {
  filter: none;
}
.cma-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(1);
}
.cma-accordion .accordion-body {
  background: #fff;
  font-size: .93rem; line-height: 1.8; color: var(--cma-muted);
}

/* ------------------------------------------------------------
   15. FORMS
   ------------------------------------------------------------ */
.cma-form label {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; color: var(--cma-navy); margin-bottom: .35rem;
}
.cma-form .form-control,
.cma-form .form-select {
  border: 1px solid rgba(26,39,68,.2);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .93rem; color: var(--cma-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cma-form .form-control:focus,
.cma-form .form-select:focus {
  border-color: var(--cma-gold);
  box-shadow: 0 0 0 3px rgba(200,150,62,.15);
  outline: none;
}
.cma-form textarea { resize: vertical; min-height: 130px; }

/* ------------------------------------------------------------
   16. INNER PAGE PANELS
   ------------------------------------------------------------ */
.panel-navy  { background: var(--cma-navy); padding: 4rem; color: #fff; }
.panel-cream { background: var(--cma-cream); padding: 4rem; }
.panel-white { background: #fff; padding: 4rem; }
@media (max-width: 768px) {
  .panel-navy, .panel-cream, .panel-white { padding: 2.5rem 1.5rem; }
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px; background: var(--cma-gold);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cma-gold); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--cma-gold);
}
.timeline-year {
  font-family: var(--serif); font-size: 1rem; color: var(--cma-gold);
  font-weight: 700; margin-bottom: .2rem;
}
.timeline-item h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--cma-navy); margin-bottom: .3rem; }
.timeline-item p  { font-size: .88rem; color: var(--cma-muted); line-height: 1.7; margin: 0; }

/* Note: "Sermon card" (.sermon-card etc.) rules removed along with the
   Recent Sermons grid — see the note near .val-card above. */

/* Event card */
.event-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.5rem; background: #fff; border-radius: var(--radius);
  border-left: 4px solid var(--cma-gold);
  box-shadow: 0 4px 16px rgba(26,39,68,.06);
  transition: transform var(--transition);
}
.event-card:hover { transform: translateY(-3px); }
.event-date-box {
  text-align: center; flex-shrink: 0;
  background: var(--cma-navy); color: #fff;
  border-radius: var(--radius); padding: .6rem .9rem;
  min-width: 56px;
}
.event-month { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cma-gold-lt); }
.event-day   { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.event-info h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--cma-navy); margin-bottom: .25rem; font-weight: 600; }
.event-info p  { font-size: .86rem; color: var(--cma-muted); line-height: 1.6; margin: 0; }
.event-time    { font-size: .75rem; color: var(--cma-gold); font-weight: 600; margin-top: .3rem; }

/* Prayer request card */
.prayer-card {
  background: var(--cma-cream);
  border-radius: var(--radius); padding: 1.75rem;
  border-left: 3px solid var(--cma-gold);
}
.prayer-card h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--cma-navy); margin-bottom: .5rem; }
.prayer-card p  { font-size: .88rem; color: var(--cma-muted); line-height: 1.7; margin: 0; }

/* ------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------ */
#footer {
  background: var(--cma-navy-dk);
  color: rgba(255,255,255,.55);
  padding: 3.5rem 0 1.5rem;
}
#footer h5 {
  font-family: var(--serif); color: #fff;
  font-size: 1rem; font-weight: 600; margin-bottom: .9rem;
}
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { margin-bottom: .5rem; }
#footer ul li a {
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: .84rem; transition: color var(--transition);
}
#footer ul li a:hover { color: var(--cma-gold-lt); }
.foot-brand p { font-size: .84rem; line-height: 1.7; max-width: 260px; }
#footer ul li.foot-plain {
  color: rgba(255,255,255,.5); font-size: .84rem;
}
.foot-hr { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.4rem; }
.foot-bot { font-size: .74rem; }
.foot-bot a { color: rgba(255,255,255,.44); text-decoration: none; }
.foot-bot a:hover { color: var(--cma-gold-lt); }

/* Social icons in footer */
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.65);
  font-size: 1rem; text-decoration: none;
  transition: background var(--transition), color var(--transition);
  margin-right: .4rem;
}
.social-links a:hover { background: var(--cma-gold); color: var(--cma-navy); }

/* ------------------------------------------------------------
   18. ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%,100% { opacity:.26; } 50% { opacity:1; }
}

/* Stagger helpers */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ------------------------------------------------------------
   19. VIDEO HERO (home page only)
   ------------------------------------------------------------ */
#hero {
  position: relative; width: 100%; height: 100vh; min-height: 560px; overflow: hidden;
}
#hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(26,39,68,.55) 0%, rgba(26,39,68,.25) 50%, rgba(26,39,68,.7) 100%);
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 140px; z-index: 3;
  background: linear-gradient(transparent, #fff);
}
.hero-body {
  position: relative; z-index: 4; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 5rem;
}
.hero-eyebrow {
  color: var(--cma-gold-lt); font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; font-weight:500;
  margin-bottom:1.25rem; opacity:0; animation: fadeUp .8s .2s forwards;
}
.hero-h1 {
  font-family:var(--serif); font-size:clamp(2.8rem,7vw,5.2rem);
  font-weight:300; color:#fff; line-height:1.1; max-width:820px; margin-bottom:1.4rem;
  opacity:0; animation: fadeUp .9s .4s forwards;
}
.hero-h1 em { font-style:italic; color:var(--cma-gold-lt); }
.hero-sub {
  color:rgba(255,255,255,.87); font-size:1.05rem; max-width:520px; line-height:1.75; font-weight:300;
  margin-bottom:2.2rem; opacity:0; animation: fadeUp .9s .6s forwards;
}
.hero-btns {
  display:flex; gap:1rem; flex-wrap:wrap; justify-content:center;
  opacity:0; animation: fadeUp .9s .8s forwards;
}
.scroll-hint {
  position:absolute; bottom:148px; left:50%; transform:translateX(-50%); z-index:5;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:rgba(255,255,255,.44); font-size:.64rem; letter-spacing:.18em; text-transform:uppercase;
  opacity:0; animation: fadeUp .8s 1.6s forwards;
}
.scroll-hint-line {
  width:1px; height:34px; background:rgba(255,255,255,.28);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ------------------------------------------------------------
   20. RESPONSIVE TWEAKS
   ------------------------------------------------------------ */
@media (max-width: 991px) {
  .ww-col { padding: 3rem 2rem; }
  .ww-col + .ww-col { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 768px) {
  .panel-navy, .panel-cream, .panel-white { padding: 2.5rem 1.5rem; }
}

/* ------------------------------------------------------------
   21. LOGO SIZE ADJUSTMENT - ADDED
   ------------------------------------------------------------ */
/* Church Logo */
.site-logo{
  height:48px;
  width:auto;
  display:block;
}

@media (max-width:768px){
  .site-logo{
    height:38px;
  }
}

/* ------------------------------------------------------------
   22. FOOTER LOGO STYLING - ADDED
   ------------------------------------------------------------ 
   /* Footer logo */
.footer-logo{
  height:52px;
  width:auto;
  display:block;
  filter: brightness(1.15);
}
.footer-logo:hover{
  filter: brightness(1.3);
  transition: filter .25s ease;
}

/* ------------------------------------------------------------
   23. MOBILE NAV DRAWER (hand-rolled — not Bootstrap's Offcanvas)
   ------------------------------------------------------------
   Built with plain CSS transform + class toggling (see nav-drawer.js)
   instead of Bootstrap's Offcanvas component, which had a Firefox-specific
   rendering bug. At lg and up, #navMenu has no special positioning here at
   all, so it just displays normally inline as part of the navbar's own
   flex row (matching the original desktop nav exactly). Below lg, it
   becomes a fixed slide-in drawer. */
@media (max-width: 991.98px) {
  #navMenu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78%;
    max-width: 340px;
    background: var(--cma-navy-dk);
    box-shadow: -10px 0 30px rgba(0,0,0,.4);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  #navMenu.nav-drawer-open { transform: translateX(0); }

  #navDrawerBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  /* Dimmed backdrop is decorative + blocks accidental clicks on the page
     behind it — tapping it does not close the menu, only the X does. */
  #navDrawerBackdrop.show { opacity: 1; pointer-events: auto; }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 1.15rem 1.4rem;
    flex-shrink: 0;
  }
  .nav-drawer-title {
    font-family: var(--serif);
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: .03em;
    margin: 0;
  }
  .nav-drawer-close {
    background: none;
    border: none;
    color: #fff;
    opacity: .8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .5rem;
  }
  .nav-drawer-close:hover { opacity: 1; }

  .nav-drawer-body {
    padding: 1.25rem 1.4rem 2rem;
    display: flex;
    flex-direction: column;
  }
  #navMenu .navbar-nav { width: 100%; }
  #navMenu .nav-item { border-bottom: 1px solid rgba(255,255,255,.06); }
  #navMenu .nav-link {
    padding: .85rem .25rem;
    font-size: .8rem;
  }
  /* Submenu (About / Ministries) expands in place inside the drawer
     instead of floating as an absolute-positioned popover, which would
     otherwise overflow a narrow panel. */
  #navMenu .dropdown-menu {
    position: static !important;
    float: none;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    margin: 0 0 .5rem 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid rgba(200,150,62,.35);
  }
  #navMenu .dropdown-item { padding: .55rem .25rem; }
  #navMenu .btn-nav {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
  }
}
