/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.2.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/

/*-------------------------------------
 * Define Pilgrim Color Palette
 *-----------------------------------*/

/*Pages to work on
 * Church Forms 2895, Adult Ministries 2892, Admissions 2890, About Pilgrim 2867, Ways to Serve 2847,
 * */
#menu-item-2892, #menu-item-2847 {
	display: none;
}

:root {
	/* Sticky header - prevent content from getting hidden behind */
	--sticky-header-offset: 80px;
	
    /* Brand colors */
    --plcs-blue: #2a3070;
    --plcs-blue-rgb: 42, 48, 112;
    --plcs-yellow: #e9c103;
    --plcs-yellow-rgb: 233, 193, 3;

    /* Brand variants */
    --plcs-blue-light: #3a4090;
    --plcs-blue-light-rgb: 58, 64, 144;
    --plcs-blue-dark: #1e2355;
    --plcs-blue-dark-rgb: 30, 35, 85;
    --plcs-yellow-light: #f2d94c;
    --plcs-yellow-light-rgb: 242, 217, 76;
    --plcs-yellow-dark: #c9a500;
    --plcs-yellow-dark-rgb: 201, 165, 0;

    /* Neutrals */
    --plcs-white: #ffffff;
    --plcs-white-rgb: 255, 255, 255;
    --plcs-black: #111111;
    --plcs-black-rgb: 17, 17, 17;

    /* Grayscale (cool-neutral to match blue) */
    --plcs-gray-100: #f8f9fb;
    --plcs-gray-100-rgb: 248, 249, 251;
    --plcs-gray-200: #e9ecf1;
    --plcs-gray-200-rgb: 233, 236, 241;
    --plcs-gray-300: #d1d6e0;
    --plcs-gray-300-rgb: 209, 214, 224;
    --plcs-gray-400: #aeb5c4;
    --plcs-gray-400-rgb: 174, 181, 196;
    --plcs-gray-500: #8b93a8;
    --plcs-gray-500-rgb: 139, 147, 168;
    --plcs-gray-600: #626a82;
    --plcs-gray-600-rgb: 98, 106, 130;
    --plcs-gray-700: #3f465f;
    --plcs-gray-700-rgb: 63, 70, 95;
    --plcs-gray-800: #2b3048;
    --plcs-gray-800-rgb: 43, 48, 72;
    --plcs-gray-900: #1c2035;
    --plcs-gray-900-rgb: 28, 32, 53;

    /* Semantic roles */
    --plcs-bg: var(--plcs-white);
    --plcs-text: var(--plcs-gray-900);
    --plcs-muted: var(--plcs-gray-600);
    --plcs-border: var(--plcs-gray-300);
    --plcs-link: var(--plcs-blue);
    --plcs-link-hover: var(--plcs-blue-dark);

    /* Bootstrap overrides */
    --bs-primary: var(--plcs-blue);
    --bs-primary-rgb: 42, 48, 112;
    --bs-secondary: var(--plcs-yellow);
    --bs-secondary-rgb: 233, 193, 3;
}

/*-------------------------------------
 * End of Define Pilgrim Color Palette
 *-----------------------------------*/

/*--------------------
/* Header Layout
 * -----------------*/

/* Sticky header */
#wrapper-navbar {
    position: fixed;
    width: 100vw;
    z-index: 99999;
}

/* Main menu default link color */
#main-menu .nav-link {
    color: var(--plcs-white);
}

/* Hover, keyboard focus */
#main-menu .nav-link:hover,
#main-menu .nav-link:focus {
    color: var(--plcs-yellow);
}

/* Active/current page item */
#main-menu .nav-link.active,
#main-menu .nav-item.active > .nav-link,
#main-menu .current-menu-item > .nav-link {
    color: var(--plcs-yellow);
}

/* Main Menu Item Layout */
#main-menu .menu-item {
    margin: 0 10px;
}

