/* =========================================================
   Precision Flight Controls — theme.css
   Component styling + animation on top of theme.json tokens.
   Tokens (colors, fonts, spacing) come from theme.json CSS vars
   (var(--wp--preset--color--pfc-blue), etc.).
   ========================================================= */

:root {
	--pfc-blue: #1d4594;
	--pfc-blue-deep: #132e63;
	--pfc-blue-bright: #4a7bd9;
	--pfc-bg: #0c0f15;
	--pfc-bg-2: #131822;
	--pfc-card: #182030;
	--pfc-line: rgba(255, 255, 255, 0.08);
	--pfc-text: #e8ecf3;
	--pfc-muted: #939598;
	--pfc-blue-glow: rgba(29, 69, 148, 0.45);
	--pfc-header-h: 84px;
}

html { scroll-behavior: smooth; }

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Accent gradient text utility (add class "pfc-accent-text" to a heading) */
.pfc-accent-text {
	background: linear-gradient(74deg, #ffffff 0%, #4a7bd9 50%, #1d4594 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
	line-height: 1.12;
	padding-bottom: 0.08em;
}

/* Give all headings room so descenders (g, y, p) are never clipped */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	padding-bottom: 0.04em;
	overflow: visible;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.wp-block-button__link {
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
	font-weight: 400;
}

/* Primary = filled blue gradient with glow */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(74deg, var(--pfc-blue) 0%, var(--pfc-blue-deep) 100%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 32px var(--pfc-blue-glow);
	color: #fff;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 40px var(--pfc-blue-glow);
	color: #fff;
}

/* Ghost = outline style */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--pfc-line);
	backdrop-filter: blur(10px);
	color: #fff;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(29, 69, 148, 0.18);
	border-color: var(--pfc-blue);
	transform: translateY(-2px);
	color: #fff;
}

/* =========================================================
   HEADER
   ========================================================= */
/* The header template part is wrapped in <header class="wp-block-template-part">.
   Sticky must live on that wrapper (its parent .wp-site-blocks is tall enough
   to stick against). The inner .pfc-header only carries the visual styling. */
header.wp-block-template-part {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 100;
	display: block;
}
.pfc-header {
	position: relative;
	z-index: 1;
	width: 100%;
	background: rgba(12, 15, 21, 0.82);
	border-bottom: 1px solid var(--pfc-line);
	transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Blur lives on a pseudo-element so the header does NOT become a containing
   block for the fixed mobile menu (which would otherwise clip it). */
.pfc-header::before {
	content: '';
	position: absolute;
	inset: 0;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	pointer-events: none;
	z-index: -1;
}
.pfc-header.is-stuck {
	background: rgba(10, 12, 18, 0.95);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* Top utility bar */
.pfc-topbar {
	border-bottom: 1px solid var(--pfc-line);
	background: rgba(19, 46, 99, 0.18);
}
.pfc-topbar .pfc-phone { margin: 0; }
.pfc-topbar .pfc-phone a::before {
	content: '';
	width: 13px;
	height: 13px;
	display: inline-block;
	background-color: var(--pfc-blue-bright);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pfc-topbar .wp-block-group {
	min-height: 0;
}
.pfc-topbar a {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	letter-spacing: 0.02em;
	font-size: 14px;
	color: var(--pfc-text) !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s ease;
}
.pfc-topbar a:hover { color: var(--pfc-blue-bright) !important; }

/* Main header row — equal vertical padding so spacing above and below the
   logo/nav/button matches. (Do NOT use --pfc-header-h here; that var is the
   full measured header height, used only for the mobile menu drop position.) */
.pfc-header-main {
	padding-top: 14px;
	padding-bottom: 14px;
}
.pfc-logo img {
	height: 84px;
	width: auto;
	display: block;
	transition: height 0.3s ease;
}
/* Logo stays the same size on scroll (no shrink/grow). */

/* Navigation */
.pfc-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--body, 'Inter', sans-serif);
	font-weight: 500;
	font-size: 15px;
}
.pfc-header .wp-block-navigation a {
	color: var(--pfc-text) !important;
	letter-spacing: 0.01em;
}
.pfc-header .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 4px;
}
/* Animated underline on top-level items */
.pfc-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--pfc-blue), var(--pfc-blue-bright));
	transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pfc-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.pfc-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after {
	width: 100%;
}

/* Submenus / dropdowns */
.pfc-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--pfc-card);
	border: 1px solid var(--pfc-line);
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	padding: 8px;
	min-width: 240px;
	overflow: hidden;
}
.pfc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 8px;
	padding: 10px 14px;
	transition: background 0.2s ease, color 0.2s ease;
}
.pfc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: rgba(29, 69, 148, 0.22);
	color: #fff !important;
}

