/*
 * Prevense theme design layer.
 * Mobile-first refonte loaded after style.css.
 */

:root {
	--pv-blue: #062f47;
	--pv-blue-dark: #002940;
	--pv-blue-soft: #0d4968;
	--pv-orange: #ff7900;
	--pv-orange-dark: #e86d00;
	--pv-text: #082d45;
	--pv-muted: #587083;
	--pv-line: #d8e4eb;
	--pv-bg: #ffffff;
	--pv-soft: #f5f9fb;
	--pv-soft-blue: #edf8fc;
	--pv-max: 1180px;
	--pv-shadow: 0 18px 44px rgba(6, 47, 71, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--pv-text);
	background: var(--pv-bg);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pv-orange); outline-offset: 3px; }

.prevense-container,
.wrapper {
	width: min(100% - 32px, var(--pv-max));
	margin-inline: auto;
}
.wrapper-wide { width: min(100%, 1360px); margin-inline: auto; }

.prevense-button,
.button,
.wp-block-button__link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
}
.prevense-button--primary,
.button--primary,
.wp-block-button__link { color: #fff; background: var(--pv-orange); border-color: var(--pv-orange); }
.prevense-button--primary:hover,
.button--primary:hover,
.wp-block-button__link:hover { background: var(--pv-orange-dark); border-color: var(--pv-orange-dark); }
.prevense-button--secondary,
.button--outline { color: var(--pv-blue); background: #fff; border-color: var(--pv-blue); }
.prevense-button--secondary:hover,
.button--outline:hover { color: #fff; background: var(--pv-blue); }
.prevense-button--dark,
.button--dark { color: #fff; background: var(--pv-blue); border-color: var(--pv-blue); }
.prevense-button--light,
.button--ghost-light { color: #fff; background: transparent; border-color: rgba(255,255,255,0.78); }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255,255,255,0.98);
	border-bottom: 1px solid var(--pv-line);
	box-shadow: 0 10px 26px rgba(6,47,71,0.06);
	backdrop-filter: blur(10px);
}
.site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 68px;
	align-items: center;
	gap: 14px;
}
.brand {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 10px;
	color: var(--pv-blue);
	text-decoration: none;
}
.brand__logo,
.custom-logo-link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
}
.brand .custom-logo,
.site-header .custom-logo,
.footer-brand .custom-logo {
	width: auto !important;
	height: auto !important;
	max-width: 126px !important;
	max-height: 46px !important;
	object-fit: contain;
}
.brand__fallback {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	color: var(--pv-orange);
	background: #fff;
	border: 2px solid var(--pv-line);
	border-radius: 50%;
	font-size: 26px;
	font-weight: 900;
	font-style: italic;
}
.brand__name {
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}
.main-navigation { justify-self: end; }
.menu-toggle {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--pv-blue);
	background: transparent;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after { display: block; width: 25px; height: 2px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
.menu-toggle i { position: relative; }
.menu-toggle i::before,
.menu-toggle i::after { position: absolute; left: 0; content: ""; }
.menu-toggle i::before { top: -7px; }
.menu-toggle i::after { top: 7px; }
.main-navigation.toggled .menu-toggle i { background: transparent; }
.main-navigation.toggled .menu-toggle i::before { top: 0; transform: rotate(45deg); }
.main-navigation.toggled .menu-toggle i::after { top: 0; transform: rotate(-45deg); }
.main-navigation__panel {
	position: fixed;
	top: 76px;
	right: 16px;
	left: 16px;
	display: none;
	max-height: calc(100vh - 92px);
	overflow: auto;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--pv-line);
	border-radius: 8px;
	box-shadow: var(--pv-shadow);
}
.main-navigation.toggled .main-navigation__panel { display: block; }
.mobile-menu-head { display: grid; gap: 3px; padding: 4px 4px 12px; border-bottom: 1px solid var(--pv-line); }
.mobile-menu-head strong { color: var(--pv-blue); font-size: 16px; font-weight: 900; text-transform: uppercase; }
.mobile-menu-head span { color: var(--pv-muted); font-size: 13px; line-height: 1.35; }
.primary-menu,
.primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.primary-menu a {
	display: flex;
	min-height: 44px;
	align-items: center;
	padding: 10px 12px;
	color: var(--pv-blue);
	font-size: 14px;
	font-weight: 850;
	text-decoration: none;
	border-radius: 6px;
}
.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a { color: var(--pv-orange); background: var(--pv-soft); }
.primary-menu ul { margin: 2px 0 6px 10px; padding-left: 10px; border-left: 2px solid var(--pv-line); }
.primary-menu ul a { min-height: 38px; font-size: 13px; }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pv-line); }
.header-actions { display: none; }
.header-phone { color: var(--pv-blue); font-size: 13px; font-weight: 900; text-decoration: none; white-space: nowrap; }
body.nav-open { overflow: hidden; }

