/*
Theme Name: AOFCU Blocks
Theme URI: https://affinityonefcu.local
Author: Affinity One FCU
Author URI: https://affinityonefcu.local
Description: Full Site Editing block theme for Affinity One Federal Credit Union.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aofcu-blocks
*/

/* ─── Page Color Themes ─── */

body.theme-banking {
	--wp--preset--color--primary: #2E5EA1;
	--wp--preset--color--primary-dark: #1E3F6E;
	--wp--preset--color--primary-light: #EBF0F8;
}

body.theme-loans {
	--wp--preset--color--primary: #2E7D32;
	--wp--preset--color--primary-dark: #1B5E20;
	--wp--preset--color--primary-light: #E8F5E9;
}

body.theme-info {
	--wp--preset--color--primary: #5B2D8E;
	--wp--preset--color--primary-dark: #3F1F63;
	--wp--preset--color--primary-light: #F3EDF8;
}

/* ─── Reset & Base ─── */

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* ─── Announcement Bar ─── */

.announcement-bar {
	position: relative;
	z-index: 1001;
}

.announcement-bar p {
	margin: 0;
}

/* ─── Header ─── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1002;
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-header .wp-block-site-title a {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none !important;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.site-header .wp-block-navigation {
	gap: 0;
}

.site-header .wp-block-navigation a {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none !important;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	transition: background 0.2s;
}

.site-header .wp-block-navigation a:hover {
	background: var(--wp--preset--color--primary-light);
}

.site-header .wp-block-navigation .wp-block-navigation-submenu__toggle {
	color: var(--wp--preset--color--primary) !important;
}

/* Header buttons */
.header-login-btn a {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
	padding: 0.5rem 1.25rem !important;
	border-radius: 50px !important;
	font-weight: 600 !important;
	font-size: 0.875rem !important;
	text-decoration: none !important;
	border: none !important;
	transition: all 0.2s !important;
}

.header-login-btn a:hover {
	background: var(--wp--preset--color--primary-dark) !important;
}

.header-member-link a {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: underline !important;
	font-weight: 500;
	font-size: 0.875rem;
}

.header-member-link a:hover {
	color: var(--wp--preset--color--primary-dark) !important;
}

/* ─── Mega Menu ─── */

.mega-menu-nav {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mega-menu-trigger {
	position: relative;
}

.mega-menu-toggle {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	border: none;
	background: none;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.mega-menu-toggle:hover,
.mega-menu-trigger.is-active .mega-menu-toggle {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

.mega-menu-toggle svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
	transition: transform 0.2s;
}

.mega-menu-trigger.is-active .mega-menu-toggle svg {
	transform: rotate(180deg);
}

.mega-menu-panel {
	position: fixed;
	top: auto;
	left: 50%;
	transform: translateX(-50%);
	width: 1000px;
	max-width: calc(100vw - 2rem);
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--wp--preset--color--white);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 12px 40px rgba(91, 45, 142, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease;
	z-index: 999;
}

.mega-menu-panel.is-open {
	opacity: 1;
	visibility: visible;
}

.mega-menu-inner {
	display: flex;
}

.mega-menu-main {
	flex: 1;
	padding: 1.5rem 2rem;
	border-right: 1px solid var(--wp--preset--color--border);
}

.mega-menu-sidebar {
	width: 260px;
	padding: 2rem;
	flex-shrink: 0;
	background: #FAFAFA;
}

.mega-menu-section {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.mega-menu-section:first-child {
	padding-top: 0;
}

.mega-menu-section:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.mega-menu-section-title {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--body-text);
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mega-menu-section-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mega-menu-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1.5rem;
}

.mega-menu-link {
	text-decoration: none;
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: 8px;
	transition: background 0.15s;
}

.mega-menu-link:hover {
	background: var(--wp--preset--color--primary-light);
}

.mega-menu-link:hover .mega-menu-link-title {
	color: var(--wp--preset--color--primary);
}

.mega-menu-link-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	margin: 0 0 0.15rem;
	transition: color 0.15s;
}

.mega-menu-link-desc {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--body-text);
	line-height: 1.45;
	margin: 0;
}