/* -----Phone----- */
@media (max-width: 768px) {
    /* Colors */
    #main-nav.bg-primary {
        background-color: --bs-primary !important;
        color: var(--plcs-white);
    }
    /* Logo */
    #main-nav .navbar-brand.custom-logo-link > img {
        max-height: 60px;
        width: auto;
    }
}

/* -----Tablet/Desktop----- */
@media (min-width: 769px) {
    /* Colors */
    #main-nav.bg-primary {
        background-image: linear-gradient(
            to bottom,
            rgba(var(--bs-primary-rgb), 1) 50%,
            rgba(var(--bs-primary-rgb), 0) 100%
        );
        background-color: transparent !important;
        color: var(--plcs-white);
    }
    /* Logo */
    #main-nav .navbar-brand.custom-logo-link > img {
        max-height: 100px;
        width: auto;
    }
}

/*--------------------
 * End Header Layout
 * ------------------*/

/*--------------------------
 * Body and Content Layout
 * -----------------------*/

/* Body Background */
body:not(.home) {
    background-image: url("/wp-content/uploads/2026/03/BG-Webpage-Body-Textured.jpg");
    background-repeat: repeat;
}

body.home {
	background-image: url("/wp-content/uploads/2026/04/Pilgrim-Background-4KRes-scaled.jpg");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* Make the page be at least as tall as the device screen */
#page-wrapper {
    min-height: 100vh;
}

/* Make the beginning of the content sit below the sticky header before scrolling */
#content {
    margin-top: 100px;
}

/* Hide Page Title on Page */
#main header.entry-header {
    display: none;
}

/*--------------------------
 * End Body and Content Layout
 * -----------------------*/

/*----------------------
 * Home Page Layout
 * ---------------------*/
.video-hero {
	position: absolute;
	width: 100vw;
	min-height: 100vh;
	height: 100%;
	top: 0;
	left: 0;
	overflow-x: hidden;
	overflow-y: overlay;
	background: #000;
}

.video-hero video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	z-index: 1;
}

.video-overlay {
	position: relative;
	z-index: 3;
	color: white;
	padding: 4rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* main content wrapper */
.home-content-wrapper {
	margin-top: 50px;
	width: 100%;
	max-width: 1400px;
	text-align: left;
	background: rgba(var(--plcs-blue-rgb), 0.92);
	padding: 20px;
	border-radius: 16px;
}

/* two-column layout */
.home-content-wrapper .home-grid {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

/* left and right columns */
.home-content-wrapper .home-left {
	flex: 1.1;
}

.home-content-wrapper .home-right {
	flex: 1;
	width: 100%;
}

/* accordion heading */
.home-content-wrapper .home-right h4 {
	margin-bottom: 1rem;
	color: var(--plcs-white);
}

/* 2x2 info card grid */
.home-content-wrapper .info-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	height: 100%;
}

/* info cards */
.home-content-wrapper .info-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 1.1rem 1rem;
	border-radius: 12px;
	background-color: rgba(255, 255, 255, 0.88);
	color: var(--plcs-black);
	min-height: 200px;
}

.home-content-wrapper .info-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	line-height: 1.25;
	color: var(--plcs-white);
}

.home-content-wrapper .info-card p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* accordion styling */
.home-content-wrapper .accordion-item {
	background-color: rgba(255, 255, 255, 0.88);
}

.home-content-wrapper .accordion-body {
	max-height: 60vh;
	overflow-y: auto;
}

.home-content-wrapper .accordion-body img {
	max-width: 60%;
	height: auto;
	display: block;
	margin: 0 auto 1rem;
}

/* optional: make flush accordion buttons look cleaner in the panel */
.home-content-wrapper .accordion-button {
	font-weight: 600;
}

.home-content-wrapper .accordion-button:not(.collapsed) {
	background-color: rgba(var(--plcs-yellow-rgb), 0.14);
	color: var(--plcs-blue-dark);
}

/* Color gradient over video */
.video-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(var(--plcs-blue-dark-rgb), 0.9),
		rgba(var(--plcs-yellow-dark-rgb), 0.3)
	);
	z-index: 2;
	pointer-events: none;
}

