/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, ul, ol, h1, h2, h3, h4, h5, h6, p, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; }

/* Tokens */
:root {
	--color-bg: #171717;
	--color-dark: #2d2c2c;
	--color-dark-alt: #272727;
	--color-heading: #272729;
	--color-text-muted: #3b3b3b;
	--color-text-strong: #1c1c1c;
	--color-accent-orange: #ff6a00;
	--color-accent-red: #fd4a26;
	--color-green: #1bb96b;
	--color-pink: #b91b5d;
	--color-nav-inactive: #e5e8ee;
	--color-nav-active: #ff5532;
	--gradient-cta: radial-gradient(circle, #ff0e0e 0%, #ff5532 100%);
	--font-heading: 'Montserrat', sans-serif;
	--font-display: 'Inter', sans-serif;
	--font-body: 'Open Sans', sans-serif;
}

body {
	font-family: var(--font-heading);
	color: #fff;
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 80px;
	box-sizing: border-box;
}

@media (max-width: 1023px) {
	.container { padding: 0 16px; }
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 4px;
	padding: 8px 32px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}

.btn--outline {
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
}

.btn--gradient {
	background: var(--gradient-cta);
	color: #fff;
}

.btn--lg {
	padding: 12px 40px;
	font-size: 16px;
	font-weight: 800;
}

/* Site header */
.site-header {
	background: var(--color-dark);
	height: 72px;
	position: relative;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	height: 100%;
}

.site-header__logo {
	display: block;
	line-height: 0;
}

.site-header__logo img {
	height: 17px;
	width: auto;
}

.site-nav {
	margin-left: 46px;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
}

.site-nav__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-nav__item a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--color-nav-inactive);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: color .2s ease;
}

.site-nav__item a:hover,
.site-nav__item a.current-ref {
	color: var(--color-nav-active);
}

.site-nav__icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.site-nav__caret {
	display: inline-flex;
	width: 10px;
	height: 10px;
	flex: none;
	color: var(--color-nav-inactive);
	transition: transform .2s ease, color .2s ease;
}

.site-nav__item:hover .site-nav__caret,
.site-nav__item:focus-within .site-nav__caret {
	color: var(--color-nav-active);
	transform: rotate(180deg);
}

/* Submenu — desktop hover dropdown */
.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 200;
	min-width: 200px;
	margin-top: 16px;
	padding: 8px;
	border-radius: 8px;
	background: var(--color-dark-alt);
	border: 1px solid rgba(255, 255, 255, .08);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.site-nav__item:hover > .sub-menu,
.site-nav__item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sub-menu .site-nav__item { width: 100%; }

.sub-menu .site-nav__item a {
	padding: 8px 12px;
	border-radius: 6px;
	white-space: nowrap;
}

.sub-menu .site-nav__item a:hover { background: rgba(255, 255, 255, .06); }

.site-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.menu-toggle-box { display: none; }

@media (max-width: 1023px) {
	.site-nav {
		display: none;
	}
.site-header__actions .btn{
	width: 100%;
}
	.site-header {
		height: auto;
	}

	.site-header__inner {
		flex-wrap: wrap;
		padding: 12px 15px;
	}

	.site-header__logo { order: 1; }
	.menu-toggle-box { order: 2; }

	.site-header__actions {
		order: 3;
		flex-basis: 100%;
		margin-left: 0;
		margin-top: 12px;
	}

	.menu-toggle-box {
		display: block;
		margin-left: auto;
	}

	.menu-toggle {
		display: block;
		width: 24px;
		height: 18px;
		position: relative;
	}

	.menu-toggle small,
	.menu-toggle::before,
	.menu-toggle::after {
		content: '';
		display: block;
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: #fff;
	}

	.menu-toggle::before { top: 0; }
	.menu-toggle small { top: 8px; }
	.menu-toggle::after { top: 16px; }

	.site-header nav.is-active {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--color-dark);
		padding: 24px;
	}

	.site-header nav.is-active .site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	/* Submenu — always expanded inline within the mobile burger menu, not a hover overlay. */
	.site-header nav.is-active .site-nav__item {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 12px;
	}

	.site-header nav.is-active .site-nav__caret { display: none; }

	.site-header nav.is-active .sub-menu {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		width: 100%;
		margin: 0;
		padding: 0 0 0 16px;
		background: none;
		border: 0;
		border-left: 1px solid rgba(255, 255, 255, .12);
		box-shadow: none;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.site-header nav.is-active .sub-menu .site-nav__item a { padding: 0; }
}