.mega-menu-sidebar-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	margin: 0 0 0.75rem;
}

.mega-menu-sidebar-desc {
	font-size: 0.875rem;
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
	margin: 0 0 1.25rem;
}

.mega-menu-sidebar-btn {
	display: inline-block;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white) !important;
	padding: 0.6rem 1.5rem;
	border-radius: 50px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	box-shadow: 0 2px 8px rgba(91, 45, 142, 0.25);
}

.mega-menu-sidebar-btn:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(91, 45, 142, 0.3);
}

.mega-menu-sidebar-link {
	display: block;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s;
}

.mega-menu-sidebar-link:hover {
	color: var(--wp--preset--color--primary-dark) !important;
	text-decoration: underline;
}

/* No sidebar variant */
.mega-menu-panel.no-sidebar .mega-menu-main {
	border-right: none;
}

@media (max-width: 900px) {
	.mega-menu-nav {
		display: none;
	}

	.header-become-member {
		display: none !important;
	}
}

/* ─── Mobile Menu ─── */

.mobile-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	background: none;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	padding: 0;
}

.mobile-menu-icon-close {
	display: none;
}

.mobile-menu-toggle.is-active {
	position: fixed;
	top: 0.75rem;
	right: var(--wp--preset--spacing--40, 1.5rem);
	z-index: 1010;
}

.mobile-menu-toggle.is-active .mobile-menu-icon-open {
	display: none;
}

.mobile-menu-toggle.is-active .mobile-menu-icon-close {
	display: block;
}

@media (max-width: 900px) {
	.mobile-menu-toggle {
		display: flex;
	}
}

.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--wp--preset--color--white);
	z-index: 999;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-top: 70px;
}

.mobile-menu.is-open {
	display: block;
	margin-top: 0 !important;
}

.mobile-menu-inner {
	padding: 1rem 1.5rem 2rem;
}

.mobile-menu-section {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.mobile-menu-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 0;
	border: none;
	background: none;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	cursor: pointer;
}

.mobile-menu-heading svg {
	transition: transform 0.2s;
	fill: none;
}

.mobile-menu-heading.is-active svg {
	transform: rotate(180deg);
}

.mobile-menu-links {
	display: none;
	padding: 0 0 1rem;
}

.mobile-menu-links.is-open {
	display: block;
}

.mobile-menu-links a {
	display: block;
	padding: 0.6rem 0 0.6rem 0.75rem;
	color: var(--wp--preset--color--body-text);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	transition: color 0.15s;
}

.mobile-menu-links a:hover {
	color: var(--wp--preset--color--primary);
}

.mobile-menu-cta {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 1.5rem;
}

.mobile-menu-btn-outline {
	display: block;
	text-align: center;
	padding: 0.75rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50px;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: all 0.2s;
}

.mobile-menu-btn-outline:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.mobile-menu-btn-filled {
	display: block;
	text-align: center;
	padding: 0.75rem;
	background: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50px;
	color: var(--wp--preset--color--white);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: all 0.2s;
}

.mobile-menu-btn-filled:hover {
	background: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary-dark);
}

/* ─── Hero Card ─── */

.hero-card-image {
	margin-bottom: 0 !important;
}

.hero-card-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ─── Hero Banner ─── */

.hero-banner {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	min-height: 320px;
}

.hero-banner .wp-block-cover__inner-container {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.hero-content {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	padding: 2rem 2.5rem;
	max-width: 440px;
	backdrop-filter: blur(8px);
}

.hero-content h2 {
	font-size: 1.75rem !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	margin-bottom: 0.75rem !important;
	color: var(--wp--preset--color--dark) !important;
}

.hero-content p {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--body-text);
	margin-bottom: 1.25rem;
}

/* ─── Product Cards ─── */

