/*
 * Global site chrome — header, primary/mobile navigation, footer.
 * Loaded on every page (unlike products-archive.css). Depends on
 * tokens.css and base.css (container, button, visually-hidden utility).
 */

/* ---------- Skip link ---------- */

.ff-skip-link {
	position: absolute;
	top: -100%;
	left: var(--ff-space-3);
	z-index: 1000;
	background-color: var(--ff-primary-red);
	color: var(--ff-white);
	padding: var(--ff-space-3) var(--ff-space-5);
	border-radius: var(--ff-radius-sm);
	font-weight: var(--ff-font-weight-secondary);
	text-decoration: none;
	transition: top 0.15s ease;
}

.ff-skip-link:focus {
	top: var(--ff-space-3);
}

/* ---------- Header ---------- */

.ff-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--ff-white);
	border-bottom: 1px solid var(--ff-warm-gray);
}

.ff-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ff-space-6);
	padding-block: 0.65rem;
}

/* Real Falcon Fire corporate logo (currently served from the
   production Media Library — see fcf_get_logo_url()). Width/height
   attributes on the <img> itself reserve the correct aspect-ratio
   space before load; CSS below only controls the rendered width,
   never a fixed height, so the artwork is never stretched/squashed. */
.ff-site-header__logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	text-decoration: none;
}

.ff-site-header__logo-image {
	display: block;
	width: 135px;
	height: auto;
}

@media (min-width: 768px) {
	.ff-site-header__logo-image {
		width: 150px;
	}
}

@media (min-width: 1025px) {
	.ff-site-header__logo-image {
		width: 155px;
	}
}

.ff-site-nav {
	display: none;
}

.ff-site-nav__list {
	display: flex;
	align-items: center;
	gap: var(--ff-space-6);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ff-site-nav__link {
	position: relative;
	display: inline-block;
	padding-block: var(--ff-space-2);
	font-size: 0.9375rem;
	font-weight: var(--ff-font-weight-secondary);
	color: var(--ff-charcoal);
	text-decoration: none;
	transition: color 0.15s ease;
}

.ff-site-nav__link:hover {
	color: var(--ff-primary-red);
}

.ff-site-nav__link.is-active {
	color: var(--ff-primary-red);
	box-shadow: inset 0 -2px 0 var(--ff-primary-red);
}

.ff-site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--ff-space-4);
	flex: none;
}

.ff-site-header__cta {
	display: none;
	padding: 0.65em 1.35em;
	font-size: 0.9375rem;
}

/* Hamburger toggle — visible up to and including tablet (see the
   1025px breakpoint below, which is where the full desktop nav takes
   over instead). */
.ff-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--ff-warm-gray);
	border-radius: var(--ff-radius-sm);
	background-color: var(--ff-white);
	cursor: pointer;
}

.ff-nav-toggle__bars,
.ff-nav-toggle__bars::before,
.ff-nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--ff-charcoal);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ff-nav-toggle__bars {
	position: relative;
}

.ff-nav-toggle__bars::before,
.ff-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.ff-nav-toggle__bars::before {
	top: -6px;
}

.ff-nav-toggle__bars::after {
	top: 6px;
}

.ff-nav-toggle[aria-expanded="true"] .ff-nav-toggle__bars {
	background-color: transparent;
}

.ff-nav-toggle[aria-expanded="true"] .ff-nav-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.ff-nav-toggle[aria-expanded="true"] .ff-nav-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ---------- Mobile nav drawer ---------- */

.ff-mobile-nav {
	border-top: 1px solid var(--ff-warm-gray);
	background-color: var(--ff-white);
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
}

.ff-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: var(--ff-space-2) clamp(1rem, 4vw, 2.5rem) var(--ff-space-4);
}

.ff-mobile-nav__link {
	display: block;
	padding: var(--ff-space-3) 0;
	border-bottom: 1px solid rgba(23, 25, 28, 0.08);
	font-size: 1.0625rem;
	font-weight: var(--ff-font-weight-secondary);
	color: var(--ff-charcoal);
	text-decoration: none;
}