/* Site footer */
.site-footer {
	background: var(--color-dark);
	color: #fff;
	padding: 32px 0;
	margin-top: 30px;
}

.site-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 24px;
}

.site-footer__caption {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .5);
	font-family: var(--font-body);
	font-size: 13px;
	text-align: center;
}

.site-footer__logo img {
	height: 24px;
	width: auto;
}

.site-footer__inner {
	display: flex;

	flex-wrap: wrap;
	gap: 64px 120px;
}

.site-footer__title {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 24px;
}

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.site-footer__list a {
	font-family: var(--font-body);
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
	text-decoration: none;
	transition: color .2s ease;
}

.site-footer__list a:hover {
	color: #fff;
}

.site-footer__list--social a {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-footer__social-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.site-footer__social-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Rich text — ACF WYSIWYG / SEO text blocks. Covers every tag TinyMCE's "full" toolbar can produce. */
.rich-text {
	font-family: var(--font-heading);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text-muted);
}

.seo-section { padding: 40px 0; }

.seo-text {
	background: linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, var(--color-accent-orange), var(--color-accent-red)) border-box;
	border: 2px solid transparent;
	border-radius: 16px;
	padding: 32px 40px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

@media (max-width: 640px) {
	.seo-text { padding: 16px; }
}

.rich-text > *:first-child { margin-top: 0; }
.rich-text > *:last-child { margin-bottom: 0; }

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-heading);
	margin: 1.4em 0 .6em;
}

.rich-text h1 { font-size: 32px; }
.rich-text h2 { font-size: 26px; }
.rich-text h3 { font-size: 21px; }
.rich-text h4 { font-size: 18px; }
.rich-text h5 { font-size: 16px; }
.rich-text h6 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

.rich-text p { margin: 0 0 1.2em; }

.rich-text a {
	color: var(--color-accent-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rich-text a:hover { color: var(--color-green); }

.rich-text strong, .rich-text b { font-weight: 700; color: var(--color-heading); }
.rich-text em, .rich-text i { font-style: italic; }

.rich-text ul,
.rich-text ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: .5em; }
.rich-text li > ul,
.rich-text li > ol { margin-top: .5em; margin-bottom: 0; }

.rich-text blockquote {
	margin: 1.6em 0;
	padding: 16px 24px;
	border-left: 3px solid var(--color-green);
	background: rgba(0, 0, 0, .04);
	font-style: italic;
	color: var(--color-heading);
}

.rich-text blockquote p:last-child { margin-bottom: 0; }

.rich-text img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.2em 0;
}

.rich-text figure { margin: 1.2em 0; }
.rich-text figcaption {
	font-size: 13px;
	color: var(--color-text-muted);
	text-align: center;
	margin-top: .5em;
}

.rich-text hr {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, .12);
	margin: 2em 0;
}

.table-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.6em 0;
	border-radius: 8px;
}

.rich-text table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.table-scroll table { margin: 0; }

.rich-text th,
.rich-text td {
	padding: 10px 16px;
	border: 1px solid rgba(253, 74, 38, .14);
	text-align: left;
	vertical-align: top;
	min-width: 120px;
}

.rich-text thead th {
	background: linear-gradient(135deg, var(--color-accent-orange), var(--color-accent-red));
	color: #fff;
	font-weight: 600;
}

.rich-text tbody tr:nth-child(even) { background: rgba(253, 74, 38, .05); }

.rich-text code {
	font-family: 'SFMono-Regular', Consolas, monospace;
	font-size: .9em;
	background: rgba(0, 0, 0, .06);
	padding: 2px 6px;
	border-radius: 4px;
}

.rich-text pre {
	background: var(--color-dark);
	color: #fff;
	padding: 16px 20px;
	border-radius: 8px;
	overflow-x: auto;
	margin: 1.2em 0;
}

.rich-text pre code { background: none; padding: 0; color: inherit; }

