/* ============================================================
   Lexraa Header & Footer v2.0 — "Warm & Friendly" (compact redo)
   Brand: charcoal #2C2C2A · burnt orange #D85A30 · cream #FFF9F1
   Note: !important on key rules beats the theme's old
   Customizer CSS (generic button/link rules with !important).
   ============================================================ */

.lx-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------------- Header: compact floating card ---------------- */

/* Fixed header — always pinned to the viewport, never scrolls away */
.lx-header {
	position: fixed;
	top: 14px;
	left: 0;
	right: 0;
	z-index: 200;
	background: transparent;
	border: 0;
	padding: 0 16px;
}

/* Offset page content so the fixed header never covers it */
body { padding-top: 106px; }
body.admin-bar { padding-top: 138px; }
body.admin-bar .lx-header { top: 46px; }
@media (max-width: 782px) {
	body.admin-bar .lx-header { top: 60px; }
}
@media (max-width: 920px) {
	body { padding-top: 90px; }
	body.admin-bar { padding-top: 134px; }
}

.lx-header-card {
	position: relative;
	max-width: 1080px;
	margin: 0 auto;
	background: #FFF9F1;
	border: 2px solid #F0E3D2;
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(44, 44, 42, .10);
	padding: 10px 20px;
	display: flex;
	align-items: center;
	gap: 18px;
	transition: box-shadow .25s ease;
}

.lx-header.scrolled .lx-header-card { box-shadow: 0 16px 42px rgba(44, 44, 42, .18); }

.lx-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	flex-shrink: 0;
}

.lx-brand .custom-logo-link { display: inline-flex; line-height: 0; }

.lx-brand .custom-logo {
	height: 46px !important;
	width: auto !important;
	max-width: none !important;
	border-radius: 12px;
	box-shadow: 0 3px 10px rgba(44, 44, 42, .15);
}

