/**
 * Xpert Aura front-end styles.
 *
 * Deliberately small: Elementor styles whatever you build, so the theme only
 * covers the shell, the fallback templates and WordPress core classes.
 *
 * 1. Tokens
 * 2. Base
 * 3. Layout
 * 4. Header and navigation
 * 5. Listings and entries
 * 6. Comments and forms
 * 7. Footer
 * 8. WordPress core classes
 * 9. Accessibility
 */

/* ============ 1. Tokens ============ */
/* Every value here can be changed in Appearance → Customize → Theme design,
   which rewrites these properties. Elementor designs can use them too:
   var(--xf-accent), var(--xf-ink) and so on. */
:root {
	--xf-ink: #0a0705;
	--xf-muted: #565656;
	--xf-line: #d0d2d5;
	--xf-bg: #ffffff;
	--xf-alt: #f7f6f6;
	--xf-accent: #ed7a30;
	--xf-accent-dark: #d2661f;
	--xf-radius: 10px;
	--xf-container: 1200px;
	--xf-narrow: 760px;
	--xf-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--xf-font-heading: var(--xf-font-body);
	--xf-font-size: 17px;
	--xf-heading-weight: 700;
	--xf-space: clamp(16px, 4vw, 40px);
}

/* ============ 2. Base ============ */
body {
	margin: 0;
	background: var(--xf-bg);
	color: var(--xf-ink);
	font-family: var(--xf-font-body);
	font-size: var(--xf-font-size);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--xf-font-heading);
	line-height: 1.2;
	font-weight: var(--xf-heading-weight);
}

h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: clamp(20px, 2.6vw, 24px); }

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

a {
	color: var(--xf-accent-dark);
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--xf-ink);
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--xf-accent);
	color: var(--xf-muted);
}

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
}

pre {
	padding: 16px;
	overflow-x: auto;
	background: var(--xf-alt);
	border-radius: var(--xf-radius);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--xf-line);
	text-align: left;
}

/* ============ 3. Layout ============ */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

.xf-container {
	width: 100%;
	max-width: var(--xf-container);
	margin: 0 auto;
	padding: 0 var(--xf-space);
}

.xf-container--narrow {
	max-width: var(--xf-narrow);
}

/* Full-width and canvas templates: no theme chrome in the way. */
.xf-full-width,
.xf-canvas-main {
	width: 100%;
	margin: 0;
	padding: 0;
}

.xf-canvas {
	margin: 0;
	padding: 0;
}

.xf-page-content {
	width: 100%;
}

/* ============ 4. Header and navigation ============ */
.site-header {
	border-bottom: 1px solid var(--xf-line);
	background: var(--xf-bg);
}

.xf-sticky-header .site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* The admin bar is fixed on desktop, so start below it. */
.admin-bar.xf-sticky-header .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar.xf-sticky-header .site-header {
		top: 46px;
	}
}

.xf-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
}

.site-branding .site-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.site-branding .site-title a {
	color: var(--xf-ink);
	text-decoration: none;
}

.site-description {
	margin: 2px 0 0;
	color: var(--xf-muted);
	font-size: 14px;
}

.custom-logo-link img,
.xf-logo img {
	display: block;
	max-height: 64px;
	width: auto;
}

.xf-nav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xf-nav-menu li {
	position: relative;
}

.xf-nav-menu a {
	display: block;
	padding: 6px 0;
	color: var(--xf-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.xf-nav-menu a:hover,
.xf-nav-menu a:focus,
.xf-nav-menu .current-menu-item > a {
	color: var(--xf-accent-dark);
}

/* Sub-menus */
.xf-nav-menu .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 20;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--xf-bg);
	border: 1px solid var(--xf-line);
	border-radius: var(--xf-radius);
	box-shadow: 0 16px 40px rgba(10, 7, 5, 0.12);
}

.xf-nav-menu li:hover > .sub-menu,
.xf-nav-menu li:focus-within > .sub-menu,
.xf-nav-menu li.xf-open > .sub-menu {
	display: block;
}

.xf-nav-menu .sub-menu a {
	padding: 7px 16px;
}

.xf-menu-toggle {
	display: none;
	align-items: center;
	gap: 9px;
	padding: 9px 14px;
	color: var(--xf-ink);
	background: var(--xf-alt);
	border: 1px solid var(--xf-line);
	border-radius: var(--xf-radius);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.xf-menu-toggle-bars,
.xf-menu-toggle-bars::before,
.xf-menu-toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
}

.xf-menu-toggle-bars {
	position: relative;
}

.xf-menu-toggle-bars::before { position: absolute; top: -6px; }
.xf-menu-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
	.xf-menu-toggle {
		display: inline-flex;
	}

	.xf-nav .xf-nav-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		margin-top: 12px;
	}

	.xf-nav.xf-nav--open .xf-nav-menu {
		display: flex;
	}

	.xf-nav-menu > li {
		border-bottom: 1px solid var(--xf-line);
	}

	.xf-nav-menu .sub-menu {
		position: static;
		display: block;
		border: 0;
		box-shadow: none;
		padding: 0 0 8px 14px;
	}
}

/* ============ 5. Listings and entries ============ */
.xf-archive-header {
	padding: var(--xf-space) 0 8px;
}

.xf-archive-description {
	color: var(--xf-muted);
	max-width: var(--xf-narrow);
}

.xf-loop {
	display: grid;
	gap: 28px;
	padding: 24px 0 8px;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.xf-loop--cols-1 { grid-template-columns: minmax(0, 1fr); }
.xf-loop--cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.xf-loop--cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.xf-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--xf-bg);
	border: 1px solid var(--xf-line);
	border-radius: var(--xf-radius);
}

