/* SB-Header 0.3.3 — separate Core-controlled menu link colour */
html.sb-header-scroll-lock,
body.sb-header-scroll-lock { overflow: hidden !important; }

.sb-header {
	--sb-header-bg: var(--sb-header-bg-color, rgba(255, 255, 255, 0.92));
	--sb-header-text: var(--sb-header-text-color, #161c26);
	--sb-header-menu-link: var(--sb-header-link-color, var(--sb-header-accent));
	--sb-header-muted: color-mix(in srgb, var(--sb-header-text) 62%, transparent);
	--sb-header-line: color-mix(in srgb, var(--sb-header-text) 15%, transparent);
	--sb-header-soft: color-mix(in srgb, var(--sb-header-text) 8%, transparent);
	--sb-header-accent: var(--sb-primary-color, #102085);
	--sb-header-shadow: 0 16px 40px rgba(18, 27, 38, .12);
	position: relative;
	z-index: 9999;
	width: 100%;
	color: var(--sb-header-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
}

.sb-header *, .sb-header *::before, .sb-header *::after { box-sizing: border-box; }
body .sb-header ul, body .sb-header ol, body .sb-header li,
body .et-l--header .sb-header ul, body .et-l--header .sb-header li { list-style: none !important; margin: 0 !important; padding-left: 0 !important; }
body .sb-header li::marker, body .et-l--header .sb-header li::marker { content: "" !important; }
.sb-header a { text-decoration: none !important; }

/* Thin service bar */
.sb-header__topbar { background: var(--sb-header-accent); color: #fff; }
.sb-header__topbar-inner {
	width: min(calc(100% - 48px), 1320px);
	min-height: 32px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.sb-header__topbar-text { min-width: 0; flex: 1 1 auto; font-size: 11.5px; font-weight: 500; letter-spacing: .015em; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-header__topbar-services { margin-left: auto; display: inline-flex; align-items: center; gap: 20px; white-space: nowrap; }
.sb-header__topbar .sb-header__service-link { color: #fff !important; font-size: 12px; font-weight: 500; line-height: 1; opacity: .96; }
.sb-header__topbar .sb-header__service-link:hover { color: #fff !important; opacity: .75; }
.sb-header__topbar .sb-header__icon { width: 14px; height: 14px; flex-basis: 14px; }
.sb-header__topbar .sb-header__service-link--secondary { opacity: .82; }

/* Main navigation bar */
.sb-header__main { width: 100%; background: var(--sb-header-bg); border-bottom: 1px solid var(--sb-header-line); -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px); }
.sb-header__inner {
	width: min(calc(100% - 48px), 1320px);
	min-height: 72px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 28px;
}

.sb-header__brand { min-width: 0; display: inline-flex; align-items: center; justify-self: start; color: var(--sb-header-text) !important; white-space: nowrap; }
.sb-header__brand--text { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.sb-header__logo-image { display: block; width: auto; height: auto; max-width: 190px; max-height: 48px; object-fit: contain; }

/* Desktop and mobile navigation are separate so the mobile drawer never depends on optional service controls. */
.sb-header__drawer { display: none; }
.sb-header__drawer-head, .sb-header__drawer-bottom { display: none; }
.sb-header__nav { min-width: 0; }
.sb-header__nav--desktop { justify-self: center; }
body .sb-header .sb-header__menu { display: flex !important; align-items: center; justify-content: center; flex-wrap: nowrap; gap: clamp(14px, 1.25vw, 25px); margin: 0 !important; padding: 0 !important; }
body .sb-header .sb-header__menu > li { position: relative; margin: 0 !important; padding: 0 !important; }
body .sb-header .sb-header__menu a { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 72px; padding: 0 !important; color: var(--sb-header-text) !important; font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .18s ease; }
body .sb-header .sb-header__menu > li > a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sb-header-menu-link); transform: scaleX(0); transform-origin: center; transition: transform .18s ease; }
body .sb-header .sb-header__menu > li:hover > a,
body .sb-header .sb-header__menu > li:focus-within > a,
body .sb-header .sb-header__menu > li.current-menu-item > a,
body .sb-header .sb-header__menu > li.current-menu-ancestor > a { color: var(--sb-header-menu-link) !important; }
body .sb-header .sb-header__menu > li:hover > a::before,
body .sb-header .sb-header__menu > li:focus-within > a::before,
body .sb-header .sb-header__menu > li.current-menu-item > a::before,
body .sb-header .sb-header__menu > li.current-menu-ancestor > a::before { transform: scaleX(1); }
body .sb-header .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 1px; }
body .sb-header .sb-header__menu .sub-menu { display: block !important; position: absolute; top: calc(100% - 8px); left: -18px; z-index: 1000; min-width: 220px; margin: 0 !important; padding: 10px !important; background: var(--sb-header-bg); border: 1px solid var(--sb-header-line); border-radius: 5px; box-shadow: var(--sb-header-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
body .sb-header .sb-header__menu li:hover > .sub-menu,
body .sb-header .sb-header__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
body .sb-header .sb-header__menu .sub-menu li { position: relative; width: 100%; }
body .sb-header .sb-header__menu .sub-menu a { min-height: 0; width: 100%; padding: 10px 12px !important; border-radius: 3px; font-size: 13.5px; font-weight: 600; color: var(--sb-header-text) !important; }
body .sb-header .sb-header__menu .sub-menu a:hover,
body .sb-header .sb-header__menu .sub-menu a:focus-visible { background: var(--sb-header-soft); color: var(--sb-header-menu-link) !important; }
body .sb-header .sb-header__menu .sub-menu .sub-menu { top: -10px; left: calc(100% + 10px); }

.sb-header__actions { display: inline-flex; align-items: center; justify-self: end; gap: 8px; white-space: nowrap; }
.sb-header__icon { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; flex: 0 0 18px; }
.sb-header__icon svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.sb-header__service-link { display: inline-flex; align-items: center; gap: 8px; color: var(--sb-header-text) !important; font-weight: 700; }
.sb-header__service-link:hover { color: var(--sb-header-accent) !important; }
.sb-header__service-link--whatsapp { color: var(--sb-header-accent) !important; }
.sb-header__service-link--compact { min-height: 40px; padding: 6px 8px; border-radius: 5px; }
.sb-header__service-link--compact:hover { background: var(--sb-header-soft); }
.sb-header__cta { flex: 0 0 auto; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border-radius: 5px; background: var(--sb-header-accent); color: #fff !important; font-weight: 800; line-height: 1; transition: filter .18s ease, transform .18s ease; }
.sb-header__cta:hover { filter: brightness(.92); transform: translateY(-1px); }

.sb-header__languages { position: relative; flex: 0 0 auto; }
.sb-header__language-toggle, .sb-header__language-option, .sb-header__menu-toggle, .sb-header__drawer-close { font: inherit; }
.sb-header__language-toggle { appearance: none; border: 1px solid transparent; background: transparent; color: var(--sb-header-text); margin: 0; min-height: 40px; padding: 7px 9px; border-radius: 5px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.sb-header__language-toggle:hover, .sb-header__language-toggle:focus-visible, .sb-header__language-toggle[aria-expanded="true"] { background: var(--sb-header-soft); border-color: var(--sb-header-line); outline: none; }
.sb-header__flag { display: block; width: 24px; height: 16px; object-fit: cover; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.sb-header__language-code { font-size: 12.5px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.sb-header__language-name { font-size: 13px; font-weight: 600; color: var(--sb-header-muted); }
.sb-header__caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.sb-header__language-toggle[aria-expanded="true"] .sb-header__caret { transform: rotate(225deg) translate(-1px,-1px); }
.sb-header__language-panel { position: absolute; top: calc(100% + 9px); right: 0; z-index: 11000; min-width: 174px; padding: 7px; background: var(--sb-header-bg); border: 1px solid var(--sb-header-line); border-radius: 5px; box-shadow: var(--sb-header-shadow); }
.sb-header__language-panel[hidden] { display: none !important; }
.sb-header__language-option { display: grid; grid-template-columns: 24px 28px 1fr; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 3px; color: var(--sb-header-text) !important; white-space: nowrap; transition: background .15s ease; }
.sb-header__language-option:hover, .sb-header__language-option:focus-visible, .sb-header__language-option.is-current { background: var(--sb-header-soft); outline: none; }
.sb-header__language-option.is-current .sb-header__language-code { color: var(--sb-header-accent); }
.sb-header__language-option--compact { display: inline-flex; grid-template-columns: none; width: auto; border: 1px solid var(--sb-header-line); }

.sb-header__menu-toggle { display: none; appearance: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--sb-header-line); border-radius: 5px; background: var(--sb-header-bg); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.sb-header__menu-toggle span { display: block; width: 19px; height: 2px; background: var(--sb-header-text); border-radius: 1px; }
.sb-header__backdrop { display: none; }

/* Divi host cleanup */
body .et-l--header .sb-header-host-section { padding: 0 !important; margin: 0 !important; background: transparent !important; overflow: visible !important; }
body .et-l--header .sb-header-host-row { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; }
body .et-l--header .sb-header-host-column, body .et-l--header .sb-header-host-module { padding: 0 !important; margin: 0 !important; overflow: visible !important; }
body .et-l--header .sb-header-host-module .et_pb_code_inner, body .et-l--header .sb-header-host-module .et_pb_text_inner { padding: 0 !important; margin: 0 !important; }

@media (max-width: 1180px) and (min-width: 1081px) {
	.sb-header__inner { column-gap: 16px; }
	body .sb-header .sb-header__menu { gap: 12px; }
	body .sb-header .sb-header__menu a { font-size: 13px; }
	.sb-header__cta { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 1080px) {
	.sb-header__topbar { display: none; }
	.sb-header__inner { width: min(calc(100% - 32px), 1320px); min-height: 68px; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; }
	.sb-header__logo-image { max-width: 165px; max-height: 44px; }
	.sb-header__actions { grid-column: 2; grid-row: 1; gap: 5px; }
	.sb-header__menu-toggle { display: inline-flex; }
	.sb-header__cta:not(.sb-header__cta--mobile) { display: none; }

	.sb-header .sb-header__nav--desktop { display: none !important; }
	.sb-header__drawer { display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 12020; width: min(420px, 86vw); min-width: 290px; max-width: calc(100vw - 34px); background: var(--sb-header-bg); flex-direction: column; transform: translateX(104%); transition: transform .25s ease; box-shadow: -20px 0 50px rgba(18,27,38,.18); }
	.sb-header.is-menu-open .sb-header__drawer { transform: translateX(0); }
	.sb-header__drawer-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--sb-header-line); }
	.sb-header__brand--drawer { display: inline-flex; }
	.sb-header__brand--drawer .sb-header__logo-image { max-width: 170px; max-height: 44px; }
	.sb-header__drawer-close { appearance: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--sb-header-text); cursor: pointer; border-radius: 5px; }
	.sb-header__drawer-close:hover { background: var(--sb-header-soft); }
	.sb-header__drawer-close svg { width: 23px; height: 23px; fill: currentColor; }
	.sb-header__mobile-nav { display: block !important; min-height: 0; overflow-y: auto; padding: 8px 20px 18px; flex: 1 1 auto; background: var(--sb-header-bg); }
	body .sb-header .sb-header__mobile-menu,
	body .sb-header .sb-header__mobile-submenu { display: block !important; width: 100%; margin: 0 !important; padding: 0 !important; list-style: none !important; }
	body .sb-header .sb-header__mobile-item { display: block !important; width: 100%; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--sb-header-line); }
	body .sb-header .sb-header__mobile-item:last-child { border-bottom: 0; }
	body .sb-header .sb-header__mobile-link { display: flex !important; width: 100%; min-height: 0; padding: 16px 2px !important; align-items: center; justify-content: space-between; color: var(--sb-header-text) !important; font-size: 16px; font-weight: 700; line-height: 1.25; background: transparent !important; }
	body .sb-header .sb-header__mobile-item.is-current > .sb-header__mobile-link { color: var(--sb-header-menu-link) !important; }
	body .sb-header .sb-header__mobile-submenu { padding: 0 0 8px 16px !important; }
	body .sb-header .sb-header__mobile-submenu .sb-header__mobile-item { border-bottom: 0; }
	body .sb-header .sb-header__mobile-submenu .sb-header__mobile-link { padding: 10px 2px !important; font-size: 14px; font-weight: 600; color: var(--sb-header-muted) !important; }
	.sb-header__drawer-bottom { display: grid; gap: 10px; flex: 0 0 auto; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--sb-header-line); background: var(--sb-header-bg); }
	.sb-header__drawer-top-text { padding: 0 2px 6px; color: var(--sb-header-muted); font-size: 12px; font-weight: 700; line-height: 1.4; }
	.sb-header__drawer-bottom .sb-header__service-link { min-height: 44px; justify-content: flex-start; padding: 0 2px; font-size: 15px; }
	.sb-header__drawer-bottom .sb-header__service-text { display: inline; }
	.sb-header__drawer-bottom .sb-header__service-link--secondary { color: var(--sb-header-muted) !important; }
	.sb-header__cta--mobile { width: 100%; min-height: 46px; margin-top: 2px; }
	.sb-header__mobile-languages { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 6px; }
	.sb-header__backdrop { position: fixed; inset: 0; z-index: 12010; border: 0; margin: 0; padding: 0; background: rgba(15,22,33,.48); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
	.sb-header.is-menu-open .sb-header__backdrop { display: block; opacity: 1; visibility: visible; pointer-events: auto; }
}

@media (max-width: 620px) {
	.sb-header__inner { width: calc(100% - 24px); min-height: 64px; column-gap: 5px; }
	.sb-header__brand--text { font-size: 15px; }
	.sb-header__logo-image { max-width: 138px; max-height: 40px; }
	.sb-header__language-toggle { padding: 7px 6px; gap: 5px; }
	.sb-header__language-panel { min-width: 168px; }
	.sb-header__drawer { width: min(420px, 86vw); min-width: 290px; max-width: calc(100vw - 34px); }
	.sb-header__drawer-head { padding-left: 16px; padding-right: 14px; }
	.sb-header__mobile-nav, .sb-header__drawer-bottom { padding-left: 18px; padding-right: 18px; }
}
