/*
Theme Name: LPC 2026
Theme URI: https://lpc.fletcheracademy.com
Author: Fletcher Academy IT
Author URI: https://www.fletcheracademy.com
Description: Custom theme for the Lelia Patterson Center — a modern, energetic look for Fletcher's community fitness and aquatics facility. Deep blue base with an aqua accent, bold display type, and full support for the LPC Scheduler plugin (schedules, events, bookings).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lpc2026
Tags: custom-theme, fitness, aquatics
*/

/* ==================================================================
   Design tokens
   ================================================================== */

:root {
	--lpc-navy: #1b4f8a;
	--lpc-navy-deep: #0e2c4e;
	--lpc-navy-mid: #123a66;
	--lpc-navy-050: #eef4fb;
	--lpc-aqua: #19b5d4;
	--lpc-aqua-dark: #0d8aa6;
	--lpc-aqua-050: #e5f7fb;
	--lpc-ink: #16283c;
	--lpc-ink-soft: #4a5d71;
	--lpc-line: rgba(27, 79, 138, 0.14);
	--lpc-gradient: linear-gradient(100deg, #1b4f8a 0%, #0d8aa6 60%, #19b5d4 100%);
	--lpc-font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
	--lpc-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--lpc-radius: 16px;
	--lpc-shadow: 0 8px 24px rgba(17, 41, 68, 0.08);
	--lpc-shadow-lg: 0 18px 44px rgba(17, 41, 68, 0.16);
	--lpc-max: 1180px;
}

/* ==================================================================
   Base
   ================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--lpc-font-body);
	font-size: 1.03rem;
	line-height: 1.65;
	color: var(--lpc-ink);
	background: #fff;
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lpc-font-display);
	font-weight: 700;
	line-height: 1.15;
	color: var(--lpc-navy-deep);
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.2em; }

a {
	color: var(--lpc-aqua-dark);
}

a:hover {
	color: var(--lpc-navy);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--lpc-aqua);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	background: #fff;
	color: var(--lpc-navy);
	padding: 0.8rem 1.2rem;
	z-index: 100000;
	border-radius: 8px;
	box-shadow: var(--lpc-shadow-lg);
	font-weight: 700;
	text-decoration: none;
}

.lpc-container {
	max-width: var(--lpc-max);
	margin: 0 auto;
	padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ==================================================================
   Buttons
   ================================================================== */

.lpc-btn {
	display: inline-block;
	font-family: var(--lpc-font-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.015em;
	padding: 0.9rem 2rem;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lpc-btn--primary {
	background: var(--lpc-gradient);
	color: #fff;
	box-shadow: 0 8px 20px rgba(27, 79, 138, 0.32);
}

.lpc-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(27, 79, 138, 0.42);
	color: #fff;
}

.lpc-btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.lpc-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
	transform: translateY(-2px);
	color: #fff;
}

.lpc-btn--navy {
	background: var(--lpc-navy);
	color: #fff;
	box-shadow: 0 8px 20px rgba(27, 79, 138, 0.3);
}

.lpc-btn--navy:hover {
	background: var(--lpc-navy-mid);
	transform: translateY(-2px);
	color: #fff;
}

/* ==================================================================
   Header
   ================================================================== */

.lpc-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 1000;
	background: rgba(14, 44, 78, 0.55);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.lpc-header.is-scrolled,
.lpc-header.is-solid {
	background: rgba(14, 44, 78, 0.96);
	box-shadow: 0 6px 24px rgba(6, 18, 33, 0.35);
}

.lpc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}

.lpc-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.lpc-header__logo-box {
	background: #fff;
	border-radius: 10px;
	padding: 0.35rem 0.55rem;
	display: inline-flex;
	box-shadow: 0 3px 10px rgba(6, 18, 33, 0.25);
}

.lpc-header__logo {
	height: 34px;
	width: auto;
	display: block;
}

.lpc-header__brand-text {
	display: none;
	color: #fff;
	font-family: var(--lpc-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.25;
	opacity: 0.92;
}

@media (min-width: 900px) {
	.lpc-header__brand-text {
		display: block;
	}
}

/* Navigation */

.lpc-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.lpc-nav__list,
.lpc-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
}

.lpc-nav a {
	display: block;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.55rem 0.85rem;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.lpc-nav a:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.lpc-nav .current-menu-item > a,
.lpc-nav .current_page_item > a {
	background: rgba(25, 181, 212, 0.22);
	color: #fff;
}

.lpc-header__cta {
	margin-left: 0.5rem;
	padding: 0.6rem 1.3rem;
	font-size: 0.92rem;
}

.lpc-nav-toggle {
	display: none;
	appearance: none;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 10px;
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
}

@media (max-width: 880px) {
	.lpc-nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
	}

	.lpc-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		background: rgba(14, 44, 78, 0.98);
		padding: 0.75rem 1.25rem 1.5rem;
		box-shadow: 0 20px 34px rgba(6, 18, 33, 0.4);
	}

	.lpc-nav.is-open {
		display: flex;
	}

	.lpc-nav__list,
	.lpc-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.lpc-nav a {
		padding: 0.8rem 1rem;
		font-size: 1.05rem;
	}

	.lpc-header__cta {
		margin: 0.75rem 0 0;
		text-align: center;
	}
}

