/* Final product/design pass. Uses only the established Edviatec palette and components. */
:root {
	--edvx-brand-blue: #236cfa;
	--edvx-brand-blue-dark: #164fbd;
	--edvx-brand-orange: #f46b28;
	--edvx-brand-navy: #172f4d;
	--edvx-brand-ink: #1b1818;
	--edvx-brand-soft: #f3f6fc;
	--edvx-brand-line: #c9d5e8;
}

/* Keep the non-production warning visible but compact. Production visibility is gated in PHP. */
.edvt-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: -40px 0 16px;
	padding: 8px 16px;
	font-size: 12px;
	line-height: 1.4;
}

/* The theme logo uses a second image outside its calculated flex width. Reserve its real footprint. */
@media (min-width: 1200px) {
	header > .container { max-width: 100%; padding-inline: clamp(24px, 4vw, 72px); }
	.logo-wrapper { flex: 0 0 230px; min-width: 230px; }
	.logo-wrapper a { align-items: flex-start; }
	.logo-wrapper a img + img { max-width: 104px; }
	.menu-wrapper { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
	.menu-wrapper ul:not(.dropdown-menu),
	.language-fr .menu-wrapper ul:not(.dropdown-menu) { margin-left: 24px; margin-right: auto; padding-inline: 8px !important; }
	.menu-wrapper ul:not(.dropdown-menu) li,
	.language-fr .menu-wrapper ul:not(.dropdown-menu) li { margin-inline: clamp(5px, .65vw, 10px) !important; }
	.menu-wrapper ul:not(.dropdown-menu) a { font-size: 13px; }
	.menu-wrapper > .btn { padding-inline: 18px; }
}

/* The expanded navigation needs the theme's mobile pattern at tablet widths. */
@media (min-width: 769px) and (max-width: 1199px) {
	header { position: relative; padding-inline: 10px; }
	header > .container { max-width: 100%; }
	.logo-wrapper img { max-width: 140px; }
	.menu-wrapper {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		width: 100%;
		max-height: calc(100vh - 96px);
		padding: 20px 24px 26px;
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid var(--edvx-brand-blue);
		box-shadow: 0 16px 30px rgba(23, 47, 77, .16);
		text-align: center;
	}
	.menu-is-open .menu-wrapper { display: block; }
	.menu-wrapper ul:not(.dropdown-menu) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		max-width: 720px;
		margin: 0 auto;
		padding: 0 !important;
	}
	.menu-wrapper ul:not(.dropdown-menu) li,
	.language-fr .menu-wrapper ul:not(.dropdown-menu) li { margin: 0 !important; }
	.menu-wrapper ul:not(.dropdown-menu) a { min-height: 44px; padding-bottom: 0; line-height: 44px; }
	.menu-wrapper > .dropdown { margin-top: 14px; }
	.menu-wrapper > .btn { margin-top: 16px; }
	#menu-toggle { display: block; position: relative; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; }
	#menu-toggle span { position: absolute; top: 50%; left: 9px; width: 26px; height: 1px; background: #000; }
	#menu-toggle span::before,
	#menu-toggle span::after { position: absolute; right: 0; width: 26px; height: 1px; background: #000; content: ""; }
	#menu-toggle span::before { top: -7px; }
	#menu-toggle span::after { top: 7px; }
	.menu-is-open #menu-toggle span { background: transparent; }
	.menu-is-open #menu-toggle span::before { top: 0; transform: rotate(45deg); }
	.menu-is-open #menu-toggle span::after { top: 0; transform: rotate(-45deg); }
}

.edvx-menu-entry.current-menu-item > a,
.edvx-menu-entry > a[aria-current="page"] { color: var(--edvx-brand-blue) !important; border-color: var(--edvx-brand-blue) !important; }