.product-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.product-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 1.25rem;
	transition: box-shadow 0.2s, transform 0.2s;
	text-decoration: none !important;
}

.product-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.product-card .card-icon {
	width: 48px;
	height: 48px;
	background: var(--wp--preset--color--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--white);
}

.product-card .card-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.product-card h3 {
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	margin-bottom: 0.375rem !important;
	color: var(--wp--preset--color--dark) !important;
}

.product-card p {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--body-text);
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 900px) {
	.product-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* ─── Colored top-border cards ─── */

.card-accent-purple { border-top: 3px solid var(--wp--preset--color--primary) !important; }
.card-accent-blue { border-top: 3px solid var(--wp--preset--color--blue) !important; }
.card-accent-teal { border-top: 3px solid var(--wp--preset--color--teal) !important; }
.card-accent-green { border-top: 3px solid var(--wp--preset--color--green) !important; }
.card-accent-gold { border-top: 3px solid var(--wp--preset--color--gold) !important; }
.card-accent-orange { border-top: 3px solid var(--wp--preset--color--orange) !important; }

/* ─── Section Styles ─── */

.section-icon {
	width: 56px;
	height: 56px;
	background: var(--wp--preset--color--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.section-icon svg {
	width: 28px;
	height: 28px;
	fill: var(--wp--preset--color--white);
}

/* ─── Benefits Section ─── */

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	text-align: center;
}

.benefit-item {
	padding: 1rem;
}

.benefit-icon {
	width: 64px;
	height: 64px;
	background: var(--wp--preset--color--primary-light);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
}

.benefit-icon svg {
	width: 30px;
	height: 30px;
	fill: var(--wp--preset--color--primary);
}

.benefit-item h3 {
	font-size: 1rem !important;
	font-weight: 700 !important;
	margin-bottom: 0.5rem !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.benefit-item p {
	font-size: 0.875rem;
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
}

@media (max-width: 768px) {
	.benefits-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ─── CTA Banner ─── */

.cta-banner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: 16px;
	overflow: hidden;
	min-height: 240px;
}

.cta-banner-image {
	background-size: cover;
	background-position: center;
	min-height: 240px;
}

.cta-banner-content {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.5rem 3rem;
}

.cta-banner-content h2 {
	color: var(--wp--preset--color--white) !important;
	font-size: 1.75rem !important;
	font-weight: 800 !important;
	margin-bottom: 0.75rem !important;
}

.cta-banner-content p {
	font-size: 0.9375rem;
	opacity: 0.9;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.cta-banner {
		grid-template-columns: 1fr;
	}
}

/* ─── Buttons ─── */

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	border-radius: 50px;
	padding: 0.6rem 1.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	transition: all 0.25s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white) !important;
	border-color: var(--wp--preset--color--primary);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(91, 45, 142, 0.25);
}

/* Filled button */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	border-radius: 50px;
	padding: 0.7rem 1.75rem;
	font-weight: 600;
	font-size: 0.875rem;
	transition: all 0.25s ease;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(91, 45, 142, 0.25);
}

/* White outlined button (for dark backgrounds) */
.btn-outline-white .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--white) !important;
	background: transparent !important;
	border-radius: 50px !important;
}

.btn-outline-white .wp-block-button__link:hover {
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--primary-dark) !important;
}

/* Dark filled button */
.btn-dark .wp-block-button__link {
	background: var(--wp--preset--color--dark) !important;
	color: var(--wp--preset--color--white) !important;
	border-radius: 50px !important;
}

.btn-dark .wp-block-button__link:hover {
	background: #333 !important;
}

/* ─── Split Section ─── */

.split-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.split-section.reverse {
	direction: rtl;
}

.split-section.reverse > * {
	direction: ltr;
}

.split-section-image {
	border-radius: 16px;
	overflow: hidden;
}

