/*
 * Site header and footer.
 *
 * Ported value-for-value from the previous React components, so the rendered
 * chrome matches the old site rather than approximating it.
 */

/* =================================================================== header */

.gvd-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: #0b1b3d;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Applied by theme.js once the page has scrolled past 20px. */
.gvd-header.is-scrolled {
	background: rgba(11, 27, 61, 0.95);
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* The header is fixed, so content starts below it: 2.25rem bar + 4rem nav. */
body { padding-top: 100px; }

/*
 * The logged-in admin bar is itself fixed at the top of the viewport, above
 * our header's z-index. Without this the top bar row sits behind it and the
 * html margin the admin bar adds opens a strip of page background between the
 * header and the first section.
 */
body.admin-bar .gvd-header { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar .gvd-header { top: 46px; }
}

/* The admin bar stops being fixed on small screens, so the header leads. */
@media screen and (max-width: 600px) {
	body.admin-bar .gvd-header { top: 0; }
}

.editor-styles-wrapper body { padding-top: 0; }

/* ------------------------------------------------------------- top bar --- */

.gvd-topbar { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.gvd-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 2.25rem;
}

.gvd-topbar__contact {
	display: none;
	align-items: center;
	gap: 1rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;
}

@media (min-width: 640px) { .gvd-topbar__contact { display: flex; } }

.gvd-topbar__sep,
.gvd-topbar__phone { display: none; }

@media (min-width: 768px) {
	.gvd-topbar__sep,
	.gvd-topbar__phone { display: inline; }
}

/* --------------------------------------------------- language switcher --- */

.gvd-lang { position: relative; }

.gvd-lang__toggle {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.375rem;
	border: 0;
	border-radius: 0.25rem;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.75rem;
	cursor: pointer;
	transition: color 0.2s ease;
}

.gvd-lang__toggle:hover { color: #fff; }

.gvd-lang__current { font-weight: 500; letter-spacing: 0.025em; }

.gvd-lang__list {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 2.75rem;
	margin-top: 0.25rem;
	padding: 0.25rem 0;
	list-style: none;
	border: 1px solid #f3f4f6;
	border-radius: 0.375rem;
	background: #fff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.gvd-lang__list button {
	display: block;
	width: 100%;
	padding: 0.375rem 0.75rem;
	border: 0;
	background: transparent;
	color: #1a1a2e;
	font-size: 0.75rem;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gvd-lang__list button:hover { background: #f9fafb; }

.gvd-lang__list button[aria-selected="true"] {
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
}

/* ----------------------------------------------------------------- nav --- */

.gvd-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.gvd-logo { display: inline-flex; align-items: center; }

.gvd-logo img { height: 4.5rem; width: 4.5rem; object-fit: contain; }

.gvd-nav__desktop { display: none; align-items: center; gap: 0.25rem; }

@media (min-width: 1024px) { .gvd-nav__desktop { display: flex; } }

.gvd-navlink,
.gvd-menu__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gvd-navlink:hover,
.gvd-menu__toggle:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
	text-decoration: none;
}

.gvd-navlink.is-current { color: #fff; }

.gvd-menu.is-open .gvd-menu__toggle {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

/* Chevron drawn in CSS so it needs no icon request. */
.gvd-caret {
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.gvd-menu.is-open .gvd-caret,
.gvd-lang.is-open .gvd-caret,
.gvd-drawer__section.is-open .gvd-caret {
	transform: translateY(1px) rotate(-135deg);
}

/* ------------------------------------------------------------ dropdowns -- */

.gvd-menu { position: relative; }

.gvd-menu__panel {
	position: absolute;
	top: 100%;
	z-index: 40;
	padding-top: 0.5rem;
}

.gvd-menu__panel--wide { left: 50%; transform: translateX(-50%); }
.gvd-menu__panel--narrow { left: 0; }

/* The white card inside the positioning wrapper. */
.gvd-menu__grid,
.gvd-menu__panel--narrow > a:first-of-type { position: relative; }

.gvd-menu__panel--wide .gvd-menu__grid {
	display: grid;
	gap: 0.25rem;
	width: 420px;
	padding: 1rem;
	border: 1px solid #f3f4f6;
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gvd-menu__panel--narrow {
	width: 14rem;
}

.gvd-menu__panel--narrow::before { content: none; }

.gvd-menu__panel--narrow > * { background: #fff; }

.gvd-menu__panel--narrow {
	/* Wrap the rows in a single card by styling the panel body. */
	filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}

.gvd-menu__panel--narrow > a:first-of-type {
	border-top-left-radius: 0.75rem;
	border-top-right-radius: 0.75rem;
	padding-top: 0.875rem;
}

.gvd-menu__panel--narrow > a:last-of-type {
	border-bottom-left-radius: 0.75rem;
	border-bottom-right-radius: 0.75rem;
	padding-bottom: 0.875rem;
}

.gvd-menu__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.gvd-menu__item:hover { background: #f9fafb; text-decoration: none; }

.gvd-menu__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 0.125rem;
	padding: 0.5rem;
	border-radius: 0.5rem;
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	transition: background-color 0.2s ease;
}

.gvd-menu__item:hover .gvd-menu__icon { background: rgba(37, 99, 235, 0.2); }

.gvd-menu__name {
	display: block;
	color: #1a1a2e;
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.gvd-menu__item:hover .gvd-menu__name { color: #2563eb; }

.gvd-menu__desc {
	display: block;
	margin-top: 0.125rem;
	color: #6b7280;
	font-size: 0.75rem;
}

.gvd-menu__row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 1rem;
	color: #1a1a2e;
	font-size: 0.875rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gvd-menu__row:hover { background: #f9fafb; color: #2563eb; text-decoration: none; }

.gvd-menu__rowicon { color: #6b7280; flex-shrink: 0; }

/* ------------------------------------------------------------- actions --- */

.gvd-nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.gvd-nav__cta { display: none; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500; }

@media (min-width: 640px) { .gvd-nav__cta { display: inline-flex; } }

.gvd-burger {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

@media (min-width: 1024px) { .gvd-burger { display: none; } }

.gvd-burger:hover { background: rgba(255, 255, 255, 0.1); }

.gvd-burger__bar { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }

/* -------------------------------------------------------------- drawer --- */

.gvd-drawer { position: fixed; inset: 0; z-index: 60; }

.gvd-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	animation: gvd-fade 0.2s ease;
}

.gvd-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 320px;
	max-width: 88vw;
	display: flex;
	flex-direction: column;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	background: #0b1b3d;
	overflow-y: auto;
	animation: gvd-slide-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gvd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gvd-slide-in { from { transform: translateX(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.gvd-drawer__scrim,
	.gvd-drawer__panel { animation: none; }
}

.gvd-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gvd-drawer__head .gvd-logo img { height: 3.5rem; width: 3.5rem; }

.gvd-drawer__close {
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.gvd-drawer__close:hover { background: rgba(255, 255, 255, 0.1); }

.gvd-drawer__nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; }

.gvd-drawer__link {
	padding: 0.75rem;
	border-radius: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gvd-drawer__link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; }

.gvd-drawer__sectiontoggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.75rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	font-family: inherit;
	font-size: 0.875rem;
	text-align: left;
	cursor: pointer;
}

.gvd-drawer__sectiontoggle:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.gvd-drawer__sectionbody { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.25rem 0 0.5rem 0.5rem; }

.gvd-drawer__sublink {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0.75rem;
	border-radius: 0.5rem;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.8125rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gvd-drawer__sublink:hover { background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; }

.gvd-drawer__sublink svg { color: #2563eb; flex-shrink: 0; }

.gvd-drawer__cta { margin-top: 0.75rem; width: 100%; }

/* =================================================================== footer */

.gvd-footer { position: relative; background: #0b1b3d; color: #fff; }

.gvd-footer__edge {
	height: 4px;
	width: 100%;
	background: linear-gradient(to right, #2563eb, rgba(37, 99, 235, 0.6), transparent);
}

.gvd-footer__main { padding-block: 4rem; }

.gvd-footer__grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.gvd-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.gvd-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
}

.gvd-footer__brand { grid-column: span 2; }

@media (min-width: 768px) { .gvd-footer__brand { grid-column: span 4; } }

.gvd-footer__col { grid-column: span 1; }

@media (min-width: 1024px) {
	.gvd-footer__brand { grid-column: span 4; }
	.gvd-footer__col { grid-column: span 2; }
}

.gvd-footer__blurb {
	max-width: 20rem;
	margin: 1.25rem 0 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
	line-height: 1.7;
}

.gvd-footer__social { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }

.gvd-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.8);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gvd-footer__social a:hover { background: #2563eb; color: #fff; }

.gvd-footer__heading {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
}

.gvd-footer__list { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }

.gvd-footer__list a,
.gvd-footer__address {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.2s ease;
}

.gvd-footer__list a:hover { color: #fff; text-decoration: none; }

.gvd-footer__icon { flex-shrink: 0; margin-top: 0.125rem; color: #2563eb; }

.gvd-footer__contact { grid-column: span 2; }

@media (min-width: 768px) { .gvd-footer__contact { grid-column: span 1; } }
@media (min-width: 1024px) { .gvd-footer__contact { grid-column: span 2; } }

/* ---------------------------------------------------------- CTA strip ---- */

.gvd-footer__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
	.gvd-footer__cta { flex-direction: row; align-items: center; }
}

.gvd-footer__ctatitle {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 600;
	color: #fff;
}

.gvd-footer__ctatext { margin: 0.25rem 0 0; color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; }

.gvd-footer__cta .gvd-btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }

/* -------------------------------------------------------- bottom bar ----- */

.gvd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.gvd-footer__bottominner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
}

@media (min-width: 640px) { .gvd-footer__bottominner { flex-direction: row; } }

.gvd-footer__bottominner p { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; }

.gvd-footer__legal { display: flex; align-items: center; gap: 1.5rem; }

.gvd-footer__legal a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.875rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gvd-footer__legal a:hover { color: #fff; text-decoration: none; }
