/* layout-fixes.css (2026-11-07 site QA)
   Loaded last on every public page. Each block names the problem it fixes. */

/* The header grew with the new brand lockup (104px desktop, 86px up to 1100px), but page
   heroes still reserved the old 80px / 58px, so titles and badges slid under it. */
:root { --pp-header-h: 104px; }
@media (max-width: 1100px) { :root { --pp-header-h: 86px; } }

body > .hero,
body > .baptism-hero,
body > .lifegroups-hero,
body > .discipleship-hero,
body > .leadership-hero,
body > .next-steps-hero,
body > .serve-hero,
body > .page-banner {
    padding-top: calc(var(--pp-header-h) + 32px) !important;
    padding-bottom: 56px !important;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box !important;
}
@media (max-width: 768px) {
    body > .hero,
    body > .baptism-hero,
    body > .lifegroups-hero,
    body > .discipleship-hero,
    body > .leadership-hero,
    body > .next-steps-hero,
    body > .serve-hero,
    body > .page-banner {
        padding-top: calc(var(--pp-header-h) + 26px) !important;
        padding-bottom: 40px !important;
    }
}
body .main-video-section { padding-top: calc(var(--pp-header-h) + 24px) !important; }

/* Outline buttons in dark page heroes were dark-on-dark and nearly invisible. */
body > .hero .btn-outline,
body > .baptism-hero .btn-outline,
body > .lifegroups-hero .btn-outline,
body > .discipleship-hero .btn-outline,
body > .leadership-hero .btn-outline,
body > .next-steps-hero .btn-outline,
body > .serve-hero .btn-outline {
    color: #fffaf3 !important;
    border-color: rgba(255, 250, 243, .75) !important;
    background: rgba(255, 250, 243, .08) !important;
}
body > .hero .btn-outline:hover,
body > .hero .btn-outline:focus-visible { background: #fffaf3 !important; color: #291568 !important; }

/* Section labels ("WHAT DRIVES US") sat on the same line as their heading because both were
   inline-block. The label now always sits on its own line above the heading. */
body .section-kicker {
    display: table !important;
    margin-bottom: .85rem !important;
}
body .section-header > .section-kicker,
body .week-glance-header > .section-kicker,
body .home-explore-heading > .section-kicker,
body .text-center > .section-kicker {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Labels on dark sections were forced to brand red and became unreadable. */
body .section-kicker[style*="color"],
body #prayer-widget-home .section-kicker {
    color: #f3bf9c !important;
    background: rgba(255, 250, 243, .12) !important;
    border: 1px solid rgba(243, 191, 156, .35) !important;
}

/* Old lime green (#7bc142) blocks and buttons, off-brand and low contrast with white text. */
body .visit-cta-section {
    background: radial-gradient(circle at 85% 20%, rgba(243, 191, 156, .18), transparent 45%),
                linear-gradient(135deg, #291568 0%, #180d3b 100%) !important;
}
body .visit-cta-section h2 { color: #fffaf3 !important; }
body .visit-cta-section p { color: rgba(255, 250, 243, .82) !important; }
body .visit-cta-btn {
    background: #fffaf3 !important;
    color: #291568 !important;
    box-shadow: 0 12px 30px rgba(10, 6, 30, .35) !important;
}
body .visit-cta-btn:hover, body .visit-cta-btn:focus-visible { background: #f3bf9c !important; color: #180d3b !important; }
body .expect-cta {
    background: #f3bf9c !important;
    color: #291568 !important;
    border-color: transparent !important;
}
body .expect-cta:hover, body .expect-cta:focus-visible { background: #fffaf3 !important; }
body .subscribe-form button {
    background: #f3bf9c !important;
    color: #291568 !important;
}
body .subscribe-form button:hover, body .subscribe-form button:focus-visible { background: #fffaf3 !important; }
body .devotional-prayer {
    background: #f6f2fb !important;
    border-left-color: #291568 !important;
}
body .devotional-prayer h4 { color: #291568 !important; }

/* Event card details that were too faint to read (#94a3b8 on white). */
body #events-grid .event-location { color: #5b6476 !important; }
/* Two-column event buttons: let long labels wrap instead of being cut off. */
body #events-grid .event-card .event-actions .btn { white-space: normal !important; text-align: center !important; }

/* Resources had no page title or banner; the tab strip sat directly under the header. */
.pp-page-intro {
    padding: calc(var(--pp-header-h) + 40px) 0 44px;
    text-align: center;
    color: #fffaf3;
    background: radial-gradient(circle at 15% 0%, rgba(243, 191, 156, .16), transparent 45%),
                linear-gradient(135deg, #291568 0%, #180d3b 100%);
}
.pp-page-intro .pp-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(243, 191, 156, .4);
    color: #f3bf9c;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.pp-page-intro h1 {
    margin: 0 0 12px;
    color: #fffaf3;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.1;
}
.pp-page-intro p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 250, 243, .84);
    font-size: 1.05rem;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .pp-page-intro { padding: calc(var(--pp-header-h) + 28px) 0 32px; }
    .pp-page-intro p { padding: 0 16px; font-size: .98rem; }
}
.pp-page-intro + .section.bg-light { padding-top: 28px !important; padding-bottom: 8px !important; }

/* ======================================================================
   Brand pass (2026-11-07, second round): one palette and one type system on every page.
   Purple #291568 / deep #180d3b / ivory #fffaf3 / peach #f3bf9c / red #c92c29.
   ====================================================================== */
:root {
    --primary: #291568; --primary-light: #493084; --primary-dark: #180d3b; --primary-color: #291568;
    --secondary: #c92c29; --secondary-color: #c92c29; --accent: #c92c29; --accent-color: #c92c29;
    --pp-hero: linear-gradient(135deg, #1d113c 0%, #332071 58%, #4b3184 100%);
    --pp-wash: linear-gradient(135deg, rgba(29, 17, 60, .9) 0%, rgba(51, 32, 113, .84) 58%, rgba(75, 49, 132, .78) 100%);
}

/* Type: Montserrat for text, labels and buttons (buttons were falling back to Arial and the
   calendar page to Segoe UI); the homepage serif for page titles and section headings. */
body { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important; }
button, input, select, textarea, .btn { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important; }
body h1, body h2 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    letter-spacing: -.005em !important;
    text-transform: none !important;
}
body header h1, body header h2, body footer h1, body footer h2,
body [class*="chat"] h2, body #pp-chatbot h2 {
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important;
}

/* Large blue / navy sections -> brand purple. */
body #main-content > section.week-glance-section,
body #testimonials,
body #prayer-widget-home,
body > section.hero[style*="#1e3a8a"],
body > section.hero[style*="#0f172a"],
body section.bg-primary,
body .subscribe-section,
body main > section.resources-section,
body .page-hero,
body #watch-player {
    background: var(--pp-hero) !important;
}
/* Photo heroes keep their photo under a purple wash instead of a blue one. */
body > .baptism-hero { background: var(--pp-wash), url("/assets/images/Baptise.jpg") center / cover no-repeat !important; }
body > .discipleship-hero { background: var(--pp-wash), url("/assets/images/discipleship.jpg") center / cover no-repeat !important; }
body > .leadership-hero { background: var(--pp-wash), url("/assets/images/leadership.jpg") center / cover no-repeat !important; }
body > .lifegroups-hero { background: var(--pp-wash), url("/assets/images/life-groups.jpg") center / cover no-repeat !important; }
body > .next-steps-hero { background: var(--pp-wash), url("/assets/images/connect.jpg") center / cover no-repeat !important; }
body > .serve-hero { background: var(--pp-wash), url("/assets/images/serve.jpg") center / cover no-repeat !important; }

/* Blue cards and feature panels. */
body #devo-card,
body .expect-card.expect-location {
    background: linear-gradient(135deg, #291568 0%, #180d3b 100%) !important;
}
body [id^="home-explore-tab-"][aria-selected="true"] { background: linear-gradient(135deg, #291568, #3b247c) !important; color: #fffaf3 !important; }

/* Blue buttons, active tabs, badges and icon tiles. */
body #sermon-watch-btn,
body #upcoming-events-home a[href="events.html"],
body #ministry-spotlight a[href="serve-ministry.html"],
body #back-to-top,
body #scrollTopBtn,
body .leadership-tab.active,
body .filter-btn.active,
body .month-btn.active,
body #individual-reg-btn,
body .actions-grid .btn-primary,
body #current-year,
body .event-status.recurring,
body .level-badge,
body .reading-date,
body .calendar-day.current,
body #devotionalDateHeader,
body #previousDateHeader {
    background: #291568 !important;
    color: #fffaf3 !important;
    border-color: #291568 !important;
}
body .contact-icon,
body .connect-icon,
body .next-step-choice-icon {
    background: #291568 !important;
    color: #fffaf3 !important;
}
body .activity-date { background: #f3bf9c !important; color: #291568 !important; }
body #months-grid .month-header { background: linear-gradient(135deg, #291568, #3b247c) !important; }
body #sermon-thumb-link,
body .sermon-reel-thumb,
body .playlist-thumb,
body #events-grid .event-image { background-color: #180d3b !important; background-image: none !important; }

/* Homepage upcoming events: brand colours for the small cards. */
body #home-events-grid > div { border-top: 3px solid #f3bf9c !important; }
body #home-events-grid i { color: #291568 !important; }
body #home-events-grid > div > div:first-child > span:first-child { background: #f1ecf8 !important; color: #291568 !important; text-transform: capitalize; }

/* About: the pastors are the feature of the page (large portraits, centred), and every
   team grid centres its cards instead of leaving a half-empty row. */
body #pastors-content .team-grid.pastoral-feature {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
    justify-content: center !important;
    gap: 36px !important;
    max-width: 960px;
    margin: 0 auto !important;
}
body .pastoral-feature .team-card {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: #fff !important;
    border: 1px solid #ece6f3 !important;
    box-shadow: 0 18px 44px rgba(24, 13, 59, .12) !important;
    text-align: center !important;
}
body .pastoral-feature .team-image-circle {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #efe9f6 !important;
    overflow: hidden !important;
}
body .pastoral-feature .team-image-circle img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 50% 18% !important;
    border-radius: 0 !important;
    border: 0 !important;
}
body .pastoral-feature .team-content { padding: 26px 30px 32px !important; }
body .pastoral-feature .team-name {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    font-size: 1.7rem !important;
    color: #291568 !important;
    margin-bottom: 10px !important;
}
body .pastoral-feature .team-role { background: #f3bf9c !important; color: #291568 !important; }
body .pastoral-feature .team-bio { font-size: 1rem !important; line-height: 1.75 !important; color: #4b4458 !important; }
body #deacons-content .team-grid,
body #ministry-content .team-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px)) !important;
    justify-content: center !important;
}
body .team-image-circle { background: linear-gradient(135deg, #f3bf9c, #291568) !important; }
@media (max-width: 760px) {
    body #pastors-content .team-grid.pastoral-feature { grid-template-columns: minmax(0, 1fr) !important; max-width: 440px; gap: 24px !important; }
    body .pastoral-feature .team-name { font-size: 1.5rem !important; }
}

/* Section label pills: brand lilac with deep red text everywhere (some pages forced light blue). */
body .section-kicker:not([style*="color"]) { background: #f3edf8 !important; color: #8a2422 !important; }
