/* HappyDivi site header and footer (Theme Builder layouts from tools/lib/site-chrome.php), plus the layout and button rules they share with the site pages. Loaded wherever those layouts are used. */

.hd-site, .hd-header, .hd-foot { --hd-body: #3B4262; --hd-dark: #0E1430; --hd-wrap: 1152px; }
.hd-header, .hd-foot { font-family: var(--hd-font-body); color: var(--hd-ink); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_module { margin-bottom: 0; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_module, :is(.hd-site, .hd-header, .hd-foot) .et_pb_group { row-gap: 0 !important; column-gap: 0 !important; }
:is(.hd-site, .hd-header, .hd-foot) p { padding-bottom: 0; }
:is(.hd-site, .hd-header, .hd-foot) a { color: var(--hd-primary); }
:is(.hd-site, .hd-header, .hd-foot) :focus-visible { outline: 3px solid var(--hd-primary); outline-offset: 3px; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_row.hd-wrap { --horizontal-gap-parent: 20px !important; width: calc(100% - 48px); max-width: var(--hd-wrap); padding: 0; margin: 0 auto; column-gap: 20px; row-gap: 20px; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_row.hd-wrap > .et_pb_column { margin: 0; --horizontal-gap-parent: 20px !important; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_column { display: flex; flex-direction: column; gap: 0; }

/* Buttons (Divi Button module). */
:is(.hd-site, .hd-header, .hd-foot) .et_pb_group.hd-btn-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; row-gap: 12px !important; column-gap: 20px !important; margin-top: 32px; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_group.hd-btn-row--center { justify-content: center; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button_module_wrapper { margin: 0; }
:is(.hd-site, .hd-header, .hd-foot) .hd-btn .et_pb_button, :is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px !important; border: 1px solid transparent; border-radius: var(--hd-radius-pill); font: 700 17px/1.3 var(--hd-font-body); text-align: center; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn::after, :is(.hd-site, .hd-header, .hd-foot) .hd-btn .et_pb_button::after { display: none; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--primary { background: var(--hd-primary); color: var(--hd-white); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--primary:hover { background: var(--hd-primary-hover); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--ghost { border-color: var(--hd-ink); background: var(--hd-white); color: var(--hd-ink); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--ghost:hover { background: var(--hd-ink); color: var(--hd-white); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--yellow { background: var(--hd-yellow); color: var(--hd-ink); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--yellow:hover { background: #FFD766; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--white { background: var(--hd-white); color: var(--hd-ink); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--outline-white { border-color: rgba(255, 255, 255, 0.8); background: transparent; color: var(--hd-white); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--outline-white:hover { background: rgba(255, 255, 255, 0.12); }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--sm { min-height: 46px; padding: 10px 20px !important; font-size: 16px; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button_module_wrapper:has(.hd-btn--block) { align-self: stretch; width: 100%; }
:is(.hd-site, .hd-header, .hd-foot) .et_pb_button.hd-btn--block { display: flex; width: 100% !important; max-width: none; }

/* Header (Theme Builder header layout). */
body .et_pb_section.hd-header { padding: 0; border-bottom: 1px solid var(--hd-line); background: var(--hd-white); }
body .hd-header .et_pb_row.hd-header__row { min-height: 80px; align-items: center; }
body .hd-header__nav { flex-direction: row !important; align-items: center; justify-content: flex-end; gap: 24px !important; }
body .hd-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--hd-font-head); color: var(--hd-ink); text-decoration: none; }
body .hd-brand__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--hd-primary); font: 800 18px/1 var(--hd-font-head); color: var(--hd-white); }
body .et_pb_menu.hd-header__menu { background: transparent; }
body .hd-header__menu .et_pb_menu__wrap { justify-content: flex-end; }
body .hd-header__menu ul.et-menu { border: 0; }
body .hd-header__menu .et-menu > li { padding: 0 12px; }
body .hd-header__menu .et-menu > li > a { padding: 10px 0; font: 500 16px/1.6 var(--hd-font-body); color: var(--hd-ink); }
body .hd-header__menu .et-menu > li > a:hover { color: var(--hd-primary); opacity: 1; }
/* Footer (Theme Builder footer layout). */
body .et_pb_section.hd-foot { padding: 80px 0 32px; background: var(--hd-dark); color: #C9CEE6; }
body .hd-foot .hd-copy p, body .hd-foot p { font-size: 15px; line-height: 1.6; color: #C9CEE6; }
body .hd-foot .hd-brand { color: var(--hd-white); }
body .hd-foot__brand { margin-bottom: 16px; }
body .hd-foot__mail { font-weight: 700; color: var(--hd-white); text-decoration: underline; }
body .hd-foot__title { margin: 0 0 12px; font-weight: 700; color: var(--hd-white) !important; }
body .hd-foot__list { margin: 0; padding: 0; list-style: none; }
body .hd-foot__list li { margin: 0 0 10px; }
body .hd-foot__list a, body .hd-foot__legal a { font-size: 15px; color: #C9CEE6; text-decoration: none; }
body .hd-foot__list a:hover, body .hd-foot__legal a:hover { color: var(--hd-white); text-decoration: underline; }
body .hd-foot__social { margin-top: 20px; }
body .hd-foot__social .et_pb_social_icon a { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: transparent !important; }
body .et_pb_row.hd-foot__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
body .hd-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; }
body .hd-foot__legal-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 980px) {
	body .et_pb_button.hd-header__cta, body .et_pb_button_module_wrapper:has(.hd-header__cta) { display: none; }
	body .hd-header .et_pb_row.hd-header__row { flex-wrap: nowrap !important; }
	body .hd-header .et_pb_column { width: auto !important; flex: 0 0 auto; }
	body .hd-header .hd-header__nav { flex: 1 1 auto; }
}
@media (max-width: 640px) {
	:is(.hd-site, .hd-header, .hd-foot) .et_pb_row.hd-wrap { width: calc(100% - 32px); }
}
