/* ==========================================================================
   TargetBox Base — main.css
   Mobile-first. Breakpoints: 640px (sm), 1024px (lg — desktop navigation), 1280px (xl).
   Per-site design = override the tokens below in the child theme's style.css.
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
	/* Colors */
	--tbx-color-primary: #1d4ed8;
	--tbx-color-primary-contrast: #ffffff;
	--tbx-color-secondary: #0f172a;
	--tbx-color-accent: #f59e0b;
	--tbx-color-text: #1f2937;
	--tbx-color-muted: #6b7280;
	--tbx-color-bg: #ffffff;
	--tbx-color-surface: #f5f6f8;
	--tbx-color-border: #e5e7eb;
	--tbx-color-link: var(--tbx-color-primary);

	/* Header / footer */
	--tbx-header-bg: rgba(255, 255, 255, 0.96);
	--tbx-header-text: var(--tbx-color-secondary);
	--tbx-header-height: 64px;
	--tbx-header-height-lg: 80px;
	--tbx-logo-max-height: 44px;
	--tbx-submenu-bg: #ffffff;
	--tbx-footer-bg: var(--tbx-color-secondary);
	--tbx-footer-text: #cbd5e1;
	--tbx-footer-heading: #ffffff;

	/* Mobile off-canvas menu */
	--tbx-offcanvas-width: min(86vw, 380px);
	--tbx-offcanvas-bg: var(--tbx-color-bg);
	--tbx-offcanvas-text: var(--tbx-color-secondary);
	--tbx-offcanvas-backdrop: rgba(15, 23, 42, 0.55);

	/* Typography */
	--tbx-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tbx-font-heading: var(--tbx-font-body);
	--tbx-font-size-base: 1.0625rem;
	--tbx-line-height: 1.65;
	--tbx-heading-weight: 700;
	--tbx-h1: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);
	--tbx-h2: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem);
	--tbx-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);

	/* Layout */
	--tbx-container: 1200px;
	--tbx-container-wide: 1400px;
	--tbx-content: 760px;
	--tbx-sidebar: 320px;
	--tbx-gutter: 1.25rem;
	--tbx-gap: 1.5rem;
	--tbx-section-space: clamp(3rem, 2rem + 4vw, 6rem);

	/* Shape & motion */
	--tbx-radius: 10px;
	--tbx-radius-sm: 6px;
	--tbx-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
	--tbx-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.14);
	--tbx-transition: 180ms ease;

	/* Admin bar offset for the sticky header (set by WP) */
	--tbx-adminbar: 0px;
}

/* 2. Reset / base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tbx-header-height) + 1rem); }

body {
	margin: 0;
	font-family: var(--tbx-font-body);
	font-size: var(--tbx-font-size-base);
	line-height: var(--tbx-line-height);
	color: var(--tbx-color-text);
	background: var(--tbx-color-bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--tbx-color-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tbx-font-heading);
	font-weight: var(--tbx-heading-weight);
	line-height: 1.2;
	color: var(--tbx-color-secondary);
	margin: 0 0 0.6em;
}
h1 { font-size: var(--tbx-h1); }
h2 { font-size: var(--tbx-h2); }
h3 { font-size: var(--tbx-h3); }
h4 { font-size: 1.125rem; }

p, ul, ol, figure, blockquote, table, pre { margin: 0 0 1.25em; }

hr { border: 0; border-top: 1px solid var(--tbx-color-border); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--tbx-color-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 0.5rem; left: 0.5rem; z-index: 1000;
	padding: 0.75rem 1rem;
	background: #fff; color: #000;
	border-radius: var(--tbx-radius-sm);
}

/* 3. Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--tbx-container);
	margin-inline: auto;
	padding-inline: var(--tbx-gutter);
}
.container-wide { max-width: var(--tbx-container-wide); }

.site-content { min-height: 60vh; }

.layout { padding-block: 2rem 3rem; display: grid; gap: 2.5rem; }
.site-main { min-width: 0; }

@media (min-width: 1024px) {
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) var(--tbx-sidebar); }
	.no-sidebar .layout > .site-main { max-width: var(--tbx-content); width: 100%; margin-inline: auto; }
	.no-sidebar.blog .layout > .site-main,
	.no-sidebar.archive .layout > .site-main,
	.no-sidebar.search .layout > .site-main { max-width: none; }
}

/* 4. Buttons & forms ------------------------------------------------------- */
.button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0.6em 1.25em;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	color: var(--tbx-color-primary-contrast);
	background: var(--tbx-color-primary);
	border: 2px solid var(--tbx-color-primary);
	border-radius: var(--tbx-radius-sm);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--tbx-transition), color var(--tbx-transition), transform var(--tbx-transition);
}
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { filter: brightness(1.08); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-lg { padding: 0.85em 1.75em; font-size: 1.0625rem; }
.button-outline { background: transparent; color: var(--tbx-color-primary); }
.button-inverse { background: #fff; color: var(--tbx-color-primary); border-color: #fff; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.6em 0.8em;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid var(--tbx-color-border);
	border-radius: var(--tbx-radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--tbx-color-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tbx-color-primary) 20%, transparent); }

