/* ==========================================================================
   Belightful child theme
   Site-wide header, footer, blog templates and brand base styles.
   Page layouts are built in Elementor with the bl-* global classes; the
   color and font names below match the Elementor global variables.
   ========================================================================== */

/* ---------- Tokens (same names as the Elementor global variables) ---------- */
:root {
	--ivory: #F7F3EA;
	--paper: #FFFDF8;
	--sand: #ECE4D5;
	--ink: #22302A;
	--ink-soft: #4A564F;
	--forest: #2F4A3A;
	--forest-deep: #24392D;
	--sage: #5E7A63;
	--sage-ink: #4F6B55;
	--sage-tint: #DCE5D8;
	--plum: #6E3B5E;
	--plum-deep: #552C48;
	--plum-tint: #F2E7EE;
	--honey: #D9A44E;
	--line: rgba(34, 48, 42, 0.14);
	--line-strong: rgba(34, 48, 42, 0.24);

	--bl-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--bl-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bl-gutter: clamp(1rem, 4vw, 2.5rem);
	--bl-max: 1200px;
	--bl-measure: 68ch;
	--bl-radius: 20px;
	--bl-radius-lg: 28px;
	--bl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--bl-header-h: 76px;
}

/* ---------- Base ---------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--bl-header-h) + 16px);
}
body {
	margin: 0;
	background-color: var(--ivory);
	color: var(--ink);
	font-family: var(--bl-font-body);
	font-size: clamp(1.0625rem, 0.4vw + 0.98rem, 1.125rem);
	line-height: 1.65;
	font-variation-settings: "SOFT" 100, "WONK" 0; /* softens Fraunces; ignored by Figtree */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
::selection { background: var(--sage-tint); color: var(--ink); }
img { max-width: 100%; height: auto; }
.elementor p, .bl-prose p { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.bl-skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	padding: 0.75rem 1.25rem; border-radius: 999px;
	background: var(--forest); color: var(--ivory); font-weight: 600; text-decoration: none;
}
.bl-skip-link:focus { top: 1rem; color: var(--ivory); }

/* ---------- Details on Elementor pages that classes can't express ----------
   Everything else on the pages is set with Elementor's own controls (global
   classes and element styles). These are decorative extras with no native
   control in Elementor Free: pseudo-element dots, balanced wrapping, and
   descendant/hover details. */
.bl-h1 em { font-style: italic; font-weight: 400; color: var(--sage-ink); }
.bl-h1, .bl-h2, .bl-post-title { text-wrap: balance; }

/* Honey dot before small uppercase labels (class: bl-eyebrow) */
.bl-eyebrow::before {
	content: ""; position: absolute; left: 0; top: 0.5em;
	width: 8px; height: 8px; border-radius: 50%;
	background: radial-gradient(circle, var(--honey) 0 45%, rgba(217, 164, 78, 0.25) 46% 100%);
	box-shadow: 0 0 0 4px rgba(217, 164, 78, 0.14);
}
/* Sage bullet before list rows (class: bl-setting) */
.bl-setting::before {
	content: ""; position: absolute; left: 0; top: 1.08em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
}
.bl-post-card .bl-post-title { transition: color 0.25s var(--bl-ease); }
.bl-post-card:hover .bl-post-title, .bl-post-card:focus-visible .bl-post-title { color: var(--plum); }
.bl-post-card .bl-post-media { transition: transform 0.8s var(--bl-ease); }
.bl-post-card:hover .bl-post-media { transform: scale(1.015); }
.bl-card .bl-card-media { transition: transform 0.8s var(--bl-ease); }
.bl-card:hover .bl-card-media { transform: scale(1.02); }

/* Background-video play/pause controls: undo the parent theme's button reset. */
.e-background-video__play,
.e-background-video__pause {
	color: var(--forest) !important;
	font-family: var(--bl-font-body);
}
.e-background-video__play:hover,
.e-background-video__pause:hover {
	background-color: var(--paper) !important;
	color: var(--forest) !important;
}

/* ---------- Header ---------- */
.bl-site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(247, 243, 234, 0.88);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--bl-ease), box-shadow 0.3s var(--bl-ease);
}
.admin-bar .bl-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bl-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .bl-site-header { top: 0; } }
.bl-site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(34, 48, 42, 0.4); }
.bl-site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	width: min(100% - 2 * var(--bl-gutter), var(--bl-max)); min-height: var(--bl-header-h); margin-inline: auto;
}
.bl-brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 6px; }
.bl-brand img { display: block; height: 34px; width: auto; }

