/*
Theme Name: GPSDI KALBAR
Template: twentytwentyfive
Version: 1.0.0
*/

:root {
	--gpsdi-navy: #0b1b36;
	--gpsdi-navy-2: #102a52;
	--gpsdi-gold: #d6b15e;
	--gpsdi-gold-2: #f2d58a;
	--gpsdi-ink: #0c1222;
	--gpsdi-surface: #ffffff;
	--gpsdi-surface-2: #f7f8fb;
	--gpsdi-border: rgba(12, 18, 34, 0.12);
	--gpsdi-shadow: 0 18px 50px rgba(11, 27, 54, 0.18);
}

html {
	scroll-behavior: smooth;
}

body {
	background: radial-gradient(1200px 600px at 15% 10%, rgba(214, 177, 94, 0.18), transparent 60%),
		radial-gradient(900px 500px at 85% 0%, rgba(16, 42, 82, 0.22), transparent 55%),
		var(--gpsdi-surface);
}

/* Header (premium) */
.wp-site-blocks > header,
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 60;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: linear-gradient(
		180deg,
		rgba(11, 27, 54, 0.22),
		rgba(11, 27, 54, 0.06)
	);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 240ms ease, border-color 240ms ease;
}

body.gpsdi-header--scrolled .wp-site-blocks > header,
body.gpsdi-header--scrolled header.wp-block-template-part {
	background: linear-gradient(
		180deg,
		rgba(11, 27, 54, 0.78),
		rgba(11, 27, 54, 0.44)
	);
	border-bottom-color: rgba(255, 255, 255, 0.14);
}

.gpsdi-header__inner {
	padding-left: 14px;
	padding-right: 14px;
}

.gpsdi-header__inner {
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
	transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

body.gpsdi-header--scrolled .gpsdi-header__inner {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.gpsdi-header__brand .wp-block-site-logo img {
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.30));
}

.gpsdi-header__customLogo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
	overflow: clip;
}

.gpsdi-header__customLogoImg {
	display: block;
	max-width: 76%;
	max-height: 76%;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.30));
}

.gpsdi-header__brandtext .wp-block-site-title a {
	color: #ffffff;
	font-weight: 800;
	letter-spacing: -0.2px;
	text-decoration: none;
}

.gpsdi-header__brandtext .wp-block-site-tagline {
	margin-top: 2px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.92rem;
}

.gpsdi-header__nav a,
.gpsdi-header__nav .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-weight: 700;
}

.gpsdi-header__nav .wp-block-navigation-item__content {
	padding: 10px 12px;
	border-radius: 999px;
}

.gpsdi-header__nav .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, 0.08);
}

.gpsdi-header__ctaBtn .wp-block-button__link {
	border-radius: 999px;
	padding: 10px 14px;
	background: linear-gradient(135deg, var(--gpsdi-gold), var(--gpsdi-gold-2));
	color: rgba(11, 27, 54, 0.98) !important;
	font-weight: 900;
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
}

.gpsdi-header__ctaBtn .wp-block-button__link:hover {
	filter: brightness(1.03);
}

/* Navigation mobile overlay */
.gpsdi-header .wp-block-navigation__responsive-container.is-menu-open {
	background: linear-gradient(180deg, rgba(11, 27, 54, 0.98), rgba(11, 27, 54, 1));
}

.gpsdi-header .wp-block-navigation__responsive-container.is-menu-open a,
.gpsdi-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #ffffff;
}

.gpsdi-header .wp-block-navigation__responsive-container-close,
.gpsdi-header .wp-block-navigation__responsive-container-open {
	border-radius: 12px;
}

.gpsdi-logo {
	width: 72px;
	height: 72px;
	object-fit: contain;
	filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
}

.gpsdi-hero {
	position: relative;
	border-radius: 28px;
	overflow: clip;
	box-shadow: var(--gpsdi-shadow);
	background: linear-gradient(135deg, var(--gpsdi-navy), var(--gpsdi-navy-2));
	color: #fff;
}

.gpsdi-hero.gpsdi-hero--has-image::before {
	opacity: 0.85;
}

.gpsdi-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(700px 320px at 20% 20%, rgba(242, 213, 138, 0.35), transparent 60%),
		radial-gradient(900px 420px at 85% 15%, rgba(214, 177, 94, 0.22), transparent 55%);
	pointer-events: none;
}

.gpsdi-hero .wp-block-cover__inner-container {
	position: relative;
}

.gpsdi-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-size: 0.95rem;
	letter-spacing: 0.2px;
}

.gpsdi-section {
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--gpsdi-border);
	box-shadow: 0 10px 24px rgba(11, 27, 54, 0.07);
}

.gpsdi-section--muted {
	background: rgba(247, 248, 251, 0.92);
}

.gpsdi-card {
	border-radius: 18px;
	border: 1px solid var(--gpsdi-border);
	background: rgba(255, 255, 255, 0.90);
	box-shadow: 0 10px 24px rgba(11, 27, 54, 0.06);
}

.gpsdi-kicker {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.85rem;
	font-weight: 700;
	color: rgba(255,255,255,0.85);
}

.gpsdi-kicker--dark {
	color: rgba(11, 27, 54, 0.72);
}

.gpsdi-accent {
	color: var(--gpsdi-gold);
}

