/*
 * GSA landing page (tpl/resource-gsa.php).
 * Layout follows the Military Contracts Director's mockup (photo hero with a
 * contract card, equal-height logo/copy splits, ruled three-column steps, dark
 * category tiles, full-width contact band) in the site's own system: Space Mono
 * uppercase headings with the stripe rule, Franklin Gothic body, black /
 * charcoal #434344 / slate #50677f, clipped bottom-right corners, theme
 * .btn-link buttons. Body 16px+, labels 14px+. Scoped to .gsa-page.
 */

.gsa-page {
	--gsa-slate: #50677f;
	--gsa-slate-light: #a7b3bf;
	--gsa-slate-pale: #e8ecf0;
	--gsa-charcoal: #434344;
	--gsa-dark: #1a1b1c;
	--gsa-ink: #000;
	--gsa-grey: #f1f2f3;
	--gsa-line: #d6dbe0;
	--gsa-muted: #555;
	--gsa-mono: "Space Mono", monospace;
	--gsa-cut: polygon(100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 0, 100% 0);
	--gsa-cut-sm: polygon(100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%, 0 0, 100% 0);
	color: var(--gsa-ink);
	font-size: 16px;
	line-height: 1.7;
}
html.gsa-smooth { scroll-behavior: smooth; }
.gsa-page *, .gsa-page *::before, .gsa-page *::after { box-sizing: border-box; }
.gsa-page [id] { scroll-margin-top: 120px; }
.gsa-page button { font: inherit; color: inherit; cursor: pointer; }
.gsa-page :focus-visible { outline: 3px solid var(--gsa-slate-light); outline-offset: 4px; }
.gsa-page p { margin: 0 0 1em; }
/* Theme .container clearfix pseudo-elements would become grid/flex items. */
.gsa-page .container::before, .gsa-page .container::after { display: none; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.gsa-eyebrow { font-family: var(--gsa-mono); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gsa-slate); margin: 0 0 14px !important; }
.gsa-page .gsa-heading { font-family: var(--gsa-mono); font-size: 34px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--gsa-ink); margin: 0 0 18px; }
.gsa-page .heading.with-stripes.gsa-heading { align-items: flex-end; }
.gsa-page .gsa-heading > span { flex: 0 1 auto; }
.gsa-page .heading.with-stripes.gsa-heading::after { align-self: flex-end; height: 22px; margin: 0 0 7px 22px; min-width: 60px; }
.gsa-lead { font-size: 18px; line-height: 1.65; color: var(--gsa-muted); max-width: 680px; }
.gsa-body p { font-size: 17px; line-height: 1.7; color: var(--gsa-muted); }
.gsa-caption { font-size: 14px; line-height: 1.6; color: var(--gsa-muted); text-align: center; max-width: 330px; margin: 22px auto 0; }
.gsa-text-link { font-family: var(--gsa-mono); font-size: 15px; line-height: 1.8; text-transform: uppercase; letter-spacing: .06em; color: var(--gsa-slate); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; display: inline; }
.gsa-text-link::after { content: ""; display: inline-block; vertical-align: -1px; width: 14px; height: 14px; margin-left: 10px; background: currentColor; -webkit-mask: url(../assets/img/ic-arrow-small.png) center / contain no-repeat; mask: url(../assets/img/ic-arrow-small.png) center / contain no-repeat; }
.gsa-page .gsa-text-link:hover { color: var(--gsa-charcoal); text-decoration: none; }

