/**
 * Black Pine One-Pager
 *
 * Loaded on the front end for pages using the "Black Pine One-Pager"
 * template, and in the block editor (WordPress prefixes it with
 * .editor-styles-wrapper there). Page-level rules are scoped to
 * body.bp-onepager; everything else is scoped to .bp-section so ordinary
 * posts and pages keep Kadence's styling.
 */

.bp-onepager,
.bp-section {
	--bp-navy-1: #0f1a2c;
	--bp-navy-2: #0b1626;
	--bp-navy-3: #08111c;
	--bp-gold: #d4a017;
	--bp-gold-soft: #d9c37a;
	--bp-warm-gray: #b9b6ad;
	--bp-white: #e9edf3;
	--bp-serif: ui-serif, "Times New Roman", Times, Georgia, serif;
	--bp-lora: "Lora", Georgia, serif;
}

/* ---------- Page canvas (front end only) ---------- */

body.bp-onepager {
	margin: 0;
	background:
		radial-gradient(1000px 700px at 60% 40%, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 45%),
		radial-gradient(800px 600px at 30% 70%, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, 0) 50%),
		radial-gradient(120% 120% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .25) 100%),
		linear-gradient(180deg, var(--bp-navy-1), var(--bp-navy-2) 45%, var(--bp-navy-3));
	/* The static site's gradient tiled once per screen height; keep that look. */
	background-size: 100% 100vh;
	background-repeat: repeat-y;
	background-color: var(--bp-navy-2);
	color: var(--bp-white);
	font-family: var(--bp-serif);
	letter-spacing: .01em;
	text-rendering: optimizeLegibility;
}

body.bp-onepager #wrapper,
body.bp-onepager .site,
body.bp-onepager #inner-wrap,
body.bp-onepager .bp-main {
	background: transparent;
}

body.bp-onepager .bp-main {
	display: block;
	margin: 0;
	padding: 0;
}

/* Fallback in case Kadence's header/footer callbacks are renamed. */
body.bp-no-chrome #masthead,
body.bp-no-chrome #mobile-header,
body.bp-no-chrome .site-header,
body.bp-no-chrome #colophon,
body.bp-no-chrome .site-footer {
	display: none !important;
}

/* ---------- Sections ---------- */

.bp-section {
	box-sizing: content-box; /* full-screen height + padding, as on the static site */
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	padding: 50px 20px;
	text-align: center;
	color: var(--bp-white);
	font-family: var(--bp-serif);
	letter-spacing: .01em;
	scroll-margin-top: 12px;
}

.bp-section.bp-alt {
	background: var(--bp-navy-2);
}

.bp-section h2 {
	margin: 0 0 20px;
	font-family: var(--bp-serif);
	font-size: clamp(22px, 5.4vmin, 36px);
	font-weight: 500;
	line-height: normal;
	letter-spacing: .04em;
	color: var(--bp-white);
}

.bp-section p,
.bp-section li {
	color: var(--bp-warm-gray);
	font-size: clamp(14px, 3.8vmin, 18px);
	line-height: 1.65;
}

.bp-section p {
	margin: 1em 0;
}

.bp-section p a {
	color: var(--bp-gold-soft);
	text-decoration: none;
}

.bp-section p a:hover,
.bp-section p a:focus-visible {
	color: var(--bp-gold-soft);
	text-decoration: underline;
}

.bp-section .wp-block-image {
	margin: 0 auto;
}

/* ---------- Hero ---------- */

.bp-section.bp-hero {
	display: flex;
	flex-direction: column;
	padding: 0 20px;
}

/* Classic themes get an inner-container wrapper; let it fill the hero. */
.bp-hero > .wp-block-group__inner-container {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.bp-section .bp-hero-inner {
	width: min(92vw, 980px);
	max-width: 100%;
	margin: auto;
	padding: 0;
}

.bp-section .wp-block-image.bp-logo {
	display: block;
	width: min(45vmin, 450px);
	max-width: 100%;
	margin: 0 auto 12px;
}

.bp-section .wp-block-image.bp-logo img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
}

.bp-section h1.bp-title {
	margin: 4px 0 10px;
	font-family: var(--bp-serif);
	font-size: clamp(36px, 6vmin, 70px);
	font-weight: 600;
	line-height: normal;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--bp-gold);
}

