/* ==========================================================================
   Better Education — Coming Soon
   Design tokens
   Navy #152A4E / Sky #2B9BE0 sampled from the logo. The logo's cap-and-road
   mark is echoed as a thin curved divider between sections (.be-road) rather
   than a generic hairline rule.
   ========================================================================== */

.be-wrap {
	--be-navy: #152A4E;
	--be-navy-deep: #0D1D38;
	--be-sky: #2B9BE0;
	--be-ink: #1C2530;
	--be-muted: #64707F;
	--be-paper: #FBFAF6;
	--be-paper-dim: #F2F0E9;
	--be-line: #E4DFD1;
	font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--be-ink);
	background: var(--be-paper);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;

	/* Break out of whatever narrow content column the active theme wraps
	   pages in (Twenty Twenty-Four, Elementor, Divi, etc. all do this) so
	   the page renders edge-to-edge regardless of theme. Uses a margin-only
	   technique (not position:relative + left:50%) because that older trick
	   breaks if ANY ancestor element has position/transform/filter set,
	   which many theme wrappers do — margins aren't affected by that. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow-x: hidden;
}

/* Many themes print their own H1 ("Home", "Admission Inquiry", etc.) above
   the page content. Since every page this plugin creates is a full
   self-contained layout with its own header, that title just duplicates
   what's already on screen — hide it wherever it appears alongside .be-wrap. */
body:has(> .be-wrap),
body:has(.be-wrap) {
	overflow-x: hidden;
}
body:has(.be-wrap) .entry-title,
body:has(.be-wrap) .wp-block-post-title,
body:has(.be-wrap) .page-title,
body:has(.be-wrap) .entry-header,
body:has(.be-wrap) h1.page-header-title,
body:has(.be-wrap) .elementor-widget-theme-post-title {
	display: none !important;
}

.be-wrap * { box-sizing: border-box; }

.be-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 32px;
}

.be-narrow { max-width: 620px; }

/* :where() keeps these resets at zero specificity so a single utility
   class (.be-hero-h1, .be-h-light, .be-btn-ghost, etc.) always wins,
   instead of fighting a class+element selector for the cascade. */
:where(.be-wrap) :where(h1, h2, h3) {
	font-family: 'Fraunces', Georgia, serif;
	color: var(--be-navy);
	font-weight: 560;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
}

:where(.be-wrap) :where(a) { color: inherit; }

