/*
 * EduDrift Core 2.1.0 — header (menu bar), opened menu and footer, on every page.
 * Design: canvas "Header, opened menu and footer" (Direction 4 — Immersive).
 * Breakpoints: tablet ≤1024px, phone ≤640px.
 */

/* Blocksy's own header and footer are replaced while the EduDrift ones are on. */
body.edc-chrome #header,
body.edc-chrome header.ct-header,
body.edc-chrome #footer,
body.edc-chrome footer.ct-footer { display: none !important; }

/* ---------- Menu bar ---------- */
#edc-bar {
	position: fixed;
	left: 0;
	right: 0;
	top: 38px;
	z-index: 999;
	pointer-events: none;
	font-family: Jost, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	transition: top 0.25s ease;
}
body.admin-bar #edc-bar { top: 70px; }
#edc-bar.is-stuck { top: 14px; }
body.admin-bar #edc-bar.is-stuck { top: 46px; }
#edc-bar *, #edc-bar *::before, #edc-bar *::after { box-sizing: border-box; }
#edc-bar .edc-bar__wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; pointer-events: auto; }
#edc-bar .edc-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-radius: 999px;
	padding: 8px 8px 8px 28px;
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
#edc-bar.is-stuck .edc-nav { background: rgba(255, 255, 255, 0.92); border-color: #dce2e7; box-shadow: 0 10px 30px rgba(0, 83, 163, 0.1); }
#edc-bar .edc-nav__logo { display: flex; align-items: center; min-height: 44px; flex: none; }
#edc-bar .edc-nav__logo-img { display: block; height: 34px; width: auto; max-width: none; }
#edc-bar ul.edc-nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
#edc-bar ul.edc-nav__links li { margin: 0; padding: 0; }
#edc-bar ul.edc-nav__links a { position: relative; display: block; padding: 12px 0; font-size: 14px; font-weight: 500; line-height: 20px; color: #30363a; text-decoration: none; }
#edc-bar ul.edc-nav__links a:hover,
#edc-bar ul.edc-nav__links a[aria-current] { color: #0053a3; }
#edc-bar ul.edc-nav__links a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #1a8fff; transform: translateX(-50%); }
#edc-bar .edc-nav__actions { display: flex; gap: 8px; align-items: center; flex: none; }

/* Buttons (shared with the footer) */
#edc-bar .edc-btn,
#edc-footer .edc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	font: 500 12px/1 Jost, system-ui, sans-serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
}
#edc-bar .edc-btn--blue { background: #0068cc; color: #fff; }
#edc-bar .edc-btn--blue:hover { background: #0053a3; color: #fff; }
#edc-bar .edc-nav__toggle { display: none; background: #fff; color: #090d0f; padding: 0 18px; }
#edc-bar.is-stuck .edc-nav__toggle { background: #eef6ff; }
#edc-bar .edc-nav__toggle:hover { color: #0053a3; }
#edc-bar .edc-nav__toggle svg { flex: none; }
#edc-bar .edc-ico-close { display: none; }
#edc-bar .edc-nav__toggle[aria-expanded="true"] .edc-ico-open { display: none; }
#edc-bar .edc-nav__toggle[aria-expanded="true"] .edc-ico-close { display: inline; }
#edc-bar a:focus-visible,
#edc-bar button:focus-visible,
#edc-footer a:focus-visible { outline: 2px solid #0068cc; outline-offset: 2px; }

/* ---------- Opened menu (iPad and phone) ---------- */
#edc-bar .edc-menu {
	margin-top: 10px;
	border-radius: 32px;
	padding: 12px 28px 28px;
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 24px 60px rgba(0, 30, 70, 0.22);
	max-height: calc(100vh - 120px);
	overflow: auto;
}
#edc-bar .edc-menu[hidden] { display: none !important; }
#edc-bar ul.edc-menu__list { list-style: none; margin: 0; padding: 0; }
#edc-bar ul.edc-menu__list li { margin: 0; padding: 0; }
#edc-bar a.edc-menu__link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 20px 4px; border-bottom: 1px solid #dce2e7; color: #090d0f; text-decoration: none; }
#edc-bar a.edc-menu__link:hover,
#edc-bar a.edc-menu__link[aria-current] { color: #0053a3; }
#edc-bar a.edc-menu__link svg { flex: none; color: #0068cc; }
#edc-bar .edc-menu__text { display: flex; flex-direction: column; }
#edc-bar .edc-menu__title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1; letter-spacing: -0.01em; }
#edc-bar .edc-menu__note { font-size: 14px; line-height: 1.4; color: #30363a; margin-top: 6px; }
#edc-bar .edc-menu__cta { display: flex; width: 100%; min-height: 48px; margin-top: 24px; }
#edc-bar p.edc-menu__contact { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: #30363a; }
#edc-bar p.edc-menu__contact a { color: #0068cc; white-space: nowrap; }