.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field { flex: 1; }

/* 5. Header (sticky) ------------------------------------------------------- */
.admin-bar { --tbx-adminbar: 46px; }
@media (min-width: 783px) { .admin-bar { --tbx-adminbar: 32px; } }
@media (max-width: 600px) { .admin-bar { --tbx-adminbar: 0px; } }

.site-header {
	position: sticky;
	top: var(--tbx-adminbar);
	z-index: 100;
	background: var(--tbx-header-bg);
	color: var(--tbx-header-text);
	border-bottom: 1px solid var(--tbx-color-border);
	transition: box-shadow var(--tbx-transition);
}
@supports (backdrop-filter: blur(8px)) {
	.site-header { backdrop-filter: saturate(160%) blur(8px); }
}
.site-header.is-scrolled { box-shadow: var(--tbx-shadow); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--tbx-header-height);
}

.site-branding { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.site-branding .custom-logo-link { display: inline-flex; }
.site-branding .custom-logo { max-height: var(--tbx-logo-max-height); width: auto; }
.site-title {
	font-family: var(--tbx-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: inherit;
	text-decoration: none;
	letter-spacing: -0.01em;
}
.site-description { margin: 0; font-size: 0.8125rem; color: var(--tbx-color-muted); }

/* Hamburger */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: var(--tbx-radius-sm);
	cursor: pointer;
}
.menu-toggle-bars { position: relative; display: block; width: 22px; height: 16px; }
.menu-toggle-bars span {
	position: absolute; left: 0;
	width: 100%; height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--tbx-transition), opacity var(--tbx-transition), top var(--tbx-transition);
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 7px; }
.menu-toggle-bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* 6. Header menu & actions ------------------------------------------------ */
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.menu-hint { margin: 0; font-size: 0.875rem; }

/* Desktop navigation only — on mobile the off-canvas panel (section 7) is used. */
.main-navigation { display: none; }

.main-navigation ul,
.offcanvas-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li,
.offcanvas-navigation li { position: relative; }
.main-navigation a,
.offcanvas-navigation a { color: var(--tbx-color-secondary); font-weight: 600; text-decoration: none; }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.offcanvas-navigation .current-menu-item > a,
.offcanvas-navigation .current-menu-ancestor > a { color: var(--tbx-color-primary); }

.submenu-toggle {
	position: absolute;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: var(--tbx-radius-sm);
	cursor: pointer;
}
.submenu-toggle .icon { transition: transform var(--tbx-transition); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

@media (min-width: 1024px) {
	html { scroll-padding-top: calc(var(--tbx-header-height-lg) + 1rem); }
	.header-inner { min-height: var(--tbx-header-height-lg); }
	.menu-toggle { display: none; }
	.header-actions { margin-left: 0; }

	.main-navigation { display: flex; align-items: center; margin-left: auto; }
	.main-navigation .menu { display: flex; align-items: center; gap: 0.25rem; }
	.main-navigation .menu > li > a {
		display: block;
		padding: 0.6rem 0.85rem;
		border-radius: var(--tbx-radius-sm);
		transition: background var(--tbx-transition), color var(--tbx-transition);
	}
	.main-navigation .menu > li > a:hover { background: var(--tbx-color-surface); }
	.main-navigation .menu > .menu-item-has-children > a { padding-right: 1.9rem; }

	.main-navigation .submenu-toggle {
		top: 50%; right: 0.3rem;
		width: 24px; height: 24px;
		transform: translateY(-50%);
	}

	/* Dropdowns */
	.main-navigation .sub-menu {
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		z-index: 10;
		min-width: 240px;
		padding: 0.5rem;
		background: var(--tbx-submenu-bg);
		border: 1px solid var(--tbx-color-border);
		border-radius: var(--tbx-radius);
		box-shadow: var(--tbx-shadow-lg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(6px);
		transition: opacity var(--tbx-transition), transform var(--tbx-transition), visibility 0s linear 180ms;
	}
	/* Invisible bridge so the dropdown does not close while moving the mouse */
	.main-navigation .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }

	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu,
	.main-navigation .sub-menu.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity var(--tbx-transition), transform var(--tbx-transition);
	}
	.main-navigation .sub-menu a {
		display: block;
		padding: 0.55rem 2rem 0.55rem 0.75rem;
		border-radius: var(--tbx-radius-sm);
		font-weight: 500;
		white-space: nowrap;
	}
	.main-navigation .sub-menu a:hover { background: var(--tbx-color-surface); color: var(--tbx-color-primary); }

	/* 3rd level flies out to the right */
	.main-navigation .sub-menu .sub-menu { top: -0.5rem; left: 100%; margin-left: 0.25rem; }
	.main-navigation .sub-menu .submenu-toggle .icon { transform: rotate(-90deg); }
	/* Flip when too close to the right edge (class set by main.js) */
	.main-navigation .sub-menu .sub-menu.flip-left { left: auto; right: 100%; margin-left: 0; margin-right: 0.25rem; }
	.main-navigation .menu > li > .sub-menu.flip-left { left: auto; right: 0; }
}

