/*
Theme Name: KFA
Theme URI: https://kitplanesforafrica.co.za
Author: Kitplanes for Africa
Description: Theme for Kitplanes for Africa. Works with the KFA Core plugin. Change colours, fonts, the home page and contact details in Appearance → Customize.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kfa
*/

/* ---------- Fonts ---------- */
@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("assets/fonts/montserrat-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--kfa-accent: #0e86ca;
	--kfa-dark: #1f2326;
	--kfa-font: "Montserrat", system-ui, sans-serif;
	--kfa-ink: #33383c;
	--kfa-muted: #6b7278;
	--kfa-line: #e3e1dc;
	--kfa-paper: #ffffff;
	--kfa-sand: #f6f4f0;
	--kfa-radius: 2px;
	--kfa-wrap: 1240px;
	--kfa-header-h: 76px;
	--kfa-track: .18em;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kfa-header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0; font-family: var(--kfa-font); font-size: 16px; line-height: 1.7; font-weight: 400;
	color: var(--kfa-ink); background: var(--kfa-paper); -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--kfa-accent); text-underline-offset: 3px; }
a:hover { color: var(--kfa-dark); }
:focus-visible { outline: 3px solid var(--kfa-accent); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--kfa-dark); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 48px, var(--kfa-wrap)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--kfa-muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 16px; }
[hidden] { display: none !important; }