/* ==================================================================
   Hero
   ================================================================== */

.lpc-hero {
	position: relative;
	min-height: min(92vh, 780px);
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 9rem 0 6rem;
}

.lpc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(115deg, rgba(10, 32, 58, 0.92) 0%, rgba(16, 55, 96, 0.72) 45%, rgba(13, 138, 166, 0.35) 100%);
}

.lpc-hero__content {
	position: relative;
	max-width: 46rem;
}

.lpc-hero__eyebrow {
	display: inline-block;
	font-family: var(--lpc-font-display);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #9fe6f5;
	margin-bottom: 1.1rem;
}

.lpc-hero__title {
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 4.1rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	margin-bottom: 1rem;
}

.lpc-hero__title em {
	font-style: normal;
	background: linear-gradient(100deg, #48d6f0, #9fe6f5);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lpc-hero__text {
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	color: rgba(255, 255, 255, 0.9);
	max-width: 38rem;
	margin-bottom: 2.2rem;
}

.lpc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Inner-page hero */

.lpc-page-hero {
	background: var(--lpc-gradient);
	color: #fff;
	padding: 10rem 0 4rem;
	position: relative;
	overflow: hidden;
}

.lpc-page-hero::after {
	content: "";
	position: absolute;
	right: -140px;
	top: -140px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.lpc-page-hero__title {
	color: #fff;
	margin: 0;
	position: relative;
	z-index: 1;
}

/* ==================================================================
   Sections
   ================================================================== */

.lpc-section {
	padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.lpc-section--tint {
	background: var(--lpc-navy-050);
}

.lpc-section__head {
	max-width: 44rem;
	margin-bottom: 2.6rem;
}

.lpc-section__eyebrow {
	display: inline-block;
	font-family: var(--lpc-font-display);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--lpc-aqua-dark);
	margin-bottom: 0.6rem;
}

.lpc-section__title {
	margin-bottom: 0.5rem;
}

.lpc-section__lead {
	color: var(--lpc-ink-soft);
	font-size: 1.08rem;
	margin: 0;
}

/* ==================================================================
   Hours strip
   ================================================================== */

.lpc-hours-strip {
	background: var(--lpc-navy-deep);
	color: #fff;
	padding: 1.6rem 0;
}

.lpc-hours-strip__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1.2rem 2rem;
	align-items: center;
}

.lpc-hours-strip__item h3 {
	color: #9fe6f5;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 0.3rem;
}

.lpc-hours-strip__item p {
	margin: 0;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.5;
}

/* ==================================================================
   Feature cards
   ================================================================== */

.lpc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.6rem;
}

.lpc-card {
	background: #fff;
	border-radius: var(--lpc-radius);
	overflow: hidden;
	box-shadow: var(--lpc-shadow);
	border: 1px solid var(--lpc-line);
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lpc-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--lpc-shadow-lg);
}

.lpc-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--lpc-navy-050);
}

.lpc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.lpc-card:hover .lpc-card__media img {
	transform: scale(1.045);
}

.lpc-card__body {
	padding: 1.4rem 1.5rem 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.lpc-card__title {
	margin: 0;
	font-size: 1.25rem;
}

.lpc-card__title a {
	color: var(--lpc-navy-deep);
	text-decoration: none;
}

.lpc-card__title a:hover {
	color: var(--lpc-aqua-dark);
}

.lpc-card__text {
	margin: 0;
	color: var(--lpc-ink-soft);
	font-size: 0.97rem;
}

.lpc-card__link {
	margin-top: auto;
	padding-top: 0.6rem;
	font-weight: 700;
	font-size: 0.93rem;
	text-decoration: none;
	color: var(--lpc-aqua-dark);
}

.lpc-card__link:hover {
	text-decoration: underline;
}

/* ==================================================================
   Stat band
   ================================================================== */

.lpc-stats {
	background: var(--lpc-gradient);
	color: #fff;
	padding: clamp(2.6rem, 5vw, 4rem) 0;
}

.lpc-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	text-align: center;
}

.lpc-stats__number {
	display: block;
	font-family: var(--lpc-font-display);
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.05;
}

