/*
Theme Name: OrestisP
Description: Custom theme for OrestisP Security Systems — Authorized Ajax reseller, Chania. Ajax-style design, native fields, no page builder.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: orestisp
*/

/* ---------- Tokens (taken from ajax.systems) ---------- */
:root {
	--bg: #000;
	--surface: #181818;
	--surface-2: #212121;
	--surface-3: #2a2a2a;
	--line: #303030;
	--text: #f7f7f7;
	--muted: #adadad;
	--dim: #7a7a7a;
	--accent: #c70000;
	--accent-strong: #a00000;
	--on-accent: #fff;
	--light: #f7f7f7;
	--light-text: #181818;
	--light-muted: #5f5f5f;

	--font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-display: "Roboto Flex", "Roboto", system-ui, sans-serif;

	--radius: 16px;
	--radius-sm: 10px;
	--pill: 100px;
	--container: 1360px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 128px);
	--header-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 400 16px/1.5 var(--font);
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: var(--pill); }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Wide, light, uppercase display face — Ajax "ajaxSpace" look via Roboto Flex at max width. */
.display, .display-sm, .brand-word {
	font-family: var(--font-display);
	font-weight: 300;
	font-stretch: 151%;
	font-variation-settings: "wdth" 151;
	text-transform: uppercase;
	letter-spacing: .06em;
	line-height: 1.12;
}
.display { font-size: clamp(30px, 5.2vw, 64px); margin-bottom: .35em; }
.display-sm { font-size: clamp(24px, 3.2vw, 40px); }
.h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.01em; }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; }
.h4 { font-size: 18px; font-weight: 500; line-height: 1.3; }
.h5 { font-size: 15px; font-weight: 500; line-height: 1.3; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 680px; line-height: 1.5; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 24px; border-radius: var(--pill);
	font-size: 15px; font-weight: 500; line-height: 1; border: 1px solid transparent;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.btn-sm { min-height: 34px; padding: 8px 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-light { background: var(--text); color: #000; }
.btn-light:hover { background: #fff; color: #000; }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--text); }
.btn-outline:hover { border-color: var(--text); color: var(--text); background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn svg { flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--bg); border-bottom: 1px solid #1c1c1c; font-size: 13px; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-badge { display: inline-flex; align-items: center; gap: 8px; }
.topbar-badge svg { width: 16px; height: 16px; color: var(--accent); }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links svg { width: 14px; height: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--pill); padding: 2px; }
.lang-switch a { padding: 2px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 500; color: var(--muted); }
.lang-switch a.is-current { background: var(--text); color: #000; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.92); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid #1c1c1c; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; flex-direction: column; line-height: 1; flex: none; }
.brand:hover { color: var(--text); }
.brand-word { font-size: 20px; letter-spacing: .14em; }
.brand-word b { font-weight: 600; color: var(--accent); }
.brand-sub { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-logo { max-height: 40px; width: auto; }

.primary-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list > .nav-item:last-child > .nav-link { padding-right: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 14px; background: none; border: 0; cursor: pointer; font-size: 15px; color: var(--text); }
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-item.is-active > .nav-link { color: var(--accent); }
.nav-link svg { transition: transform .2s var(--ease); }
.nav-item.is-open > .nav-link svg { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-mobile-extra { display: none; }

/* Mega / dropdown panel */
.nav-panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #000; border-bottom: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	max-height: calc(100vh - var(--header-h) - 40px); overflow: auto;
}
.nav-item.is-open > .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel-inner { max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 48px; }
.nav-panel-overview { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.mega-cols { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 48px; }
.mega-col-title { font-size: 13px; color: var(--dim); letter-spacing: .02em; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mega-col-title a { color: var(--dim); }
.mega-col-title a:hover { color: var(--accent); }
.mega-col.is-wide .mega-groups { columns: 2; column-gap: 48px; }
.mega-group { break-inside: avoid; margin-bottom: 22px; }
.mega-group ul { list-style: none; margin: 0; padding: 0; }
.mega-heading { display: block; font-size: 19px; font-weight: 500; margin-bottom: 10px; color: var(--text); }
.mega-label, .is-label.mega-label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.mega-link { display: block; padding: 7px 0; font-size: 15px; color: var(--text); }
.mega-link:hover, .mega-heading:hover { color: var(--accent); }
.mega-link[aria-current] { color: var(--accent); }
.nav-simple { list-style: none; margin: 0; padding: 0; columns: 3; }
.nav-backdrop { position: fixed; inset: 0; top: calc(var(--header-h) + 36px); background: rgba(0,0,0,.6); z-index: -1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-full { min-height: clamp(460px, 78vh, 820px); display: flex; align-items: flex-end; }
.hero-full .hero-media { position: absolute; inset: 0; }
.hero-full .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-full .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 70%, #000 100%), linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 65%); }
.hero-full .hero-content { position: relative; padding-top: 120px; padding-bottom: clamp(48px, 7vw, 96px); }
.hero-center { text-align: center; padding: clamp(64px, 10vw, 140px) 0 clamp(40px, 5vw, 72px); }
.hero-center .lead { margin-inline: auto; }
.hero-center .btn-row { justify-content: center; }
.hero-figure { margin-top: clamp(32px, 5vw, 64px); }
.hero-figure img { border-radius: var(--radius); width: 100%; max-height: 640px; object-fit: cover; }
.hero-compact { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.hero-home.hero-full { min-height: clamp(520px, 88vh, 900px); }
.hero-home .display { font-size: clamp(34px, 6.4vw, 84px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs span { color: var(--dim); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section.theme-dark { padding-top: 0; }
.section-tight { padding-top: 0; }
.theme-light { background: var(--light); color: var(--light-text); }
.theme-light + .theme-light { padding-top: 0; }
.theme-light .lead, .theme-light .section-text, .theme-light .card-text, .theme-light p { color: var(--light-muted); }
.theme-light .card, .theme-light .product-card { background: #fff; border-color: #e6e6e6; }
.theme-light .h4, .theme-light .h5, .theme-light h3 { color: var(--light-text); }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-text { color: var(--muted); font-size: 17px; }
.section-text p:last-child { margin-bottom: 0; }
.section-figure { margin-top: 32px; }
.section-figure img { border-radius: var(--radius); width: 100%; }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-5 .card-body { padding: 24px; }
.grid-tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s var(--ease); }
.card-body { padding: 28px; }
.card-text { color: var(--muted); font-size: 15px; }
.card-text p:last-child { margin: 0; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-link { color: inherit; }
.card-link:hover { color: inherit; border-color: #4a4a4a; }
.card-link:hover img { transform: scale(1.04); }

/* Tiles (image + caption overlay, like Ajax "Meeting any needs") */
.tile, .bento-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); isolation: isolate; color: var(--text); }
.tile { aspect-ratio: 4 / 3; }
.tile img, .bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .7s var(--ease); }
.tile::after, .bento-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%); }
.tile-caption { position: absolute; left: 0; right: 56px; bottom: 0; padding: 20px 22px; }
.tile-caption p { color: rgba(247,247,247,.75); font-size: 14px; margin: 4px 0 0; }
.tile-caption h3 { margin: 0; }
.round-arrow { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.card-link:hover .round-arrow { background: var(--accent); border-color: var(--accent); color: #000; }
a.tile:hover, a.bento-tile:hover { color: var(--text); }

/* Bento (home: like Ajax's product category grid) */
.bento { display: grid; gap: 16px; grid-template-columns: 1.1fr 1fr 1fr; grid-auto-rows: minmax(240px, 30vw); max-height: none; }
.bento-tile { min-height: 240px; }
.bento-4 .bento-tile:nth-child(1) { grid-row: span 2; }
.bento-4 .bento-tile:nth-child(4) { grid-column: 2 / 4; }
.bento-4 { grid-auto-rows: minmax(240px, 22vw); }
.bento-5 .bento-tile:nth-child(1) { grid-row: span 2; }
.bento-tile .tile-caption { padding: 28px; }

/* Feature (text + images) */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature.is-flipped .feature-copy { order: 2; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { color: var(--accent); flex: none; margin-top: 1px; }
.feature-media { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.media-1 { grid-template-columns: 1fr; }
.media-3 .media-card:first-child { grid-column: span 2; }
.media-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.media-1 .media-card, .media-3 .media-card:first-child { aspect-ratio: 16 / 9; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px; font-size: 14px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.8)); }

/* Products */
.section-products { padding-top: clamp(32px, 4vw, 56px) !important; padding-bottom: 0; }
.section-products:last-of-type { padding-bottom: var(--section); }
.section-products .section-head { margin-bottom: 20px; }
.section-products .h2 { font-size: clamp(22px, 2.2vw, 28px); }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 20px; display: flex; flex-direction: column; transition: border-color .25s; }
.product-media { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 45%, #3a3a3a 0%, #1f1f1f 60%, #181818 100%); margin-bottom: 16px; padding: 12%; }
.product-media img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.45)); }
.product-card p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num { font-family: var(--font-display); font-variation-settings: "wdth" 151; font-weight: 300; font-size: 40px; color: var(--accent); display: block; margin-bottom: 28px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; transition: transform .25s var(--ease); color: var(--muted); }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.faq-body { color: var(--muted); padding-bottom: 22px; max-width: 760px; }

/* CTA band */
.cta-band { position: relative; border-radius: calc(var(--radius) * 1.5); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding: clamp(40px, 6vw, 88px); isolation: isolate; }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.2) 100%); }
.cta-copy { max-width: 620px; }

/* Prose (main editor content) */
.prose { max-width: 820px; font-size: 17px; color: #d6d6d6; }
.prose h2 { font-size: clamp(24px, 2.6vw, 34px); color: var(--text); margin-top: 1.4em; }
.prose h3 { font-size: 21px; color: var(--text); margin-top: 1.3em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list strong, .contact-list a { font-size: 17px; font-weight: 500; }
.contact-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); flex: none; }
.contact-card { padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: 16px; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form-notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.form-notice.is-ok { background: rgba(199,0,0,.14); color: #ff6b6b; }
.form-notice.is-err { background: rgba(255,90,90,.12); color: #ff8a8a; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; color: var(--muted); font-size: 14px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-cta h2 { color: var(--text); margin-bottom: 8px; }
.footer-cta p { margin: 0; max-width: 560px; }
.footer-cta .btn-row { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-word { color: var(--text); display: block; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; }
.ajax-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 14px 6px 10px; font-size: 13px; color: var(--text); }
.ajax-badge svg { width: 18px; height: 18px; color: var(--accent); }
.footer-title { color: var(--text); font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 2px; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom .muted { color: var(--dim); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
	.reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav-link { padding: 0 10px; font-size: 14px; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.grid-5 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
	:root { --header-h: 60px; }
	.nav-toggle { display: inline-flex; }
	.header-cta .btn { display: none; }
	.header-inner { justify-content: space-between; }
	/* backdrop-filter would make the header the containing block of the fixed menu panel */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #000; }
	.primary-nav {
		position: fixed; inset: var(--nav-top, calc(var(--header-h) + 36px)) 0 0 0; background: #000; display: block;
		overflow-y: auto; padding: 8px var(--gutter) 40px; transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
	}
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open .nav-toggle .i-open { display: none; }
	.nav-open .nav-toggle .i-close { display: inline; }
	.nav-open { overflow: hidden; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-item { border-bottom: 1px solid var(--line); }
	.nav-link { width: 100%; justify-content: space-between; height: 56px; padding: 0; font-size: 18px; }
	.nav-panel { position: static; opacity: 1; visibility: visible; transform: none; display: none; max-height: none; border: 0; }
	.nav-item.is-open > .nav-panel { display: block; }
	.nav-panel-inner { padding: 0 0 20px; }
	.mega-cols { grid-template-columns: 1fr; gap: 24px; }
	.mega-col.is-wide .mega-groups { columns: 1; }
	.nav-simple { columns: 1; }
	.nav-mobile-extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
	.nav-backdrop { display: none; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.feature, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
	.feature.is-flipped .feature-copy { order: 0; }
	.bento, .bento-4 { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(220px, 44vw); }
	.bento-4 .bento-tile:nth-child(1) { grid-row: auto; grid-column: 1 / -1; }
	.bento-4 .bento-tile:nth-child(4) { grid-column: 1 / -1; }
	.bento-5 .bento-tile:nth-child(1) { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.hide-sm, .topbar-badge { display: none; }
	.topbar-inner { justify-content: flex-end; }
	.grid-2, .grid-3, .grid-4, .grid-5, .steps, .form-grid { grid-template-columns: 1fr; }
	.grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
	.product-card { padding: 10px 10px 14px; }
	.bento, .bento-4, .bento-5 { grid-template-columns: 1fr; grid-auto-rows: 72vw; }
	.bento .bento-tile { grid-column: auto !important; grid-row: auto !important; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-full .hero-content { padding-top: 160px; }
	.card-body { padding: 22px; }
	.btn-row .btn { flex: 1 1 auto; }
	.map-wrap { aspect-ratio: 4 / 3; }
}

/* ---------- Ajax brand mark (logo + "Ajax", never uppercased) ---------- */
.ajax-brand { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; text-transform: none; vertical-align: baseline; }
.ajax-brand .ajax-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ajax-brand .ajax-logo { height: .72em; width: auto; flex: none; position: relative; top: -.02em; }
.display .ajax-brand, .display-sm .ajax-brand { letter-spacing: .02em; }
.eyebrow .ajax-brand { letter-spacing: .04em; }
.eyebrow .ajax-brand .ajax-logo { height: .8em; }

/* Small text above titles is white everywhere (dark on light sections). */
.theme-light .eyebrow { color: var(--light-text); }
.ajax-badge .ajax-logo { width: auto; height: .75em; color: currentColor; }
