/* ── TRP SHARED STYLES v2 ──────────────────────────────────────────
   Covers: CSS variables, nav (with dropdowns + mobile),
   footer, and common utilities.
   Page-specific styles stay in each page's own <style> block.
──────────────────────────────────────────────────────────────────── */

:root {
  --mag: #AB0361;
  --mag-dk: #870250;
  --forest: #4D8A6A;
  --forest-dk: #1E2D27;
  --forest-lt: #EFF4EF;
  --amber: #FEB221;
  --amber-dk: #E09A10;
  --off: #FAF8F4;
  --ink: #1A1E1A;
  --mid: #526058;
  --rule: #D0CCC5;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Raleway', sans-serif;
}

/* ── NAV BASE ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 72px;
  background: #fff; border-bottom: 1px solid var(--rule);
  z-index: 200; display: flex; align-items: center;
  transition: box-shadow 0.3s;
}
.nav__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 2.5rem;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { display: none; }
.nav__logo-img {
  display: block;
  height: 38px;
  width: 158px;
  background-image: url('/images/logos/trp-logo-header.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}
.nav__right {
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__donate {
  font-family: var(--sans); font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--mag); color: #fff; padding: 0.55rem 1.5rem;
  transition: background 0.2s; text-decoration: none; white-space: nowrap;
}
.nav__donate:hover { background: var(--mag-dk); }

/* ── NAV LINKS + DROPDOWNS ───────────────────────────────────────── */
.nav__links {
  display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0;
}
.nav__item {
  position: relative;
}
.nav__top-link {
  font-family: var(--sans); font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 0 1.4rem; height: 72px;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s; text-decoration: none;
}
/* Chevron indicator */
.nav__item--has-drop .nav__top-link::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav__item--has-drop:hover .nav__top-link::after {
  transform: rotate(225deg) translateY(-2px);
}
/* Active underline */
.nav__top-link::before {
  content: ''; position: absolute; bottom: 0; left: 1.4rem; right: 1.4rem;
  height: 3px; background: var(--mag);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__top-link:hover,
.nav__top-link.is-active { color: var(--mag); }
.nav__top-link:hover::before,
.nav__top-link.is-active::before { transform: scaleX(1); }

/* Dropdown panel */
.nav__drop {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--rule);
  border-top: 3px solid var(--mag);
  box-shadow: 0 16px 48px rgba(30,45,39,0.13);
  min-width: 240px; padding: 0.75rem 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__drop ul { list-style: none; margin: 0; padding: 0; }
.nav__drop ul li a {
  display: block; padding: 0.6rem 1.5rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav__drop ul li a:hover {
  background: var(--forest-lt); color: var(--mag);
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────────── */
.nav__burger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE OVERLAY MENU ─────────────────────────────────────────── */
.mob-menu {
  position: fixed; inset: 0; top: 72px;
  background: var(--forest-dk);
  z-index: 190; overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease;
}
.mob-menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.mob-menu__inner {
  padding: 2.5rem 2rem 4rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}
.mob-menu__section {}
.mob-menu__label {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid rgba(77,138,106,0.25);
}
.mob-menu__section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.mob-menu__section ul li a {
  display: block; padding: 0.7rem 0;
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.75); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.mob-menu__section ul li:last-child a { border-bottom: none; }
.mob-menu__section ul li a:hover { color: #fff; }
.mob-menu__donate {
  display: inline-block; align-self: flex-start;
  font-family: var(--sans); font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--mag); color: #fff; padding: 0.85rem 2.2rem;
  text-decoration: none; transition: background 0.2s;
}
.mob-menu__donate:hover { background: var(--mag-dk); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--forest-dk); padding: 5.5rem 0 3rem;
  border-top: 2px solid rgba(77,138,106,0.28);
}
.footer__upper {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__logo { margin-bottom: 1.25rem; }
.footer__logo img { display: none; }
.footer__logo-img {
  display: block;
  height: 32px;
  width: 133px;
  background-image: url('/images/logos/trp-logo-header.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  filter: invert(1) saturate(0);
  mix-blend-mode: screen;
}
.footer__tagline {
  font-family: var(--serif); font-style: italic; font-size: 0.92rem;
  color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 1.75rem; max-width: 265px;
}
.sof-head {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 0.6rem;
}
.sof-text { font-size: 0.76rem; line-height: 1.68; color: rgba(255,255,255,0.28); max-width: 270px; }
.sof-link {
  display: inline-block; margin-top: 0.85rem; font-family: var(--sans);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--forest); transition: color 0.2s; text-decoration: none;
}
.sof-link:hover { color: #fff; }
.fcol-title {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 1.35rem;
}
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin: 0; padding: 0; }
.fcol ul a { font-size: 0.86rem; color: rgba(255,255,255,0.5); transition: color 0.2s; text-decoration: none; }
.fcol ul a:hover { color: #fff; }
.footer__lower {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer__copy { font-size: 0.72rem; color: rgba(255,255,255,0.23); }
.footer__copy a { text-decoration: none; }
.footer__social { display: flex; gap: 1.5rem; }
.footer__social a {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); transition: color 0.2s; text-decoration: none;
}
.footer__social a:hover { color: rgba(255,255,255,0.72); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
/* body .btn uses higher specificity (0,1,1) to override page-level .btn (0,1,0) */
body .btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.9rem 2.2rem; cursor: pointer; transition: all 0.2s;
  border: 1.5px solid transparent;
}
body .btn-sm { padding: 0.6rem 1.35rem; font-size: 0.66rem; border: 1.5px solid transparent; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__donate { display: none; }
  .nav__burger { display: flex; }

  .footer__upper {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer__upper > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__upper { grid-template-columns: 1fr; }
}

/* ── Logos RefTagger — Bible reference styling ───────────────────
   RefTagger wraps detected references in .rtBibleRef spans.
   Forest green with a subtle dotted underline signals interactivity
   without competing with the magenta link color used elsewhere.    */
.rtBibleRef {
  color: var(--forest, #4D8A6A);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rtBibleRef:hover {
  color: var(--forest-dk, #1E2D27);
}