.bl-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.bl-nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.bl-nav__list a {
	position: relative; display: inline-block; padding: 0.4rem 0;
	color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none;
}
.bl-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
	background: var(--plum); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--bl-ease);
}
.bl-nav__list a:hover, .bl-nav__list a[aria-current="page"] { color: var(--plum); }
.bl-nav__list a:hover::after, .bl-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.bl-header-cta,
.bl-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 42px; padding: 0.55rem 1.15rem; border-radius: 999px;
	border: 1.5px solid var(--plum); background: var(--plum); color: #fff;
	font-family: var(--bl-font-body); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none;
	transition: background-color 0.25s var(--bl-ease), transform 0.25s var(--bl-ease), box-shadow 0.25s var(--bl-ease);
}
.bl-button { min-height: 48px; padding: 0.8rem 1.5rem; font-size: 1rem; }
.bl-header-cta:hover, .bl-header-cta:focus, .bl-button:hover, .bl-button:focus {
	background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; text-decoration: none;
	transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(85, 44, 72, 0.55);
}

.bl-menu-toggle {
	display: none; align-items: center; gap: 0.5rem;
	min-height: 44px; padding: 0.5rem 0.9rem; border-radius: 999px;
	background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink);
	font-family: var(--bl-font-body); font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.bl-menu-toggle:hover, .bl-menu-toggle:focus { background: var(--paper); color: var(--ink); border-color: var(--forest); }
.bl-menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.bl-menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--bl-ease), opacity 0.2s; }
.bl-menu-toggle__bars span:nth-child(1) { top: 0; }
.bl-menu-toggle__bars span:nth-child(2) { top: 5px; }
.bl-menu-toggle__bars span:nth-child(3) { top: 10px; }
.bl-menu-toggle[aria-expanded="true"] .bl-menu-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.bl-menu-toggle[aria-expanded="true"] .bl-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.bl-menu-toggle[aria-expanded="true"] .bl-menu-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
	:root { --bl-header-h: 66px; }
	.bl-site-header__inner { position: relative; }
	.bl-brand img { height: 28px; }
	.bl-menu-toggle { display: inline-flex; }
	.bl-nav {
		position: absolute; left: calc(-1 * var(--bl-gutter)); right: calc(-1 * var(--bl-gutter)); top: 100%;
		flex-direction: column; align-items: stretch; gap: 1.25rem;
		padding: 1.25rem var(--bl-gutter) 1.75rem;
		background: var(--ivory); border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -28px rgba(34, 48, 42, 0.45);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.25s var(--bl-ease), transform 0.25s var(--bl-ease), visibility 0s linear 0.25s;
	}
	.bl-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.bl-nav__list { flex-direction: column; gap: 0; }
	.bl-nav__list a { display: block; padding: 0.85rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
	.bl-nav__list a::after { display: none; }
	.bl-header-cta { width: 100%; min-height: 48px; font-size: 1rem; }
}

/* ---------- Footer ---------- */
.bl-site-footer {
	padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
	background: var(--forest-deep); color: var(--sage-tint);
	font-size: 0.9375rem; line-height: 1.6;
}
.bl-site-footer__inner { width: min(100% - 2 * var(--bl-gutter), var(--bl-max)); margin-inline: auto; }
.bl-site-footer a { color: var(--ivory); text-decoration: none; }
.bl-site-footer a:hover, .bl-site-footer a:focus { color: #fff; text-decoration: underline; }
.bl-footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.bl-footer-brand img { display: block; height: 32px; width: auto; margin-bottom: 1.25rem; }
.bl-footer-brand p { max-width: 34ch; margin: 0; }
.bl-footer-title {
	margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--sage-tint); opacity: 0.8;
}
.bl-footer-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.bl-footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
	border-top: 1px solid rgba(220, 229, 216, 0.16); font-size: 0.8125rem; opacity: 0.85;
}
.bl-footer-bottom a { color: var(--sage-tint); }

