/**
 * School Chameleons theme overrides.
 */

/* WPBakery frontend / inline editor — show reveal content immediately */
.sc-wpb-editing .reveal,
.compose-mode .reveal,
body.vc_editor .reveal,
html.js_active body.compose-mode .reveal {
	opacity: 1 !important;
	transform: none !important;
}

.sc-wpb-editing .sc-vc-element,
.compose-mode .sc-vc-element {
	min-height: 40px;
}

/* WordPress admin bar — keep hero full-bleed (no white strip above nav) */
html.admin-bar {
	margin-top: 0 !important;
}

body.admin-bar #siteNav {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #siteNav {
		top: 46px;
	}
}

body.admin-bar .hero {
	margin-top: -32px;
	padding-top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .hero {
		margin-top: -46px;
		padding-top: 46px;
	}
}

body.admin-bar .hero-inner {
	padding-top: calc(120px + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .hero-inner {
		padding-top: calc(120px + 46px);
	}
}

/* WPBakery noscript fallback must not create a body line box above the hero */
body > noscript {
	display: none;
}

/* Custom logo in nav */
.site-nav .custom-logo-link img,
.nav-mobile-header .custom-logo-link img {
	max-height: 40px;
	width: auto;
}

/* Primary nav items from Appearance → Menus */
.nav-links .nav-link-item {
	display: contents;
}

.nav-links .nav-link-item.has-dropdown {
	display: block;
	position: relative;
}

/* WPBakery full-width sections */
.sc-page-content > .vc_row,
.sc-page-content > section,
.sc-page-content > .sc-vc-element {
	margin-left: 0;
	margin-right: 0;
}

.sc-page-content .vc_row[data-vc-full-width="true"] {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* Nav dropdown */
.nav-link-item.has-dropdown {
	position: relative;
}

.nav-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	padding: 0.5rem 0;
	z-index: 100;
}

.nav-link-item.has-dropdown:hover .nav-dropdown,
.nav-link-item.has-dropdown:focus-within .nav-dropdown {
	display: block;
}

.nav-dropdown .nav-link {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--ink, #111827);
}

.nav-dropdown .nav-link:hover {
	background: var(--surface-2, #f1f5f9);
}

/* Responsive visibility */
@media (min-width: 992px) {
	.sc-hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
	.sc-hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
	.sc-hide-mobile { display: none !important; }
}

/* Hero overrides from static design */
.hero {
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding: 0;
	background: center/cover no-repeat;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(5, 15, 35, 0.82) 40%, rgba(5, 15, 35, 0.25) 100%);
}

.hero-inner {
	position: relative;
	z-index: 1;
	text-align: left;
	padding: 120px var(--cx) 80px;
	width: 100%;
	max-width: calc(var(--cw) + var(--cx) * 2);
	margin: 0 auto;
}

.hero-content { max-width: 600px; }

.about-section { padding: var(--section-y) 0; background: var(--surface-1); }
.about-heading { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; }

.stats-strip { background: var(--g-navy); padding-block: clamp(48px, 7vw, 72px); }
.stats-strip-inner {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	max-width: calc(var(--cw) + var(--cx) * 2);
	padding-inline: var(--cx);
	margin-inline: auto;
}

@media (max-width: 767px) {
	.stats-strip-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
	.stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

.testi-section { background: #F1F5F9; }

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 20px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	backdrop-filter: blur(8px);
	transition: background 0.2s, transform 0.2s;
}

.stat-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.stat-number { font-size: clamp(1.75rem, 3vw, 2.5rem); color: #fff; font-weight: 800; }
.stat-label { color: rgba(255, 255, 255, 0.55); font-size: 0.72rem; text-align: center; margin-top: 4px; }

.faq-email-link { color: #6366f1; font-weight: 600; }

/* Full-width page content — no container padding on sections */
.sc-page-content { padding: 0; margin: 0; max-width: none; }
.sc-page-content > .sc-vc-element,
.sc-page-content > section { margin: 0; }

.eyebrow.blue { background: var(--blue-lt); color: var(--blue); }

.newsletter-eyebrow { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); justify-content: center; }
.newsletter-heading { color: #fff; margin-block: 12px 14px; }
.newsletter-lead { color: rgba(255, 255, 255, 0.65); }
.newsletter-caption { color: rgba(255, 255, 255, 0.35); }
.newsletter-form-message.is-success { color: #86efac; }
.newsletter-form-message.is-error { color: #fca5a5; }
.newsletter-wrap { max-width: 600px; margin-inline: auto; }
