/* AMLAB base — shared utilities ported from the KBIT design system, header/footer, buttons. */

::selection {
	background: rgba(197, 161, 90, 0.35);
}

/* theme.json emits `.has-text-color{color:text !important}` which, being later
 * in the cascade with equal specificity, overrides `.has-white-color`. Restore
 * white with a higher-specificity !important so white headings/text stay white. */
.has-white-color.has-text-color {
	color: var(--wp--preset--color--white) !important;
}
.has-gold-color.has-text-color {
	color: var(--wp--preset--color--gold) !important;
}
.has-navy-color.has-text-color {
	color: var(--wp--preset--color--navy) !important;
}
.has-aurora-color.has-text-color {
	color: var(--wp--preset--color--aurora) !important;
}

html {
	scroll-behavior: smooth;
}

/* WordPress inserts a 1.5rem gap between top-level blocks
 * (`:where(.wp-site-blocks) > *`). Our sections are full-bleed and manage
 * their own padding, so the gap only leaves a white strip under the sticky
 * header — remove it. */
.wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.kbit-container {
	width: min(100% - 2rem, 1180px);
	margin-inline: auto;
}

/* ===== Shared surface utilities ===== */

.kbit-shell-bg {
	background:
		linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(246, 243, 236, 0.82)),
		radial-gradient(circle at 72% 28%, rgba(197, 161, 90, 0.15), transparent 22rem),
		radial-gradient(circle at 86% 16%, rgba(79, 120, 165, 0.16), transparent 20rem);
}

.portrait-placeholder {
	background:
		linear-gradient(180deg, rgba(238, 241, 248, 0.75), rgba(255, 255, 255, 0.95)),
		radial-gradient(circle at 50% 28%, rgba(32, 41, 64, 0.12), transparent 5rem);
}

.kbit-dark-hero {
	color: #fff;
	background-color: #0c1220;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
		radial-gradient(ellipse 80% 55% at 50% -10%, rgba(79, 120, 165, 0.28) 0%, transparent 65%),
		radial-gradient(ellipse 34% 28% at 58% 64%, rgba(233, 220, 195, 0.07) 0%, transparent 60%),
		radial-gradient(ellipse 40% 35% at 88% 45%, rgba(197, 161, 90, 0.09) 0%, transparent 50%),
		radial-gradient(ellipse 50% 40% at 12% 90%, rgba(21, 28, 44, 0.55) 0%, transparent 50%),
		linear-gradient(165deg, rgba(12, 18, 32, 1) 0%, rgba(21, 28, 44, 1) 55%, rgba(15, 24, 40, 1) 100%);
	background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.kbit-glass {
	background: rgba(255, 255, 255, 0.055);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.09);
}

.kbit-glass-light {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(22px) saturate(150%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
}

.kbit-grid-pattern {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
	background-size: 44px 44px;
}

.text-gradient-gold {
	background: linear-gradient(135deg, var(--vt-red) 0%, #e9cc8a 45%, var(--vt-red) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.kbit-pillar {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.kbit-pillar:hover {
	transform: translateY(-4px);
	border-color: rgba(197, 161, 90, 0.35);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(197, 161, 90, 0.1);
}

.kbit-beam {
	background: linear-gradient(90deg, transparent, rgba(197, 161, 90, 0.65), transparent);
}

@keyframes kbit-pulse-soft {
	0%, 100% { opacity: 0.55; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.5); }
}

.kbit-pulse-dot {
	animation: kbit-pulse-soft 2.4s ease-in-out infinite;
}

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

.amlab-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(21, 28, 44, 0.88) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* Nav links — matched to the Next reference: 13px / 600 / white-80,
 * rounded-md pill hover with a subtle white wash. */
.amlab-header .wp-block-navigation a,
.amlab-header .wp-block-navigation .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	transition: background 0.2s ease, color 0.2s ease;
}

.amlab-header .wp-block-navigation a:hover,
.amlab-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.1);
}

.amlab-header .wp-block-navigation .current-menu-item > a,
.amlab-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--vt-red) !important;
}