/* The Calendar's heading panel: room for the bar above its words. */
body.edc-chrome .edp-cal .edp-chead { padding-top: 144px; }

/* Pages that don't start with a photograph: room for the bar. */
.edc-bar-space { height: 112px; }
body.admin-bar .edc-bar-space { height: 112px; }

/* ---------- Footer ---------- */
#edc-footer { margin: 24px 14px 14px; font-family: Jost, system-ui, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
#edc-footer *, #edc-footer *::before, #edc-footer *::after { box-sizing: border-box; }
#edc-footer .edc-footer__box { border-radius: 36px; background: linear-gradient(150deg, #0053a3 0%, #0068cc 70%, #1a8fff 130%); padding: 88px 72px 40px; }
#edc-footer .edc-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
#edc-footer p.edc-footer__heading { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 96px; line-height: 0.95; letter-spacing: -0.02em; color: #fff; }
#edc-footer p.edc-footer__heading em,
#edc-footer p.edc-footer__tagline em { font-style: italic; color: #fff; }
#edc-footer .edc-btn--white { background: #fff; color: #0053a3; min-height: 48px; padding: 0 26px; }
#edc-footer .edc-btn--white:hover { background: #eef6ff; color: #0053a3; }
#edc-footer .edc-footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 72px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
#edc-footer .edc-footer__cols.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
#edc-footer .edc-footer__brand { grid-column: 1 / 6; }
#edc-footer .edc-footer__col { grid-column: span 2; }
#edc-footer .edc-footer__brand + .edc-footer__col { grid-column: 7 / span 2; }
#edc-footer .edc-footer__logo { display: block; height: 44px; width: auto; max-width: none; }
#edc-footer p.edc-footer__tagline { margin: 18px 0 0; max-width: 380px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
#edc-footer p.edc-footer__partners { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: #dcebfb; }
#edc-footer p.edc-footer__label { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #dcebfb; }
#edc-footer .edc-footer__col ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.4; }
#edc-footer .edc-footer__col li { margin: 0; padding: 0; color: #eef6ff; }
#edc-footer .edc-footer__col a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
#edc-footer .edc-footer__col a:hover { color: #fff; text-decoration: underline; }
#edc-footer .edc-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.28); font-size: 13px; color: #eef6ff; }
#edc-footer .edc-footer__legal a { color: #fff; text-decoration: underline; }

/* ---------- iPad ---------- */
@media (max-width: 1024px) {
	#edc-bar ul.edc-nav__links { display: none; }
	#edc-bar .edc-nav__toggle { display: inline-flex; }
	#edc-footer .edc-footer__box { padding: 64px 48px 40px; }
	#edc-footer p.edc-footer__heading { font-size: 72px; }
	#edc-footer .edc-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	#edc-footer .edc-footer__brand { grid-column: 1 / -1; }
	#edc-footer .edc-footer__col,
	#edc-footer .edc-footer__brand + .edc-footer__col { grid-column: auto; }
}
@media (min-width: 1025px) {
	#edc-bar .edc-menu { display: none !important; }
}
@media screen and (max-width: 782px) {
	body.admin-bar #edc-bar { top: 84px; }
	body.admin-bar #edc-bar.is-stuck { top: 58px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
	#edc-bar { top: 24px; }
	#edc-bar.is-stuck { top: 12px; }
	#edc-bar .edc-bar__wrap { width: calc(100% - 24px); }
	#edc-bar .edc-nav { padding-left: 18px; gap: 10px; }
	#edc-bar .edc-nav__logo-img { height: 28px; }
	/* Menu button shows its icon only, so the logo, Menu and the blue button fit on one line. */
	#edc-bar .edc-nav__toggle { width: 44px; padding: 0; }
	#edc-bar .edc-nav__toggle [data-edc-toggle-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	#edc-bar .edc-nav__cta { padding: 0 18px; }
	#edc-bar .edc-menu { padding: 8px 20px 24px; border-radius: 28px; }
	#edc-bar .edc-menu__title { font-size: 30px; }
	.edc-bar-space { height: 92px; }
	body.edc-chrome .edp-cal .edp-chead { padding-top: 112px; }
	body.edc-chrome .edp-lp .edp-lhero__media { height: 540px; } /* the listing's words sit clear of the bar */
	#edc-footer { margin: 24px 12px 12px; }
	#edc-footer .edc-footer__box { padding: 48px 24px 32px; border-radius: 28px; }
	#edc-footer p.edc-footer__heading { font-size: 50px; }
	#edc-footer .edc-footer__cols { grid-template-columns: 1fr; row-gap: 36px; margin-top: 48px; padding-top: 36px; }
	#edc-footer .edc-footer__legal { flex-direction: column; align-items: flex-start; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	#edc-bar, #edc-bar .edc-nav { transition: none; }
}