/* Buttons: theme .btn-link supplies shape, font and hover; add the arrow. */
.gsa-page .gsa-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 0; }
.gsa-page .gsa-btn > span { display: inline-flex; align-items: center; gap: 16px; }
.gsa-page .gsa-btn > span::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url(../assets/img/ic-arrow.png) center / contain no-repeat; mask: url(../assets/img/ic-arrow.png) center / contain no-repeat; }
/* Secondary button on dark grounds: solid slate */
.gsa-page .gsa-btn-ghost { background-color: var(--gsa-slate); color: #fff; }
.gsa-page .gsa-btn-ghost:hover { background-color: #fff; color: var(--gsa-ink); }
.gsa-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.gsa-btns:empty { display: none; }

/* ── Hero (mockup: photo, dark left-to-right fade, contract card) ─────── */
.gsa-hero { position: relative; overflow: hidden; color: #fff; background: var(--gsa-dark) var(--gsa-hero-img, none) center / cover no-repeat; }
.gsa-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .76) 40%, rgba(0, 0, 0, .25) 74%, rgba(0, 0, 0, .12) 100%); }
.gsa-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: url(../assets/img/bg-stripe-tile.png) left top; opacity: .6; }
.gsa-hero-grid { position: relative; z-index: 1; min-height: 600px; display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 68px; align-items: center; padding-top: 88px; padding-bottom: 98px; }
.gsa-hero .gsa-eyebrow { color: #fff; }
.gsa-page .gsa-hero-title { font-family: var(--gsa-mono); font-size: 54px; line-height: 1.08; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; color: #fff; margin: 0 0 22px; max-width: 760px; }
.gsa-hero .gsa-lead { color: #f0f0f0; font-size: 19px; max-width: 670px; margin: 0; }

/* Contract card: white, slate top rule, clipped corner */
.gsa-card { position: relative; background: #fff; color: var(--gsa-ink); padding: 26px 28px 42px; border-top: 7px solid var(--gsa-slate); clip-path: var(--gsa-cut); }
.gsa-card-label { font-family: var(--gsa-mono); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gsa-slate); margin: 0 0 4px !important; }
.gsa-card-number { font-family: var(--gsa-mono); font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: .02em; margin: 0 0 16px !important; }
.gsa-card-facts { margin: 0; border-top: 1px solid var(--gsa-line); }
/* One line per row: label column sized to the longest label, values never wrap on desktop. */
.gsa-card-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 20px; }
.gsa-card-facts .gsa-fact { display: contents; }
.gsa-card-facts dt, .gsa-card-facts dd { padding: 9px 0; border-bottom: 1px solid var(--gsa-line); white-space: nowrap; }
.gsa-card-facts dt { font-family: var(--gsa-mono); font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--gsa-muted); font-weight: 400; line-height: 1.5; }
.gsa-card-facts dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }

.gsa-crumbs { padding-top: 26px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.gsa-section { padding: 82px 0; }
.gsa-section-tight { padding-top: 50px; }
.gsa-head { max-width: 780px; margin-bottom: 38px; }

/* Equal-height split: both sides stretch to the taller one (mockup alignment) */
.gsa-split { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: 65px; align-items: stretch; }

/* ── Contract details ─────────────────────────────────────────────────── */
.gsa-logo-panel { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px; background: #fff; box-shadow: inset 0 0 0 8px var(--gsa-grey); }
.gsa-logo-panel .gsa-logo { display: block; width: 100%; max-width: 330px; height: auto; }
.gsa-contract-copy { display: flex; flex-direction: column; justify-content: center; }
.gsa-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 8px 0 0; }
.gsa-facts .gsa-fact { padding: 15px 0; border-bottom: 1px solid var(--gsa-line); }
.gsa-facts dt { font-family: var(--gsa-mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gsa-muted); font-weight: 400; margin-bottom: 2px; }
.gsa-facts dd { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* ── GSA Advantage band (mockup: near-black with the site stripe tile) ── */
.gsa-advantage { padding: 82px 0; color: #fff; background: linear-gradient(rgba(12, 12, 12, .94), rgba(12, 12, 12, .94)), url(../assets/img/bg-stripe-tile.png); }
/* Optional background photo (ACF), under a dark overlay so the copy keeps its contrast */
.gsa-advantage.has-image { background: linear-gradient(90deg, rgba(12, 12, 12, .9) 0%, rgba(12, 12, 12, .84) 55%, rgba(12, 12, 12, .7) 100%), var(--gsa-adv-img) center / cover no-repeat, #0c0c0c; }
.gsa-advantage-grid { grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: 72px; }
.gsa-advantage-logo { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 48px; background: #fff; clip-path: var(--gsa-cut); }
.gsa-advantage-logo img { display: block; width: 100%; max-width: 280px; height: auto; }
.gsa-advantage-copy { display: flex; flex-direction: column; justify-content: center; }
.gsa-advantage .gsa-eyebrow { color: var(--gsa-slate-light); }
.gsa-page .gsa-advantage .gsa-heading { color: #fff; font-size: 40px; }
.gsa-advantage .gsa-lead { color: #dce1e4; max-width: 650px; margin: 0; }
.gsa-fine-print { font-size: 14px; line-height: 1.6; color: #b8c0c4; margin: 22px 0 0 !important; max-width: 650px; }

/* ── How to buy (mockup: three columns under a charcoal rule) ─────────── */
.gsa-steps { --gsa-cols: 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--gsa-cols), minmax(0, 1fr)); gap: 34px; counter-reset: gsa-step; }
.gsa-step { position: relative; margin: 0; padding-top: 26px; border-top: 2px solid var(--gsa-charcoal); counter-increment: gsa-step; display: flex; flex-direction: column; }
.gsa-steps.has-numbers .gsa-step::before { content: counter(gsa-step, decimal-leading-zero); position: absolute; top: 24px; right: 0; font-family: var(--gsa-mono); font-size: 22px; font-weight: 700; color: var(--gsa-slate); }
.gsa-icon { width: 44px; height: 44px; margin-bottom: 16px; fill: none; stroke: var(--gsa-slate); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gsa-page .gsa-step-title { font-family: var(--gsa-mono); font-size: 21px; line-height: 1.25; font-weight: 700; text-transform: uppercase; color: var(--gsa-ink); margin: 0 0 10px; }
.gsa-step p { font-size: 16px; line-height: 1.65; color: var(--gsa-muted); }
.gsa-step .gsa-step-link { margin: auto 0 0 !important; padding-top: 6px; }

/* ── Catalog (mockup: dark tiles with a slate base rule) ──────────────── */
.gsa-categories { background-color: var(--gsa-grey); background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(0, 0, 0, .02) 18px 20px); }
.gsa-catalog-intro { max-width: 780px; }
.gsa-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gsa-page .gsa-tab { position: relative; display: flex; align-items: flex-end; min-height: 112px; padding: 20px; border: 0; border-bottom: 6px solid var(--gsa-slate); background: #1c1d1e; color: #fff; text-align: left; font-family: var(--gsa-mono); font-size: 16px; line-height: 1.25; font-weight: 700; text-transform: uppercase; transition: background .2s, border-color .2s, transform .2s; }
.gsa-page .gsa-tab:hover { background: var(--gsa-charcoal); transform: translateY(-3px); }
.gsa-page .gsa-tab[aria-selected="true"] { background: var(--gsa-slate); border-bottom-color: var(--gsa-dark); }
/* Selected tile points down to its panel */
.gsa-page .gsa-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 24px; bottom: -20px; border: 8px solid transparent; border-top-color: var(--gsa-dark); }
.gsa-panel { margin-top: 26px; background: #fff; padding: 34px 36px 38px; animation: gsa-fade .35s ease; clip-path: var(--gsa-cut); }
.gsa-panel:focus-visible { outline: 3px solid var(--gsa-slate); outline-offset: -3px; }
.gsa-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin-bottom: 28px; }
.gsa-page .gsa-panel-title { font-family: var(--gsa-mono); font-size: 24px; line-height: 1.25; text-transform: uppercase; font-weight: 700; margin: 0; color: var(--gsa-ink); }
.gsa-panel-head p { flex-basis: 100%; font-size: 16px; color: var(--gsa-muted); margin: 0 !important; order: 3; }
.gsa-panel-head:last-child { margin-bottom: 0; }
.gsa-page .gsa-panel-head p a { color: var(--gsa-slate); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gsa-page .gsa-card-facts dd a { color: var(--gsa-slate); text-decoration: underline; text-underline-offset: 3px; }
.gsa-page .gsa-panel-head p a:hover, .gsa-page .gsa-card-facts dd a:hover { color: var(--gsa-ink); }
.gsa-panel-links { display: flex; flex-wrap: wrap; gap: 14px; }
.gsa-panel-links:empty { display: none; }
.gsa-products { --gsa-cols: 4; display: grid; grid-template-columns: repeat(var(--gsa-cols), minmax(0, 1fr)); gap: 24px; max-width: calc(var(--gsa-cols) * 280px); }
.gsa-page .gsa-product { display: block; text-decoration: none; color: var(--gsa-ink); }
.gsa-product-image { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--gsa-grey); clip-path: polygon(100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%, 0 0, 100% 0); }
.gsa-product-image::after { content: "+"; position: absolute; z-index: 2; right: 0; bottom: 0; width: 34px; height: 34px; background: var(--gsa-slate); clip-path: polygon(100% 0, 0 100%, 100% 100%); color: #fff; font-family: franklin-gothic-atf, sans-serif; font-size: 22px; line-height: 1; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 4px 2px 0; }
.gsa-product-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; transition: transform .4s ease; }
.gsa-product:hover .gsa-product-image img { transform: scale(1.06); }
.gsa-product-name { display: block; font-family: var(--gsa-mono); font-size: 15px; line-height: 1.35; text-transform: uppercase; padding-top: 12px; }
.gsa-page .gsa-product:hover .gsa-product-name { color: var(--gsa-slate); }

/* ── Contact band (mockup: full-width colour band, copy left, button right) ── */
.gsa-contact-band { padding: 70px 0; color: #fff; background: var(--gsa-slate); position: relative; }
.gsa-contact-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: url(../assets/img/bg-stripe-tile.png) left top; opacity: .35; }
.gsa-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.gsa-contact-band .gsa-eyebrow { color: #dfe4e9; }
.gsa-page .gsa-cta-title { font-family: var(--gsa-mono); font-size: 40px; line-height: 1.1; text-transform: uppercase; font-weight: 700; color: #fff; margin: 0 0 12px; }
.gsa-contact { margin: 0 0 4px !important; font-size: 17px; line-height: 1.6; color: #f1eee8; }
.gsa-contact strong { color: #fff; }
.gsa-sep { margin: 0 12px; color: #dfe4e9; }
.gsa-page .gsa-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gsa-page .gsa-contact a:hover { color: #dfe4e9; }
.gsa-contact-grid .gsa-btn { white-space: nowrap; }
.gsa-disclaimer { font-size: 14px; line-height: 1.6; color: var(--gsa-muted); margin: 26px 0 50px !important; }

/* ── Motion ───────────────────────────────────────────────────────────── */
@keyframes gsa-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Motion only, never hidden: content must render for anything that doesn't scroll. */
.gsa-js .gsa-reveal { transform: translateY(18px); transition: transform .7s ease; }
.gsa-js .gsa-reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
	html.gsa-smooth { scroll-behavior: auto; }
	.gsa-js .gsa-reveal { transform: none; transition: none; }
	.gsa-panel { animation: none; }
	.gsa-page .gsa-tab { transition: none; }
	.gsa-page .gsa-tab:hover { transform: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.gsa-page .gsa-hero-title { font-size: 44px; }
	.gsa-products { --gsa-cols: 3 !important; }
}
@media (max-width: 920px) {
	.gsa-hero-grid, .gsa-split, .gsa-advantage-grid { grid-template-columns: 1fr; gap: 45px; }
	.gsa-card { max-width: 570px; }
	.gsa-logo-panel, .gsa-advantage-logo { max-width: 520px; }
	.gsa-advantage-logo { min-height: 0; }
	.gsa-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gsa-products { --gsa-cols: 2 !important; }
	.gsa-contact-grid { grid-template-columns: 1fr; }
	.gsa-contact-grid .gsa-btn { justify-self: start; }
}
@media (max-width: 680px) {
	.gsa-hero-grid { min-height: 0; padding-top: 58px; padding-bottom: 58px; }
	.gsa-hero::before { background: linear-gradient(180deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .7) 100%); }
	.gsa-page .gsa-hero-title { font-size: 34px; }
	.gsa-hero .gsa-lead { font-size: 17px; }
	.gsa-section, .gsa-advantage { padding: 62px 0; }
	.gsa-advantage.has-image { background: linear-gradient(rgba(12, 12, 12, .86), rgba(12, 12, 12, .86)), var(--gsa-adv-img) center / cover no-repeat, #0c0c0c; }
	.gsa-section-tight { padding-top: 40px; }
	.gsa-page .gsa-heading { font-size: 26px; }
	.gsa-page .gsa-advantage .gsa-heading, .gsa-page .gsa-cta-title { font-size: 28px; }
	.gsa-lead { font-size: 17px; }
	.gsa-card { padding: 26px 22px 48px; }
	.gsa-card-number { font-size: 22px; }
	/* Phones: label above value, so no row wraps mid-value. */
	.gsa-card-facts { grid-template-columns: 1fr; }
	.gsa-card-facts dt { padding: 10px 0 0; border-bottom: 0; }
	.gsa-card-facts dd { padding: 0 0 10px; }
	.gsa-facts, .gsa-steps { grid-template-columns: 1fr; }
	.gsa-logo-panel, .gsa-advantage-logo { padding: 34px; }
	.gsa-page .gsa-tab { min-height: 84px; padding: 14px; font-size: 14px; }
	.gsa-panel { padding: 24px 18px 40px; }
	.gsa-products { gap: 14px; }
	.gsa-product-name { font-size: 14px; }
	.gsa-btns .gsa-btn, .gsa-panel-links .gsa-btn, .gsa-contact-grid .gsa-btn { width: 100%; white-space: normal; }
	.gsa-page .gsa-btn { font-size: 16px; }
	.gsa-text-link { font-size: 14px; letter-spacing: .03em; }
}