/* Gold underline bar under the active item (matches the Next reference). */
.amlab-header .wp-block-navigation .current-menu-item {
	position: relative;
}

.amlab-header .wp-block-navigation .current-menu-item::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: -2px;
	height: 2px;
	border-radius: 999px;
	background: var(--vt-red);
}

/* Keep the header on a single row (logo · nav · switcher · register). */
.amlab-header > .wp-block-group {
	flex-wrap: nowrap !important;
	gap: 1.25rem;
	min-height: 76px;
}

.amlab-header .amlab-header__nav {
	flex-wrap: nowrap;
	gap: 0.15rem;
	justify-content: center;
	flex: 1;
}

.amlab-header .wp-block-site-logo img { height: 44px; width: auto; }

/* Register — gold OUTLINE, rounded-md, fills gold on hover (not a solid pill). */
.amlab-header__cta .wp-block-button__link,
.amlab-header__cta.is-style-amlab-cta-gold .wp-block-button__link {
	background: transparent !important;
	color: var(--vt-red) !important;
	border: 1px solid var(--vt-red) !important;
	border-radius: 6px !important;
	padding: 0.5rem 1rem !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	transition: background 0.2s ease, color 0.2s ease !important;
}

.amlab-header__cta .wp-block-button__link:hover {
	background: var(--vt-red) !important;
	color: var(--vt-ink) !important;
	transform: none !important;
}

/* Dropdown submenu — rounded-lg dark card like the reference. */
.amlab-header .wp-block-navigation__submenu-container {
	background: rgba(21, 28, 44, 0.96) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 10px !important;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
	padding: 0.25rem;
}

@media (max-width: 1080px) {
	.amlab-header .amlab-header__nav a { padding: 0.5rem 0.5rem; }
}

/* Keep hover dropdowns above the page hero (position:relative z-10). The header
   itself is already sticky with z-index:90 above. */
.amlab-header .wp-block-navigation__submenu-container {
	background: var(--vt-ink) !important;
	border: 1px solid rgba(255, 255, 255, 0.09) !important;
	border-radius: 12px;
	min-width: 15rem;
	z-index: 100 !important;
}

/* Submenu items — Next dropdown rows: white/75, rounded hover fill. */
.amlab-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1rem;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}
.amlab-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}
.amlab-header .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	color: var(--vt-red);
}

.amlab-header__title a {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
}

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

.amlab-footer .amlab-footer__tagline {
	color: rgba(255, 255, 255, 0.65);
	max-width: 22rem;
}

.amlab-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s ease;
}

.amlab-footer a:hover {
	color: var(--vt-red);
}

.amlab-footer__rule {
	opacity: 0.5;
	width: 100%;
}

.amlab-footer__copyright {
	color: rgba(255, 255, 255, 0.45);
}

/* Top CTA band */
.amlab-footer-band {
	gap: 1.5rem 2rem;
	margin-bottom: 2.5rem;
}

.amlab-footer-band h2 {
	max-width: 32rem;
	line-height: 1.2;
}

/* Main columns row */
.amlab-footer-main {
	gap: 2.5rem 3rem;
	align-items: flex-start;
}

.amlab-footer-brand .amlab-footer__social {
	margin-top: 1.25rem;
	gap: 0.25rem;
}

.amlab-footer-brand .amlab-footer__social a { color: #fff; }

.amlab-footer-cols {
	gap: 2rem 3rem;
	flex: 1;
	justify-content: flex-end;
}

.amlab-footer-col {
	min-width: 8.5rem;
}

.amlab-footer-col__title {
	color: #fff;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	margin-bottom: 0.9rem;
}

.amlab-footer-col__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.amlab-footer-col__list li { font-size: 0.85rem; }

.amlab-footer-col__contact {
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.7;
}

@media (max-width: 900px) {
	.amlab-footer-cols { justify-content: flex-start; }
}

/* ===== Language switcher ===== */

/* Footer lists never show markers/indent (preflight is off, so belt-and-braces). */
.amlab-footer ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

/* Nav submenu — core right-justifies dropdowns on the last item / right-aligned
   nav (right:0), which pushes them off toward the edge. Anchor them under the
   parent instead. */
.wp-block-navigation.items-justified-space-between .wp-block-page-list > .has-child:last-child .wp-block-navigation__submenu-container,
.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child .wp-block-navigation__submenu-container,
.wp-block-navigation.items-justified-right .wp-block-page-list > .has-child .wp-block-navigation__submenu-container,
.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container {
	right: auto;
	left: 0;
}

/* Outer pill container with a subtle border/bg (matches the Next reference). */
.amlab-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0 0.5rem;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.05);
}