/* Modifier: use inside dark cards (hero / promo blocks) */
.rich-text--on-dark { color: rgba(255, 255, 255, .85); }
.rich-text--on-dark h1, .rich-text--on-dark h2, .rich-text--on-dark h3,
.rich-text--on-dark h4, .rich-text--on-dark h5, .rich-text--on-dark h6,
.rich-text--on-dark strong, .rich-text--on-dark b { color: #fff; }
.rich-text--on-dark a { color: var(--color-accent-orange); }
.rich-text--on-dark a:hover { color: #fff; }
.rich-text--on-dark blockquote { background: rgba(255, 255, 255, .08); color: #fff; }
.rich-text--on-dark hr { border-top-color: rgba(255, 255, 255, .2); }
.rich-text--on-dark th, .rich-text--on-dark td { border-color: rgba(255, 255, 255, .2); }
.rich-text--on-dark thead th { background: rgba(255, 255, 255, .12); }
.rich-text--on-dark tbody tr:nth-child(even) { background: rgba(255, 255, 255, .05); }
.rich-text--on-dark code { background: rgba(255, 255, 255, .12); }

/* Breadcrumbs (Yoast SEO — yoast_breadcrumb()) */
.breadcrumbs {
	font-family: var(--font-heading);
	font-size: 13px;
	color: rgba(255, 255, 255, .5);
	margin-bottom: 16px;
}

.breadcrumbs a {
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
}

.breadcrumbs a:hover { color: var(--color-accent-orange); }

/* Generic article page (page.php) — title + content, with a sticky table of contents sidebar. */
.page-article { padding: 40px 0 80px; }

.page-article__head { margin-bottom: 32px; }

.page-article__title {
	font-family: var(--font-heading);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.page-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
	align-items: start;
}

.page-article__content {
	background: linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, var(--color-accent-orange), var(--color-accent-red)) border-box;
	border: 2px solid transparent;
	border-radius: 16px;
	padding: 40px 48px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.page-article__sidebar { position: sticky; top: 24px; }

.toc-sidebar {
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: #141414;
	padding: 24px;
}

.toc-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.toc-sidebar__title {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .5);
	margin-bottom: 16px;
}

.toc-sidebar__toggle { display: none; }

.toc-sidebar__list { display: flex; flex-direction: column; gap: 2px; }
.toc-sidebar__list li { list-style: none; }

.toc-sidebar__list a {
	display: block;
	padding: 6px 0 6px 12px;
	border-left: 2px solid transparent;
	font-family: var(--font-heading);
	font-size: 14px;
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease;
}

.toc-sidebar__list a:hover {
	color: #fff;
	border-left-color: var(--color-accent-orange);
}

.toc-sidebar__level-3 a { padding-left: 24px; font-size: 13px; color: rgba(255, 255, 255, .55); }

@media (max-width: 1023px) {
	.page-article__layout { grid-template-columns: minmax(0, 1fr); }
	.page-article__sidebar { position: static; order: -1; }
	.page-article__content { padding: 24px; }
	.page-article__title { font-size: 28px; }

	.toc-sidebar__head { cursor: pointer; }
	.toc-sidebar__title { margin-bottom: 0; }

	.toc-sidebar__toggle {
		display: block;
		flex: none;
		width: 24px;
		height: 18px;
		position: relative;
	}

	.toc-sidebar__burger,
	.toc-sidebar__burger::before,
	.toc-sidebar__burger::after {
		content: '';
		display: block;
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: #fff;
		transition: transform .2s ease, opacity .2s ease;
	}

	.toc-sidebar__burger { top: 8px; }
	.toc-sidebar__burger::before { top: -8px; }
	.toc-sidebar__burger::after { top: 8px; }

	.toc-sidebar.is-open .toc-sidebar__burger { background: transparent; }
	.toc-sidebar.is-open .toc-sidebar__burger::before { transform: translateY(8px) rotate(45deg); }
	.toc-sidebar.is-open .toc-sidebar__burger::after { transform: translateY(-8px) rotate(-45deg); }

	.toc-sidebar__list {
		max-height: 0;
		overflow: hidden;
		margin-top: 0;
		transition: max-height .3s ease, margin-top .3s ease;
	}

	.toc-sidebar.is-open .toc-sidebar__list {
		max-height: 800px;
		margin-top: 16px;
	}
}