.ff-mobile-nav__link.is-active {
	color: var(--ff-primary-red);
}

/* Request a Quote reuses the shared .ff-btn/.ff-btn--primary
   component (base.css) so it reads as a real Falcon Fire primary CTA
   button — red fill, dark-red hover/focus — not just colored text. */
.ff-mobile-nav__cta-item {
	margin-top: var(--ff-space-3);
	padding-top: var(--ff-space-1);
}

.ff-mobile-nav__cta {
	width: 100%;
	justify-content: center;
	padding: 0.85em 1.5em;
}

/* Body-scroll lock while the mobile drawer is open. */
html.ff-nav-open {
	overflow: hidden;
}

/* Desktop breakpoint: full nav + CTA, hamburger hidden. Tablet and
   below stay on the hamburger/drawer pattern deliberately, rather
   than squeezing the full desktop nav into a narrower width. */
@media (min-width: 1025px) {
	.ff-site-nav {
		display: block;
	}

	.ff-site-header__cta {
		display: inline-flex;
	}

	.ff-nav-toggle,
	.ff-mobile-nav {
		display: none;
	}
}

/* ---------- Footer ---------- */

.ff-site-footer {
	background-color: var(--ff-charcoal);
	color: var(--ff-white);
}

.ff-site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ff-space-7);
	padding-block: var(--ff-space-9) var(--ff-space-7);
}

@media (min-width: 640px) {
	.ff-site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ff-site-footer__grid {
		grid-template-columns: 1.15fr 1fr 1fr 1fr;
		gap: var(--ff-space-6);
	}
}

.ff-site-footer__logo {
	display: inline-block;
	margin: 0 0 var(--ff-space-4);
}

.ff-site-footer__logo-image {
	display: block;
	width: 150px;
	height: auto;
}

@media (min-width: 768px) {
	.ff-site-footer__logo-image {
		width: 170px;
	}
}

.ff-site-footer__tagline {
	margin: 0;
	max-width: 22rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.65);
}

/* ---------- Footer social icons ---------- */
/* Renders nothing when no platform has a configured URL yet (see
   fcf_get_social_links()) — no fake "#" links, no invented accounts.
   All six always render: a real link (<a>) once a platform has a
   configured URL, otherwise a non-clickable <span> placeholder — see
   template-parts/site/footer.php. Both share the same visible
   treatment (white icon, same size); only the <a> variant gets
   interactive hover/focus/cursor feedback below. */

.ff-site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ff-space-2);
	list-style: none;
	margin: var(--ff-space-4) 0 0;
	padding: 0;
}

.ff-site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	color: rgba(255, 255, 255, 0.85);
	border-radius: var(--ff-radius-sm);
}

.ff-site-footer__social-link svg {
	width: 19px;
	height: 19px;
}

a.ff-site-footer__social-link {
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

a.ff-site-footer__social-link:hover,
a.ff-site-footer__social-link:focus-visible {
	color: var(--ff-white);
	background-color: rgba(255, 255, 255, 0.08);
}

.ff-site-footer__heading {
	margin: 0 0 var(--ff-space-4);
	font-size: 0.8125rem;
	font-weight: var(--ff-font-weight-secondary);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.ff-site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-3);
}

.ff-site-footer__list a {
	color: var(--ff-white);
	text-decoration: none;
	font-size: 0.9375rem;
}

.ff-site-footer__list a:hover,
.ff-site-footer__list a:focus-visible {
	color: var(--ff-primary-red);
}

.ff-site-footer__list--contact li {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	overflow-wrap: anywhere;
}

.ff-site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ff-site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ff-space-3);
	padding-block: var(--ff-space-5);
}

.ff-site-footer__copyright {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
}

.ff-site-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--ff-space-5);
}

.ff-site-footer__legal a {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: underline;
}

.ff-site-footer__legal a:hover,
.ff-site-footer__legal a:focus-visible {
	color: var(--ff-white);
}