/* Home base */
.section-pad { padding-block: 54px; }
.section-title { margin: 0 0 26px; color: var(--pv-blue); font-size: 29px; font-weight: 900; line-height: 1.12; }
.section-title span { color: var(--pv-orange); }
.section-title.centered { text-align: left; }
.section-corner { display: block; width: 38px; height: 86px; margin-bottom: 18px; border-top: 3px solid var(--pv-orange); border-left: 3px solid var(--pv-orange); transform: skewY(-38deg); }
.prevense-icon { display: inline-flex; width: 44px; height: 44px; color: var(--pv-orange); }
.prevense-icon svg { width: 100%; height: 100%; }
.prevense-icon svg path,
.prevense-icon svg circle { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.home-main { overflow: hidden; }
.home-hero__inner { display: grid; gap: 26px; padding-block: 30px 0; }
.home-hero h1 { margin: 0; color: var(--pv-blue); font-size: 36px; font-weight: 900; line-height: 1.06; }
.home-hero p { max-width: 520px; margin: 18px 0 0; color: var(--pv-text); font-size: 16px; }
.home-actions { display: grid; gap: 10px; margin-top: 24px; }
.home-hero__media,
.home-audience__media { min-height: 260px; overflow: hidden; background: var(--pv-soft); }
.home-hero__media img,
.home-audience__media img,
.image-fallback { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.image-fallback { background: linear-gradient(135deg, rgba(255,121,0,0.12), rgba(4,47,73,0.18)), repeating-linear-gradient(45deg,#eef5f8 0,#eef5f8 14px,#dceaf0 14px,#dceaf0 28px); }
.course-grid { display: grid; border-top: 1px solid var(--pv-line); }
.course-card { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 0 14px; padding: 22px 0; border-bottom: 1px solid var(--pv-line); }
.course-card .prevense-icon { grid-row: span 3; }
.course-card h3 { margin: 0; color: var(--pv-blue); font-size: 19px; font-weight: 900; }
.course-card p { margin: 8px 0 12px; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--pv-blue); font-size: 14px; font-weight: 900; text-decoration: none; }
.text-link .prevense-icon { width: 18px; height: 18px; }
.home-proof { color: #fff; background: var(--pv-blue-dark); }
.home-proof .section-title,
.home-proof h3,
.home-proof p { color: #fff; }
.proof-grid { display: grid; gap: 22px; }
.proof-item { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 0 14px; }
.proof-item .prevense-icon { grid-row: span 2; }
.proof-item h3 { margin: 0; font-size: 17px; font-weight: 900; }
.proof-item p { margin: 6px 0 0; font-size: 14px; }
.home-audience__inner { display: grid; }
.home-audience__content { padding: 48px 16px; }
.audience-list { display: grid; margin-bottom: 22px; border-top: 1px solid var(--pv-line); }
.audience-item { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--pv-line); }
.audience-item h3 { margin: 0 0 4px; color: var(--pv-blue); font-size: 18px; font-weight: 900; }
.audience-item p { margin: 0; font-size: 14px; }
.home-region { padding-block: 44px; background: var(--pv-soft-blue); }
.home-region__inner { display: grid; gap: 28px; align-items: center; }
.home-region p { max-width: 640px; margin: 0 0 20px; }
.region-map { position: relative; width: min(260px,72vw); aspect-ratio: 1; justify-self: center; border: 1px solid rgba(4,47,73,0.18); border-radius: 50%; }
.region-map::before { position: absolute; inset: 28px; border: 1px solid rgba(4,47,73,0.14); border-radius: 48% 52% 44% 56%; content: ""; }
.region-map span { position: absolute; top: 45%; left: 42%; width: 68px; height: 82px; background: var(--pv-orange); clip-path: polygon(28% 0,68% 10%,76% 35%,100% 48%,82% 74%,55% 67%,38% 100%,12% 76%,22% 48%,0 28%); transform: translate(-50%,-50%) rotate(-12deg); }

/* Footer */
.site-footer { margin-top: 0; color: #fff; background: var(--pv-blue-dark); }
.footer-cta { background: var(--pv-orange); }
.footer-cta__inner { display: grid; gap: 22px; padding-block: 34px; }
.footer-cta h2 { margin: 0; max-width: 540px; color: #fff; font-size: 30px; font-weight: 900; line-height: 1.08; }
.footer-cta p { max-width: 500px; margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
.footer-cta__actions { display: grid; gap: 10px; }
.footer-main__inner { display: grid; gap: 28px; padding-block: 34px 22px; }
.footer-brand__top { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; text-decoration: none; }
.footer-brand .custom-logo { max-width: 52px !important; max-height: 52px !important; }
.footer-brand strong { font-size: 18px; font-weight: 900; text-transform: uppercase; }
.footer-brand p { max-width: 340px; margin: 0 0 14px; color: rgba(255,255,255,0.82); font-size: 14px; }
.footer-social { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; color: var(--pv-blue-dark); background: #fff; border-radius: 4px; }
.footer-social .prevense-icon { width: 20px; height: 20px; color: currentColor; }
.footer-links { display: grid; border-top: 1px solid rgba(255,255,255,0.16); }
.footer-group { padding: 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.footer-group summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 15px; font-weight: 900; cursor: pointer; list-style: none; }
.footer-group summary::-webkit-details-marker { display: none; }
.footer-group summary::after { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg); transition: transform 160ms ease; }
.footer-group[open] summary::after { transform: rotate(225deg); }
.footer-menu,
.footer-contact-list { margin: 0; padding: 0 0 16px; list-style: none; }
.footer-menu li + li,
.footer-contact-list li + li { margin-top: 8px; }
.footer-group a,
.footer-contact-list li { color: rgba(255,255,255,0.78); font-size: 14px; text-decoration: none; }
.footer-group a:hover { color: #fff; }
.footer-legal { display: grid; gap: 12px; padding-block: 16px 24px; color: rgba(255,255,255,0.72); font-size: 13px; border-top: 1px solid rgba(255,255,255,0.16); }
.footer-legal p { margin: 0; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-legal a { color: inherit; text-decoration: none; }

@media screen and (min-width: 48rem) {
	.prevense-container,
	.wrapper { width: min(100% - 56px, var(--pv-max)); }
	.site-header__inner { grid-template-columns: auto minmax(0,1fr) auto; min-height: 82px; }
	.brand .custom-logo,
	.site-header .custom-logo { max-width: 168px !important; max-height: 58px !important; }
	.menu-toggle,
	.mobile-menu-head,
	.mobile-menu-actions { display: none; }
	.main-navigation { justify-self: center; }
	.main-navigation__panel,
	.main-navigation.toggled .main-navigation__panel { position: static; display: block; max-height: none; overflow: visible; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
	.primary-menu { flex-direction: row; align-items: center; gap: 4px; margin: 0; }
	.primary-menu a { min-height: 42px; padding-inline: 11px; font-size: 13px; }
	.primary-menu ul { position: absolute; display: none; min-width: 230px; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--pv-line); border-radius: 8px; box-shadow: var(--pv-shadow); }
	.primary-menu li { position: relative; }
	.primary-menu li:hover > ul,
	.primary-menu li.focus > ul { display: block; }
	.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
	.header-cta { min-height: 42px; padding-inline: 18px; font-size: 13px; }
	body.nav-open { overflow: auto; }
	.section-pad { padding-block: 78px; }
	.section-title { font-size: 38px; }
	.section-title.centered { text-align: center; }
	.home-hero__inner { grid-template-columns: minmax(0,0.83fr) minmax(0,1.17fr); gap: 56px; align-items: stretch; padding-block: 0; }
	.home-hero__content { display: flex; min-height: 570px; flex-direction: column; justify-content: center; padding-block: 64px; }
	.home-hero h1 { font-size: 54px; }
	.home-actions { display: flex; flex-wrap: wrap; }
	.home-hero__media { min-height: 570px; }
	.course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 0; }
	.course-card { display: flex; min-height: 270px; flex-direction: column; align-items: center; padding: 14px 38px; text-align: center; border-bottom: 0; border-left: 1px solid var(--pv-line); }
	.course-card:first-child { border-left: 0; }
	.course-card .prevense-icon { width: 58px; height: 58px; margin: 0 0 18px; }
	.proof-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; margin-top: 34px; }
	.proof-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
	.proof-item .prevense-icon { width: 58px; height: 58px; margin-bottom: 18px; }
	.home-audience__inner { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
	.home-audience__content { width: min(100% - 56px, 520px); justify-self: end; padding: 78px 56px 78px 0; }
	.home-audience__media { min-height: 620px; }
	.home-region__inner { grid-template-columns: minmax(0,1fr) 360px; }
	.footer-cta__inner { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding-block: 44px; }
	.footer-cta__actions { grid-template-columns: repeat(2,minmax(180px,auto)); }
	.footer-main__inner { grid-template-columns: 320px minmax(0,1fr); gap: 50px; padding-block: 50px 34px; }
	.footer-links { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; border-top: 0; }
	.footer-group { border-bottom: 0; }
	.footer-group summary { min-height: auto; margin-bottom: 12px; cursor: default; pointer-events: none; }
	.footer-group summary::after { display: none; }
	.footer-menu,
	.footer-contact-list { padding-bottom: 0; }
	.footer-legal { grid-template-columns: 1fr auto; align-items: center; }
}

@media screen and (min-width: 64rem) {
	.primary-menu a { padding-inline: 14px; }
	.home-hero h1 { font-size: 62px; }
	.home-hero p { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* UX fixes: keep brand colors on visited links and keep decorative corners behind content. */
.brand,
.brand:visited,
.primary-menu a:visited,
.header-phone:visited,
.mobile-menu-actions a:visited,
.text-link:visited {
	color: inherit;
}

.prevense-button--primary:visited,
.button--primary:visited,
.wp-block-button__link:visited {
	color: #fff;
	background: var(--pv-orange);
	border-color: var(--pv-orange);
}

.prevense-button--secondary:visited,
.button--outline:visited {
	color: var(--pv-blue);
	background: #fff;
	border-color: var(--pv-blue);
}

.prevense-button--dark:visited,
.button--dark:visited {
	color: #fff;
	background: var(--pv-blue);
	border-color: var(--pv-blue);
}

.prevense-button--light:visited,
.button--ghost-light:visited,
.footer-brand__top:visited,
.footer-group a:visited,
.footer-legal a:visited {
	color: #fff;
}

.home-hero__content,
.home-proof .wrapper,
.home-region__inner > div {
	position: relative;
}

.home-hero__content > :not(.section-corner),
.home-proof .wrapper > :not(.section-corner),
.home-region__inner > div > :not(.section-corner) {
	position: relative;
	z-index: 1;
}

.section-corner {
	position: absolute;
	left: -10px;
	top: 18px;
	z-index: 0;
	width: 34px;
	height: 82px;
	margin: 0;
	pointer-events: none;
}

.home-proof .section-corner {
	left: 0;
	top: 0;
}

.home-region__inner .section-corner {
	left: -8px;
	top: 6px;
}

@media screen and (max-width: 47.9375rem) {
	.home-hero__content {
		padding-top: 74px;
	}

	.home-proof .wrapper,
	.home-region__inner > div {
		padding-top: 70px;
	}

	.home-hero__content .section-corner,
	.home-proof .section-corner,
	.home-region__inner .section-corner {
		left: 0;
		top: 0;
		height: 66px;
	}
}

/* UX refinement: corner accents sit beside content instead of pushing text down. */
.section-corner {
	left: -18px;
	top: 0;
	height: 74px;
	transform: skewY(-34deg);
}

.home-proof .section-corner,
.home-region__inner .section-corner {
	left: -18px;
	top: 0;
}

@media screen and (max-width: 47.9375rem) {
	.home-hero__content,
	.home-proof .wrapper,
	.home-region__inner > div {
		padding-top: 0;
	}

	.home-hero__content .section-corner,
	.home-proof .section-corner,
	.home-region__inner .section-corner {
		left: -12px;
		top: 4px;
		height: 58px;
	}
}

@media screen and (min-width: 48rem) {
	.home-hero__content .section-corner {
		top: calc(50% - 190px);
	}
}