.xf-card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.xf-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 22px;
}

.xf-card-title {
	margin: 0;
	font-size: 20px;
}

.xf-card-title a {
	color: var(--xf-ink);
	text-decoration: none;
}

.xf-card-title a:hover,
.xf-card-title a:focus {
	color: var(--xf-accent-dark);
}

.xf-card-excerpt {
	margin: 0;
	color: var(--xf-muted);
	font-size: 15.5px;
}

.xf-card-more {
	margin-top: auto;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.xf-card-more::after {
	content: " →";
}

.xf-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--xf-muted);
	font-size: 14px;
}

.xf-post-meta a {
	color: inherit;
}

.xf-sep {
	color: var(--xf-line);
}

.xf-entry-header {
	padding: var(--xf-space) 0 0;
}

.xf-entry-title,
.xf-page-title {
	margin-bottom: 12px;
}

.xf-entry-media {
	margin: 28px 0;
}

.xf-entry-media img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.xf-entry-media figcaption,
.wp-caption-text {
	margin-top: 8px;
	color: var(--xf-muted);
	font-size: 14px;
	text-align: center;
}

.entry-content {
	padding-bottom: 8px;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.xf-entry-footer {
	margin: 24px 0 var(--xf-space);
	padding-top: 16px;
	border-top: 1px solid var(--xf-line);
	color: var(--xf-muted);
	font-size: 14.5px;
}

.xf-terms-label {
	font-weight: 600;
}

.post-navigation {
	max-width: var(--xf-narrow);
	margin: 0 auto var(--xf-space);
	padding: 0 var(--xf-space);
}

.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
}

.post-navigation a {
	text-decoration: none;
}

.xf-nav-label {
	display: block;
	color: var(--xf-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.xf-nav-title {
	font-weight: 700;
}

.pagination {
	padding: 8px 0 var(--xf-space);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--xf-line);
	border-radius: var(--xf-radius);
	text-align: center;
	text-decoration: none;
	font-size: 15px;
}

.pagination .page-numbers.current {
	background: var(--xf-accent);
	border-color: var(--xf-accent);
	color: #fff;
}

.xf-no-results {
	max-width: var(--xf-narrow);
	padding: var(--xf-space) 0;
}

.xf-404 {
	max-width: var(--xf-narrow);
	padding: clamp(40px, 9vw, 96px) var(--xf-space);
	text-align: center;
}

.xf-404 .search-form {
	justify-content: center;
}

/* ============ 6. Comments and forms ============ */
.xf-comments-area,
.xf-comments {
	max-width: var(--xf-narrow);
	margin: 0 auto;
	padding: var(--xf-space);
}

.xf-comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.xf-comment-list ol.children {
	margin: 0 0 0 24px;
	padding: 0;
	list-style: none;
}

.xf-comment-list .comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--xf-line);
}

.xf-comment-list .comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-metadata,
.comment-awaiting-moderation {
	color: var(--xf-muted);
	font-size: 13.5px;
}

.comment-reply-link {
	font-weight: 600;
	font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 11px 13px;
	color: var(--xf-ink);
	background: #fff;
	border: 1px solid var(--xf-line);
	border-radius: var(--xf-radius);
	font: inherit;
	font-size: 16px;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--xf-accent);
	outline-offset: 1px;
	border-color: var(--xf-accent);
}

label {
	display: inline-block;
	margin-bottom: 5px;
	font-size: 14.5px;
	font-weight: 600;
}

button,
input[type="submit"],
.xf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	color: #fff;
	background: var(--xf-accent);
	border: 1px solid var(--xf-accent);
	border-radius: var(--xf-radius);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.xf-button:hover,
button:focus,
input[type="submit"]:focus,
.xf-button:focus {
	background: var(--xf-accent-dark);
	border-color: var(--xf-accent-dark);
	color: #fff;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
}

.search-form label {
	flex: 1 1 220px;
	margin: 0;
}

/* ============ 7. Footer ============ */
.site-footer {
	margin-top: auto;
	padding: var(--xf-space) 0;
	background: var(--xf-alt);
	border-top: 1px solid var(--xf-line);
	font-size: 15px;
}

.xf-footer-widgets {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	padding-bottom: 24px;
}

.widget-title {
	font-size: 16px;
	letter-spacing: 0.02em;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 4px 0;
}

.xf-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 18px;
	border-top: 1px solid var(--xf-line);
	color: var(--xf-muted);
}

.xf-copyright {
	margin: 0;
}

.xf-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xf-footer-menu a {
	color: var(--xf-muted);
	text-decoration: none;
}

.xf-footer-menu a:hover,
.xf-footer-menu a:focus {
	color: var(--xf-ink);
}

/* ============ 8. WordPress core classes ============ */
.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide {
	max-width: min(1100px, 92vw);
	margin-inline: auto;
}

.alignfull {
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
}

.gallery {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gallery-item {
	margin: 0;
}

.sticky .xf-card-title::before {
	content: "★ ";
	color: var(--xf-accent);
}

.bypostauthor > .comment-body .fn::after {
	content: " ✓";
	color: var(--xf-accent);
}

/* ============ 9. Accessibility ============ */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 12px 20px;
	background: var(--xf-ink);
	color: #fff;
	border-radius: var(--xf-radius);
	font-weight: 700;
	text-decoration: none;
}

:focus-visible {
	outline: 3px solid rgba(237, 122, 48, 0.55);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