/* ---------- Shared layout for theme templates ---------- */
.bl-narrow { width: min(100% - 2 * var(--bl-gutter), 820px); margin-inline: auto; }
.bl-wide { width: min(100% - 2 * var(--bl-gutter), var(--bl-max)); margin-inline: auto; }
.bl-breadcrumb { margin-bottom: 1.5rem; font-size: 0.9375rem; }
.bl-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.bl-breadcrumb a:hover { color: var(--plum); text-decoration: underline; }
.bl-eyebrow-text {
	margin: 0 0 1rem; padding-left: 1.35em;
	font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-ink);
	background: radial-gradient(circle at 4px 50%, var(--honey) 0 3px, rgba(217, 164, 78, 0.28) 3.5px 7px, transparent 7.5px) no-repeat;
}
.bl-page-title, .bl-article-title, .bl-related h2, .bl-prose h2, .bl-prose h3, .bl-prose h4, .bl-article-cta h2 {
	font-family: var(--bl-font-display); font-weight: 400; color: var(--forest);
	letter-spacing: -0.012em; text-wrap: balance;
}

/* ---------- Page (non-Elementor) ---------- */
.bl-page-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.bl-page-title { margin: 0 0 0.4em; font-size: clamp(2.25rem, 3.6vw + 0.8rem, 3.5rem); line-height: 1.08; max-width: 20ch; }
.bl-page-lead { max-width: 52ch; margin: 0; font-size: clamp(1.1875rem, 0.6vw + 1rem, 1.375rem); line-height: 1.55; color: var(--ink-soft); }
.bl-page-body { padding-bottom: clamp(3.5rem, 7.5vw, 6.5rem); }

/* ---------- Article ---------- */
.bl-article-hero { padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.bl-article-title { margin: 0 0 0.4em; font-size: clamp(2.25rem, 3.6vw + 0.8rem, 3.5rem); line-height: 1.08; max-width: 20ch; }
.bl-article-dek { margin: 0 0 1rem; font-size: clamp(1.1875rem, 0.6vw + 1rem, 1.375rem); line-height: 1.55; color: var(--ink-soft); }
.bl-article-meta { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.bl-article-media { margin-top: clamp(2rem, 4vw, 3rem); }
.bl-article-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bl-radius-lg); }
.bl-article-body { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7.5vw, 6.5rem); }

.bl-prose {
	width: min(100% - 2 * var(--bl-gutter), var(--bl-measure)); margin-inline: auto;
	font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem); line-height: 1.75; color: var(--ink);
}
.bl-prose > p:first-child { font-size: 1.18em; line-height: 1.62; }
.bl-prose h2 { margin: 2.2em 0 0.5em; font-size: clamp(1.625rem, 1.2vw + 1.1rem, 2rem); line-height: 1.15; }
.bl-prose h3 { margin: 1.8em 0 0.4em; font-size: 1.375rem; line-height: 1.2; }
.bl-prose h4 { margin: 1.6em 0 0.4em; font-family: var(--bl-font-body); font-size: 1rem; font-weight: 600; color: var(--ink); }
.bl-prose p, .bl-prose ul, .bl-prose ol { margin: 0 0 1.25em; }
.bl-prose ul, .bl-prose ol { padding-left: 1.3em; }
.bl-prose li { margin-bottom: 0.45em; }
.bl-prose li::marker { color: var(--sage); }
.bl-prose img { border-radius: var(--bl-radius); }
.bl-prose figure, .bl-prose .wp-block-image { margin: 2.25rem 0; }
.bl-prose figcaption, .bl-prose .wp-element-caption { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--ink-soft); text-align: center; }
.bl-prose blockquote, .bl-prose .wp-block-quote {
	margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--honey);
	font-family: var(--bl-font-display); font-size: 1.3em; line-height: 1.45; color: var(--forest);
}
.bl-prose blockquote p { margin: 0; }
.bl-prose a { color: var(--plum); }
.bl-prose strong { color: var(--forest); font-weight: 600; }
.bl-prose .wp-block-button__link { border-radius: 999px; }
.bl-prose a.bl-button, .bl-prose a.bl-button:hover { color: #fff; text-decoration: none; }
.bl-article-cta { margin-top: 3.5rem; padding: 2rem; border-radius: var(--bl-radius); background: var(--sage-tint); }
.bl-article-cta h2 { margin: 0 0 0.4em; font-size: 1.625rem; }
.bl-article-cta p { font-size: 1rem; line-height: 1.6; }

/* ---------- Post cards (archive and related) ---------- */
.bl-related { padding: clamp(3.5rem, 7.5vw, 6.5rem) 0; background: var(--paper); }
.bl-related h2 { margin: 0 0 1.75rem; font-size: clamp(2rem, 2.6vw + 0.9rem, 3rem); line-height: 1.12; }
.bl-archive-body { padding-bottom: clamp(3.5rem, 7.5vw, 6.5rem); }
.bl-card-grid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 680px) { .bl-card-grid { grid-template-columns: repeat(3, 1fr); } }
.bl-card-link { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.bl-card-link:hover, .bl-card-link:focus { color: var(--ink); text-decoration: none; }
.bl-card-link__media { aspect-ratio: 3 / 2; margin-bottom: 1rem; overflow: hidden; border-radius: var(--bl-radius); background: var(--sand); }
.bl-card-link__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--bl-ease); }
.bl-card-link:hover .bl-card-link__media img { transform: scale(1.03); }
.bl-card-link__tag { display: block; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-ink); }
.bl-card-link__title { margin: 0 0 0.4em; font-family: var(--bl-font-display); font-size: 1.375rem; font-weight: 400; line-height: 1.25; color: var(--forest); transition: color 0.25s var(--bl-ease); }
.bl-card-link:hover .bl-card-link__title { color: var(--plum); }
.bl-card-link__excerpt { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }

.bl-pagination { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.bl-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
.bl-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.9rem;
	border-radius: 999px; border: 1px solid var(--line-strong); color: var(--forest); font-weight: 600; text-decoration: none;
}
.bl-pagination .page-numbers.current { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.bl-pagination a.page-numbers:hover { background: var(--paper); border-color: var(--forest); color: var(--forest); }

/* ---------- Email signature generator (page template) ---------- */
.bl-sig-body { padding-bottom: clamp(3.5rem, 7.5vw, 6.5rem); }
.bl-sig-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .bl-sig-grid { grid-template-columns: 0.8fr 1.2fr; } }
.bl-sig-heading { margin: 0 0 1rem; font-family: var(--bl-font-display); font-weight: 400; font-size: 1.5rem; color: var(--forest); }
.bl-sig-form {
	display: grid; gap: 0.4rem; padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: var(--bl-radius-lg); background: var(--paper); border: 1px solid var(--line);
}
.bl-sig-form label { margin-top: 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.bl-sig-optional { font-weight: 400; color: var(--ink-soft); }
.bl-sig-form input[type="text"], .bl-sig-form input[type="tel"], .bl-sig-form input[type="email"], .bl-sig-form select {
	width: 100%; min-height: 48px; padding: 0.65rem 0.9rem; border-radius: 12px;
	border: 1.5px solid var(--line-strong); background: var(--ivory); color: var(--ink);
	font-family: var(--bl-font-body); font-size: 1rem;
}
.bl-sig-form input:focus, .bl-sig-form select:focus { outline: none; border-color: var(--plum); background: #fff; box-shadow: 0 0 0 4px var(--plum-tint); }
.bl-sig-form .bl-sig-check { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-weight: 400; }
.bl-sig-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--plum); }
.bl-sig-stage { padding: 2rem 1.75rem; overflow-x: auto; border-radius: var(--bl-radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px -12px rgba(34, 48, 42, 0.18); }
/* Undo the parent theme's table reset so the preview matches what email apps show. */
.bl-sig-stage table { width: auto; margin: 0; font-size: 16px; background: transparent; border: 0; }
.bl-sig-stage table tbody > tr > td { border: 0; background: transparent; line-height: normal; }
.bl-sig-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.25rem; }
.bl-sig-actions .bl-button { cursor: pointer; }
.bl-sig-secondary {
	min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 999px; cursor: pointer;
	border: 1.5px solid var(--line-strong); background: transparent; color: var(--forest);
	font-family: var(--bl-font-body); font-size: 1rem; font-weight: 600;
}
.bl-sig-secondary:hover, .bl-sig-secondary:focus { background: var(--paper); border-color: var(--forest); color: var(--forest); }
.bl-sig-status { min-height: 1.5em; margin: 0.75rem 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--sage-ink); }
.bl-sig-steps { margin-top: 2rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--bl-radius); background: var(--sage-tint); }
.bl-sig-steps ol { margin: 0; padding-left: 1.2em; }
.bl-sig-steps li { margin-bottom: 0.6em; font-size: 0.9375rem; line-height: 1.6; }
.bl-sig-steps li::marker { color: var(--plum); font-weight: 600; }
.bl-sig-note { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Search and 404 (parent theme templates) ---------- */
.site-main.search, .site-main.error-404, body.search .site-main, body.error404 .site-main {
	width: min(100% - 2 * var(--bl-gutter), var(--bl-max)); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0;
}
body.search .page-header h1, body.error404 .page-header h1 {
	font-family: var(--bl-font-display); font-weight: 400; color: var(--forest); font-size: clamp(2.25rem, 3.6vw + 0.8rem, 3.5rem);
}