/* tablet and down */
@media (max-width: 991.98px) {
	.home-content-wrapper {
		max-width: 760px;
	}

	.home-content-wrapper .home-grid {
		flex-direction: column;
	}

	.home-content-wrapper .info-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* mobile */
@media (max-width: 575.98px) {
	.video-overlay {
		padding: 2rem 1rem;
	}

	.home-content-wrapper {
		margin-top: 20px;
		padding: 16px;
	}

	.home-content-wrapper .info-card-grid {
		grid-template-columns: 1fr;
	}

	.home-content-wrapper .info-card {
		min-height: 150px;
	}

	.home-content-wrapper .accordion-body img {
		max-width: 100%;
	}
}

/*
@media (max-width: 768px) {
	.video-hero video {
		display: none;
	}
}
*/

/*----------------------
 * End Home Page Layout
 * ---------------------*/

/*-------------------------------------
 * Welcome Page Styling
 * ------------------------------------*/

	.welcome-page {
		background-color: var(--plcs-white);
		color: var(--plcs-black);
	}

	.welcome-hero {
		background:
			linear-gradient(135deg, rgba(var(--plcs-blue-rgb), 0.94), rgba(var(--plcs-blue-dark-rgb), 0.92)),
			linear-gradient(180deg, rgba(var(--plcs-yellow-rgb), 0.08), rgba(var(--plcs-white-rgb), 0));
	}

	.welcome-eyebrow,
	.section-kicker {
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.welcome-eyebrow {
		font-size: 2rem;
		color: var(--plcs-yellow-light);
	}

	.section-kicker {
		color: var(--plcs-blue);
		margin-bottom: 0.75rem;
	}

	.section-title {
		font-size: clamp(2rem, 4vw, 2.75rem);
		font-weight: 700;
		line-height: 1.15;
		margin-bottom: 1rem;
		color: var(--plcs-blue);
	}

	.section-intro,
	.welcome-page p,
	.welcome-page li {
		font-size: 1.05rem;
		line-height: 1.7;
	}

	.py-lg-6 {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}

	.welcome-card,
	.location-card,
	.info-card {
		border-radius: 1.25rem;
	}

	.welcome-card {
		background-color: rgba(var(--plcs-white-rgb), 0.98);
		color: var(--plcs-black);
	}

	.welcome-glance-list li + li {
		margin-top: 0.75rem;
	}

	.welcome-section > div {
		margin: 20px;
	}

	.info-card {
		height: 100%;
		padding: 1.75rem;
		background-color: var(--plcs-blue);
		border: 1px solid rgba(var(--plcs-blue-rgb), 0.10);
		box-shadow: 0 0.75rem 2rem rgba(var(--plcs-blue-rgb), 0.08);
		display: flex;
		flex-direction: column;
	}

	.info-card h3,
	.info-stack-item h3,
	.location-card h3 {
		color: var(--plcs-white);
		margin-bottom: 0.75rem;
	}

	.info-card p {
		color: var(--plcs-white);
		margin-bottom: 0.75rem;
	}

	.info-stack-item + .info-stack-item {
		margin-top: 1.5rem;
		padding-top: 1.5rem;
		border-top: 1px solid rgba(var(--plcs-blue-rgb), 0.12);
	}

	.welcome-faq .accordion-item {
		border: 0;
		border-radius: 1rem;
		overflow: hidden;
		box-shadow: 0 0.5rem 1.5rem rgba(var(--plcs-blue-rgb), 0.08);
	}

	.welcome-faq .accordion-item + .accordion-item {
		margin-top: 1rem;
	}

	.welcome-faq .accordion-button {
		font-weight: 600;
		padding: 1.25rem 1.5rem;
	}

	.welcome-faq .accordion-button:not(.collapsed) {
		background-color: rgba(var(--plcs-yellow-rgb), 0.12);
		color: var(--plcs-blue-dark);
		box-shadow: none;
	}

	.welcome-faq .accordion-button:focus {
		box-shadow: 0 0 0 0.25rem rgba(var(--plcs-blue-rgb), 0.15);
	}

	@media (max-width: 991.98px) {
		.py-lg-6 {
			padding-top: 4rem;
			padding-bottom: 4rem;
		}
	}

.welcome-section .info-stack-item > h3 {
	color: var(--plcs-blue);
}

/*-------------------------------------
 * End Welcome Page Styling
 * ------------------------------------*/


/*-------------------------------------
 * Definition List (Table) Styling (example worship schedule on /church)
 * ------------------------------------*/

.dl-container-wrapper {
    background-color: var(
        --plcs-gray-200
    ); /*Fallback if image link fails. Background image assigned in page.*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px;
    margin: 20px 0;
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dl-container {
    border: 3px solid var(--plcs-border);
    margin: 30px auto;
}

.dl-container .row {
    border-top: 1px solid var(--plcs-border);
    margin: 0;
}

dl h2,
dl dt,
dl dd {
    max-width: 90%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

dl dt {
    font-weight: 600;
}

/* -----Tablet/Desktop----- */
@media (min-width: 769px) {
    .dl-container {
        min-width: 600px;
    }
}

/*-------------------------------------
 * End Definition List (Table) Styling
 * ------------------------------------*/

/*---------------------------------------
 * Grid Block (example 4 wide links on /church and 3 wide on /school)
-----------------------------------------*/
.block-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.block-item:hover {
    transform: scale(1.05);
}

.block-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--plcs-blue-dark-rgb), 0.4);
    transition: background 0.3s ease;
    z-index: 1;
}

