/*
 * Native site chrome — header, account menu, mobile drawer.
 * Values match the Elementor header it replaces (template 185552).
 * Breakpoint: menu + desktop buttons above 1024px, hamburger at 1024px and below.
 */
:root {
	--pi-blue: #00a3d9;
	--pi-navy: #012e40;
	--pi-ink: #123a66;
	--pi-grey: #e6e6e9;
	--pi-line: #d6e4ee;
	--pi-hover: #eaf5fb;
	--pi-danger: #c0392b;
	--pi-font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pi-header { position: relative; z-index: 50; font-family: var(--pi-font); }
.pi-header *, .pi-drawer * { box-sizing: border-box; }

.pi-header__wrap { width: 98%; margin: 0 auto; padding: 20px 0 0; }
/* No bottom spacing here: prime-extensions/assets/style.css adds 40px on template pages and posts,
   and the home hero deliberately slides up behind the header. */

/* Scrolled: a site-wide inline script adds .sticky to .elementor-location-header once the page
   scrolls, and an inline rule fixes .primenewheader at the top (it sets Elementor's --width, which
   this header doesn't use). Make the fixed bar full width with square corners, like before. */
.pi-header.sticky .primenewheader {
	position: fixed; top: 0; left: 0; right: 0; z-index: 999;
	width: 100%; padding: 0 !important; background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.admin-bar .pi-header.sticky .primenewheader { top: 32px; }
@media (max-width: 782px) { .admin-bar .pi-header.sticky .primenewheader { top: 46px; } }
.pi-header.sticky .pi-header__bar { border-radius: 0; }
.pi-header__bar {
	display: flex; align-items: center; gap: 24px;
	min-height: 72px; padding: 0 45px 0 81px;
	background: #fff; border-radius: 10px;
}
.pi-header--member .pi-header__bar { min-height: 66px; padding: 0 45px 0 29px; }

.pi-header__logo { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.pi-header__logo img { width: 177px; height: auto; }

/* ---- desktop menu */
.pi-header__nav { flex: 1 1 auto; display: flex; justify-content: center; }
.pi-menu, .pi-menu ul { list-style: none; margin: 0; padding: 0; }
.pi-menu--header { display: flex; align-items: center; gap: 40px; }
.pi-header--member .pi-menu--header { gap: 25px; }
.pi-menu--header > li { position: relative; }
.pi-menu--header a {
	display: flex; align-items: center; gap: 8px;
	color: var(--pi-navy); font-size: 15px; font-weight: 500; line-height: 18px;
	text-decoration: none; white-space: nowrap;
}
.pi-menu--header > li > a { padding: 27px 0; }
.pi-menu--header a:hover,
.pi-menu--header a:focus-visible,
.pi-menu--header .current-menu-item > a,
.pi-menu--header .current-menu-ancestor > a { color: var(--pi-blue); }
.pi-menu--header .menu-item-has-children > a::after {
	content: ""; width: 12px; height: 12px; flex: 0 0 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pi-menu--header > li > a[href="#"] { cursor: default; }

/* dropdowns: hover or keyboard focus */
.pi-menu--header .sub-menu {
	position: absolute; top: 100%; left: -20px; min-width: 230px;
	padding: 8px 0; background: #fff; border-radius: 10px;
	box-shadow: 0 4px 20px rgba(52, 88, 102, .1);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.pi-menu--header .sub-menu .sub-menu { top: -8px; left: 100%; }
.pi-menu--header li:hover > .sub-menu,
.pi-menu--header li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pi-menu--header .sub-menu a {
	justify-content: space-between; padding: 12px 20px;
	font-size: 16px; font-weight: 400; line-height: 20px;
}
.pi-menu--header .sub-menu a:hover { background: var(--pi-hover); }
.pi-menu--header .sub-menu .menu-item-has-children > a::after { transform: rotate(-90deg); }

/* ---- buttons (prefixed so Astra's generic button/link rules don't win) */
:is(.pi-header, .pi-drawer) button { font-family: var(--pi-font); text-transform: none; letter-spacing: normal; box-shadow: none; }
.pi-header__actions { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
:is(.pi-header, .pi-drawer) .pi-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border: 1px solid transparent; border-radius: 4px;
	font-family: var(--pi-font); font-size: 15px; font-weight: 600; line-height: 16px;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
:is(.pi-header, .pi-drawer) .pi-btn--primary { background: var(--pi-blue); border-color: var(--pi-blue); color: #fff; }
:is(.pi-header, .pi-drawer) .pi-btn--primary:hover, :is(.pi-header, .pi-drawer) .pi-btn--primary:focus-visible { background: var(--pi-navy); border-color: var(--pi-navy); color: #fff; }
:is(.pi-header, .pi-drawer) .pi-btn--outline { background: transparent; border-color: rgba(1, 46, 64, .2); color: var(--pi-navy); }
:is(.pi-header, .pi-drawer) .pi-btn--outline:hover, :is(.pi-header, .pi-drawer) .pi-btn--outline:focus-visible { border-color: var(--pi-navy); color: var(--pi-navy); }
:is(.pi-header, .pi-drawer) .pi-btn--muted { background: var(--pi-grey); border-color: var(--pi-grey); color: var(--pi-navy); }
:is(.pi-header, .pi-drawer) .pi-btn--plain { background: none; border: 0; color: var(--pi-ink); }
.pi-header--member .pi-header__actions .pi-btn.pi-btn--primary { font-size: 16px; font-weight: 700; }

/* ---- account dropdown */
.pi-account { position: relative; }
:is(.pi-header, .pi-drawer) .pi-account__trigger {
	display: flex; align-items: center; gap: 6px; padding: 4px; margin: 0;
	background: none; border: 0; box-shadow: none; cursor: pointer; color: var(--pi-ink);
}
:is(.pi-header, .pi-drawer) .pi-account__trigger:hover, :is(.pi-header, .pi-drawer) .pi-account__trigger:focus { background: none; color: var(--pi-ink); }
.pi-account__avatar {
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; background: #534ab7; color: #fff;
}
.pi-account__avatar .pi-icon { width: 18px; height: 18px; }
.pi-account__trigger .pi-icon--chevron { transition: transform .15s ease; }
.pi-account__trigger[aria-expanded="true"] .pi-icon--chevron { transform: rotate(180deg); }
.pi-account__menu {
	position: absolute; top: 44px; right: 0; z-index: 100; min-width: 170px; overflow: hidden;
	background: #fff; border: 1px solid var(--pi-line); border-radius: 10px;
	box-shadow: 0 8px 24px rgba(18, 58, 102, .14);
}
.pi-account .pi-account__item {
	display: flex; justify-content: flex-start; width: 100%; padding: 12px 16px; border-radius: 0;
	font-size: 14px; font-weight: 400; color: var(--pi-ink);
}
.pi-account__item + .pi-account .pi-account__item { border-top: 1px solid #eef3f8; }
.pi-account .pi-account__item:hover { background: var(--pi-hover); color: var(--pi-ink); }
.pi-account .pi-account__item--logout, .pi-account .pi-account__item--logout:hover { color: var(--pi-danger); }
.pi-account .pi-account__item--logout:hover { background: #fbeae8; }

/* ---- hamburger + drawer */
:is(.pi-header, .pi-drawer) .pi-burger {
	display: inline-flex; padding: 0; margin: 0; background: none; border: 0;
	color: var(--pi-navy); cursor: pointer; line-height: 0;
}
:is(.pi-header, .pi-drawer) .pi-burger:hover, :is(.pi-header, .pi-drawer) .pi-burger:focus { background: none; color: var(--pi-navy); }
.pi-burger .pi-icon { width: 24px; height: 24px; }

.pi-drawer { position: fixed; inset: 0; z-index: 99990; font-family: var(--pi-font); }
.pi-drawer[hidden] { display: none; }
.pi-drawer__backdrop { position: absolute; inset: 0; background: rgba(1, 46, 64, .35); }
.pi-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 767px);
	padding: 100px 30px 60px; overflow-y: auto; background: #fff;
	animation: pi-slide-in .3s ease;
}
@keyframes pi-slide-in { from { transform: translateX(100%); } to { transform: none; } }
:is(.pi-header, .pi-drawer) .pi-drawer__close {
	position: absolute; top: 20px; right: 20px; padding: 4px; line-height: 0;
	background: none; border: 0; color: var(--pi-navy); cursor: pointer;
}
:is(.pi-header, .pi-drawer) .pi-drawer__close:hover, :is(.pi-header, .pi-drawer) .pi-drawer__close:focus { background: none; color: var(--pi-navy); }
.pi-drawer__close .pi-icon { width: 22px; height: 22px; }

.pi-menu--drawer a {
	display: block; padding: 12px 0; color: var(--pi-navy);
	font-size: 17px; font-weight: 500; line-height: 18px; text-decoration: none;
}
.pi-menu--drawer .current-menu-item > a { color: var(--pi-blue); }
.pi-menu--drawer li { position: relative; }
.pi-menu--drawer .sub-menu { display: none; padding-left: 16px; }
.pi-menu--drawer .sub-menu a { font-size: 16px; font-weight: 400; }
.pi-menu--drawer li.pi-open > .sub-menu { display: block; }
:is(.pi-header, .pi-drawer) .pi-submenu-toggle {
	position: absolute; top: 4px; right: 0; padding: 8px; line-height: 0;
	background: none; border: 0; color: var(--pi-navy); cursor: pointer;
}
:is(.pi-header, .pi-drawer) .pi-submenu-toggle:hover, :is(.pi-header, .pi-drawer) .pi-submenu-toggle:focus { background: none; color: var(--pi-navy); }
.pi-open > .pi-submenu-toggle .pi-icon { transform: rotate(180deg); }
.pi-drawer__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 20px; }
.pi-drawer .pi-drawer__actions .pi-btn { font-size: 16px; font-weight: 700; padding: 12px 20px; }
body.pi-drawer-open { overflow: hidden; }

/* ---- responsive */
.pi-only-mobile { display: none; }

@media (max-width: 1366px) {
	.pi-header__wrap { padding: 20px 10px 10px; }
	.pi-header__bar { padding: 0 30px; }
	.pi-menu--header { gap: 28px; }
}
@media (max-width: 1024px) {
	.pi-header__wrap { padding: 20px 20px 0; }
	.pi-header__nav, .pi-only-desktop { display: none; }
	.pi-only-mobile { display: flex; margin-left: auto; gap: 16px; }
	.pi-header__bar, .pi-header--member .pi-header__bar { min-height: 52px; padding: 5px 16px 5px 17px; }
	.pi-header .pi-btn.pi-btn--compact { padding: 6px 12px; font-size: 15px; white-space: normal; text-align: center; max-width: 110px; }
	.pi-header--member .pi-btn.pi-btn--compact { padding: 4px 6px; font-size: 12px; font-weight: 700; max-width: none; }
}
@media (max-width: 767px) {
	.pi-header__wrap { width: 100%; }
	.pi-header__bar, .pi-header--member .pi-header__bar { padding-top: 15px; padding-bottom: 15px; }
	.pi-header__logo img { width: 150px; }
	.pi-header--member .pi-header__logo img { width: 177px; }
}
@media (max-width: 400px) {
	.pi-header__logo img, .pi-header--member .pi-header__logo img { width: 140px; }
}

/* ======================================================================== footer
 * Matches the Elementor footer it replaces (template 185560): 1260px content,
 * logo + three link columns, copyright/social bar, disclaimers, SEO directory, navy address band.
 */
.pi-footer { font-family: var(--pi-font); color: #345866; background: #fff; }
.pi-footer *, .pi-footer *::before { box-sizing: border-box; }
.pi-footer__inner { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pi-footer a { color: inherit; text-decoration: none; }

.pi-footer__links { border-top: 1px solid var(--pi-grey); }
.pi-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.pi-footer__brand img { width: 205px; height: auto; }
.pi-footer__title { margin: 0 0 12px; font-family: var(--pi-font); font-size: 16px; font-weight: 700; line-height: 16px; color: var(--pi-navy); }
.pi-footer__list { list-style: none; margin: 0; padding: 0; }
.pi-footer__list li { margin: 0; }
.pi-footer .pi-footer__list .pi-btn--link {
	display: inline; padding: 0; border: 0; background: none;
	font-size: 14px; font-weight: 400; line-height: 25px; color: #345866; white-space: normal;
}
.pi-footer .pi-footer__list .pi-btn--link:hover { color: var(--pi-blue); }
.pi-footer__apps { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 25px; }
.pi-footer__app { display: inline-flex; line-height: 0; }
.pi-footer__app .pi-brand-icon { width: 22px; height: 22px; }
.pi-footer__app--ios { color: #03698b; }
.pi-footer__app--android { color: #05942c; }

.pi-footer__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	min-height: 160px; border-top: 1px solid var(--pi-grey); border-bottom: 1px solid var(--pi-grey);
}
.pi-footer__copy { margin: 0; max-width: 265px; font-size: 14px; line-height: 16px; color: var(--pi-navy); }
.pi-footer__social { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.pi-footer__social a {
	display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
	border-radius: 50%; background: var(--pi-social, #000); color: #fff; transition: opacity .15s ease;
}
.pi-footer__social a:hover { opacity: .85; color: #fff; }
.pi-footer__social .pi-brand-icon { width: 14px; height: 14px; }

.pi-footer__disclaimer { padding-top: 40px; padding-bottom: 40px; font-size: 14px; font-weight: 300; line-height: 24px; color: #345866; }
.pi-footer__disclaimer p { margin: 0 0 16px; }
.pi-footer__disclaimer b, .pi-footer__disclaimer strong { font-weight: 700; color: var(--pi-navy); }
.pi-footer__disclaimer a { color: var(--pi-blue); font-weight: 400; }
.pi-footer__disclaimer a:hover { text-decoration: underline; }
.pi-footer__disclaimer--ra + .pi-footer__disclaimer--pms { padding-top: 0; }

.pi-footer__seo { background: var(--pi-grey); padding: 40px 0; }
.pi-footer__seo-group { margin: 0 0 16px; font-size: 14px; font-weight: 300; line-height: 24px; color: var(--pi-navy); }
.pi-footer__seo-group strong { font-weight: 700; margin-right: 6px; }
.pi-footer__seo-group a { color: var(--pi-navy); }
.pi-footer__seo-group a:hover { color: var(--pi-blue); }
.pi-footer__seo-group a + a::before { content: "|"; margin: 0 6px; color: #918d99; }
.pi-footer__seo-group--dots a + a::before { content: "•"; }

.pi-footer__address { background: var(--pi-navy); color: #fff; }
.pi-footer__address address { padding-top: 52px; padding-bottom: 52px; font-style: normal; font-size: 14px; line-height: 24px; }
.pi-footer__address strong { font-weight: 700; }

@media (max-width: 1024px) {
	.pi-footer__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 767px) {
	.pi-footer__grid { grid-template-columns: 1fr; padding-top: 40px; }
	.pi-footer__bar { flex-direction: column; justify-content: center; min-height: 0; padding-top: 24px; padding-bottom: 24px; text-align: center; }
	.pi-footer__copy { max-width: none; }
	.pi-footer__social { flex-wrap: wrap; justify-content: center; }
}
