/* ==========================================================================
   AkroFire theme: global styles
   Brand tokens, base type, layout, buttons, shared components, header, footer.
   Block-specific styles live in each block folder (blocks/<name>/style.css).
   ========================================================================== */

:root {
	--af-red: #FE0000;
	--af-red-soft: #FF7F7F;
	--af-navy: #1E2655;
	--af-deep: #0F163F;
	--af-black: #010101;
	--af-gray: #F3F4F6;
	--af-white: #FFFFFF;
	--af-periwinkle: #8FA0FF;
	--af-line: rgba(30, 38, 85, 0.18);
	--af-line-strong: rgba(30, 38, 85, 0.28);
	--af-line-dark: rgba(255, 255, 255, 0.16);

	--af-font-heading: Montserrat, Arial, sans-serif;
	--af-font-body: Arial, Helvetica, sans-serif;
	--af-font-spec: Roboto, Arial, sans-serif;

	--af-max: 1440px;
	--af-gutter: 80px;
	--af-section-y: 104px;
	--af-header-h: 76px;
}

@media (max-width: 1200px) { :root { --af-gutter: 48px; --af-section-y: 88px; } }
@media (max-width: 760px)  { :root { --af-gutter: 20px; --af-section-y: 64px; --af-header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--af-white); color: var(--af-black); font-family: var(--af-font-body); font-size: 16px; line-height: 1.6; }
img, video, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--af-red); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--af-red); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.af-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--af-red); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.af-skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.af-container { width: 100%; max-width: var(--af-max); margin: 0 auto; padding-left: var(--af-gutter); padding-right: var(--af-gutter); }
.af-section { position: relative; padding-top: var(--af-section-y); padding-bottom: var(--af-section-y); }
.af-section--white { background: var(--af-white); }
.af-section--gray { background: var(--af-gray); }
.af-section--navy { background: var(--af-navy); color: #fff; }
.af-section--deep { background-color: var(--af-deep); color: #fff; overflow: hidden; }
.af-grid-bg { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; }
.af-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 70% at 78% 50%, rgba(143,160,255,0.14), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(254,0,0,0.08), transparent 70%); }
.af-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 960px) { .af-split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Type ---------- */
.af-kicker { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--af-font-spec); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--af-navy); }
.af-kicker::before { content: ""; display: block; width: 28px; height: 2px; background: var(--af-red); flex-shrink: 0; }
.af-kicker--plain::before { display: none; }
.is-dark .af-kicker { color: var(--af-periwinkle); }
.af-h1 { margin: 0; font-family: var(--af-font-heading); font-weight: 700; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.af-h2 { margin: 0; font-family: var(--af-font-heading); font-weight: 700; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -0.015em; }
.af-h3 { margin: 0; font-family: var(--af-font-heading); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }
.af-lead { margin: 0; font-family: var(--af-font-heading); font-weight: 600; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: var(--af-navy); }
.af-body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--af-navy); }
.af-body p { margin: 0 0 1em; } .af-body p:last-child { margin-bottom: 0; }
.af-spec-label { font-family: var(--af-font-spec); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.af-outline-num { font-family: var(--af-font-heading); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--af-red); }
.is-dark .af-h1, .is-dark .af-h2, .is-dark .af-h3, .is-dark .af-lead { color: #fff; }
.is-dark .af-body { color: rgba(255,255,255,0.82); }

/* ---------- Buttons and links ---------- */
.af-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; background: var(--af-red); color: #fff; border: 1.5px solid var(--af-red); text-decoration: none; font-family: var(--af-font-heading); font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.af-btn:hover { color: #fff; background: #d90000; border-color: #d90000; }
.af-btn svg { flex-shrink: 0; transition: transform .2s ease; }
.af-btn:hover svg { transform: translateX(3px); }
.af-btn--navy { background: var(--af-navy); border-color: var(--af-navy); min-height: 52px; font-size: 15px; padding: 0 24px; }
.af-btn--navy:hover { background: #151b40; border-color: #151b40; }
.af-btn--outline { background: transparent; color: var(--af-navy); border-color: var(--af-navy); min-height: 52px; font-size: 15px; padding: 0 24px; }
.af-btn--outline:hover { background: var(--af-navy); color: #fff; border-color: var(--af-navy); }
.af-btn--small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.af-link { font-family: var(--af-font-heading); font-weight: 700; font-size: 16px; color: var(--af-navy); text-decoration: underline; text-decoration-color: var(--af-red); text-underline-offset: 5px; }
.af-link:hover { color: var(--af-red); }
.is-dark .af-link { color: #fff; }
.af-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }

/* ---------- Corner brackets and floating tags ---------- */
.af-frame { position: relative; }
.af-bracket { position: absolute; width: 28px; height: 28px; z-index: 2; pointer-events: none; border: 0 solid var(--af-red); }
.af-bracket--tl { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.af-bracket--tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.af-bracket--bl { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.af-bracket--br { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.af-tag { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: rgba(15,22,63,0.86); border: 1px solid var(--af-line-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; animation: afFloat 6s ease-in-out infinite; }
.af-tag + .af-tag { animation-delay: -3s; }
.af-tag--accent { border-left: 3px solid var(--af-red); }
.af-tag__label { font-family: var(--af-font-spec); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--af-periwinkle); }
.af-tag__value { font-family: var(--af-font-spec); font-size: 20px; line-height: 1.25; }
.af-tag--accent .af-tag__value { font-family: var(--af-font-heading); font-weight: 600; font-size: 17px; }
@keyframes afFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Utility bar ---------- */
.af-utility { background: var(--af-navy); color: rgba(255,255,255,0.85); font-family: var(--af-font-spec); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.af-utility .af-container { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 20px; }
.af-utility__items, .af-utility__links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.af-utility a { color: rgba(255,255,255,0.85); text-decoration: none; }
.af-utility a:hover { color: #fff; }
@media (max-width: 760px) { .af-utility__items { display: none; } .af-utility .af-container { justify-content: flex-end; } }

/* ---------- Header ---------- */
.af-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid rgba(30,38,85,0.14); }
.admin-bar .af-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .af-header { top: 46px; } }
.af-header .af-container { display: flex; align-items: center; justify-content: space-between; min-height: var(--af-header-h); gap: 24px; }
.af-logo { display: flex; flex-shrink: 0; }
.af-logo img { height: 36px; width: auto; }
.af-header__right { display: flex; align-items: center; gap: 32px; }
.af-nav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.af-nav a { display: inline-block; padding: 6px 0; font-family: var(--af-font-heading); font-weight: 600; font-size: 15px; color: var(--af-black); text-decoration: none; border-bottom: 2px solid transparent; }
.af-nav a:hover { color: var(--af-red); }
.af-nav .current-menu-item > a, .af-nav .current-menu-ancestor > a, .af-nav .current_page_item > a { color: var(--af-red); border-bottom-color: var(--af-red); }
.af-search-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(30,38,85,0.14); background: #fff; color: var(--af-black); text-decoration: none; }
.af-search-btn:hover { border-color: var(--af-navy); color: var(--af-navy); }
.af-menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(30,38,85,0.2); background: #fff; color: var(--af-black); cursor: pointer; }
.af-menu-toggle .af-icon-close { display: none; }
.af-menu-open .af-menu-toggle .af-icon-open { display: none; }
.af-menu-open .af-menu-toggle .af-icon-close { display: block; }
@media (max-width: 1200px) { .af-header__right, .af-nav ul { gap: 22px; } }
@media (max-width: 1080px) {
	.af-menu-toggle { display: inline-flex; }
	.af-header__right { position: fixed; left: 0; right: 0; top: var(--af-menu-top, 112px); bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--af-gutter) 32px; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
	.af-menu-open .af-header__right { transform: none; visibility: visible; }
	.af-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.af-nav a { display: block; padding: 18px 0; font-size: 18px; border-bottom: 1px solid var(--af-line); }
	.af-nav .current-menu-item > a { border-bottom-color: var(--af-line); }
	.af-search-btn { display: none; }
	.af-header__right .af-btn { margin-top: 24px; }
	body.af-menu-open { overflow: hidden; }
}
@media (max-width: 760px) { .af-logo img { height: 30px; } }

/* ---------- Footer ---------- */
.af-footer { background: #fff; color: var(--af-navy); border-top: 4px solid var(--af-red); padding: 64px 0 32px; }
.af-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.af-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.af-footer__brand img { height: 36px; width: auto; align-self: flex-start; }
.af-footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.af-footer__contact a { color: var(--af-navy); text-decoration: none; }
.af-footer__signup { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.af-footer__signup-row { display: flex; width: 340px; max-width: 100%; height: 44px; border: 1px solid rgba(30,38,85,0.4); }
.af-footer__signup-row input { flex-grow: 1; min-width: 0; border: 0; padding: 0 14px; font-size: 14px; color: var(--af-black); background: #fff; }
.af-footer__signup-row button { border: 0; padding: 0 18px; background: var(--af-red); color: #fff; font-family: var(--af-font-heading); font-weight: 700; font-size: 14px; cursor: pointer; }
.af-footer__nav ul { display: grid; grid-template-columns: repeat(3, 200px); row-gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.af-footer__nav a, .af-footer__legal a { color: var(--af-navy); text-decoration: none; }
.af-footer__nav a:hover, .af-footer__legal a:hover { color: var(--af-red); }
.af-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(30,38,85,0.2); font-size: 13px; }
.af-footer__legal ul { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 960px) {
	.af-footer__top { flex-direction: column; }
	.af-footer__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.af-footer__bottom { flex-direction: column-reverse; }
}

/* ---------- Plain page content (privacy, terms, search results) ---------- */
.af-prose { max-width: 760px; }
.af-prose h1 { font-family: var(--af-font-heading); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 24px; }
.af-prose h2 { font-family: var(--af-font-heading); font-size: 28px; line-height: 1.2; margin: 48px 0 16px; }
.af-prose h3 { font-family: var(--af-font-heading); font-size: 21px; margin: 32px 0 12px; }
.af-prose p, .af-prose li { color: var(--af-navy); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Section header (shared by most blocks) ---------- */
.af-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px 80px; margin-bottom: 44px; }
.af-head__main { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.af-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 460px; }
.af-head__intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--af-navy); }
.is-dark .af-head__intro { color: rgba(255,255,255,0.82); }
.af-head__main .af-head__intro { max-width: 640px; }
.af-closing { margin: 40px 0 0; font-family: var(--af-font-heading); font-weight: 600; font-size: 18px; line-height: 1.45; color: var(--af-navy); }
.is-dark .af-closing { color: #fff; }
@media (max-width: 960px) { .af-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; } .af-head__side { max-width: none; } }