/* Header CTA button sizing */
.pfc-header .wp-block-button__link {
	padding: 12px 24px;
	font-size: 15px;
}

/* Hamburger + close toggle colors */
.pfc-header .wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: #fff;
}

/* Mobile menu — drops in BELOW the header bar (logo + CTA stay visible),
   sits on top of the page content, and scrolls if tall. */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: var(--pfc-header-h) !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 99 !important;
	background: rgba(10, 12, 18, 0.985) !important;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	padding: 24px !important;
	overflow-y: auto !important;
	border-top: 1px solid var(--pfc-line);
}
/* Keep the header bar (logo + Request a Quote) above the dropping panel */
.pfc-header .pfc-header-main { position: relative; z-index: 2; }

/* All mobile menu items LEFT aligned; nested links get only a subtle indent */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	align-items: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	width: 100%;
	gap: 4px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 19px;
	width: 100%;
	justify-content: flex-start !important;
	text-align: left;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 2px 0 6px 18px !important;
	min-width: 0 !important;
	width: 100%;
	align-items: flex-start !important;
	justify-content: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	width: 100% !important;
	margin-left: 0 !important;
	justify-content: flex-start !important;
	text-align: left !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 16px;
	color: var(--pfc-muted) !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
.pfc-footer { color: var(--pfc-muted); }
.pfc-footer-cols { align-items: flex-start; }
.pfc-foot-brand .pfc-footer-logo { margin: 0 0 22px; }
.pfc-footer-logo img {
	height: 64px;
	width: auto;
	max-width: 240px;
}
.pfc-foot-h {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pfc-blue-bright);
	margin: 0 0 18px;
}
.pfc-foot-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pfc-foot-list li { margin: 0 0 10px; }
.pfc-footer a {
	color: var(--pfc-muted);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.pfc-foot-list a:hover {
	color: #fff;
	padding-left: 4px;
}
.pfc-foot-addr {
	color: var(--pfc-muted);
	line-height: 1.9;
	margin: 0;
	font-size: 15px;
}
.pfc-foot-addr a:hover { color: var(--pfc-blue-bright); }
.pfc-foot-social { gap: 10px; }
.pfc-foot-social .wp-social-link {
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--pfc-line);
	border-radius: 8px;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pfc-foot-social .wp-social-link:hover {
	background: rgba(29,69,148,0.25);
	border-color: var(--pfc-blue);
	transform: translateY(-2px);
}
.pfc-foot-sep {
	width: 100%;
	max-width: none;
	margin: 8px 0 24px;
	border: 0;
}
.pfc-footer-bottom { align-items: center; }
.pfc-foot-copy { color: var(--pfc-muted); font-size: 14px; margin: 0; }
.pfc-foot-legal { gap: 20px; }
.pfc-foot-legal p { margin: 0; font-size: 14px; }
.pfc-foot-legal a { color: var(--pfc-muted); }
.pfc-foot-legal a:hover { color: #fff; }

@media (max-width: 781px) {
	.pfc-footer-bottom { gap: 14px; justify-content: flex-start; }
	.pfc-foot-spacer-col { display: none; }
}

/* =========================================================
   SCROLL-REVEAL ANIMATION
   add class "pfc-reveal" to any block; JS toggles "is-visible"
   ========================================================= */
.pfc-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: opacity, transform;
}
.pfc-reveal.is-visible {
	opacity: 1;
	transform: none;
}
.pfc-reveal.pfc-reveal-delay-1 { transition-delay: 0.08s; }
.pfc-reveal.pfc-reveal-delay-2 { transition-delay: 0.16s; }
.pfc-reveal.pfc-reveal-delay-3 { transition-delay: 0.24s; }

/* =========================================================
   ECCENTRICS / PLACEHOLDER (temporary home preview)
   ========================================================= */
.pfc-eyebrow {
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--pfc-blue-bright);
	font-size: 16px;
	margin: 0 0 18px;
}
.pfc-hero-placeholder {
	position: relative;
	background:
		radial-gradient(1000px 480px at 80% 0%, rgba(29, 69, 148, 0.22), transparent 60%),
		radial-gradient(800px 420px at 12% 100%, rgba(19, 46, 99, 0.26), transparent 60%),
		var(--pfc-bg);
	overflow: hidden;
}
.pfc-hero-placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(29, 69, 148, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(29, 69, 148, 0.08) 1px, transparent 1px);
	background-size: 60px 60px;
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
	        mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
	pointer-events: none;
}
.pfc-hero-placeholder > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pfc-reveal { opacity: 1; transform: none; transition: none; }
	* { animation-duration: 0.001ms !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 781px) {
	.pfc-logo img { height: 58px; }
	.pfc-topbar { display: none; }
}