.amlab-lang-switch__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	min-width: 32px;
	padding: 0 8px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.02em;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.amlab-lang-switch__item:hover { color: #fff; }

/* Active language — gold border, midnight fill, gold text. */
.amlab-lang-switch__item.is-active {
	border-color: rgba(197, 161, 90, 0.6);
	background: var(--vt-ink);
	color: var(--vt-red);
}

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

.is-style-amlab-cta-gold .wp-block-button__link {
	background: linear-gradient(135deg, #d4ac62 0%, var(--vt-red) 60%, #b08d47 100%);
	color: var(--vt-ink);
	box-shadow: 0 0 24px rgba(197, 161, 90, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
	transition: box-shadow 0.3s ease, transform 0.2s ease;
	border-radius: 999px;
}

.is-style-amlab-cta-gold .wp-block-button__link:hover {
	box-shadow: 0 0 44px rgba(197, 161, 90, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
	transform: translateY(-1px);
	color: var(--vt-ink);
}

.is-style-amlab-outline-light .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.is-style-amlab-outline-light .wp-block-button__link:hover {
	border-color: var(--vt-red);
	color: var(--vt-red);
	background: rgba(197, 161, 90, 0.08);
}

/* ===== Contact Form 7 ===== */

.amlab-form-wrap { box-shadow: 0 14px 40px rgba(21, 28, 44, 0.08); }

.wpcf7 label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--vt-ink);
	margin-bottom: 1rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--vt-border);
	border-radius: 0.6rem;
	background: var(--vt-muted);
	font-size: 0.9rem;
	color: var(--vt-ink);
	font-weight: 400;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--vt-red);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(197, 161, 90, 0.15);
}

.wpcf7 textarea { min-height: 120px; resize: vertical; }

.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-acceptance {
	display: block;
	font-weight: 400;
	font-size: 0.85rem;
	margin: 0.35rem 0;
}

