/* Prayer Circle — the shared header and footer.
   Created 2026-09-04.

   Lifted from the home page so every other page carries the same red bar with
   the same menu, and the same four-column footer. Before this, the document
   pages each had their own chrome: about and terms a thin custom bar, the
   privacy policy none at all, and the help centre a third variant.

   Depends on pc-theme.css for the tokens and pc-theme.js for the toggle.
   The bar is sticky rather than fixed (the home page's own nav is fixed and
   its hero pads for it); visually the two are identical. */

/* --------------------------------------------------------------- header */

.pc-bar {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--pc-hero-to) 92%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 0 24px; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pc-bar .nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.pc-bar .nav-logo img { width: 34px; height: 34px; }
.pc-bar .nav-logo span { color: #fff; font-size: 18px; font-weight: 800; }

.pc-bar .nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.pc-bar .nav-links a {
  color: rgba(255, 255, 255, .75); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
}
.pc-bar .nav-links a:hover,
.pc-bar .nav-links a[aria-current="page"] { color: #fff; }

.pc-bar .nav-right { display: flex; align-items: center; gap: 14px; }
.pc-bar .nav-cta {
  background: var(--pc-bg); color: var(--pc-brand);
  padding: 9px 22px; border-radius: 25px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.pc-bar .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }

.pc-bar .nav-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.pc-bar .nav-hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px 0; border-radius: 2px; transition: .3s;
}

@media (max-width: 900px) {
  .pc-bar .nav-links { gap: 18px; }
  .pc-bar .nav-links a { font-size: 13px; }
}
@media (max-width: 768px) {
  .pc-bar .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: color-mix(in srgb, var(--pc-hero-to) 98%, transparent);
    flex-direction: column; gap: 0; padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .pc-bar .nav-links.open { display: flex; }
  .pc-bar .nav-links a { padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .pc-bar .nav-hamburger { display: block; }
  .pc-bar .nav-cta { font-size: 13px; padding: 8px 16px; }
}
@media (max-width: 480px) {
  .pc-bar { padding: 0 15px; }
  .pc-bar .nav-logo span { font-size: 16px; }
}

/* Whatever follows the bar needs air. Several pages open with their own
   coloured block -- the privacy card's red header, the red band on terms and
   about -- and against the red bar the two read as one merged slab with a
   seam through it. The home page is excluded: its nav is fixed and its hero
   deliberately runs underneath. */
.pc-bar + * { margin-top: 22px; }

/* The document band looks better as a contained block once it is not welded
   to the bar. */
.pc-bar + .doc-hero { margin-top: 0; border-radius: 0; }

@media (max-width: 600px) {
  .pc-bar + * { margin-top: 14px; }
}

/* --------------------------------------------------------------- footer */

.pc-footer {
  background: var(--pc-hero-to); color: rgba(255, 255, 255, .6);
  padding: 48px 24px 24px;
}
.pc-footer .footer-inner {
  max-width: 1100px; margin: 0 auto 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.pc-footer .footer-brand .logo-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.pc-footer .footer-brand img { width: 36px; height: 36px; }
.pc-footer .footer-brand .name { color: #fff; font-size: 18px; font-weight: 800; }
.pc-footer .footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; margin: 0; }
.pc-footer .footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .08em;
}
.pc-footer .footer-col a {
  display: block; color: rgba(255, 255, 255, .55); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: color .2s;
}
.pc-footer .footer-col a:hover { color: #fff; }
.pc-footer .footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 13px;
}
.pc-footer .footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.pc-footer .footer-bottom a { color: rgba(255, 255, 255, .4); text-decoration: none; }
.pc-footer .footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
  .pc-footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .pc-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .pc-footer .footer-inner { grid-template-columns: 1fr; }
}