/* Eyebrow labels — mono, tracked out, used instead of emoji headers */
.be-eyebrow {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--be-sky);
	margin: 0 0 14px;
}
.be-eyebrow-light { color: #8FC7EE; }

/* Header ------------------------------------------------------------- */
.be-header {
	background: var(--be-paper);
	border-bottom: 1px solid var(--be-line);
	padding: 22px 0;
}
.be-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.be-logo { height: 40px; width: auto; display: block; }
.be-header-phone {
	text-decoration: none;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14px;
	color: var(--be-navy);
	border-bottom: 1px solid var(--be-navy);
	padding-bottom: 2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.be-header-phone:hover { color: var(--be-sky); border-color: var(--be-sky); }

/* Hero ----------------------------------------------------------------- */
.be-hero {
	background: radial-gradient(120% 140% at 15% 0%, #1c3a68 0%, var(--be-navy) 45%, var(--be-navy-deep) 100%);
	padding: 96px 0 84px;
}
.be-hero-h1 {
	color: #fff;
	font-size: clamp(38px, 6vw, 64px);
	max-width: 14ch;
	margin: 0 0 22px;
}
.be-hero-sub {
	color: #D7E1F1;
	font-size: 19px;
	max-width: 46ch;
	margin: 0 0 14px;
}
.be-hero-intro {
	color: #92A2BF;
	font-size: 15px;
	max-width: 52ch;
	margin: 0 0 40px;
}
.be-hero-ctas {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* Buttons ---------------------------------------------------------------- */
.be-btn {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 3px;
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	border: 1.5px solid transparent;
	cursor: pointer;
}
.be-btn:hover { transform: translateY(-1px); }
.be-btn-primary {
	background: var(--be-sky);
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(43,155,224,0.55);
}
.be-btn-primary:hover { background: #2489c9; color: #fff; }
.be-btn-ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,0.4);
}
.be-btn-ghost:hover { border-color: #fff; }
.be-btn-block { display: block; width: 100%; text-align: center; }

/* Road motif divider — echoes the road inside the logo's lettermark ------ */
.be-road {
	width: 100%;
	line-height: 0;
	background: var(--be-navy-deep);
}
.be-road svg {
	width: 100%;
	height: 44px;
	display: block;
}
.be-road path {
	fill: none;
	stroke: var(--be-sky);
	stroke-width: 2;
	stroke-linecap: round;
	opacity: 0.55;
}
.be-road-flip { transform: scaleY(-1); }

/* Sections ---------------------------------------------------------------- */
.be-section { padding: 80px 0; background: var(--be-paper); }
.be-section-navy {
	background: var(--be-navy);
}
.be-h-light { color: #fff; }
.be-h-light-sub { color: #B9C7DE; font-size: 16px; margin: 18px 0 28px; max-width: 46ch; }

.be-split {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 56px;
	align-items: start;
}
.be-split-label h2 {
	font-size: clamp(24px, 2.6vw, 30px);
	max-width: 16ch;
}
@media (max-width: 800px) {
	.be-split { grid-template-columns: 1fr; gap: 28px; }
	.be-split-label h2 { max-width: none; }
}

.be-row-list { list-style: none; margin: 0; padding: 0; }
.be-row-list li {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--be-line);
	font-size: 16px;
	color: var(--be-ink);
}
.be-row-list li:first-child { padding-top: 0; }
.be-row-list li:last-child { border-bottom: none; }
.be-row-list-light li { border-bottom-color: rgba(255,255,255,0.14); color: #EAF0FA; }
.be-row-list-compact { max-width: 620px; margin: 28px auto 8px; }

.be-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--be-sky);
	flex: none;
	position: relative;
	top: -1px;
}

.be-inline-list {
	font-family: 'Fraunces', serif;
	font-size: clamp(19px, 2.4vw, 24px);
	color: var(--be-navy);
	line-height: 1.7;
	margin: 0;
}
.be-inline-list-muted { color: var(--be-muted); font-size: 17px; }

/* Contact ------------------------------------------------------------- */
.be-contact-section { background: var(--be-paper-dim); }
.be-centered-text { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.be-contact-section h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 34px; }
.be-contact-lines {
	display: flex;
	gap: 28px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.be-contact-lines a {
	font-family: 'Fraunces', serif;
	font-size: clamp(22px, 3vw, 28px);
	color: var(--be-navy);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.be-contact-lines a:hover { color: var(--be-sky); border-color: var(--be-sky); }
.be-address { color: var(--be-muted); font-size: 14.5px; }

.be-launching-section { padding-top: 72px; padding-bottom: 88px; }
.be-tagline-final {
	font-family: 'Fraunces', serif;
	color: var(--be-navy);
	font-size: 18px;
	margin: 34px 0 0;
}

/* Forms ------------------------------------------------------------------ */
.be-form-section { padding-top: 64px; padding-bottom: 96px; }
.be-page-title { font-size: clamp(30px, 4vw, 40px); text-align: center; margin: 0 0 14px; }
.be-form-section > .be-container > p.be-centered-text { color: var(--be-muted); margin-bottom: 8px; }

.be-policy-content { text-align: left; margin-top: 32px; color: var(--be-ink); }
.be-policy-content h1.be-page-title { text-align: left; margin-bottom: 32px; }
.be-policy-content h2 {
	font-size: 21px;
	margin: 40px 0 14px;
}
.be-policy-content p {
	color: var(--be-muted);
	font-size: 15.5px;
	margin: 0 0 16px;
}
.be-policy-content ul, .be-policy-content ol {
	color: var(--be-muted);
	font-size: 15.5px;
	padding-left: 22px;
	margin: 0 0 16px;
}
.be-policy-content li { margin-bottom: 8px; }
.be-policy-content strong { color: var(--be-ink); }
.be-policy-content em { color: var(--be-navy); }

.be-form {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
}
.be-form label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--be-navy);
	margin-top: 26px;
	margin-bottom: 8px;
}
.be-form input[type="text"],
.be-form input[type="tel"],
.be-form input[type="email"],
.be-form select,
.be-form textarea {
	border: none;
	border-bottom: 1.5px solid var(--be-line);
	border-radius: 0;
	padding: 10px 2px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 16px;
	color: var(--be-ink);
	background: transparent;
	transition: border-color 0.15s ease;
}
.be-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--be-muted) 50%), linear-gradient(135deg, var(--be-muted) 50%, transparent 50%); background-position: calc(100% - 6px) 55%, calc(100% - 1px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.be-form textarea { resize: vertical; }
.be-form input:focus,
.be-form select:focus,
.be-form textarea:focus {
	outline: none;
	border-color: var(--be-sky);
}
.be-form button.be-btn { margin-top: 34px; }
.be-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.be-alert {
	border-radius: 4px;
	padding: 15px 18px;
	margin: 24px 0 0;
	font-size: 14px;
}
.be-alert-success { background: #EAF6EE; color: #1E6B36; border: 1px solid #C4E7CE; }
.be-alert-error { background: #FBEBEB; color: #A32020; border: 1px solid #F0C1C1; }
.be-alert-error ul { margin: 0; padding-left: 18px; }

/* Footer ------------------------------------------------------------------ */
.be-footer { background: var(--be-navy-deep); color: #93A2BE; padding: 56px 0 28px; }
.be-footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	margin-bottom: 20px;
}
.be-footer-logo {
	height: 30px;
	margin-bottom: 14px;
	display: inline-block;
	background: #fff;
	padding: 8px 12px;
	border-radius: 4px;
}
.be-footer-brand p { font-size: 13.5px; margin: 0; color: #7C8BA8; }
.be-footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.be-footer-nav a { color: #B7C3DA; text-decoration: none; font-size: 14px; }
.be-footer-nav a:hover { color: var(--be-sky); }
.be-footer-copy { font-size: 12.5px; color: #5D6C89; margin: 0; }

/* Scroll reveal ------------------------------------------------------------ */
.be-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.be-reveal {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.6s ease, transform 0.6s ease;
	}
	.be-reveal.be-in-view { opacity: 1; transform: none; }
}

/* Focus visibility ---------------------------------------------------------- */
.be-wrap a:focus-visible,
.be-wrap button:focus-visible,
.be-wrap input:focus-visible,
.be-wrap select:focus-visible,
.be-wrap textarea:focus-visible {
	outline: 2px solid var(--be-sky);
	outline-offset: 2px;
}

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 640px) {
	.be-container { padding: 0 22px; }
	.be-hero { padding: 68px 0 56px; }
	.be-section { padding: 56px 0; }
	.be-contact-lines { flex-direction: column; gap: 14px; }
}

/* Safety net: the full-page template (templates/be-full-page.php) bypasses
   the theme's wrapper markup, but the theme's stylesheet is still enqueued
   via wp_head(), so its global `body { ... }` rules (max-width, padding,
   centering) can still apply. Reset those specifically for our pages. */
body.be-cs-fullpage {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: auto !important;
	overflow-x: hidden;
}
