/*
 * Ultimate flagship skin - "Precision Blue" (client mockup, Nov 2026).
 *
 * Loaded after the kit chrome (inc/enqueue.php, only when this file exists), so it restyles
 * the whole flagship: cool white/pale-blue grounds instead of warm paper, Inter throughout,
 * deep blue + trade yellow. Kit blocks still used here (contact, product-grid, rich-text, shop)
 * pick most of it up through the tokens; the ud/fs-* blocks are styled per block.
 */

:root {
	--ud-bg:          #ffffff;
	--ud-surface:     #ffffff;
	--ud-surface-2:   #f2f6f9;
	--ud-line:        #dce5eb;

	--ud-ink:         #102b3f;
	--ud-ink-2:       #163650;
	--ud-ink-3:       #1d4262;
	--ud-line-dark:   #24465f;

	--ud-text:        #172e42;
	--ud-muted:       #546878;
	--ud-on-dark:     #ffffff;
	--ud-on-dark-mut: #c6d9e5;

	--ud-font-head: "Inter", "Helvetica Neue", Arial, sans-serif;
	--ud-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

	--ud-radius:    8px;
	--ud-radius-sm: 4px;
	--ud-radius-lg: 10px;

	/* Kit blocks still used here (product-grid, rich-text, how-it-works, contact) drop to the
	   flagship's tighter scale and share its 1240px content width (1304 - 2 x 32px gutter). */
	--ud-fs-h1:        clamp(2.2rem, 1.4rem + 2.4vw, 3rem);
	--ud-fs-h2:        clamp(1.7rem, 1.2rem + 1.6vw, 2.2rem);
	--ud-fs-h3:        1.3rem;
	--ud-fs-lead:      1rem;
	--ud-fs-body:      1rem;
	--ud-fs-eyebrow:   0.68rem;
	--ud-section-y:    clamp(2.5rem, 1.6rem + 3vw, 4rem);
	--ud-container:    1304px;
	--ud-container-wd: 1304px;

	/* Flagship palette (named so the blocks read clearly) */
	--fs-blue:   #064887;
	--fs-blue-2: #0a3e79;
	--fs-sky:    #2872ae;
	--fs-yellow: #f9c928;
	--fs-pale:   #f2f6f9;
	--fs-pale-2: #edf3f6;
}

h1, h2, h3, h4, h5 { letter-spacing: -0.035em; font-weight: 800; line-height: 1.12; }
h3, h4 { font-weight: 750; }

/* Kit eyebrows match the flagship's: no rule, heavier, sky blue. */
.ud-eyebrow { font-family: var(--ud-font-body); font-weight: 800; letter-spacing: 0.18em; color: var(--fs-sky); margin-bottom: 0.6rem; }
.ud-eyebrow::before { content: none; }

/* ── Shared pieces for the ud/fs-* blocks ── */
.fs-wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.fs-eyebrow {
	display: block; margin: 0 0 0.6rem;
	font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--fs-sky);
}
.fs-intro { text-align: center; max-width: 760px; margin: 0 auto 1.6rem; }
.fs-intro h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.2rem); margin: 0; }
.fs-intro p:not(.fs-eyebrow) { color: var(--ud-muted); font-size: 0.9rem; margin: 0.5rem 0 0; }
.fs-hl { color: var(--fs-blue); }