.block-text {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--plcs-white);
    transition: color 0.3s ease;
}

.block-item:hover::before {
    background: rgba(var(--plcs-yellow-dark-rgb), 0.5);
}

.block-item:hover .block-text {
    color: var(--plcs-white);
}

.plcs-grid-blocks > div {
    padding: 5px;
}

/*---------------------------------------
 * End Grid Block
 *---------------------------------------*/

/*------------------------------------------------
 * Info Cards (example on /school/student-life)
 * ---------------------------------------------*/

.info-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	background-size: cover;
	background-position: center;
	border-radius: 30px;
	overflow: hidden;
}

/* overlay */
.info-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(var(--plcs-blue-dark-rgb), 0.75);
	transition: background 0.3s ease;
}

/* content */
.info-card__content {
	position: relative;
	z-index: 2;
	color: var(--plcs-white);
	padding: 1.5rem;
	text-align: center;
}

.info-card__content h5 {
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.info-card__content p {
	margin: 0;
	font-size: 1rem;
}

.info-card:hover::before {
	background: rgba(var(--plcs-blue-dark-rgb), 0.1);
}

/*------------------------------------------------
 * End Info Cards (example on /school/student-life)
 * ---------------------------------------------*/

/*----------------------------------------
 * Blue Hexagonal Pattern BG (on /school)
 * --------------------------------------*/
.bg-hex {
	width: 100% !important;
	padding: 20px;
	background-color: var(--plcs-blue);
	background-image: url("/wp-content/uploads/2026/03/BG-Pattern-Hex.png");
    background-repeat: repeat;
	color: var(--plcs-white)
}
/*----------------------------------------
 * End Blue Hexagonal Pattern BG (on /school)
 * --------------------------------------*/

/*----------------------------------------
 * Modal / Lightbox Styling
 * --------------------------------------*/

.modal-dialog.modal-dialog-centered {
	max-width: fit-content;
	max-height: fit-content;
}

.modal-body img {
	margin-top: 8vh;
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
}

/*----------------------------------------
 * End Modal / Lightbox Styling
 * --------------------------------------*/

/*----------------------------------------
 * Button Class btn-plcs
 * --------------------------------------*/
.btn-plcs {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	background-color: var(--plcs-blue);
	color: var(--plcs-white);
	text-decoration: none;
	border-radius: 999px;
	font-weight: 600;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-plcs a {
	text-decoration: none;
}

.btn-plcs:hover,
.btn-plcs:focus {
	background-color: var(--plcs-yellow);
	color: var(--plcs-white);
	transform: translateY(-1px);
}

.btn-plcs:focus {
	box-shadow: 0 0 0 0.25rem rgba(var(--plcs-yellow-rgb), 0.35);
}

/*----------------------------------------
 * End Button Class btn-plcs
 * --------------------------------------*/

/*----------------------------------------
 * Resources (like /school/current-parents)
 * --------------------------------------*/

.resource-card {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid var(--plcs-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--plcs-text);
	background: var(--plcs-white);
	transition: background-color 0.2s ease;
}

.resource-card:hover {
	background-color: rgba(var(--plcs-yellow-rgb), 0.8);
	color: var(--plcs-white);
}

/*----------------------------------------
 * End Resources (like /school/current-parents)
 * --------------------------------------*/

/*---------------------------------------
 * Responsive Four Column Styling
 * --------------------------------------*/

/* Vertical dividers only on large screens */
@media (min-width: 992px) {
  .divider-row > div:not(:last-child) {
    border-right: 3px solid var(--plcs-yellow);
  }
}

/*---------------------------------------
 * End Responsive Four Column Styling
 * --------------------------------------*/

/*---------------------------------------
 * Content Layouts
 *---------------------------------------*/

/* Full Width Page Layout */
.full-width.center {
    width: 70%;
    margin: auto;
    text-align: center;
}

.full-width.center > h2,
.plcs-header-border {
    display: flex;
}

.plcs-header-border {
	margin-top: 50px;
}

.full-width.center > h2::before,
.full-width.center > h2::after,
.plcs-header-border::before,
.plcs-header-border::after {
    content: "";
    flex: 1;
    border-top: 3px solid var(--plcs-yellow);
    margin: auto 1em;
}

/*---------------------------------------
 * End Content Layouts
 *---------------------------------------*/

/*---------------------------------------
 * Modal Styling (on /staff)
 * --------------------------------------*/


/* Filter buttons */
.btn-filter {
	background-color: var(--plcs-blue);
	color: var(--plcs-white);
	border: none;
	margin: 0 5px;
}

.btn-filter:hover {
	background-color: var(--plcs-blue-light);
}

.btn-filter.active {
	background-color: var(--plcs-yellow);
	color: var(--plcs-black);
}

/* Search input */
#staffSearch {
	border: 2px solid var(--plcs-blue);
}

#staffSearch:focus {
	border-color: var(--plcs-yellow);
	box-shadow: 0 0 0 0.2rem rgba(var(--plcs-yellow-rgb), 0.25);
}