/* 7. Off-canvas menu (mobile) --------------------------------------------- */
.offcanvas {
	position: fixed;
	inset: var(--tbx-adminbar) 0 0 0;
	z-index: 1000;
	visibility: hidden;
	transition: visibility 0s linear 260ms;
}
.offcanvas.is-open { visibility: visible; transition: none; }
html.offcanvas-open { overflow: hidden; }

.offcanvas-backdrop {
	position: absolute;
	inset: 0;
	background: var(--tbx-offcanvas-backdrop);
	opacity: 0;
	transition: opacity 260ms ease;
}
.offcanvas.is-open .offcanvas-backdrop { opacity: 1; }

.offcanvas-panel {
	position: absolute;
	top: 0; bottom: 0; right: 0;
	display: flex;
	flex-direction: column;
	width: var(--tbx-offcanvas-width);
	background: var(--tbx-offcanvas-bg);
	color: var(--tbx-offcanvas-text);
	box-shadow: var(--tbx-shadow-lg);
	transform: translateX(100%);
	transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
	outline: none;
}
.offcanvas-left .offcanvas-panel { right: auto; left: 0; transform: translateX(-100%); }
.offcanvas.is-open .offcanvas-panel { transform: none; }

.offcanvas-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--tbx-header-height);
	padding-inline: var(--tbx-gutter) calc(var(--tbx-gutter) - 0.5rem);
	border-bottom: 1px solid var(--tbx-color-border);
}
.offcanvas-close {
	display: inline-flex; align-items: center; justify-content: center;
	flex: none;
	width: 44px; height: 44px;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: var(--tbx-radius-sm);
	cursor: pointer;
}
.offcanvas-close:hover { background: var(--tbx-color-surface); }

.offcanvas-body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0.5rem var(--tbx-gutter) 2rem;
}
.offcanvas-navigation .menu > li { border-bottom: 1px solid var(--tbx-color-border); }
.offcanvas-navigation a { display: block; padding: 0.85rem 3rem 0.85rem 0; color: inherit; }
.offcanvas-navigation .submenu-toggle { top: 0.35rem; right: -0.5rem; width: 44px; height: 44px; }
.offcanvas-navigation .sub-menu {
	display: none;
	margin-bottom: 0.5rem;
	padding-left: 1rem;
	border-left: 2px solid var(--tbx-color-border);
}
.offcanvas-navigation .sub-menu.is-open { display: block; }
.offcanvas-navigation .sub-menu a { padding-block: 0.6rem; font-weight: 500; }
.offcanvas-navigation .sub-menu .submenu-toggle { top: 0; }
.offcanvas-body .social-navigation { margin-top: 1.5rem; }

@media (min-width: 1024px) {
	.offcanvas { display: none; }
}

/* 8. Page headers & breadcrumbs ------------------------------------------- */
.page-header { margin-bottom: 2rem; }
.page-title { margin-bottom: 0.4em; }
.archive-description { color: var(--tbx-color-muted); max-width: 70ch; }

.breadcrumbs { font-size: 0.875rem; color: var(--tbx-color-muted); margin-bottom: 1.25rem; }
.breadcrumbs a { color: inherit; }
.breadcrumbs .sep { margin-inline: 0.5em; opacity: 0.6; }

/* 9. Cards & grid ---------------------------------------------------------- */
.post-grid { display: grid; gap: var(--tbx-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .no-sidebar .post-grid, .section .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--tbx-color-bg);
	border: 1px solid var(--tbx-color-border);
	border-radius: var(--tbx-radius);
	transition: box-shadow var(--tbx-transition), transform var(--tbx-transition);
}
.card:hover { box-shadow: var(--tbx-shadow); transform: translateY(-2px); }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; }
.card-title { font-size: 1.1875rem; margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--tbx-color-primary); }
.card-excerpt { color: var(--tbx-color-muted); font-size: 0.9375rem; }
.card-excerpt p { margin: 0; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--tbx-color-muted); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--tbx-color-primary); }

/* 10. Single / page content ------------------------------------------------ */
.entry-header { margin-bottom: 1.5rem; }
.entry-media { margin: 0 0 2rem; }
.entry-media img { width: 100%; border-radius: var(--tbx-radius); }

