/* Befit site-wide: design tokens, header buttons, footer. Loaded on every page. */

:root {
	--bp-primary: var(--primary, #FF8427);
	--bp-navy: var(--secondary, #00336A);
	--bp-ink: #1d2433;
	--bp-muted: #5b6475;
	--bp-line: #e6e9ef;
	--bp-tint: #f6f8fb;
	--bp-radius: 14px;
	--bp-shadow: 0 10px 30px rgba(0, 51, 106, .08);
	--bp-shadow-hover: 0 18px 40px rgba(0, 51, 106, .16);
}

/* ---------- Logo: always a true circle, no spin ---------- */
header .logo { padding: 6px 0; }
header .logo img {
	width: 96px !important; height: 96px !important; max-width: none; aspect-ratio: 1 / 1;
	object-fit: contain; animation: none !important; transform: none !important; display: block;
}
.mainmenu.fixed header .logo img, .mainmenu.fixed .logo img { width: 72px !important; height: 72px !important; }
@media (max-width: 991px) {
	header .logo img { width: 78px !important; height: 78px !important; }
}
.bf-footer__logo img { height: auto; aspect-ratio: 1 / 1; object-fit: contain; }

/* ---------- Dropdown menus: height fits the items (theme had a fixed 500px) ---------- */
.menutop li ul.sub-menu {
	height: auto !important; max-height: 70vh; overflow-y: auto !important;
}

/* ---------- Topbar: social icons left, highlighted buttons right ---------- */
.hdr-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; min-height: 34px; }
.hdr-social { display: flex !important; align-items: center; gap: 8px; margin: 0; padding: 0; }
.hdr-social li { list-style: none; }
.hdr-social li a { transition: background .25s, color .25s, transform .25s; }
.hdr-social li a:hover { background: var(--bp-navy); color: #fff; border-color: var(--bp-navy); transform: translateY(-2px); }
.hdr-btns { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hdr-btns li { list-style: none; }
.hdr-btn {
	display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 5px; border-radius: 50px;
	background: #fff; color: var(--bp-navy) !important; font-size: 12.5px; font-weight: 700; line-height: 1.2;
	letter-spacing: .3px; white-space: nowrap; text-decoration: none; box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
	transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.hdr-btn i {
	width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-size: 11px; color: #fff; background: var(--bp-primary);
}
.hdr-btn.is-onsite i { background: var(--bp-navy); }
.hdr-btn.is-pay { background: #16a34a; color: #fff !important; }
.hdr-btn.is-pay i { background: #fff; color: #16a34a; }
.hdr-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); color: var(--bp-primary) !important; }
.hdr-btn.is-pay:hover { background: #128a3e; color: #fff !important; }

/* Medium desktops: keep the main menu on one line. */
@media (min-width: 1025px) and (max-width: 1399px) {
	.menubar { column-gap: 18px; }
	.menutop li a { padding-left: 9px; padding-right: 9px; font-size: 14px; }
	.menutop > li.menu-item-has-children > a { padding-right: 18px; }
	.hdrcnt .arrow-btn { white-space: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
	.menutop li a { padding-left: 7px; padding-right: 7px; font-size: 13.5px; }
	.menutop > li.menu-item-has-children > a { padding-right: 16px; }
}

/* ---------- Mobile menu (replaces the Responsive Menu plugin) ---------- */
.bm-toggle { display: none; }
#rmp_menu_trigger-573, .rmp-container { display: none !important; }
@media (max-width: 1024px) {
	ul.menutop, .hdrcnt { display: none !important; }
	.mainmenu .row { flex-wrap: nowrap; }
	.mainmenu .col-sm-2 { width: auto; flex: 1 1 auto; }
	.mainmenu .col-sm-10 { width: auto; flex: 0 0 auto; }
	.menubar { justify-content: flex-end; }
	.bm-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px;
		padding: 0 12px; border: 0; border-radius: 12px; background: var(--bp-navy); cursor: pointer;
		box-shadow: 0 6px 16px rgba(0, 51, 106, .25);
	}
	.bm-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: width .25s; }
	.bm-toggle span:nth-child(2) { width: 70%; }
	.bm-toggle:hover span:nth-child(2) { width: 100%; }
}
html.bm-lock, html.bm-lock body { overflow: hidden; }

.bm-panel {
	position: fixed; inset: 0; z-index: 2147482000; display: flex; flex-direction: column;
	background: linear-gradient(165deg, #00336A 0%, #021f42 100%); color: #fff;
	opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .3s;
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	font-family: "Bricolage Grotesque", sans-serif;
}
.bm-panel.is-open { opacity: 1; transform: none; }
.bm-panel[hidden] { display: none; }
.bm-head {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 18px; background: rgba(2, 31, 66, .96); border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.bm-logo { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff !important; }
.bm-logo img { width: 52px; height: 52px; border-radius: 50%; background: #fff; flex: none; object-fit: contain; }
.bm-logo span { font-size: 14px; font-weight: 600; line-height: 1.25; color: #fff; }
.bm-close {
	flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--bp-primary); color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center;
}
.bm-nav { padding: 10px 18px 6px; flex: 1 0 auto; }
.bm-menu, .bm-menu ul { list-style: none; margin: 0; padding: 0; }
.bm-menu > li { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.bm-menu li a {
	display: block; padding: 15px 52px 15px 0; color: #fff !important; font-size: 18px; font-weight: 600; line-height: 1.3;
	text-decoration: none;
}
.bm-menu li.current-menu-item > a { color: var(--bp-primary) !important; }
@media (hover: hover) { .bm-menu li > a:hover { color: var(--bp-primary) !important; } }
.bm-sub-toggle {
	position: absolute; right: 0; top: 7px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
	transition: background .25s, transform .3s;
}
.bm-menu li.is-open > .bm-sub-toggle { background: var(--bp-primary); transform: rotate(180deg); }
.bm-menu .sub-menu {
	display: none; margin: 0 0 12px !important; padding: 6px 0 6px 14px !important;
	border-left: 2px solid var(--bp-primary);
}
.bm-menu li.is-open > .sub-menu { display: block; animation: bm-in .25s ease; }
.bm-menu .sub-menu li { position: relative; border: 0; }
.bm-menu .sub-menu a { padding: 10px 48px 10px 4px; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .85) !important; }
.bm-menu .sub-menu .bm-sub-toggle { top: 2px; width: 36px; height: 36px; }
@keyframes bm-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bm-foot { padding: 18px 18px 28px; display: grid; gap: 16px; }
.bm-foot .hdr-btns { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
.bm-foot .hdr-btns li { width: 100%; }
.bm-foot .hdr-btn { width: 100%; justify-content: flex-start; padding: 8px 14px 8px 8px; font-size: 14px; min-height: 48px; }
.bm-foot .hdr-btn i { display: inline-flex !important; width: 32px; height: 32px; font-size: 13px; }
.bm-cta {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px;
	background: var(--bp-primary); color: #fff !important; font-size: 16px; font-weight: 600;
}
.bm-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bm-contact a { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .9) !important; font-size: 15px; word-break: break-word; }
.bm-contact i { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: var(--bp-primary); }
.bm-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bm-social a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: #fff !important; font-size: 16px; }
.bm-social a:hover { background: var(--bp-primary); }
@media (prefers-reduced-motion: reduce) { .bm-panel, .bm-menu li.is-open > .sub-menu { transition: none; animation: none; } }

@media (max-width: 767px) {
	.topbar { border-radius: 0 0 14px 14px; }
	.hdr-bar { justify-content: center; }
	.hdr-social { gap: 6px; }
	.hdr-social li a { width: 26px; height: 26px; font-size: 11px; }
}
@media (max-width: 575px) {
	.hdr-btns { width: 100%; gap: 6px; }
	.hdr-btns li { flex: 1 1 0; min-width: 0; }
	.hdr-btn { width: 100%; justify-content: center; padding: 6px 6px; font-size: 10.5px; letter-spacing: 0; gap: 5px; }
	.hdr-btn i { width: 18px; height: 18px; font-size: 9px; flex: none; }
	.hdr-btn span { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 479px) {
	.hdr-btn { padding: 8px 2px; font-size: 11px; }
	.hdr-btns { gap: 5px; }
	.hdr-btn i { display: none; }
}
@media (max-width: 349px) {
	.hdr-btns { flex-wrap: wrap; }
	.hdr-btns li { flex: 1 1 45%; }
	.hdr-btns li:last-child { flex-basis: 100%; }
}

/* ---------- Home banner: on tablets/phones show the whole image (its text is part of the image) ---------- */
@media (max-width: 991px) {
	.mainslider figure img { height: auto !important; object-fit: contain !important; border-radius: 14px 14px 0 0; }
	.mainslider .slider-btn button { width: 34px; height: 34px; }
}

/* ---------- Mobile forms: 16px inputs stop iOS from zooming the page on focus ---------- */
@media (max-width: 991px) {
	input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"],
	input[type="date"], select, textarea { font-size: 16px !important; }
	input[type="submit"], .bp-btn, .hdr-btn { min-height: 40px; }
	.bp-form input[type="submit"] { width: 100%; }
}

/* ---------- Footer ---------- */
.bf-footer { padding: 64px 0 0; }
.bf-footer .row > [class*="col-"] {
	border: 0 !important; background: none !important;
	padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
}
.bf-footer__top { row-gap: 36px; }
.bf-footer h4 { font-size: 19px; font-weight: 600; margin: 0 0 18px; position: relative; padding-bottom: 12px; }
.bf-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--bp-primary); }
.bf-footer__logo img { width: 96px; height: auto; display: block; margin: 0 0 16px; }
.bf-footer__tagline { color: var(--bp-primary) !important; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.bf-footer__text { color: rgba(255, 255, 255, .78) !important; font-size: 14.5px; line-height: 24px; margin-bottom: 22px; max-width: 360px; }
.bf-footer__about h4 { margin-top: 4px; }

.bf-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.bf-social li { list-style: none; }
.bf-social a {
	width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; transition: background .25s, transform .25s;
}
.bf-social a:hover { background: var(--bp-primary); color: #fff !important; transform: translateY(-3px); }

.bf-links { margin: 0; padding: 0; }
.bf-links li { list-style: none; position: relative; padding-left: 20px; line-height: 1.4; margin-bottom: 11px; }
.bf-links li::before {
	content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 2px; top: 1px;
	color: var(--bp-primary); font-size: 13px;
}
.bf-links a { color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.4; transition: color .2s, padding .2s; }
.bf-links a:hover { padding-left: 3px; }

.bf-contact { margin: 0; padding: 0; }
.bf-contact li { list-style: none; display: flex; gap: 12px; margin-bottom: 14px; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.5; }
.bf-contact i {
	flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 132, 39, .15); color: var(--bp-primary); font-size: 13px;
}
.bf-contact a { color: rgba(255, 255, 255, .85); word-break: break-word; align-self: center; font-size: 15px; line-height: 1.5; }
.bf-contact span { align-self: center; }

.bf-legal {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin-top: 44px; padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.bf-legal a { color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.4; padding: 0 12px; border-right: 1px solid rgba(255, 255, 255, .2); }
.bf-legal a:last-child { border-right: 0; }

.bf-bottom { background: rgba(0, 0, 0, .45); padding: 16px 0; }
.bf-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.bf-bottom p { margin: 0 !important; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .8) !important; }
.bf-bottom strong { color: #fff; font-weight: 600; }
.bf-bottom a { color: var(--bp-primary) !important; font-size: inherit; }
.bf-sep { opacity: .4; margin: 0 6px; }

@media (max-width: 991px) {
	.bf-bottom .container { justify-content: center; text-align: center; flex-direction: column; }
}
@media (max-width: 575px) {
	.bf-footer { padding-top: 44px; }
	.bf-footer__top { row-gap: 30px; }
	.bf-legal { justify-content: flex-start; margin-top: 30px; }
	.bf-legal a { width: 50%; border-right: 0; padding: 4px 0; }
	.bf-sep { display: block; height: 0; overflow: hidden; margin: 0; }
}