.bp-title .smaller {
	display: block;
	font-size: clamp(28px, 4vmin, 50px);
}

.bp-section ul.bp-taglines {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 18px 0 14px;
	padding: 0;
	list-style: none;
}

.bp-section ul.bp-taglines li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	color: var(--bp-gold-soft);
	font-family: var(--bp-lora);
	font-weight: 400;
	letter-spacing: .6px;
}

.bp-section ul.bp-taglines li + li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	margin: 0 calc(12px + .2rem) .1rem .2rem;
	border-radius: 50%;
	background: var(--bp-gold-soft);
	box-shadow: 0 0 0 2px rgba(212, 160, 23, .25) inset, 0 1px 2px rgba(0, 0, 0, .45);
}

.bp-section p.bp-description {
	max-width: 820px;
	margin: 16px auto 0;
	font-family: var(--bp-lora);
	color: var(--bp-warm-gray);
}

@media (min-width: 460px) {
	.bp-description .newline {
		display: block;
	}
}

@media (max-width: 495px) {
	.bp-section ul.bp-taglines li {
		font-size: 12px;
	}
	.bp-section p.bp-description {
		font-size: 11px;
	}
}

@media (max-width: 320px) {
	.bp-section ul.bp-taglines li + li::before {
		display: none;
	}
}

/* Scroll-down chevron (added to the hero by the theme, not a block). */
.bp-scroll {
	display: inline-flex;
	align-self: center;
	margin-bottom: calc(16px + env(safe-area-inset-bottom));
	cursor: pointer;
	opacity: .9;
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35));
	transition: transform .25s ease, opacity .25s ease;
	animation: bp-arrow-nudge 2.2s ease-in-out infinite;
}

.bp-scroll:hover,
.bp-scroll:focus-visible {
	opacity: 1;
	transform: translateY(2px);
}

.bp-scroll svg {
	display: block;
}

@keyframes bp-arrow-nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

/* ---------- About ---------- */

.bp-section.bp-about .wp-block-image img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

/* ---------- Gallery ---------- */

.bp-section .wp-block-gallery.bp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin: 1em 0 0;
	padding: 0;
}

.bp-section .bp-gallery-grid figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
}

.bp-section .bp-gallery-grid figure.wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	background: rgba(255, 255, 255, .03);
}

@media (min-width: 780px) {
	.bp-section .wp-block-gallery.bp-gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- Contact ---------- */

.bp-section p.bp-phone {
	margin: 0 0 30px;
	font-family: var(--bp-lora);
	font-size: 18px;
	line-height: normal;
	color: var(--bp-gold-soft);
}

.bp-section p.bp-phone a,
.bp-section p.bp-phone a:hover {
	color: var(--bp-gold);
	text-decoration: none;
	border-bottom: 1px dashed rgba(212, 160, 23, .4);
}

.bp-section .wp-block-buttons {
	margin: 0;
	gap: 10px;
}

.bp-section .wp-block-button .wp-block-button__link {
	display: inline-block;
	padding: 10px 18px;
	border: none;
	border-radius: 999px;
	background: var(--bp-gold);
	color: #0b0e14;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13.3333px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: .2px;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
	cursor: pointer;
}

.bp-section .wp-block-button .wp-block-button__link:hover {
	background: var(--bp-gold);
	color: #0b0e14;
	filter: brightness(1.05);
}

.bp-section .wp-block-button .wp-block-button__link:focus-visible {
	outline: 2px solid rgba(212, 160, 23, .6);
	outline-offset: 2px;
}

/* ---------- Dot navigation (built by onepager.js) ---------- */

.bp-dotnav {
	position: fixed;
	top: 50%;
	right: 12px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 14px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%);
	transition: opacity .25s ease;
}

.bp-dotnav.is-on {
	opacity: 1;
	pointer-events: auto;
}

.bp-dotnav a {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .35);
	box-shadow: 0 0 0 2px rgba(15, 26, 44, .5);
}

.bp-dotnav a.active {
	background: var(--bp-gold);
}

.bp-dotnav a:focus-visible {
	outline: 2px solid var(--bp-gold);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.bp-scroll {
		animation: none;
	}
}
