/* =========================================================
   Theme base layer: page structure, header, menu and the
   builder-content defaults the pages were designed against.
   The visual design itself is in design.css.
   ========================================================= */
:root {
	--color-1: rgb(241, 81, 82);
	--color-2: rgb(58, 46, 57);
	--color-neutral: rgb(247, 244, 234);
}
html { height: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { height: auto; max-width: 100%; }
:focus { outline: 0; }
:focus-visible { outline: 2px solid #16b8a6; outline-offset: 2px; }

.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; position: absolute !important; }
.screen-reader-text:focus { background: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6); color: #333; display: block; font-size: 1rem; font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; clip: auto !important; }

h1 { font-size: 44px; } h2, .h2 { font-size: 36px; } h3 { font-size: 29px; } h4 { font-size: 22px; } h5 { font-size: 17px; }
h1, h2, .h2, h3, h4, h5 { line-height: 1.1; overflow-wrap: break-word; }

/* ---------- Layout ---------- */
.site-content { display: flex; flex-direction: column; flex: 1 0 auto; z-index: 1; font-size: 16px; line-height: 1.8; }
.main-wrapper { display: flex; flex-flow: wrap; flex: 1 1 0%; }
.main-wrapper.full-width { flex: 1 0 auto; width: 100%; }
.main { flex: 1 0 100%; max-width: 100%; padding: 0 20px; }
.main a:not(.btn) { color: var(--color-1); text-decoration: none; }
.main a:not(.btn):hover, .main a:not(.btn):focus { color: rgb(241, 80, 80); text-decoration: underline; }
.article-wrapper { padding-top: 15px; }
.entry-content::before, .entry-content::after, .site-content::before, .site-content::after,
.site-header::before, .site-header::after, .site-footer::before, .site-footer::after { content: ""; display: table; table-layout: fixed; }
.entry-content::after, .site-content::after, .site-footer::after, .site-header::after { clear: both; }

/* Builder sections (Post and Page Builder markup) */
.row { margin: auto; }
.row::before, .row::after { display: inline-block; }
.entry-content .row { margin-left: -15px; margin-right: -15px; min-height: 30px; }
.entry-content [class*="col-"] { min-height: 30px; }
.entry-content .boldgrid-section:first-child { margin-top: -15px; }
#main-wrapper.full-width .main .entry-content .boldgrid-section { display: flex; flex-direction: column; justify-content: center; align-items: center; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
#main-wrapper.full-width .main .entry-content .row { margin-left: 0; margin-right: 0; }
#main-wrapper.full-width .main .entry-content .container > .row:not(.bg-editor-hr-wrap) { margin-left: 20px; margin-right: 20px; }
@media (max-width: 991px) { #main-wrapper.full-width .main .entry-content .container > .row:not(.bg-editor-hr-wrap) { margin-left: 0; margin-right: 0; } }

/* Simple list layout for posts / search / 404 */
.main > .container { padding-top: 50px; padding-bottom: 70px; }

/* ---------- Page header ---------- */
.page-header { display: block; margin: 0; width: 100%; max-width: 100%; padding-bottom: 0; border-bottom: 0; text-align: center; }
.page-header-wrapper.full-width { width: 100%; }
.page-header-wrapper .page-header .container { padding: 2.8rem 45px; }
.page-header-wrapper .entry-title, .page-header-wrapper .page-title { margin: 0; padding: 0; }
.page-header-hidden .page-header-wrapper { display: none; }

/* ---------- Header ---------- */
.site-header { z-index: 2; }
.header { position: relative; }
#masthead { display: flex; flex-direction: column; width: 100%; background: #fff; }
#masthead > .boldgrid-section { display: flex; flex-direction: column; justify-content: center; align-items: center; }
#masthead > .boldgrid-section > .container { padding-left: 15px; padding-right: 15px; }
#masthead > .boldgrid-section .row { display: flex; flex-wrap: wrap; }
#masthead .row > div:first-child { padding-right: 0; margin-left: 15px; margin-right: -15px; }
#masthead .row > div:last-child { padding-left: 0; margin-right: 15px; margin-left: -15px; }
.site-branding { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.custom-logo-link { margin-top: 15px; margin-bottom: 15px; }
.site-title, .site-description { margin: 0; }

/* ---------- Main menu ---------- */
.bgtfw-menu-wrap { display: flex; align-items: center; justify-content: flex-end; width: 100%; height: 100%; }
#main-menu-state { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.sm { box-sizing: border-box; position: relative; z-index: 201; list-style: none; margin: 0; padding: 0; line-height: normal; text-align: left; }
.sm * { box-sizing: inherit; }
#main-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
#main-menu li { list-style: none; margin: 0; padding: 0; position: relative; }
#main-menu li > a { display: inline-block; width: 100%; padding: 13px 20px; text-decoration: none; white-space: nowrap; }
#main-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(10, 24, 56, .35); }
#main-menu li:hover > .sub-menu, #main-menu li:focus-within > .sub-menu { display: block; }

.main-menu-btn { display: none; cursor: pointer; padding: 10px; margin: 0; -webkit-tap-highlight-color: transparent; }
.hamburger { display: inline-block; }
.hamburger-box { width: 30px; height: 22px; display: inline-block; position: relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { width: 30px; height: 3px; border-radius: 3px; position: absolute; background-color: #0a1838; transition: transform .3s ease, opacity .2s ease, top .3s ease, bottom .3s ease; }
.hamburger-inner { top: 50%; margin-top: -1.5px; }
.hamburger-inner::before, .hamburger-inner::after { content: ""; display: block; }
.hamburger-inner::before { top: -9px; }
.hamburger-inner::after { bottom: -9px; }
#main-menu-state:checked + .main-menu-btn .hamburger-inner { transform: rotate(45deg); }
#main-menu-state:checked + .main-menu-btn .hamburger-inner::before { top: 0; opacity: 0; }
#main-menu-state:checked + .main-menu-btn .hamburger-inner::after { bottom: 0; transform: rotate(-90deg); }
#main-menu-state:focus-visible + .main-menu-btn { outline: 2px solid #16b8a6; border-radius: 8px; }

@media (max-width: 991px) {
	.bgtfw-menu-wrap { display: block; text-align: right; }
	.main-menu-btn { display: inline-flex; }
	#main-menu { display: none; text-align: left; }
	#main-menu-state:checked ~ #main-menu { display: block; }
	#main-menu .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; }
	#masthead .row > div { margin-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 768px) {
	#masthead .boldgrid-section .container { width: 100%; padding-left: 30px; padding-right: 30px; }
	#masthead .boldgrid-section .container .row > div.col-xs-12 { padding-left: 0; padding-right: 0; }
	#masthead .boldgrid-section .container .row > div.col-xs-12 .site-branding { padding: 0 15px; }
}

/* ---------- Forms ---------- */
input, textarea, select { font-size: 16px; line-height: 1.5; border-radius: 4px; border: 1px solid #dfdfdf; padding: 12px; box-sizing: border-box; }
input[type="checkbox"], input[type="radio"] { width: auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; }

/* Match the previous header/footer metrics exactly */
#main-menu li > a { line-height: 1.5; }
@media (min-width: 992px) { #main-menu { margin-left: -15px; margin-right: -15px; } }
#colophon .bgtfw-footer { min-height: 23px; }

/* WordPress galleries and builder resets (as before) */
.gallery { margin-bottom: 1.5em; }
.gallery-item { display: inline-block; text-align: center; vertical-align: top; width: 100%; }
.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-columns-5 .gallery-item { max-width: 20%; }
.gallery-columns-6 .gallery-item { max-width: 16.66%; }
.gallery-columns-7 .gallery-item { max-width: 14.28%; }
.gallery-columns-8 .gallery-item { max-width: 12.5%; }
.gallery-columns-9 .gallery-item { max-width: 11.11%; }
.gallery-caption { display: block; }
.boldgrid-section .row .mod-reset { margin: 0; padding: 0; }