/* Labels and section titles (CAPITALS, spaced out — switchable in Customizer) */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: var(--kfa-track); text-transform: uppercase; color: var(--kfa-muted); margin: 0 0 10px; }
.eyebrow-accent { color: var(--kfa-accent); }
.section-title, .page-title, .hero-title, .model-title, .footer-title, .aside-title, .kfa-card-title { letter-spacing: .02em; }
.headings-upper .section-title, .headings-upper .page-title, .headings-upper .hero-title, .headings-upper .model-title,
.headings-upper .kfa-card-title, .headings-upper .aside-title, .headings-upper .kfa-docs-title, .headings-upper .entry-content h2 {
	text-transform: uppercase; letter-spacing: var(--kfa-track); font-weight: 500;
}
.section-title { font-size: clamp(22px, 2.6vw, 30px); overflow-wrap: break-word; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-lead { color: var(--kfa-muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.kfa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
	padding: 12px 26px; border: 1.5px solid var(--kfa-accent); border-radius: var(--kfa-radius);
	background: var(--kfa-accent); color: #fff; font: 600 13px/1.2 var(--kfa-font); letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.kfa-btn:hover { background: var(--kfa-dark); border-color: var(--kfa-dark); color: #fff; }
.kfa-btn-outline { background: transparent; color: var(--kfa-dark); border-color: var(--kfa-dark); }
.kfa-btn-outline:hover { background: var(--kfa-dark); color: #fff; }
.buttons-solid .kfa-btn-outline { background: var(--kfa-accent); border-color: var(--kfa-accent); color: #fff; }
.buttons-solid .kfa-btn-outline:hover { background: var(--kfa-dark); border-color: var(--kfa-dark); }
.kfa-btn-light { background: #fff; border-color: #fff; color: var(--kfa-dark); }
.kfa-btn-light:hover { background: var(--kfa-accent); border-color: var(--kfa-accent); color: #fff; }
.kfa-btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.kfa-btn-ghost:hover { background: #fff; color: var(--kfa-dark); border-color: #fff; }
.kfa-btn-small { min-height: 38px; padding: 8px 16px; font-size: 12px; }
.kfa-btn.on-dark { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
	border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.is-scrolled .site-header { box-shadow: 0 2px 18px rgba(0,0,0,.08); border-color: var(--kfa-line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--kfa-header-h); }
.site-brand { flex: none; }
.site-brand img, .custom-logo { max-height: 48px; width: auto; }
.site-brand-text { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--kfa-dark); line-height: 1; }
.brand-mark { font-weight: 800; font-size: 28px; letter-spacing: .08em; }
.brand-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; color: var(--kfa-muted); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu a { display: block; padding: 10px 11px; color: var(--kfa-dark); text-decoration: none; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--kfa-accent); }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--kfa-line); box-shadow: 0 16px 34px rgba(0,0,0,.1);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .sub-menu a { padding: 9px 20px; text-transform: none; letter-spacing: .02em; font-size: 14px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.submenu-toggle { display: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-size: 13px; font-weight: 600; color: var(--kfa-dark); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 11px; width: 24px; height: 2px; background: var(--kfa-dark); transition: transform .2s; content: ""; }
.nav-toggle-bars { top: 22px; } .nav-toggle-bars::before { left: 0; top: -7px; } .nav-toggle-bars::after { left: 0; top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Dark header option */
.header-dark .site-header { background: var(--kfa-dark); }
.header-dark .site-nav .menu > li > a, .header-dark .nav-phone, .header-dark .site-brand-text { color: #fff; }
.header-dark .brand-sub { color: rgba(255,255,255,.7); }
.header-dark .nav-toggle-bars, .header-dark .nav-toggle-bars::before, .header-dark .nav-toggle-bars::after { background: #fff; }
.header-dark .nav-open .nav-toggle-bars { background: transparent; }
.header-dark .nav-actions .kfa-btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }

@media (max-width: 1180px) {
	.nav-phone { display: none; }
}
@media (max-width: 1060px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; inset: var(--kfa-header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
		gap: 0; padding: 12px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; margin: 0;
	}
	.admin-bar .site-nav { top: calc(var(--kfa-header-h) + 46px); }
	.nav-open .site-nav { transform: none; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--kfa-line); }
	.site-nav .menu > li > a { flex: 1; padding: 16px 0; font-size: 14px; color: var(--kfa-dark) !important; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; width: 100%; padding: 0 0 10px 12px; }
	.site-nav li.is-open > .sub-menu { display: block; }
	.submenu-toggle { display: block; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; }
	.submenu-toggle::after { content: ""; position: absolute; left: 18px; top: 16px; width: 9px; height: 9px; border-right: 2px solid var(--kfa-dark); border-bottom: 2px solid var(--kfa-dark); transform: rotate(45deg); transition: transform .2s; }
	.is-open > .submenu-toggle::after { transform: rotate(-135deg); top: 21px; }
	.nav-actions { padding-top: 24px; flex-direction: column; align-items: flex-start; }
	.nav-actions .nav-phone { display: block; color: var(--kfa-dark) !important; }
}

/* ---------- Placeholders & topo texture ---------- */
.kfa-placeholder { display: block; width: 100%; height: 100%; min-height: 160px; background: #3a4148 url("assets/img/placeholder.svg") center/cover no-repeat; }
.has-topo .section-topo { background-image: url("assets/img/topo.svg"); background-size: 600px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; min-height: min(78vh, 760px); background: var(--kfa-dark); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media .kfa-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-split { grid-template-columns: minmax(320px, 36%) 1fr; }
.hero-split .hero-media { position: relative; grid-column: 2; grid-row: 1; }
.hero-split .hero-panel { grid-column: 1; grid-row: 1; background: var(--kfa-dark); display: flex; align-items: center; position: relative; z-index: 2; }
.hero-panel-inner { padding: 56px clamp(24px, 4vw, 64px); max-width: 560px; }
.hero-full .hero-panel { position: relative; z-index: 2; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72)); }
.hero-full .hero-panel-inner { width: min(100% - 48px, var(--kfa-wrap)); margin: 0 auto; max-width: none; padding: 140px 0 72px; }
.hero-full .hero-text { max-width: 560px; }
.headings-upper .hero-title, .headings-upper .model-title { letter-spacing: .06em; }
.hero-title { color: #fff; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; margin-bottom: 18px; }
.hero-text { color: rgba(255,255,255,.86); font-size: 17px; margin-bottom: 30px; font-weight: 300; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow-accent { display: inline-block; padding: 6px 10px; background: var(--kfa-accent); color: #fff; }
@media (max-width: 860px) {
	.hero-split { grid-template-columns: 1fr; }
	.hero-split .hero-media { grid-column: 1; grid-row: 1; height: 46vh; min-height: 280px; }
	.hero-split .hero-panel { grid-column: 1; grid-row: 2; }
}

/* ---------- Stats ---------- */
.stats { background: var(--kfa-dark); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat-value { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: .04em; color: #fff; }
.stat-label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-top: 4px; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid rgba(255,255,255,.1); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.paths { background: var(--kfa-sand); }
.paths-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--kfa-line); border: 1px solid var(--kfa-line); }
.path { background: #fff; padding: 36px 32px; }
.path-num { display: block; font-size: 40px; font-weight: 200; color: var(--kfa-accent); line-height: 1; margin-bottom: 18px; }
.path h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.path p { color: var(--kfa-muted); margin: 0; }
@media (max-width: 860px) { .paths-grid { grid-template-columns: 1fr; } }

/* Story mosaic */
.story { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--kfa-dark); color: rgba(255,255,255,.82); }
.story-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 560px; }
.story-mosaic > div { overflow: hidden; }
.story-mosaic img, .story-mosaic .kfa-placeholder { width: 100%; height: 100%; object-fit: cover; }
.mosaic-a { grid-row: 1 / 3; }
.story-panel { padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-panel .section-title { color: #fff; }
.story-panel p { font-weight: 300; font-size: 16px; }
@media (max-width: 960px) { .story { grid-template-columns: 1fr; } .story-mosaic { min-height: 420px; } }

/* Split (support) */
.split-grid > * { min-width: 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { aspect-ratio: 4/3; overflow: hidden; }
.split-media img, .split-media .kfa-placeholder { width: 100%; height: 100%; object-fit: cover; }
.doc-search { display: flex; gap: 0; margin: 26px 0 14px; max-width: 520px; }
.doc-search input { flex: 1; min-width: 0; font: 16px var(--kfa-font); padding: 12px 16px; border: 1.5px solid var(--kfa-dark); border-right: 0; border-radius: var(--kfa-radius) 0 0 var(--kfa-radius); }
.doc-search .kfa-btn { border-radius: 0 var(--kfa-radius) var(--kfa-radius) 0; }
.small-links { font-size: 14px; color: var(--kfa-muted); }
@media (max-width: 860px) { .split-grid { grid-template-columns: 1fr; } }

/* Video */
.video-band { background: var(--kfa-dark) linear-gradient(180deg, #2a2f33, var(--kfa-dark)); }
.video-band .section-title { color: #fff; }
.video-frame { max-width: 1000px; margin: 0 auto; }

/* Press strip */
.press-band { padding: 56px 0; border-top: 1px solid var(--kfa-line); border-bottom: 1px solid var(--kfa-line); }
.kfa-press-strip { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.kfa-press-strip li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kfa-press-pub { font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--kfa-dark); font-style: italic; }
.kfa-press-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--kfa-muted); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--kfa-dark); }
.tile { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; color: #fff; text-decoration: none; }
.tile img, .tile .kfa-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; filter: brightness(.62); }
.tile:hover img, .tile:hover .kfa-placeholder { transform: scale(1.04); }
.tile-label { position: absolute; inset: auto 0 0 0; padding: 28px; display: flex; flex-direction: column; }
.tile-label strong { font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.tile-label span { font-size: 13.5px; color: rgba(255,255,255,.85); }
.tile:hover { color: #fff; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16/9; } }

/* CTA band */
.cta-band { background: var(--kfa-accent); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band .section-title { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 620px; color: rgba(255,255,255,.9); }
.cta-band .kfa-btn-light:hover { background: var(--kfa-dark); border-color: var(--kfa-dark); }

/* ---------- Inner page header ---------- */
.page-hero { position: relative; background: var(--kfa-dark); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero.has-image { min-height: 360px; display: flex; align-items: flex-end; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero-inner { position: relative; }
.page-title { color: #fff; font-size: clamp(30px, 4.2vw, 46px); margin: 0; }
.page-intro { color: rgba(255,255,255,.82); max-width: 680px; margin: 14px 0 0; font-weight: 300; font-size: 17px; }
.page-hero .eyebrow { color: rgba(255,255,255,.7); }
.crumb { font-size: 14px; margin-bottom: 28px; }
.crumb a { text-decoration: none; font-weight: 600; }

/* ---------- Content ---------- */
.entry-content { max-width: 1120px; }
.entry-content > p:first-child { font-size: 18px; color: var(--kfa-dark); font-weight: 400; max-width: 820px; }
.entry-content h2 { font-size: 22px; margin-top: 2.2em; }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content ul:not([class*="kfa-"]):not(.ticks) { padding-left: 1.2em; }
.entry-content .wp-block-columns { gap: 48px; margin-top: 28px; }
.ticks { list-style: none; padding: 0; margin: 1.5em 0; }
.ticks li { position: relative; padding: 0 0 10px 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--kfa-accent); border-bottom: 2px solid var(--kfa-accent); transform: rotate(-45deg); }

/* ---------- Model page ---------- */
.model-hero { position: relative; min-height: min(80vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--kfa-dark); overflow: hidden; }
.model-hero-media { position: absolute; inset: 0; }
.model-hero-media img, .model-hero-media .kfa-placeholder { width: 100%; height: 100%; object-fit: cover; }
.model-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.75)); }
.model-hero-inner { position: relative; z-index: 2; padding: 120px 0 64px; }
.model-title { color: #fff; font-size: clamp(40px, 6vw, 78px); line-height: 1; margin-bottom: 12px; }
.model-tagline { font-size: 19px; font-weight: 300; max-width: 640px; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.model-hero .eyebrow-accent { display: inline-block; padding: 6px 10px; background: var(--kfa-accent); color: #fff; }
.spec-bar { background: var(--kfa-dark); color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.spec-bar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.spec-bar-grid > div { padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.1); }
.spec-bar-grid > div:first-child { border-left: 0; padding-left: 0; }
.spec-label { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.spec-value { display: block; font-size: 16px; font-weight: 600; }
.model-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.model-aside { position: sticky; top: calc(var(--kfa-header-h) + 24px); background: #fff; border: 1px solid var(--kfa-line); padding: 28px; }
.aside-title { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-top: 8px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 24px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--kfa-line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--kfa-muted); width: 42%; padding-right: 12px; }
@media (max-width: 960px) { .model-grid { grid-template-columns: 1fr; } .model-aside { position: static; } .spec-bar-grid > div { border-left: 0; padding-left: 0; } }

/* ---------- Cards & grids (from KFA Core) ---------- */
.kfa-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 0 0 40px; }
.kfa-grid-aircraft { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.entry-content .kfa-grid, .entry-content .kfa-library, .entry-content .kfa-map, .entry-content .kfa-compare-wrap { margin-top: 32px; }
.kfa-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--kfa-line); transition: box-shadow .2s, transform .2s; }
.kfa-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.kfa-card-media { position: relative; display: block; aspect-ratio: 3/2; overflow: hidden; background: #3a4148; }
.kfa-card-media img, .kfa-card-media .kfa-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.kfa-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.kfa-card-body > .kfa-btn { margin-top: auto; }
.kfa-card-title { font-size: 18px; margin-bottom: 6px; }
.kfa-card-title a { color: inherit; text-decoration: none; }
.kfa-card-tagline, .kfa-card-body p { color: var(--kfa-muted); font-size: 14.5px; }
.kfa-facts { list-style: none; padding: 0; margin: 0 0 22px; font-size: 13px; color: var(--kfa-ink); width: 100%; }
.kfa-facts li { padding: 7px 0; border-top: 1px solid var(--kfa-line); }
.kfa-badge { position: absolute; left: 14px; top: 14px; background: var(--kfa-accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; }
.kfa-price { font-size: 18px; font-weight: 600; color: var(--kfa-dark) !important; }
.kfa-empty { background: var(--kfa-sand); border: 1px dashed var(--kfa-line); padding: 32px; max-width: 760px; }

/* Compare */
.kfa-compare-wrap { overflow-x: auto; margin: 0 0 48px; border: 1px solid var(--kfa-line); background: #fff; }
.kfa-compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.kfa-compare th, .kfa-compare td { padding: 14px 18px; border-bottom: 1px solid var(--kfa-line); text-align: left; vertical-align: top; }
.kfa-compare thead th { background: var(--kfa-dark); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.kfa-compare thead a { color: #fff; text-decoration: none; }
.kfa-compare tbody th { color: var(--kfa-muted); font-weight: 500; width: 18%; white-space: nowrap; }
.kfa-compare tbody tr:nth-child(even) { background: var(--kfa-sand); }
.kfa-na { color: #b9bcbf; }
.kfa-compare-cta td { border-bottom: 0; }

/* Technical library */
.kfa-library-tools { position: sticky; top: var(--kfa-header-h); z-index: 5; background: #fff; border: 1px solid var(--kfa-line); padding: 20px 24px; margin-bottom: 40px; display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: end; }
.admin-bar .kfa-library-tools { top: calc(var(--kfa-header-h) + 32px); }
.kfa-label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--kfa-muted); }
.kfa-search { width: 100%; font: 16px var(--kfa-font); padding: 12px 16px; border: 1.5px solid var(--kfa-dark); border-radius: var(--kfa-radius); }
.kfa-chips { display: flex; gap: 6px; }
.kfa-chip { font: 600 12px var(--kfa-font); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border: 1.5px solid var(--kfa-line); background: #fff; cursor: pointer; border-radius: var(--kfa-radius); }
.kfa-chip.is-active { background: var(--kfa-dark); color: #fff; border-color: var(--kfa-dark); }
.kfa-jump { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.kfa-docs { margin-bottom: 56px; }
.kfa-docs-title { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.kfa-count { font-size: 12px; background: var(--kfa-sand); border: 1px solid var(--kfa-line); padding: 2px 9px; border-radius: 20px; letter-spacing: .04em; color: var(--kfa-muted); }
.kfa-docs-note { color: var(--kfa-muted); font-size: 14.5px; }
.kfa-table-wrap { overflow-x: auto; border: 1px solid var(--kfa-line); background: #fff; }
.kfa-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.kfa-table th { text-align: left; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--kfa-muted); font-weight: 600; padding: 12px 16px; border-bottom: 2px solid var(--kfa-dark); background: #fff; }
.kfa-table td { padding: 12px 16px; border-bottom: 1px solid var(--kfa-line); vertical-align: top; }
.kfa-table tbody tr:hover { background: var(--kfa-sand); }
.kfa-doc-code { font-weight: 700; white-space: nowrap; }
.kfa-doc-code a { text-decoration: none; }
.kfa-nowrap { white-space: nowrap; color: var(--kfa-muted); }
.kfa-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: #eef0f1; color: var(--kfa-ink); }
.kfa-pill-mandatory { background: #fde8e6; color: #a1281b; }
.kfa-pill-advisory { background: #e6f2fa; color: #0b5f8f; }
.kfa-pill-inspections { background: #eef6e8; color: #3f6b1d; }
.kfa-request, .kfa-extra { font-size: 12.5px; font-weight: 600; margin-left: 6px; }
.kfa-noresults { color: var(--kfa-muted); font-style: italic; padding: 12px 0; }
@media (max-width: 700px) { .kfa-library-tools { position: static; grid-template-columns: 1fr; } }

/* Files */
.kfa-files { list-style: none; padding: 0; margin: 0 0 16px; }
.kfa-files li { border-top: 1px solid var(--kfa-line); }
.kfa-files a { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.kfa-file-type { font-size: 10px; font-weight: 700; letter-spacing: .08em; background: #b3261e; color: #fff; padding: 3px 6px; border-radius: 2px; }
.kfa-file-size { margin-left: auto; color: var(--kfa-muted); font-size: 12px; }

/* Dealers */
.kfa-map { width: 100%; margin: 0 0 40px; border: 1px solid var(--kfa-line); z-index: 1; }
.kfa-dealers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2px; background: var(--kfa-line); border: 1px solid var(--kfa-line); }
.kfa-dealer { background: #fff; padding: 26px; scroll-margin-top: calc(var(--kfa-header-h) + 20px); }
.kfa-dealer:target { outline: 3px solid var(--kfa-accent); outline-offset: -3px; }
.kfa-dealer h3 { font-size: 17px; margin-bottom: 2px; }
.kfa-dealer-region { color: var(--kfa-accent); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.kfa-dealer-lines { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.kfa-dealer-lines li { padding: 2px 0; overflow-wrap: anywhere; }
.kfa-dealer .eyebrow { margin-bottom: 4px; }

/* Albums, photo grid, videos */
.kfa-album { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; color: #fff; text-decoration: none; background: #3a4148; }
.kfa-album img, .kfa-album .kfa-placeholder { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: transform .4s; }
.kfa-album:hover img { transform: scale(1.04); }
.kfa-album-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; }
.kfa-album-label strong { text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.kfa-album-label span { font-size: 13px; opacity: .85; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.photo-grid a { display: block; aspect-ratio: 3/2; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid a:hover img { transform: scale(1.05); }
.kfa-video { position: relative; aspect-ratio: 16/9; background: #000; }
.kfa-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kfa-video-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: #000 center/cover no-repeat; }
.kfa-video-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%231f2326'/%3E%3C/svg%3E") 55% 50%/34px no-repeat; transition: transform .2s; }
.kfa-video-play:hover::after { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,12,14,.94); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; color: #fff; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { font-size: 14px; margin-top: 10px; opacity: .8; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-open { overflow: hidden; }

/* Contact */
.kfa-form-wrap { background: #fff; border: 1px solid var(--kfa-line); padding: clamp(22px, 3vw, 36px); }
.kfa-form p { margin: 0 0 16px; }
.kfa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.kfa-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; color: var(--kfa-dark); }
.kfa-form label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--kfa-muted); }
.kfa-form input, .kfa-form select, .kfa-form textarea { width: 100%; font: 16px var(--kfa-font); color: var(--kfa-ink); padding: 12px 14px; border: 1px solid #cfccc6; border-radius: var(--kfa-radius); background: #fff; }
.kfa-form input:focus, .kfa-form select:focus, .kfa-form textarea:focus { border-color: var(--kfa-accent); outline: 2px solid color-mix(in srgb, var(--kfa-accent) 30%, transparent); }
.kfa-form-note { font-size: 13.5px; color: var(--kfa-muted); }
.kfa-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kfa-alert { padding: 14px 18px; margin-bottom: 20px; border-radius: var(--kfa-radius); font-weight: 500; }
.kfa-alert-ok { background: #e7f5ec; border: 1px solid #9fd3b2; color: #14532d; }
.kfa-alert-err { background: #fdecec; border: 1px solid #f0a8a8; color: #7f1d1d; }
.kfa-contact-details { background: var(--kfa-dark); color: rgba(255,255,255,.85); padding: 32px; }
.kfa-contact-details a { color: #fff; }
.kfa-contact-details dt { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 18px; }
.kfa-contact-details dt:first-child { margin-top: 0; }
.kfa-contact-details dd { margin: 3px 0 0; }
.kfa-contact-details h3 { color: #fff; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-top: 30px; }
.kfa-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.kfa-hours td { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.kfa-hours td:last-child { text-align: right; }
@media (max-width: 600px) { .kfa-form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--kfa-dark); color: rgba(255,255,255,.7); font-size: 14.5px; padding: 72px 0 28px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.footer-logo .custom-logo { max-height: 52px; background: #fff; padding: 6px 10px; }
.footer-logo .site-brand-text, .footer-logo .brand-sub { color: #fff; }
.footer-brand p { margin: 18px 0; max-width: 300px; }
.footer-title { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 4px 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; }
.social a:hover { background: var(--kfa-accent); border-color: var(--kfa-accent); text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Leaflet popups inherit the site font */
.leaflet-container { font-family: var(--kfa-font); }

/* WordPress core helpers */
.alignwide { max-width: 1240px; }
.wp-block-image img { height: auto; }

/* =====================================================================
   Drag-and-drop pages (block editor). Sections are full-width blocks;
   everything inside them is constrained to the site width.
   ===================================================================== */
.entry-flow > * { width: min(100% - 48px, 1120px); margin-left: auto; margin-right: auto; }
.entry-flow > .alignwide { width: min(100% - 48px, 1240px); }
.entry-flow > .alignfull { width: 100%; max-width: none; }
.entry-flow > * + * { margin-top: 0; }
.entry-flow > :not(.alignfull):first-child { margin-top: clamp(40px, 6vw, 72px); }
.entry-flow > :not(.alignfull):last-child { margin-bottom: clamp(40px, 6vw, 72px); }
.entry-flow .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: min(100% - 48px, 1120px); margin-left: auto !important; margin-right: auto !important; }
.entry-flow .is-layout-constrained > .alignwide { max-width: min(100% - 48px, 1240px); }
.kfa-section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.kfa-section.has-background { margin: 0; }
.has-topo .kfa-section.section-topo { background-image: url("assets/img/topo.svg"); background-size: 600px; }
.wp-block-group.alignfull, .wp-block-columns.alignfull, .wp-block-cover.alignfull { margin-top: 0; margin-bottom: 0; }

/* Palette helpers (also used by the editor) */
.has-accent-background-color { background-color: var(--kfa-accent) !important; }
.has-dark-background-color { background-color: var(--kfa-dark) !important; }
.has-accent-color { color: var(--kfa-accent) !important; }
.has-dark-color { color: var(--kfa-dark) !important; }
.has-dark-background-color, .has-accent-background-color { color: rgba(255,255,255,.86); }
.has-dark-background-color :where(h1, h2, h3, h4), .has-accent-background-color :where(h1, h2, h3, h4) { color: #fff; }
.has-dark-background-color a:not(.wp-block-button__link), .has-accent-background-color a:not(.wp-block-button__link) { color: #fff; }

/* Text styles you can pick as "Additional CSS class" or from patterns */
.eyebrow.badge { display: inline-block; padding: 6px 10px; background: var(--kfa-accent); color: #fff !important; }
.headings-upper .wp-block-heading.section-title, .headings-upper .kfa-section h2.wp-block-heading { text-transform: uppercase; letter-spacing: var(--kfa-track); font-weight: 500; }
.kfa-section h2.wp-block-heading { font-size: clamp(22px, 2.6vw, 30px); }
.has-text-align-center.section-lead { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Core buttons look like KFA buttons */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 26px;
	border: 1.5px solid var(--kfa-accent); border-radius: var(--kfa-radius); background: var(--kfa-accent); color: #fff;
	font: 600 13px/1.2 var(--kfa-font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.wp-block-button__link:hover { background: var(--kfa-dark); border-color: var(--kfa-dark); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--kfa-dark); border-color: var(--kfa-dark); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--kfa-dark); color: #fff; }
.buttons-solid .wp-block-button.is-style-outline > .wp-block-button__link { background: var(--kfa-accent); border-color: var(--kfa-accent); color: #fff; }
.wp-block-button.is-style-light > .wp-block-button__link { background: #fff; border-color: #fff; color: var(--kfa-dark); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--kfa-accent); border-color: var(--kfa-accent); color: #fff; }
.wp-block-button.is-style-ghost > .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.wp-block-button.is-style-ghost > .wp-block-button__link:hover { background: #fff; color: var(--kfa-dark); }

/* Photos that fill their column (drag the column edges to resize) */
.kfa-fill, .kfa-fill img { width: 100%; height: 100%; }
.wp-block-image.kfa-fill { margin: 0; }
.wp-block-image.kfa-fill img { object-fit: cover; min-height: 240px; }

/* Hero: dark panel beside a photo */
.kfa-hero-split { gap: 0 !important; margin: 0; background: var(--kfa-dark); }
.kfa-hero-split > .wp-block-column { margin: 0 !important; }
.kfa-hero-panel { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 4vw, 64px) !important; }
.kfa-hero-panel h1 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; }
.headings-upper .kfa-hero-panel h1, .headings-upper .model-cover h1 { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.kfa-hero-panel .hero-text { font-weight: 300; font-size: 17px; }
.kfa-hero-photo { height: 100%; }
@media (max-width: 781px) { .kfa-hero-split > .wp-block-column:last-child { order: -1; } .kfa-hero-photo { min-height: 46vh !important; } }

/* Numbers strip */
.kfa-stats .wp-block-columns { gap: 0 !important; margin: 0; }
.kfa-stats .wp-block-column { text-align: center; padding: 28px 12px; border-left: 1px solid rgba(255,255,255,.1); }
.kfa-stats .wp-block-column:first-child { border-left: 0; }
.kfa-stats .stat-value { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: .04em; color: #fff; margin: 0; }
.kfa-stats .stat-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); margin: 4px 0 0; }
@media (max-width: 781px) { .kfa-stats .wp-block-column { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); } }

/* Three paths */
.paths-blocks { gap: 2px !important; background: var(--kfa-line); border: 1px solid var(--kfa-line); }
.paths-blocks > .wp-block-column { background: #fff; padding: 36px 32px; margin: 0 !important; }
.paths-blocks .path-num { font-size: 40px; font-weight: 200; color: var(--kfa-accent); line-height: 1; margin: 0 0 18px; }
.paths-blocks h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .12em; }
.paths-blocks p:not(.path-num) { color: var(--kfa-muted); }

/* Story mosaic */
.kfa-story-blocks { gap: 0 !important; margin: 0; background: var(--kfa-dark); }
.kfa-story-blocks > .wp-block-column { margin: 0 !important; }
.story-mosaic-blocks { gap: 4px !important; height: 100%; margin: 0; min-height: 520px; }
.story-mosaic-blocks .wp-block-column { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; }
.story-mosaic-blocks .wp-block-image { flex: 1; margin: 0; }
.story-panel-blocks { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 88px) !important; }
.story-panel-blocks p { font-weight: 300; }

/* Photo tiles */
.kfa-tiles-blocks { gap: 4px !important; margin: 0; background: var(--kfa-dark); }
.kfa-tiles-blocks > .wp-block-column { margin: 0 !important; }
.tile-cover { min-height: 340px; }
.tile-cover h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 4px; }
.tile-cover h3 a { color: #fff; text-decoration: none; }
.tile-cover h3 a::after { content: ""; position: absolute; inset: 0; } /* whole tile clickable */
.tile-cover p { font-size: 13.5px; }

/* Contact band */
.cta-band-blocks .wp-block-columns { align-items: center; margin: 0; }
.cta-band-blocks h2 { margin-bottom: 6px; }

/* Aircraft page */
.model-cover { min-height: min(80vh, 760px); }
.model-cover h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1; color: #fff; margin-bottom: 12px; }
.model-cover .model-tagline { font-size: 19px; font-weight: 300; max-width: 640px; }
.kfa-block-aircraft-specs.alignfull .spec-bar { margin: 0; }
.kfa-block-aircraft-specs .spec-bar-grid { width: min(100% - 48px, 1240px); margin: 0 auto; }
.model-aside-blocks { background: #fff; border: 1px solid var(--kfa-line); padding: 28px !important; position: sticky; top: calc(var(--kfa-header-h) + 24px); }
@media (max-width: 960px) { .model-aside-blocks { position: static; } }
.kfa-block { margin-bottom: 0; }
.kfa-hero-panel .eyebrow.badge, .story-panel-blocks .eyebrow, .model-cover .eyebrow.badge { align-self: flex-start; width: auto; }
.press-blocks .kfa-press-strip { justify-content: center; }
.has-text-align-center.section-lead, .has-text-align-center.eyebrow { margin-left: auto; margin-right: auto; }
/* Aircraft big photo: placeholder until a featured image is set; text aligned to the site width */
.model-cover { background: #3a4148 url("assets/img/placeholder.svg") center/cover no-repeat; }
.model-cover .wp-block-cover__inner-container { width: min(100% - 48px, 1240px) !important; margin: 0 auto !important; padding: 0 0 24px; }
.model-cover .wp-block-cover__inner-container > .wp-block-group > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* Sections whose blocks have nothing to show (e.g. a gallery with no photos yet) disappear */
.kfa-section:not(:has(> *)) { display: none; }