/* Staff cards */
.staff-card {
	cursor: pointer;
	padding: 10px;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.staff-card:hover {
	background-color: rgba(var(--plcs-blue-rgb), 0.05);
	transform: translateY(-4px);
}

.staff-card img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border: 3px solid var(--plcs-yellow);
}

/* Modal styling */
.modal-content {
	border-radius: 16px;
}

.carousel-item h4 {
	color: var(--plcs-blue);
}

/*---------------------------------------
 * End Modal Styling (on /staff)
 * --------------------------------------*/

/*---------------------------------------
 * Fluent Forms Styling
 * --------------------------------------*/

.ff-el-section-break-border {
	margin-top: 50px;
	border-top: solid;
	border-top-color: var(--plcs-yellow);
	padding-top: 20px;
}

/*---------------------------------------
 * End Fluent Forms Styling
 * --------------------------------------*/

/*---------------------------------------
 * Footer
 * --------------------------------------*/

body.home #wrapper-footer {
    display: none;
}

#wrapper-footer {
    background-color: var(--plcs-blue);
    color: var(--plcs-white);
}

#wrapper-footer a {
    color: var(--plcs-white);
}

.social-icons {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1200px) {
	.social-icons {
		grid-template-columns: repeat(4, 1fr);
	}
}

.social-icons > a {
	max-width: 100px;
	height: auto;
}

/*---------------------------------------
 * End Footer
 * --------------------------------------*/

.seasonal-banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hide-this {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}