.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--tbx-color-primary);
	background: var(--tbx-color-surface);
	border-radius: 0 var(--tbx-radius-sm) var(--tbx-radius-sm) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
@media (min-width: 640px) { .prose table { display: table; } }
.prose th, .prose td { padding: 0.65rem 0.75rem; border: 1px solid var(--tbx-color-border); text-align: left; }
.prose th { background: var(--tbx-color-surface); }
.prose img { border-radius: var(--tbx-radius-sm); }
.prose pre { overflow-x: auto; padding: 1rem; background: #0f172a; color: #e2e8f0; border-radius: var(--tbx-radius-sm); }
.prose code { font-size: 0.9em; }

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 0.875rem; color: var(--tbx-color-muted); margin-top: 0.5rem; }

.tag-links { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 2rem 0 1rem; }
.tag-links a {
	display: inline-block;
	padding: 0.3em 0.8em;
	font-size: 0.8125rem;
	color: var(--tbx-color-text);
	background: var(--tbx-color-surface);
	border-radius: 999px;
	text-decoration: none;
}

.post-navigation { margin: 3rem 0; }
.post-navigation .nav-links { display: grid; gap: 1rem; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { text-align: right; } }
.post-navigation a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--tbx-color-border); border-radius: var(--tbx-radius); text-decoration: none; }
.post-navigation .nav-label { display: block; font-size: 0.8125rem; color: var(--tbx-color-muted); }
.post-navigation .nav-title { font-weight: 600; color: var(--tbx-color-secondary); }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 0.75rem;
	border: 1px solid var(--tbx-color-border);
	border-radius: var(--tbx-radius-sm);
	text-decoration: none;
	color: var(--tbx-color-text);
}
.pagination .page-numbers.current { background: var(--tbx-color-primary); border-color: var(--tbx-color-primary); color: var(--tbx-color-primary-contrast); }

/* 11. Sidebar & widgets ---------------------------------------------------- */
.sidebar .widget { margin-bottom: 2rem; padding: 1.25rem; background: var(--tbx-color-surface); border-radius: var(--tbx-radius); }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 0.35rem 0; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: calc(var(--tbx-header-height-lg) + var(--tbx-adminbar) + 1.5rem); align-self: start; } }

/* 12. Comments ------------------------------------------------------------- */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.25rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--tbx-color-border); }
.comment-author img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }
.comment-metadata { font-size: 0.8125rem; color: var(--tbx-color-muted); }

/* 13. Sections ------------------------------------------------------------- */
.section { padding-block: var(--tbx-section-space); }
.section-header { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-intro { color: var(--tbx-color-muted); font-size: 1.125rem; }
.section-more { text-align: center; margin-top: 2rem; }

.section-hero {
	position: relative;
	background: var(--tbx-color-surface);
	background-image: var(--hero-image, none);
	background-size: cover;
	background-position: center;
}
.section-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.35)); }
.section-hero .container { position: relative; }
.section-hero.has-image .hero-title,
.section-hero.has-image .hero-text { color: #fff; }
.hero-content { max-width: 680px; }
.align-center .hero-content { margin-inline: auto; text-align: center; }
.hero-title { font-size: clamp(2.125rem, 1.5rem + 3vw, 3.5rem); }
.hero-text { font-size: 1.1875rem; color: var(--tbx-color-muted); }

.section-cta { background: var(--tbx-color-primary); color: var(--tbx-color-primary-contrast); }
.section-cta .cta-title { color: inherit; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-text { margin: 0; opacity: 0.9; }

.features-grid { display: grid; gap: var(--tbx-gap); }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { padding: 1.5rem; border: 1px solid var(--tbx-color-border); border-radius: var(--tbx-radius); }
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; color: var(--tbx-color-primary); }
.feature-title { font-size: 1.125rem; }
.feature-text { margin: 0; color: var(--tbx-color-muted); }

.landing .landing-content:empty { display: none; }

/* 14. Footer --------------------------------------------------------------- */
.site-footer { margin-top: 4rem; background: var(--tbx-footer-bg); color: var(--tbx-footer-text); }
.site-footer a { color: var(--tbx-footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer .widget-title { color: var(--tbx-footer-heading); }

.footer-widgets { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 640px) { .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.footer-widgets.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-widgets.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1.25rem; font-size: 0.875rem; }
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.copyright { margin: 0; }
.footer-menu,
.social-menu { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.social-menu { gap: 0.5rem 1rem; }

/* 15. 404 ------------------------------------------------------------------ */
.error-404 { padding-block: 4rem; text-align: center; max-width: 560px; margin-inline: auto; }
.error-code { font-size: 5rem; font-weight: 800; line-height: 1; color: var(--tbx-color-primary); margin: 0; }
.error-404 .search-form { margin: 1.5rem 0; }

/* 16. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