.fs-btn {
	display: inline-flex; align-items: center; gap: 0.4em;
	padding: 0.8em 1.3em; border-radius: 4px;
	font-size: 0.8rem; font-weight: 800; line-height: 1.2;
	background: var(--fs-yellow); color: #12283b; border: 1px solid transparent;
	transition: transform 0.15s var(--ud-ease), box-shadow 0.15s var(--ud-ease), background-color 0.15s;
}
.fs-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(6, 72, 135, 0.6); color: #12283b; }
.fs-btn:not(.fs-btn--outline)::after { content: "\2192"; transition: transform 0.15s var(--ud-ease); }
.fs-btn:hover::after { transform: translateX(2px); }
.fs-btn--blue { background: var(--fs-blue); color: #fff; }
.fs-btn--blue:hover { background: #053b70; color: #fff; }
.fs-btn--outline { background: #fff; border-color: #a1b4c3; }
.fs-btn--outline:hover { border-color: var(--fs-blue); }
.fs-btn:focus-visible, .fs-link:focus-visible { outline: 3px solid var(--fs-yellow); outline-offset: 2px; }
.fs-link { color: #07518e; font-size: 0.8rem; font-weight: 800; }

/* ── Header: white brand row over a full-width blue nav bar ── */
.ud-fs-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ud-fs-header::after { content: none; }
.ud-fs-header.ud-header--scrolled { background: #fff; box-shadow: 0 10px 30px -22px rgba(16, 43, 63, 0.55); }
.ud-fs-header .ud-header__inner { min-height: 100px; justify-content: space-between; }
.ud-fs-header.ud-header--scrolled .ud-header__inner { min-height: 72px; }
.ud-fs-identity { display: flex; align-items: center; gap: 1.25rem; }
.ud-fs-header .ud-header__logo { max-height: 80px; width: auto; }
.ud-fs-header.ud-header--scrolled .ud-header__logo { max-height: 56px; }
.ud-fs-powered {
	border-left: 1px solid var(--ud-line); padding-left: 1.1rem;
	font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
	color: #6c7d8c; line-height: 1.2;
}
.ud-fs-powered strong { display: block; margin-top: 4px; font-size: 1.7rem; letter-spacing: -0.035em; color: #e6b600; }

.ud-fs-header .ud-header__actions { gap: 1.25rem; font-size: 0.8rem; }
.ud-fs-header .ud-header__actions::before { content: none; }
.ud-fs-search { position: relative; display: flex; }
.ud-fs-search input {
	width: 280px; padding: 0.7rem 2.6rem 0.7rem 1.1rem;
	border: 1px solid var(--ud-line); border-radius: 5px;
	font: inherit; font-size: 0.8rem; color: var(--ud-text); background: #fff;
}
.ud-fs-search input::placeholder { color: #81909b; }
.ud-fs-search input:focus { outline: 2px solid var(--fs-blue); outline-offset: 1px; border-color: var(--fs-blue); }
.ud-fs-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: #6c7d8c; cursor: pointer; }
.ud-fs-trade { color: var(--ud-text); font-weight: 700; white-space: nowrap; }
.ud-fs-trade::after { content: " \2197"; }
.ud-fs-wa { padding: 0.55em 1em; font-size: 0.8rem; border-radius: 999px; }

.ud-fs-nav { margin: 0; background: var(--fs-blue); }
.ud-fs-nav ul { gap: 1.7rem; min-height: 49px; }
.ud-fs-nav a { color: #fff; font-family: var(--ud-font-body); font-weight: 700; font-size: 0.78rem; padding: 0.9rem 0; letter-spacing: 0; }
.ud-fs-nav a::after { background: var(--fs-yellow); bottom: 0; height: 3px; border-radius: 0; }
.ud-fs-nav a:hover,
.ud-fs-nav .current-menu-item > a,
.ud-fs-nav .current-menu-ancestor > a { color: #fff; }
.ud-fs-nav .sub-menu a { color: var(--ud-text); }
/* WP marks /#anchor links "current" on the home page; only real pages get the underline. */
.ud-fs-nav .current-menu-item > a[href*="#"]:not(:hover)::after { transform: scaleX(0); }

@media (max-width: 1120px) {
	.ud-fs-search input { width: 210px; }
	.ud-fs-nav ul { gap: 1.1rem; }
}
@media (max-width: 980px) {
	.ud-fs-nav, .ud-fs-search, .ud-fs-trade { display: none; }
	.ud-fs-header .ud-header__inner { min-height: 80px; }
	.ud-fs-header .ud-header__logo { max-height: 62px; }
	.ud-fs-wa span { display: none; }
	.ud-fs-wa { padding: 0.55em; }
}
@media (max-width: 480px) {
	.ud-fs-powered strong { font-size: 1.3rem; }
	.ud-fs-identity { gap: 0.8rem; }
	.ud-fs-powered { padding-left: 0.8rem; }
}

/* ── Footer: deep navy, mockup weight ── */
.ud-footer { background: var(--ud-ink); }
.ud-footer a:hover { color: #fff; }
.ud-footer__col h4 { font-size: 0.72rem; letter-spacing: 0.16em; }

/* Kit buttons pick up the flagship blue; keep the kit's primary from glowing too hard. */
.ud-btn { font-family: var(--ud-font-body); font-weight: 700; border-radius: 4px; }

@media (max-width: 760px) {
	.fs-wrap { width: calc(100% - 32px); }
}

/* In-page jumps (#portion-max, #fifo, #models...) land below the sticky header, not under it. */
html { scroll-padding-top: 132px; }
@media (max-width: 760px) { html { scroll-padding-top: 88px; } }