.gpsdi-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(214,177,94,0.55), transparent);
	margin: 0;
	border: 0;
}

.gpsdi-list {
	margin: 0;
	padding-left: 1.1rem;
}

.gpsdi-list li {
	margin-top: 0.5rem;
}

.gpsdi-social {
	margin: 0;
}

.gpsdi-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid var(--gpsdi-border);
	background: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	margin-left: 8px;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.gpsdi-pill:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(11, 27, 54, 0.12);
}

.gpsdi-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.gpsdi-gallery__item {
	display: block;
	border-radius: 16px;
	overflow: clip;
	border: 1px solid var(--gpsdi-border);
	box-shadow: 0 10px 24px rgba(11, 27, 54, 0.06);
	background: rgba(255,255,255,0.9);
	transform: translateZ(0);
}

.gpsdi-gallery__item img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
	transition: transform 240ms ease;
}

.gpsdi-gallery__item:hover img {
	transform: scale(1.03);
}

.gpsdi-leader__photo {
	border-radius: 18px;
	overflow: clip;
	border: 1px solid var(--gpsdi-border);
	box-shadow: 0 16px 40px rgba(11, 27, 54, 0.12);
	background: rgba(255, 255, 255, 0.92);
}

.gpsdi-leader__photo img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
}

.gpsdi-leader__message {
	font-size: 1.05rem;
	line-height: 1.6;
	margin-top: 0;
}

.gpsdi-leader__meta {
	margin-bottom: 0;
	color: rgba(11, 27, 54, 0.78);
}

.gpsdi-map {
	margin-top: 18px;
	border-radius: 16px;
	overflow: clip;
	border: 1px solid var(--gpsdi-border);
	background: rgba(255, 255, 255, 0.92);
}

.gpsdi-map iframe {
	display: block;
	width: 100%;
	height: 260px;
	border: 0;
}

.gpsdi-footer {
	background: radial-gradient(900px 600px at 15% 0%, rgba(214, 177, 94, 0.18), transparent 55%),
		linear-gradient(180deg, rgba(11, 27, 54, 0.96), rgba(11, 27, 54, 1));
	color: rgba(255, 255, 255, 0.86);
}

.gpsdi-footer h3,
.gpsdi-footer h4 {
	color: #ffffff;
	margin-top: 0;
}

.gpsdi-footer a {
	color: rgba(242, 213, 138, 0.92);
	text-decoration: none;
}

.gpsdi-footer a:hover {
	text-decoration: underline;
}

.gpsdi-footer__title {
	letter-spacing: -0.2px;
}

.gpsdi-footer__about {
	margin-top: 10px;
	margin-bottom: 0;
	max-width: 44ch;
}

.gpsdi-footer__item {
	margin-top: 0;
	margin-bottom: 14px;
}

.gpsdi-footer__list {
	margin: 0;
	padding-left: 1.1rem;
}

.gpsdi-footer__list li {
	margin-top: 8px;
}

.gpsdi-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gpsdi-footer__social a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
}

.gpsdi-footer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 260px;
	padding: 12px 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--gpsdi-gold), var(--gpsdi-gold-2));
	color: rgba(11, 27, 54, 0.98) !important;
	font-weight: 800;
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
	text-decoration: none !important;
}

.gpsdi-footer__divider {
	margin-top: 28px;
	margin-bottom: 18px;
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}

.gpsdi-footer__bottom {
	width: 100%;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.70);
}

.gpsdi-pagehero {
	margin-top: var(--wp--preset--spacing--50);
}

.gpsdi-pagehero h1 {
	margin-top: 10px;
}

.gpsdi-pagewrap .gpsdi-card {
	height: 100%;
}

.gpsdi-postcard {
	border-radius: 18px;
	border: 1px solid var(--gpsdi-border);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 10px 24px rgba(11, 27, 54, 0.06);
	margin-bottom: 16px;
}

.gpsdi-postcard .wp-block-post-title a {
	text-decoration: none;
	color: var(--gpsdi-ink);
	font-weight: 800;
}

.gpsdi-postcard .wp-block-post-date {
	color: rgba(11, 27, 54, 0.65);
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	.gpsdi-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	/* Global spacing improvements on mobile */
	.wp-site-blocks {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.gpsdi-hero {
		border-radius: 22px;
	}

	.gpsdi-hero.wp-block-cover,
	.wp-block-cover.gpsdi-hero {
		padding-left: 22px !important;
		padding-right: 22px !important;
		padding-top: 44px !important;
		padding-bottom: 44px !important;
	}

	.gpsdi-section {
		border-radius: 18px;
	}

	.gpsdi-section,
	.gpsdi-card {
		padding-left: 22px !important;
		padding-right: 22px !important;
	}

	.wp-block-columns {
		gap: 16px !important;
	}

	.gpsdi-leader__photo img {
		height: 240px;
	}

	.gpsdi-gallery {
		grid-template-columns: 1fr;
	}

	.gpsdi-gallery__item img {
		height: 190px;
	}
}

/* Buttons */
.wp-block-button .wp-block-button__link {
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(11, 27, 54, 0.18);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.wp-block-button .wp-block-button__link {
		transition: none;
	}

	.wp-block-button .wp-block-button__link:hover {
		transform: none;
	}
}