/* Homepage pathway cards: textual, editorial and consistent with Edviatec geometry. */
.edvx-gateway {
	position: relative;
	padding: clamp(64px, 7vw, 104px) 0;
	background: linear-gradient(135deg, #fff 0%, #f1f5ff 100%);
	border-block: 1px solid #d8e3f4;
}
.edvx-gateway::before { position: absolute; top: 0; left: 0; width: 38%; height: 12px; background: var(--edvx-brand-orange); content: ""; }
.edvx-gateway__heading { align-items: center; margin-bottom: 44px; }
.edvx-gateway__heading h2 { color: var(--edvx-brand-ink); font-size: clamp(38px, 4.5vw, 62px); letter-spacing: -.035em; }
.edvx-gateway__heading > div > p:last-child { max-width: 780px; color: #3e4d60; font-size: 19px; }
.edvx-gateway__eyebrow { color: var(--edvx-brand-blue-dark); font-size: 12px; letter-spacing: .16em; }
.edvx-gateway__eddie { padding: 18px 0 18px 22px; border-left: 1px solid var(--edvx-brand-line); }
.edvx-gateway__eddie > p { color: var(--edvx-brand-navy); }
.edvx-gateway__grid { gap: 18px; }
.edvx-gateway__card {
	min-height: 250px;
	padding: 28px 26px 24px;
	border: 1px solid var(--edvx-brand-line);
	border-top: 8px solid var(--edvx-brand-blue);
	border-radius: 0;
	box-shadow: 0 14px 34px rgba(23, 47, 77, .07);
}
.edvx-gateway__card:nth-child(even) { border-top-color: var(--edvx-brand-orange); }
.edvx-gateway__card small { margin-bottom: 26px; color: var(--edvx-brand-blue-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.edvx-gateway__card span { min-height: 64px; color: var(--edvx-brand-ink); font-family: "Archivo Black", sans-serif; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.18; }
.edvx-gateway__card p { flex: 1 1 auto; color: #45566c; font-size: 16px; }
.edvx-gateway__card b { color: var(--edvx-brand-blue-dark); font-size: 26px; }
.edvx-gateway__card:hover,
.edvx-gateway__card:focus-visible { transform: translateY(-4px); border-color: var(--edvx-brand-blue); box-shadow: 0 20px 42px rgba(23, 47, 77, .13); }

/* Candidate and student routes. */
.edvx-mvp { background: #fff; }
.edvx-mvp section { padding: clamp(64px, 7vw, 96px) 0; }
.edvx-mvp__hero { position: relative; overflow: hidden; border-bottom: 1px solid #dbe5f3; }
.edvx-mvp__hero::after { position: absolute; right: -8vw; bottom: -38%; width: 42vw; height: 42vw; border: 56px solid rgba(35,108,250,.055); border-radius: 50%; content: ""; pointer-events: none; }
.edvx-mvp__hero .container { position: relative; z-index: 1; }
.edvx-mvp__hero h1 { max-width: 860px; letter-spacing: -.045em; }
.edvx-mvp .btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.edvx-hero-assurance { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--edvx-brand-line); list-style: none; }
.edvx-hero-assurance li { position: relative; padding-left: 18px; color: #3e5065; font-size: 14px; font-weight: 700; }
.edvx-hero-assurance li::before { position: absolute; top: .65em; left: 0; width: 10px; height: 3px; background: var(--edvx-brand-orange); content: ""; }
.edvx-summary-card { position: relative; padding: 38px; border-top-width: 10px; box-shadow: 18px 18px 0 rgba(35,108,250,.11); }
.edvx-summary-card strong { font-family: "Archivo Black", sans-serif; font-size: 25px; line-height: 1.25; }
.edvx-summary-card li { line-height: 1.5; }

.edvx-mvp__journey { background: #fff; }
.edvx-journey-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--edvx-brand-line); border-left: 1px solid var(--edvx-brand-line); list-style: none; }
.edvx-journey-grid li { min-height: 240px; padding: 30px; border-right: 1px solid var(--edvx-brand-line); border-bottom: 1px solid var(--edvx-brand-line); }
.edvx-journey-grid span,
.edvx-service-number { color: var(--edvx-brand-blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.edvx-journey-grid h3 { margin: 44px 0 14px; font-size: 22px; }
.edvx-journey-grid p { margin: 0; color: #506176; line-height: 1.65; }

.edvx-section-heading h2 { letter-spacing: -.03em; line-height: 1.1; }
.edvx-profile-form { border-top: 10px solid var(--edvx-brand-blue); box-shadow: 0 20px 54px rgba(23,47,77,.09); }
.edvx-profile-form label,
.edvx-profile-form legend { color: var(--edvx-brand-navy); font-size: 14px; }
.edvx-profile-form input:not([type=checkbox]):not([type=radio]),
.edvx-profile-form select,
.edvx-profile-form textarea { min-height: 52px; border-color: #9caec4; }
.edvx-profile-form textarea { min-height: 104px; resize: vertical; }
.edvx-profile-form fieldset { background: #fbfcff; border-left: 4px solid #d3deee; }
.edvx-profile-form .edvx-optional { margin: 26px 0; background: #f5f8fd; }
.edvx-profile-form .edvx-optional summary { cursor: pointer; font-size: 15px; text-underline-offset: 3px; }
.edvx-profile-form .edvx-optional[open] summary { margin-bottom: 22px; }
.edvx-upload { padding: 24px; border-color: #7890ae; background: #f7f9fd; }
.edvx-file-name { color: var(--edvx-brand-blue-dark) !important; font-weight: 700; }
.edvx-consents { padding: 24px; background: #f7f9fd; border-top: 4px solid #d6e0ef; }
.edvx-consents label,
.edvx-check-grid label { display: flex; align-items: flex-start; gap: 10px; padding-block: 5px; line-height: 1.55; }
.edvx-consents input[type="checkbox"],
.edvx-check-grid input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.edvx-profile-form input:user-invalid,
.edvx-profile-form select:user-invalid,
.edvx-profile-form textarea:user-invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.edvx-alert { box-shadow: 0 10px 30px rgba(23,47,77,.06); }

.edvx-mvp__form-section .edvx-section-heading,
.edvx-mvp__matching .edvx-section-heading,
.edvx-mvp__services .edvx-section-heading { padding-left: 24px; border-left: 6px solid var(--edvx-brand-orange); }
.edvx-mvp__matching { border-block: 1px solid #dce5f2; scroll-margin-top: 24px; }
.edvx-mvp__matching .edv-quiz { padding: clamp(20px, 4vw, 42px); background: #f7f9fd; border-top: 9px solid var(--edvx-brand-blue); box-shadow: 0 18px 44px rgba(23,47,77,.08); }
.edvx-mvp__services .row { align-items: stretch; }
.edvx-service-card { position: relative; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--edvx-brand-line); border-top: 9px solid var(--edvx-brand-blue); box-shadow: 0 14px 36px rgba(23,47,77,.07); }
.edvx-mvp__services .row > div:nth-child(2) .edvx-service-card { border-top-color: var(--edvx-brand-orange); }
.edvx-service-number { display: block; margin-bottom: 26px; }
.edvx-service-card .edvx-price { margin-bottom: 10px; color: #9e3e10; }
.edvx-service-card h3 { min-height: 64px; }
.edvx-service-card > p:not(.edvx-price) { flex: 1 1 auto; min-height: 205px; }
.edvx-service-card .btn { width: 100%; white-space: normal; }
.edvx-service-card > small { min-height: 58px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--edvx-brand-line); }
.edvx-mvp__faq { background: #fff; }
.edvx-mvp__faq .edvx-optional { margin-block: 0 12px; padding: 22px 24px; background: #fff; }
.edvx-mvp__faq .edvx-optional summary { cursor: pointer; color: var(--edvx-brand-navy); font-size: 17px; }
.edvx-mvp__faq .edvx-optional p { color: #4c5e73; line-height: 1.65; }

/* B2B refinements: preserve the existing strong composition while unifying interaction details. */
.edvx-employers .btn,
.edvx-employers .edvx-card-link,
.edvx-employers .edvx-text-link { text-underline-offset: 4px; }
.edvx-employers .btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.edvx-employers__hero h1 { border-top-width: 12px; }
.edvx-language-link { padding: 8px 0; }
.edvx-offer-card,
.edvx-benefit,
.edvx-employer-form,
.edvx-form-message { box-shadow: 0 14px 38px rgba(23,47,77,.07); }
.edvx-employer-form { border-top-color: var(--edvx-brand-orange); }
.edvx-employer-form label { color: #25364c; font-size: 14px; }
.edvx-employer-form .form-control,
.edvx-employer-form .form-select { border-color: #98a9bf; }
.edvx-employer-form fieldset { background: #f8faff; border-left: 4px solid #d3deee; }
.edvx-employer-form .edvx-consent { min-height: 38px; padding: 7px 8px; border-radius: 3px; }
.edvx-employer-form .edvx-consent:has(input:focus-visible) { outline: 3px solid rgba(35, 108, 250, .2); outline-offset: 2px; }
.edvx-employer-form input:user-invalid,
.edvx-employer-form select:user-invalid,
.edvx-employer-form textarea:user-invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.edvx-form-message--success { background: #f1f7ff; }
.edvx-form-intro { color: #4d5d72; }
.edvx-meeting-placeholder { border-left: 4px solid var(--edvx-brand-orange); }

/* Strong and visible keyboard focus without introducing a new visual language. */
.edvx-gateway a:focus-visible,
.edvx-mvp a:focus-visible,
.edvx-mvp button:focus-visible,
.edvx-employers a:focus-visible,
.edvx-employers button:focus-visible { outline: 3px solid var(--edvx-brand-orange); outline-offset: 4px; }

@media (max-width: 991px) {
	.edvx-gateway__heading { align-items: start; }
	.edvx-journey-grid { grid-template-columns: 1fr; }
	.edvx-journey-grid li { min-height: 0; }
	.edvx-journey-grid h3 { margin-top: 24px; }
	.edvx-service-card > p:not(.edvx-price) { min-height: auto; }
}

@media (max-width: 640px) {
	.edvt-banner { min-height: 34px; margin: -35px -10px 14px; padding: 7px 12px; }
	#menu-toggle { width: 44px; height: 44px; margin-right: -9px; padding: 9px; }
	#menu-toggle span { left: 9px; width: 26px; }
	.menu-wrapper { max-height: calc(100vh - 96px); padding: 18px 18px 26px; overflow-y: auto; }
	.menu-wrapper ul:not(.dropdown-menu) a { min-height: 44px; line-height: 44px; }
	.edvx-gateway::before { width: 62%; height: 9px; }
	.edvx-gateway__heading h2 { font-size: 38px; }
	.edvx-gateway__heading > div > p:last-child { font-size: 17px; }
	.edvx-gateway__eddie { padding: 18px 0 0; border-top: 1px solid var(--edvx-brand-line); border-left: 0; }
	.edvx-gateway__card { min-height: 0; padding: 24px; }
	.edvx-gateway__card small { margin-bottom: 18px; }
	.edvx-gateway__card span { min-height: 0; font-size: 23px; }
	.edvx-mvp section { padding: 56px 0; }
	.edvx-mvp__hero h1 { font-size: clamp(40px, 12vw, 50px); overflow-wrap: normal; word-break: normal; }
	.edvx-mvp__hero::after { display: none; }
	.edvx-hero-assurance { display: grid; gap: 11px; }
	.edvx-summary-card { padding: 28px 26px; box-shadow: 10px 10px 0 rgba(35,108,250,.11); }
	.edvx-journey-grid li { padding: 26px; }
	.edvx-profile-form { margin-inline: 0; padding: 24px 18px; }
	.edvx-profile-form fieldset,
	.edvx-consents { padding: 18px; }
	.edvx-profile-form input:not([type=checkbox]):not([type=radio]),
	.edvx-profile-form select,
	.edvx-profile-form textarea,
	.edvx-employer-form .form-control,
	.edvx-employer-form .form-select { font-size: 16px; }
	.edvx-mvp__form-section .edvx-section-heading,
	.edvx-mvp__matching .edvx-section-heading,
	.edvx-mvp__services .edvx-section-heading { padding-left: 16px; border-left-width: 4px; }
	.edvx-service-card { padding: 28px 24px; }
	.edvx-service-card h3 { min-height: 0; }
	.edvx-employers__hero h1 { font-size: clamp(37px, 10.5vw, 44px); letter-spacing: -.035em; }
	.edvx-hero-panel { margin-top: 44px; }
	.edvx-employer-form,
	.edvx-form-message { padding: 26px 20px; }
	.edvx-employers__request h2 { font-size: 30px; letter-spacing: -.01em; overflow-wrap: normal; word-break: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.edvx-gateway__card,
	.edvx-offer-card { transition: none !important; transform: none !important; }
}