.split-section-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 768px) {
	.split-section {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.split-section.reverse {
		direction: ltr;
	}
}

/* ─── Footer ─── */

.site-footer {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.site-footer ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 0 !important;
}

.site-footer a,
.site-footer li a {
	color: var(--wp--preset--color--white) !important;
}

.footer-cta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	flex-wrap: wrap;
	gap: 1rem;
	background: var(--wp--preset--color--white);
	margin-left: calc(-1 * var(--wp--preset--spacing--40));
	margin-right: calc(-1 * var(--wp--preset--spacing--40));
}

.footer-cta-bar p {
	color: var(--wp--preset--color--primary) !important;
}

.footer-cta-bar .site-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--wp--preset--color--white);
}

.footer-cta-bar .cta-text {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.8);
}

.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.site-footer a {
	color: var(--wp--preset--color--white) !important;
	transition: opacity 0.2s;
}

.site-footer a:hover {
	opacity: 0.8;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.85) !important;
	text-decoration: none !important;
	font-size: 0.875rem;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--wp--preset--color--white) !important;
	text-decoration: underline !important;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 1.5rem 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--white) !important;
	text-decoration: none !important;
	margin-right: 0.5rem;
	transition: background 0.2s;
}

.footer-social a:hover {
	background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
	.footer-links {
		grid-template-columns: repeat(2, 1fr);
	}
	.footer-cta-bar {
		flex-direction: column;
		text-align: center;
	}
}

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

/* ─── Awards Section ─── */

.awards-grid {
	display: flex;
	justify-content: center;
	gap: 3rem;
	flex-wrap: wrap;
}

.award-item {
	text-align: center;
	max-width: 200px;
}

.award-item img {
	height: 100px;
	width: auto;
	margin-bottom: 0.75rem;
}

.award-item p {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--body-text);
	line-height: 1.4;
}

/* ─── Decorative Backgrounds ─── */

/* Wave top - adds a wave shape at the top of a section */
.wave-top {
	position: relative;
}