.lpc-stats__label {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* ==================================================================
   CTA band
   ================================================================== */

.lpc-cta-band {
	background: var(--lpc-navy-deep);
	color: #fff;
	padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.lpc-cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem;
}

.lpc-cta-band__title {
	color: #fff;
	margin: 0 0 0.35rem;
}

.lpc-cta-band__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	max-width: 34rem;
}

.lpc-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* ==================================================================
   Content / entry
   ================================================================== */

.lpc-main {
	display: block;
}

.lpc-entry {
	padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}

.lpc-entry__content {
	max-width: 860px;
}

.lpc-entry__content > h2 {
	margin-top: 2rem;
}

.lpc-entry__content ul,
.lpc-entry__content ol {
	padding-left: 1.4rem;
	margin: 0 0 1.4rem;
}

.lpc-entry__content li {
	margin-bottom: 0.4rem;
}

.lpc-entry__content--wide {
	max-width: none;
}

.lpc-entry__content blockquote {
	border-left: 4px solid var(--lpc-aqua);
	margin: 1.6rem 0;
	padding: 0.4rem 0 0.4rem 1.4rem;
	color: var(--lpc-ink-soft);
	font-style: italic;
}

.wp-caption {
	max-width: 100%;
}

.alignleft { float: left; margin: 0 1.4rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.4rem; }
.aligncenter { display: block; margin: 0 auto 1.4rem; }

/* Event single */

.lpc-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
	background: var(--lpc-navy-050);
	border: 1px solid var(--lpc-line);
	border-radius: var(--lpc-radius);
	padding: 1.2rem 1.5rem;
	margin: 0 0 2rem;
	list-style: none;
}

.lpc-event-meta li {
	margin: 0;
}

.lpc-event-meta strong {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lpc-aqua-dark);
}

/* Search form + 404 */

.lpc-search-form {
	display: flex;
	gap: 0.6rem;
	max-width: 460px;
}

.lpc-search-form input[type="search"] {
	flex: 1;
	font: inherit;
	padding: 0.7rem 1rem;
	border: 1.5px solid #c4d2e0;
	border-radius: 999px;
	background: #fbfdff;
}

.lpc-search-form input[type="search"]:focus {
	outline: 3px solid var(--lpc-aqua);
	border-color: var(--lpc-navy);
}

.lpc-404 {
	text-align: center;
	padding: clamp(4rem, 10vw, 7rem) 0;
}

.lpc-404__code {
	font-family: var(--lpc-font-display);
	font-size: clamp(4.5rem, 14vw, 8rem);
	font-weight: 800;
	line-height: 1;
	background: var(--lpc-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin: 0 0 0.5rem;
}

.lpc-404 .lpc-search-form {
	margin: 2rem auto 0;
	justify-content: center;
}

/* Archive / index cards */

.lpc-post-list {
	display: grid;
	gap: 1.6rem;
	max-width: 860px;
}

.lpc-post-list__item {
	background: #fff;
	border: 1px solid var(--lpc-line);
	border-radius: var(--lpc-radius);
	box-shadow: var(--lpc-shadow);
	padding: 1.6rem 1.8rem;
}

.lpc-post-list__item h2 {
	margin: 0 0 0.4rem;
	font-size: 1.4rem;
}

.lpc-post-list__item h2 a {
	color: var(--lpc-navy-deep);
	text-decoration: none;
}

.lpc-post-list__item h2 a:hover {
	color: var(--lpc-aqua-dark);
}

.lpc-post-list__date {
	font-size: 0.85rem;
	color: var(--lpc-ink-soft);
	margin: 0 0 0.6rem;
}

/* ==================================================================
   Footer
   ================================================================== */

.lpc-footer {
	background: #0a2038;
	color: rgba(255, 255, 255, 0.85);
	padding: clamp(3rem, 6vw, 4.2rem) 0 0;
	font-size: 0.95rem;
}

.lpc-footer a {
	color: #9fe6f5;
	text-decoration: none;
}

.lpc-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.lpc-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2.4rem;
	padding-bottom: 2.6rem;
}

.lpc-footer__brand img {
	background: #fff;
	border-radius: 10px;
	padding: 0.45rem 0.65rem;
	height: 44px;
	width: auto;
}

.lpc-footer__tagline {
	margin: 1rem 0 0;
	font-family: var(--lpc-font-display);
	font-weight: 600;
	color: #9fe6f5;
	letter-spacing: 0.04em;
}

.lpc-footer h2 {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.lpc-footer address {
	font-style: normal;
	line-height: 1.7;
	margin: 0;
}

.lpc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 2;
}

.lpc-footer__hours p {
	margin: 0 0 0.6rem;
	line-height: 1.55;
}

.lpc-footer__hours strong {
	color: #fff;
}

.lpc-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1.3rem 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}

.lpc-footer__bottom .lpc-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
}

/* ==================================================================
   Utility / motion
   ================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