.wpcf7 .wpcf7-submit {
	background: linear-gradient(135deg, #d4ac62 0%, var(--vt-red) 60%, #b08d47 100%);
	color: var(--vt-ink);
	font-weight: 700;
	border: none;
	border-radius: 999px;
	padding: 0.8rem 2rem;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(197, 161, 90, 0.25);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	margin-top: 0.5rem;
}

.wpcf7 .wpcf7-submit:hover {
	box-shadow: 0 0 30px rgba(197, 161, 90, 0.4);
	transform: translateY(-1px);
}

.wpcf7-response-output {
	border-radius: 0.6rem;
	margin: 1rem 0 0;
	padding: 0.8rem 1rem;
	font-size: 0.85rem;
}

.wpcf7 form.sent .wpcf7-response-output { border-color: var(--vt-red); color: var(--vt-ink); }

/* ===== Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kbit-pulse-dot { animation: none; }
	.kbit-pillar,
	.kbit-pillar:hover,
	.is-style-amlab-cta-gold .wp-block-button__link:hover { transform: none; transition: none; }
}

/* ===== Mobile header — logo + hamburger only (matches the reference) ===== */
@media (max-width: 782px) {
	/* Switcher + Register leave the cramped top bar (they overflowed to 3 lines).
	 * `!important` beats core `.wp-block-buttons.is-layout-flex { display:flex }`. */
	.amlab-header .amlab-lang-switch,
	.amlab-header .amlab-header__cta { display: none !important; }

	.amlab-header > .wp-block-group { min-height: 60px; }
}

/* The header's backdrop-filter creates a containing block that traps the
 * position:fixed nav overlay to the header's height (~60px). Drop it while the
 * drawer is open so the overlay fills the viewport. */
html.has-modal-open .amlab-header {
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

/* Nav overlay (drawer) — column layout: logo · nav · bottom bar. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex;
	flex-direction: column;
	align-items: stretch !important;
	width: 100%;
	min-height: 100%;
}

/* Logo cloned into the drawer top by mobile-menu.js. */
.amlab-drawer-brand {
	padding: 0.25rem 0 1.5rem;
}

.amlab-drawer-brand .wp-block-site-logo img {
	height: 40px;
	width: auto;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 0.15rem;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-self: stretch !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	justify-content: flex-start !important;
	text-align: left !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
}

/* In the drawer the submenu is a plain indented list, not the floating dark
 * card used for the desktop dropdown. Visibility is left to the toggle
 * (openSubmenusOnClick) so it collapses/expands on tap. */
/* The submenu <li> lays its label + toggle in a row; let the submenu container
   wrap onto its own full-width line beneath them (instead of being pushed right). */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.wp-block-navigation-submenu {
	flex-wrap: wrap !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	flex-basis: 100% !important;
	width: auto !important;
	min-width: 0 !important;
	align-self: stretch !important;
	margin: 0.1rem 0.9rem 0.35rem 0.9rem !important;
	background: transparent !important;
	border: none !important;
	border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 0 0 0.6rem !important;
	transform: none !important;
	position: static !important;
	inset: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	/* Collapsed by default in the drawer — tap the chevron to expand (accordion). */
	display: none !important;
}

/* Expand a submenu when its toggle is open (aria-expanded set by the tap handler). */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	display: block !important;
}

/* Chevron toggle: force it visible + clickable in the drawer (core hides it in
   hover mode), pushed to the right edge of the row. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
	display: inline-flex !important;
	align-items: center;
	order: 2;
	margin-left: auto !important;
	padding: 0.5rem 0.6rem !important;
	color: rgba(255, 255, 255, 0.55);
	background: transparent;
	border: 0;
	cursor: pointer;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
	transform: rotate(180deg);
	color: rgba(255, 255, 255, 0.85);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	flex: 1;
}

/* Sub-items: dimmer + smaller so the hierarchy reads like the Next accordion. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 0.6rem !important;
	font-size: 0.92rem !important;
	color: rgba(255, 255, 255, 0.66) !important;
}

/* The desktop active underline bar is irrelevant in the stacked drawer. */
.wp-block-navigation__responsive-container.is-menu-open .current-menu-item::after {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	justify-content: flex-start;
	text-align: left;
	font-size: 1rem;
	padding: 0.65rem 0.9rem;
}

/* Switcher + register: moved into the drawer by mobile-menu.js. In normal flow
 * with margin-top:auto they sit at the bottom and never get clipped. */
.amlab-drawer-extras {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 2rem;
}

.amlab-drawer-extras .amlab-lang-switch {
	display: flex !important;
	align-self: stretch;
	justify-content: center;
	margin: 0;
}

.amlab-drawer-extras .amlab-header__cta { display: flex !important; }

.amlab-drawer-extras .amlab-header__cta .wp-block-button,
.amlab-drawer-extras .amlab-header__cta .wp-block-button__link {
	width: 100%;
	justify-content: center;
}

/* Bordered rounded hamburger button like the reference. Core's default glyph is
   a 2-bar icon; swap it for the lucide 3-line Menu icon (matches Next). */
.amlab-header .wp-block-navigation__responsive-container-open {
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='20' y1='6' y2='6'/%3E%3Cline x1='4' x2='20' y1='12' y2='12'/%3E%3Cline x1='4' x2='20' y1='18' y2='18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}
.amlab-header .wp-block-navigation__responsive-container-open svg {
	display: none !important;
}