.wave-top::before {
	content: "";
	position: absolute;
	top: -48px;
	left: 0;
	right: 0;
	height: 48px;
	background: inherit;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48h1440V24C1320 4 1200 0 1080 8c-120 8-240 28-360 32S480 36 360 24C240 12 120 4 0 8z' fill='%23fff'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48h1440V24C1320 4 1200 0 1080 8c-120 8-240 28-360 32S480 36 360 24C240 12 120 4 0 8z' fill='%23fff'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

/* Wave bottom - adds a wave shape at the bottom of a section */
.wave-bottom {
	position: relative;
}

.wave-bottom::after {
	content: "";
	position: absolute;
	bottom: -48px;
	left: 0;
	right: 0;
	height: 48px;
	background: inherit;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v24c-120 20-240 24-360 16-120-8-240-28-360-32S480 12 360 24C240 36 120 44 0 40z' fill='%23fff'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v24c-120 20-240 24-360 16-120-8-240-28-360-32S480 12 360 24C240 36 120 44 0 40z' fill='%23fff'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	z-index: 1;
}

/* Slant top - diagonal cut */
.slant-top {
	position: relative;
}

.slant-top::before {
	content: "";
	position: absolute;
	top: -60px;
	left: 0;
	right: 0;
	height: 60px;
	background: inherit;
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Slant bottom - diagonal cut */
.slant-bottom {
	position: relative;
}

.slant-bottom::after {
	content: "";
	position: absolute;
	bottom: -60px;
	left: 0;
	right: 0;
	height: 60px;
	background: inherit;
	clip-path: polygon(0 0, 100% 0, 0 100%);
	z-index: 1;
}

/* Curve top - smooth arc */
.curve-top {
	position: relative;
}

.curve-top::before {
	content: "";
	position: absolute;
	top: -60px;
	left: 0;
	right: 0;
	height: 60px;
	background: inherit;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60h1440V30C1080 0 360 0 0 30z' fill='%23fff'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60h1440V30C1080 0 360 0 0 30z' fill='%23fff'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

/* Curve bottom - smooth arc */
.curve-bottom {
	position: relative;
}

.curve-bottom::after {
	content: "";
	position: absolute;
	bottom: -60px;
	left: 0;
	right: 0;
	height: 60px;
	background: inherit;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v30C1080 60 360 60 0 30z' fill='%23fff'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v30C1080 60 360 60 0 30z' fill='%23fff'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	z-index: 1;
}

/* Spacing helpers - add margin to account for the decorative shape overflow */
.wave-top,
.curve-top { margin-top: 48px; }
.wave-bottom,
.curve-bottom { margin-bottom: 48px; }
.slant-top { margin-top: 60px; }
.slant-bottom { margin-bottom: 60px; }

/* ─── SVG Pattern Backgrounds ─── */

/* Wavy lines - subtle horizontal waves */
.bg-waves {
	background-color: #f0f0f0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='40' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 Q25 10 50 20 Q75 30 100 20 Q125 10 150 20 Q175 30 200 20' fill='none' stroke='%23d4d4d4' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size: 200px 40px;
}

.bg-waves-purple {
	background-color: var(--wp--preset--color--primary-light);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='40' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 Q25 10 50 20 Q75 30 100 20 Q125 10 150 20 Q175 30 200 20' fill='none' stroke='%23d6c4e8' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size: 200px 40px;
}

/* Dots grid */
.bg-dots {
	background-color: #f0f0f0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%23d4d4d4'/%3E%3C/svg%3E");
	background-size: 24px 24px;
}

.bg-dots-purple {
	background-color: var(--wp--preset--color--primary-light);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%23d6c4e8'/%3E%3C/svg%3E");
	background-size: 24px 24px;
}

/* Diagonal lines */
.bg-diagonal {
	background-color: #f0f0f0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 20L20 0' fill='none' stroke='%23d4d4d4' stroke-width='0.75'/%3E%3C/svg%3E");
	background-size: 20px 20px;
}

.bg-diagonal-purple {
	background-color: var(--wp--preset--color--primary-light);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 20L20 0' fill='none' stroke='%23d6c4e8' stroke-width='0.75'/%3E%3C/svg%3E");
	background-size: 20px 20px;
}

/* Cross / plus pattern */
.bg-cross {
	background-color: #f0f0f0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 12v8M12 16h8' fill='none' stroke='%23d4d4d4' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 32px 32px;
}

.bg-cross-purple {
	background-color: var(--wp--preset--color--primary-light);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 12v8M12 16h8' fill='none' stroke='%23d6c4e8' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 32px 32px;
}

/* ─── Query Loop Slider ─── */

.wp-block-query.is-style-slider {
	position: relative;
}

.wp-block-query.is-style-slider .wp-block-post-template.swiper {
	overflow: hidden;
	padding-bottom: 2.5rem;
}

.wp-block-query.is-style-slider .swiper-slide {
	height: auto;
}

.wp-block-query.is-style-slider .swiper-button-prev,
.wp-block-query.is-style-slider .swiper-button-next {
	color: var(--wp--preset--color--primary);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.2s;
}

.wp-block-query.is-style-slider .swiper-button-prev::after,
.wp-block-query.is-style-slider .swiper-button-next::after {
	font-size: 16px;
	font-weight: 700;
}

.wp-block-query.is-style-slider .swiper-button-prev:hover,
.wp-block-query.is-style-slider .swiper-button-next:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.wp-block-query.is-style-slider .swiper-pagination-bullet {
	background: var(--wp--preset--color--border);
	opacity: 1;
	transition: background 0.2s;
}

.wp-block-query.is-style-slider .swiper-pagination-bullet-active {
	background: var(--wp--preset--color--primary);
}

/* ─── Rates Table ─── */

/* Shared column sizing for header and rows */
.rates-table-header,
.rates-table-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1rem;
}

.rates-table-header > :nth-child(1),
.rates-table-term {
	flex: 1 1 0;
	min-width: 0;
}

.rates-table-header > :nth-child(2),
.rates-table-rate {
	flex: 0 0 80px;
	text-align: right;
}

/* Header styling */
.rates-table-header {
	background: var(--wp--preset--color--light-gray);
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.rates-table-header-cell {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--body-text);
}

/* Row styling */
.rates-table-row {
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: background 0.15s;
}

.rates-table-row:hover {
	background: var(--wp--preset--color--primary-light);
}

.rates-table-row h3 {
	display: none;
}

.rates-table-term {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--dark);
	font-weight: 600;
}

.rates-table-note {
	font-weight: 400;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--body-text);
}