.lx-logo-text {
	font-weight: 800;
	font-size: 24px;
	color: #2C2C2A;
	letter-spacing: -.5px;
}
.lx-logo-text span { color: #D85A30; }

.lx-tagline {
	margin: 0;
	font-style: italic;
	font-size: 12px;
	line-height: 1.2;
	color: #8A847E;
	white-space: nowrap;
}

/* Nav */
.lx-nav { margin-left: auto; }

.lx-menu {
	display: flex !important;
	align-items: center;
	gap: 4px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.lx-menu a {
	display: block;
	padding: 9px 16px;
	border-radius: 999px;
	color: #2C2C2A !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease;
}

.lx-menu a:hover { background: #FBEADB; color: #B44A26 !important; }

.lx-menu .current-menu-item > a,
.lx-menu .current_page_item > a {
	background: #D85A30;
	color: #FFF9F1 !important;
}

/* Header buttons */
.lx-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lx-icon-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.lx-search-open {
	background: #D85A30 !important;
	border: 2px solid #D85A30 !important;
	color: #FFF9F1 !important;
}
.lx-search-open:hover { background: #B44A26 !important; border-color: #B44A26 !important; transform: translateY(-2px); }

.lx-menu-toggle {
	display: none;
	background: transparent !important;
	border: 2px solid #2C2C2A !important;
	color: #2C2C2A !important;
}
.lx-menu-toggle:hover { background: #2C2C2A !important; color: #FFF9F1 !important; }

/* Search overlay */
.lx-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 14vh 20px 20px;
	background: rgba(44, 44, 42, .55);
	backdrop-filter: blur(3px);
}
.lx-search-overlay.open { display: flex; }

.lx-search-card {
	position: relative;
	width: 100%;
	max-width: 580px;
	background: #FFF9F1;
	border: 3px solid #D85A30;
	border-radius: 28px;
	padding: 40px 36px 36px;
	box-shadow: 0 24px 60px rgba(44, 44, 42, .3);
}

.lx-search-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none !important;
	background: #FBEADB !important;
	color: #2C2C2A !important;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.lx-search-close:hover { background: #D85A30 !important; color: #fff !important; }

.lx-search-title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	color: #2C2C2A;
	text-align: center;
}

.lx-search-card form { display: flex; gap: 10px; }

.lx-search-card input[type="search"] {
	flex: 1;
	padding: 15px 22px;
	font-size: 17px;
	border-radius: 999px;
	border: 2px solid #E7DCCF;
	background: #fff;
	color: #2C2C2A;
	outline: none;
	min-width: 0;
}
.lx-search-card input[type="search"]:focus { border-color: #D85A30; }

.lx-search-card button[type="submit"] {
	padding: 15px 30px;
	border-radius: 999px;
	border: none !important;
	background: #D85A30 !important;
	color: #fff !important;
	font-weight: 800;
	font-size: 16px;
	cursor: pointer;
	white-space: nowrap;
}
.lx-search-card button[type="submit"]:hover { background: #B44A26 !important; }

/* ---------------- Footer ---------------- */

.lx-footer {
	background: #2C2C2A;
	color: #B4B2A9;
	border-top: 4px solid #D85A30;
}

.lx-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 44px;
	padding-top: 60px;
	padding-bottom: 48px;
}

.lx-fbrand .custom-logo-link { display: inline-flex; line-height: 0; }

.lx-fbrand .custom-logo { height: 60px !important; width: auto !important; max-width: none !important; }

.lx-ftag {
	margin: 14px 0 0;
	font-style: italic;
	color: #F1EFE8;
	font-size: 15px;
}

.lx-fdesc {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.7;
	max-width: 38ch;
}

.lx-social { display: flex; gap: 12px; margin-top: 22px; }

.lx-social a {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid rgba(241, 239, 232, .25);
	display: inline-grid;
	place-items: center;
	color: #F1EFE8 !important;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lx-social a:hover {
	background: #D85A30;
	border-color: #D85A30;
	transform: translateY(-3px);
	color: #FFF9F1 !important;
}

.lx-fhead {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 12px;
	color: #F1EFE8;
	font-size: 19px;
	font-weight: 800;
}
.lx-fhead::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 4px;
	border-radius: 999px;
	background: #D85A30;
}

.lx-flinks ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }

.lx-flinks a {
	color: #B4B2A9 !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	transition: color .2s ease, padding-left .2s ease;
}
.lx-flinks a:hover { color: #D85A30 !important; padding-left: 6px; }

.lx-fhello p { margin: 0; font-size: 15px; line-height: 1.7; }
.lx-fhello a { color: #D85A30 !important; font-weight: 700; text-decoration: none !important; }
.lx-fhello a:hover { text-decoration: underline !important; }

.lx-fbottom {
	border-top: 1px solid rgba(241, 239, 232, .12);
	padding-top: 22px;
	padding-bottom: 22px;
	text-align: center;
	font-size: 14px;
}
.lx-fbottom a { color: #D85A30 !important; text-decoration: none !important; font-weight: 700; }
.lx-fbottom a:hover { text-decoration: underline !important; }

/* Back to top */
.lx-totop {
	position: fixed;
	right: 26px;
	bottom: 26px;
	z-index: 250;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: none !important;
	background: #D85A30 !important;
	color: #fff !important;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 10px 26px rgba(216, 90, 48, .45);
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.lx-totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lx-totop:hover { background: #B44A26 !important; }

/* Hide GeneratePress's own back-to-top if it still renders */
.generate-back-to-top { display: none !important; }

/* Sidebar layout: author box pinned to the top of the sidebar.
   (GP wraps all sidebar content in .inside-right-sidebar — the flex
   must go there, not on #right-sidebar itself. The "Most Recent"
   widget below is position:sticky, so our boxes must come BEFORE it,
   otherwise anything after it gets visually entangled with the stuck
   widget on scroll.) */
#right-sidebar .inside-right-sidebar { display: flex; flex-direction: column; }
#right-sidebar .inside-right-sidebar .lx-author-box { order: -2; }
#right-sidebar .inside-right-sidebar .lx-toc { order: -1; }

.lx-author-box {
	background: #FFF9F1;
	border: 2px solid #F3E4D3;
	border-top: 4px solid #D85A30;
	border-radius: 20px;
	padding: 26px 24px;
	text-align: center;
	clear: both;
}

.lx-author-head {
	margin: 0 0 16px;
	font-size: 18px;
	color: #2C2C2A;
}

.lx-author-inner .avatar {
	border-radius: 50%;
	border: 3px solid #D85A30;
	margin: 0 auto 12px;
	display: block;
}

.lx-author-name { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.lx-author-name a { color: #2C2C2A !important; text-decoration: none !important; }
.lx-author-name a:hover { color: #D85A30 !important; }

.lx-author-bio { margin: 0 0 14px; font-size: 14.5px; color: #6F6A64; line-height: 1.65; }

.lx-author-more { color: #D85A30 !important; font-weight: 800; font-size: 14.5px; text-decoration: none !important; }
.lx-author-more:hover { text-decoration: underline !important; }

/* ---------------- Sidebar "In This Article" box ---------------- */

html { scroll-behavior: smooth; }

/* Keep anchored headings clear of the fixed header */
h2[id], h3[id] { scroll-margin-top: 130px; }

.lx-toc {
	background: #FFF9F1;
	border: 2px solid #F3E4D3;
	border-top: 4px solid #D85A30;
	border-radius: 20px;
	padding: 26px 24px;
}

.lx-toc-head {
	margin: 0 0 14px;
	font-size: 18px;
	color: #2C2C2A;
}

.lx-toc ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 10px;
}

.lx-toc a {
	color: #2C2C2A !important;
	text-decoration: none !important;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	transition: color .2s ease, padding-left .2s ease;
}
.lx-toc a:hover { color: #D85A30 !important; padding-left: 6px; }

.lx-toc .lx-toc-h3 { padding-left: 16px; }
.lx-toc .lx-toc-h3 a { font-weight: 400; color: #6F6A64 !important; }
.lx-toc .lx-toc-h3 a:hover { color: #D85A30 !important; }

/* ---------------- Landing page ---------------- */

.lx-hero {
	background: #FFF9F1;
	border-bottom: 3px solid #D85A30;
	padding: 76px 0 68px;
	text-align: center;
}

.lx-hero h1 {
	margin: 0 0 16px;
	font-size: clamp(34px, 5vw, 58px);
	letter-spacing: -1px;
	color: #2C2C2A;
	line-height: 1.1;
}
.lx-hero h1 span { color: #D85A30; }

.lx-lead {
	font-size: 19px;
	color: #6F6A64;
	max-width: 660px;
	margin: 0 auto 30px;
	line-height: 1.6;
}

.lx-hero-form {
	display: flex;
	gap: 10px;
	max-width: 640px;
	margin: 0 auto;
}

.lx-hero-form input[type="search"] {
	flex: 1;
	padding: 17px 26px;
	font-size: 17px;
	border-radius: 999px;
	border: 2px solid #E7DCCF;
	background: #fff;
	color: #2C2C2A;
	outline: none;
	min-width: 0;
	box-shadow: 0 6px 20px rgba(44, 44, 42, .06);
}
.lx-hero-form input[type="search"]:focus { border-color: #D85A30; }

.lx-hero-form button[type="submit"] {
	padding: 17px 36px;
	border-radius: 999px;
	border: none !important;
	background: #D85A30 !important;
	color: #fff !important;
	font-weight: 800;
	font-size: 17px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(216, 90, 48, .35);
	transition: background .2s ease, transform .2s ease;
}
.lx-hero-form button[type="submit"]:hover { background: #B44A26 !important; transform: translateY(-2px); }

.lx-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
}

.lx-chips-label { color: #8A847E; font-weight: 700; font-size: 14px; }

.lx-chips a {
	padding: 9px 20px;
	border-radius: 999px;
	background: #fff;
	border: 2px solid #EBDCCB;
	color: #2C2C2A !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.lx-chips a:hover { background: #D85A30; border-color: #D85A30; color: #fff !important; }

.lx-section { padding: 68px 0 8px; }

.lx-section-title {
	text-align: center;
	font-size: 32px;
	color: #2C2C2A;
	margin: 0 0 10px;
	letter-spacing: -.5px;
}

.lx-section-sub {
	text-align: center;
	color: #8A847E;
	font-size: 17px;
	margin: 0 0 40px;
}

.lx-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lx-card {
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(44, 44, 42, .08);
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.lx-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 44px rgba(44, 44, 42, .14);
}
.lx-card > a { line-height: 0; }
.lx-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.lx-card-body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.lx-card-body h3 { margin: 0; font-size: 19px; line-height: 1.45; }
.lx-card-body h3 a { color: #2C2C2A !important; text-decoration: none !important; }
.lx-card-body h3 a:hover { color: #D85A30 !important; }
.lx-card-body p { margin: 0; color: #8A847E; font-size: 15px; line-height: 1.6; flex: 1; }
.lx-read { color: #D85A30 !important; font-weight: 800; font-size: 15px; text-decoration: none !important; }
.lx-read:hover { text-decoration: underline !important; }

.lx-cta-section { padding-bottom: 76px; }

.lx-cta {
	background: #2C2C2A;
	border-radius: 32px;
	padding: 60px 48px;
	text-align: center;
}
.lx-cta h2 { color: #FFF9F1; margin: 0 0 12px; font-size: 30px; letter-spacing: -.5px; }
.lx-cta p { color: #B4B2A9; margin: 0 0 28px; font-size: 17px; }

.lx-btn {
	display: inline-block;
	background: #D85A30;
	color: #fff !important;
	padding: 16px 42px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}
.lx-btn:hover { background: #B44A26; transform: translateY(-2px); color: #fff !important; }

/* ---------------- Mobile ---------------- */

@media (max-width: 920px) {
	.lx-tagline { display: none; }

	.lx-menu-toggle { display: inline-grid !important; }

	.lx-nav {
		display: none;
		position: absolute;
		top: calc(100% + 10px);
		left: 12px;
		right: 12px;
		margin: 0;
		background: #FFF9F1;
		border: 2px solid #F0E3D2;
		border-radius: 18px;
		box-shadow: 0 20px 44px rgba(44, 44, 42, .16);
		padding: 14px;
		z-index: 210;
	}

	.lx-header.open .lx-nav { display: block; }

	.lx-menu { flex-direction: column; align-items: stretch; gap: 6px; }

	.lx-menu a { text-align: center; padding: 13px 20px; }

	.lx-footer-grid { grid-template-columns: 1fr; gap: 36px; }

	.lx-search-card { padding: 32px 24px 28px; }
	.lx-search-card form { flex-direction: column; }
	.lx-search-card button[type="submit"] { width: 100%; }

	.lx-grid { grid-template-columns: 1fr; }
	.lx-hero-form { flex-direction: column; }
	.lx-hero-form button[type="submit"] { width: 100%; }
	.lx-cta { padding: 44px 28px; }
}
