/*
Theme Name: GP Memorial
Theme URI: https://example.com/gp-memorial
Author: Nimej Agency
Description: Block theme for GP Memorial with flexible Gutenberg-based sections.
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Version: 0.1.0
Text Domain: gp-memorial
*/

:root {
	--gpm-header-gold-start: #f8ff80;
	--gpm-header-gold-end: #fff98f;
	--gpm-header-accent: #cca152;
	--gpm-header-button-bg: radial-gradient(67.8% 142.72% at 67.8% 50.91%, #515966 0%, #333333 30.91%, #202020 100%);
	--gpm-header-button-border: rgba(255, 255, 255, 0.55);
	--gpm-header-button-shadow: rgba(0, 0, 0, 0.16);
	--gpm-header-outer-shadow: rgba(29, 28, 25, 0.06);
	--gpm-header-text-dark: #202020;
	--gpm-text-primary: #202020;
	--gpm-text-secondary: #797979;
	--gpm-border-light: #d2d2d2;
	--gpm-border-dark: #b1b1b1;
	--gpm-bg-dark: #d9d9d9;
	--gpm-bg-medium: #f7f7f7;
	--gpm-bg-light: #ffffff;
	--gpm-button-secondary-dark: #6f6f6f;
	--gpm-button-secondary-light: #d8d8d8;
}

body {
	text-rendering: optimizeLegibility;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0;
	color: var(--gpm-text-primary);
	background: var(--gpm-bg-light);
}

h1,
.has-h-1-font-size {
	font-family: "Charis SIL", Georgia, serif;
	font-size: clamp(42px, 5vw, 64px);
	font-weight: 400;
	line-height: 74px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

h2,
.has-h-2-font-size {
	font-family: "Charis SIL", Georgia, serif;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 400;
	line-height: 50px;
	letter-spacing: 0;
	text-transform: uppercase;
}

h3,
.has-h-3-font-size,
.gpm-text-h3-regular,
.gpm-text-h3-bold {
	font-family: "Charis SIL", Georgia, serif;
	font-size: 32px;
	line-height: 40px;
	letter-spacing: 0;
}

h3,
.has-h-3-font-size,
.gpm-text-h3-bold {
	font-weight: 700;
}

.gpm-text-h3-regular {
	font-weight: 400;
}

h4,
.has-h-4-font-size,
.gpm-text-h4-regular,
.gpm-text-h4-bold {
	font-family: "Charis SIL", Georgia, serif;
	font-size: 22px;
	line-height: 28px;
	letter-spacing: 0;
}

h4,
.has-h-4-font-size,
.gpm-text-h4-bold {
	font-weight: 700;
}

.gpm-text-h4-regular {
	font-weight: 400;
}

.gpm-text-body-bold {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.gpm-text-body-semibold {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
}

.gpm-text-body-medium {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.gpm-text-body-regular {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.gpm-text-body-1 {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.gpm-text-caption {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
}

a {
	text-underline-offset: 0.18em;
}

.wp-site-blocks {
	min-height: 100vh;
}

.wp-block-site-title a,
.wp-block-navigation a,
.wp-block-post-title a {
	text-decoration: none;
}

.gpm-header-shell,
.gpm-footer-grid {
	width: 100%;
}

.gpm-header {
	position: relative;
	z-index: 20;
	box-shadow: 0 8px 24px var(--gpm-header-outer-shadow);
}

.gpm-header-topbar {
	background: linear-gradient(269.05deg, #f8ff80 4.06%, #faba61 45.93%, #cca152 83.82%, #e5b963 90.31%, #fff98f 99.2%);
	color: var(--gpm-header-text-dark);
}

.gpm-header-topbar a {
	color: inherit;
	text-decoration: none;
}

.gpm-header-topbar__grid {
	width: 100%;
	max-width: 1200px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	column-gap: 24px;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
	align-items: center;
}

.gpm-header-topbar__grid > .wp-block-column {
	display: flex;
	align-items: center;
	min-width: 0;
}

.gpm-header-topbar__grid.wp-block-columns {
	flex-wrap: nowrap;
}

.gpm-header-topbar__grid.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
	flex-basis: auto;
	flex-grow: 0;
	margin: 0;
}

.gpm-header-topbar__cell.is-start {
	justify-content: flex-start;
}

.gpm-header-topbar__cell.is-center {
	justify-content: center;
}

.gpm-header-topbar__cell.is-end {
	justify-content: flex-end;
}

.gpm-header-topbar__phone,
.gpm-header-topbar__note {
	margin: 0;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-style: normal;
	color: #202020;
	text-align: center;
	vertical-align: middle;
}

.gpm-header-topbar__phone {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0;
}

.gpm-header-topbar__note {
	font-size: 18px;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: 0.08em;
	text-transform: none;
}

.gpm-header-topbar .gpm-header-topbar__phone,
.gpm-header-topbar .gpm-header-topbar__phone a {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0;
	color: #202020;
}

.gpm-header-topbar .gpm-header-topbar__note {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: 0.08em;
	color: #202020;
	white-space: nowrap;
}

.gpm-header-social-links {
	display: inline-flex;
	gap: 12px;
}

.gpm-header-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.gpm-header-social-link img {
	display: block;
	width: 26.21px;
	height: 26.21px;
}

.gpm-header-main {
	background: #fffdfa;
}

.gpm-header-main .gpm-header-shell {
	max-width: 1200px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	column-gap: 0;
	margin-left: auto;
	margin-right: auto;
	align-items: center;
}

.gpm-site-meta {
	gap: 0;
	min-width: 0;
	flex-shrink: 0;
}

.gpm-site-meta .custom-logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.gpm-site-meta .custom-logo {
	width: 166px;
	height: 23.9646px;
	object-fit: contain;
}

.gpm-header-shell .wp-block-navigation {
	width: 100%;
	justify-content: flex-start;
	min-width: 0;
	margin-left: 53px;
}

.gpm-header-actions {
	gap: 0.75rem;
	flex-shrink: 0;
	justify-self: end;
	margin-left: 0;
}

.gpm-header-navigation {
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

.gpm-header .wp-block-woocommerce-customer-account,
.gpm-header .wc-block-mini-cart,
.gpm-header .wp-block-woocommerce-mini-cart,
.gpm-header .wc-block-mini-cart__button,
.gpm-header .wc-block-customer-account,
.gpm-header .wp-block-woocommerce-customer-account,
.gpm-header .wp-block-search__button-inside,
.gpm-header .wp-block-loginout {
	display: none !important;
}

.gpm-header-navigation .wp-block-navigation__container {
	gap: 22px;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

.gpm-header-navigation .wp-block-navigation-item {
	margin: 0;
	padding: 0;
}

.gpm-header-navigation .wp-block-navigation-item__content {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: 0;
	color: #202020;
	text-align: center;
	vertical-align: middle;
	transition: transform 0.2s ease, color 0.2s ease;
}

.gpm-header-navigation .wp-block-navigation-item__content[aria-current="page"],
.gpm-header-navigation .current-menu-item > .wp-block-navigation-item__content,
.gpm-header-navigation .current-menu-ancestor > .wp-block-navigation-item__content,
.home .gpm-header-navigation .wp-block-navigation-item:first-child > .wp-block-navigation-item__content,
.front-page .gpm-header-navigation .wp-block-navigation-item:first-child > .wp-block-navigation-item__content,
.gpm-header-navigation .wp-block-navigation-item__content:hover {
	color: #202020;
	transform: translateY(-3px);
}

.gpm-header-navigation .wp-block-navigation-item__content[aria-current="page"]::after,
.gpm-header-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.gpm-header-navigation .current-menu-ancestor > .wp-block-navigation-item__content::after,
.home .gpm-header-navigation .wp-block-navigation-item:first-child > .wp-block-navigation-item__content::after,
.front-page .gpm-header-navigation .wp-block-navigation-item:first-child > .wp-block-navigation-item__content::after,
.gpm-header-navigation .wp-block-navigation-item__content:hover::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 1.5px;
	background: linear-gradient(271.37deg, #e5b963 0.64%, #be944c 28.27%, #faba61 76.09%, #c59549 99.5%);
	border-radius: 999px;
}

.gpm-header-navigation .wp-block-navigation-submenu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 9.7549px;
	height: 9.7549px;
	margin-left: 6px;
}

.gpm-header-navigation .wp-block-navigation-submenu__toggle svg {
	display: none;
}

.gpm-header-navigation .wp-block-navigation-submenu__toggle::before {
	content: "+";
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: currentColor;
}

.gpm-header-navigation .wp-block-navigation__submenu-container {
	border: 1px solid rgba(35, 34, 32, 0.1);
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
	padding: 0.8rem;
	min-width: 14rem;
}

.gpm-header-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.gpm-header-cta.wp-block-button {
	display: inline-flex;
	align-items: stretch;
	justify-content: center;
	box-sizing: border-box;
	width: 294px;
	min-height: 55px;
	padding: 1.5px;
	background: radial-gradient(67.8% 142.72% at 67.8% 50.91%, #515966 0%, #333333 30.91%, #202020 100%);
	border-radius: 12px;
	box-shadow: inset 0 0 0 4px #696464;
	overflow: hidden;
}

.gpm-header-cta .wp-block-button__link {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 22px;
	background: transparent;
	border: 1px solid #d8d8d8;
	border-radius: 11px;
	color: #ffffff;
	font-family: "Charis SIL", Georgia, serif;
	font-size: 17px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0;
	text-align: center;
	vertical-align: middle;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}

.gpm-header-cta .wp-block-button__link:hover,
.gpm-header-cta .wp-block-button__link:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

.gpm-footer {
	margin-top: auto;
}

.gpm-footer-brand,
.gpm-footer-bottom {
	width: 100%;
}

.gpm-footer-note {
	opacity: 0.8;
	margin: 0;
}

@media (max-width: 781px) {
	.gpm-header-topbar__grid {
		grid-template-columns: 1fr;
		row-gap: 0;
	}

	.gpm-header-topbar {
		padding-top: 10px;
		padding-bottom: 10px;
		padding-right: 20px !important;
		padding-left: 20px !important;
	}

	.gpm-header-topbar__cell.is-start,
	.gpm-header-topbar__cell.is-end {
		display: none;
	}

	.gpm-header-topbar__grid > .wp-block-column,
	.gpm-header-topbar__cell.is-center {
		justify-content: center;
		width: 100%;
	}

	.gpm-header-topbar .gpm-header-topbar__note {
		font-size: 14px;
		line-height: 20px;
		font-weight: 600;
		letter-spacing: 0.03em;
		white-space: nowrap;
	}

	.gpm-header-main {
		padding-top: 20px !important;
		padding-right: 20px !important;
		padding-bottom: 20px !important;
		padding-left: 20px !important;
	}

	.gpm-header-shell {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"logo burger"
			"cta cta";
		align-items: center;
		row-gap: 16px;
	}

	.gpm-site-meta {
		grid-area: logo;
		width: auto;
		justify-content: flex-start;
	}

	.gpm-header-shell .wp-block-navigation {
		grid-area: burger;
		width: auto;
		min-width: auto;
		margin-left: 0;
		justify-self: end;
		justify-content: flex-end;
	}

	.gpm-header-navigation {
		width: auto;
		justify-content: flex-end;
	}

	.gpm-header-navigation .wp-block-navigation__container {
		align-items: flex-start;
		gap: 0.8rem;
	}

	.gpm-header-navigation .wp-block-navigation__responsive-container-open {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		width: 43px;
		height: 43px;
		padding: 1.5px;
		border: 0;
		border-radius: 11px;
		background: linear-gradient(269.05deg, #f8ff80 4.06%, #faba61 45.93%, #cca152 83.82%, #e5b963 90.31%, #fff98f 99.2%);
		box-shadow: inset 0 0 0 4px rgba(197, 149, 73, 0.9);
		color: #202020;
		overflow: hidden;
	}

	.gpm-header-navigation .wp-block-navigation__responsive-container-open::before {
		content: "";
		position: absolute;
		inset: 1.5px;
		border: 1px solid transparent;
		border-radius: 10px;
		background:
			linear-gradient(269.05deg, #f8ff80 4.06%, #faba61 45.93%, #cca152 83.82%, #e5b963 90.31%, #fff98f 99.2%) padding-box,
			linear-gradient(271.37deg, #f8ff80 0.64%, #faba61 44.14%, #c59549 69.32%, #be944c 77.15%, #cca152 83.51%, #e5b963 90.26%, #fff98f 99.5%) border-box;
		pointer-events: none;
	}

	.gpm-header-navigation .wp-block-navigation__responsive-container-open svg {
		position: relative;
		z-index: 1;
		width: 20px;
		height: 20px;
		fill: #333333;
		stroke: #333333;
	}

	.gpm-header-actions {
		grid-area: cta;
		width: 100%;
		display: flex;
		justify-content: center;
		justify-self: stretch;
	}

	.gpm-header-navigation .wp-block-navigation-item__content::after {
		display: none;
	}

	.gpm-header-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.gpm-header-cta.wp-block-button {
		width: 100%;
		max-width: none;
	}

	.gpm-footer-grid {
		gap: 1.5rem;
	}
}