.rates-table-rate {
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	font-size: 1.0625rem;
}

@media (max-width: 600px) {
	.rates-table-header {
		display: none;
	}

	.rates-table-row {
		flex-wrap: wrap !important;
		gap: 0.25rem 1rem;
	}

	.rates-table-term,
	.rates-table-rate {
		flex: 0 0 auto !important;
	}
}

/* ─── Rate Card ─── */

.rate-card {
	text-align: center;
	transition: box-shadow 0.2s, transform 0.2s;
}

.rate-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.rate-card-rate {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.25rem;
}

.rate-card-percent {
	font-size: 1.25rem;
	font-weight: 700;
}

.rate-card-term {
	font-size: 0.875rem;
	color: var(--wp--preset--color--body-text);
	margin-bottom: 0.5rem;
}

.rate-card-type {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--primary-dark);
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 0.75rem;
	margin-top: 0.75rem;
}

/* ─── Staff Card ─── */

.staff-card {
	text-align: center;
	transition: box-shadow 0.2s, transform 0.2s;
}

.staff-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.staff-card .wp-block-post-featured-image {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1rem;
}

.staff-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.staff-card .wp-block-post-title {
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	margin-bottom: 0.125rem !important;
}

.staff-card-title {
	font-size: 0.875rem;
	color: var(--wp--preset--color--primary);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.staff-card-email {
	font-size: 0.8125rem;
}

.staff-card-email a {
	color: var(--wp--preset--color--body-text);
	text-decoration: none;
	transition: color 0.15s;
}

.staff-card-email a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

/* ─── Location Card ─── */

.location-card {
	transition: box-shadow 0.2s;
}

.location-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.location-card .wp-block-post-title {
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	margin-bottom: 0.75rem !important;
}

.location-card-address {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
	margin-bottom: 0.75rem;
}

.location-card-phone,
.location-card-fax {
	font-size: 0.875rem;
	color: var(--wp--preset--color--body-text);
	margin-bottom: 0.25rem;
}

.location-card-phone a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.location-card-phone a:hover {
	text-decoration: underline;
}

.location-card-hours {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--body-text);
}

.location-card-hours strong {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--wp--preset--color--dark);
}

.location-hours-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.location-hours-list li {
	padding: 0.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 0.8125rem;
}

.location-hours-list li:last-child {
	border-bottom: none;
}

.location-card-note {
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

/* ─── Board Card ─── */

.board-card {
	text-align: center;
	transition: box-shadow 0.2s, transform 0.2s;
}

.board-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.board-card .wp-block-post-featured-image {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1rem;
}

.board-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.board-card .wp-block-post-title {
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	margin-bottom: 0.125rem !important;
}

.board-card-position {
	font-size: 0.875rem;
	color: var(--wp--preset--color--primary);
	font-weight: 500;
}

/* ─── Utility ─── */

.body-text {
	color: var(--wp--preset--color--body-text);
	font-size: 1rem;
}

.text-center {
	text-align: center;
}

.rounded-lg {
	border-radius: 16px;
	overflow: hidden;
}


/* ─── Disclaimer Text ─── */

.disclaimer-text {
	font-size: 0.6875rem;
	color: rgba(0, 0, 0, 0.45);
	line-height: 1.5;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 1.5rem;
	margin-top: 1.5rem;
}
