/* Roof For Less: additions to the ported Divi look (sticky header, footer bar, sitemap page, forms).
   Source: tools/assets/site.css, copied by tools/roof_for_less_qa_fixes.py. Bump ASSET_V there on any change. */

html { scroll-padding-top: calc(var(--header-h, 80px) + 16px); }

/* skip link, shown on keyboard focus only */
.rfl-skip { position: absolute; left: 8px; top: -80px; z-index: 100001; background: #fff; color: #000; padding: 12px 18px;
  font: 600 15px/1.2 "Open Sans", Arial, sans-serif; border: 2px solid #2ea3f2; text-decoration: none; }
.rfl-skip:focus { top: 8px; }

/* menu button: phones and tablets only (Divi's own breakpoint, 980 px) */
.rfl-menu-btn { display: none; }

@media (max-width: 980px) {
  /* pinned at every width (Divi let the phone header scroll away) */
  .et_fixed_nav #main-header, #main-header { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; }
  #page-container { padding-top: 80px !important; }
  #main-header.is-scrolled { box-shadow: 0 0 7px rgba(0, 0, 0, .1); }

  /* one row: logo left, 48x48 menu button right */
  #main-header .et_menu_container { display: flex; align-items: center; justify-content: space-between; height: 80px;
    transition: height .25s ease; }
  #main-header .et_menu_container::before, #main-header .et_menu_container::after { content: none; display: none; }
  #main-header .logo_container { position: static; display: flex; align-items: center; flex: 0 0 auto; width: auto; height: auto; }
  #main-header .logo_helper { display: none; }
  #main-header #logo { height: 43px !important; max-height: none !important; width: auto !important; max-width: none !important;
    transition: height .25s ease; }
  #main-header #et-top-navigation { float: none; padding: 0 !important; display: flex; align-items: center; }
  #main-header.is-compact .et_menu_container { height: 64px; }
  #main-header.is-compact #logo { height: 34px !important; }

  .js .rfl-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    margin: 0 -8px 0 0; padding: 0; border: 0; background: transparent; cursor: pointer; color: #2ea3f2; }
  .rfl-menu-btn:focus-visible { outline: 2px solid #2ea3f2; outline-offset: 2px; }
  .rfl-bars, .rfl-bars span, .rfl-bars::before, .rfl-bars::after { display: block; width: 26px; height: 3px; border-radius: 1px;
    background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .rfl-bars { position: relative; background: transparent; }
  .rfl-bars span { position: absolute; top: 0; left: 0; }
  .rfl-bars::before, .rfl-bars::after { content: ""; position: absolute; left: 0; }
  .rfl-bars::before { top: -8px; }
  .rfl-bars::after { top: 8px; }
  .rfl-open .rfl-bars span { opacity: 0; }
  .rfl-open .rfl-bars::before { transform: translateY(8px) rotate(45deg); }
  .rfl-open .rfl-bars::after { transform: translateY(-8px) rotate(-45deg); }

  /* the nav: collapsed until the button is tapped (with JavaScript off it stays visible under the logo) */
  .js #main-header #top-menu-nav { display: none; }
  .js #main-header.rfl-open #top-menu-nav { display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 3px solid #2ea3f2; box-shadow: 0 2px 5px rgba(0, 0, 0, .1); padding: 2% 5%;
    max-height: calc(100dvh - var(--header-h, 80px)); overflow-y: auto; }
  #main-header.rfl-open .et_menu_container { position: static; }
  #main-header.rfl-open #top-menu-nav, #main-header.rfl-open #top-menu { float: none; width: 100%; }
  #main-header.rfl-open #top-menu { display: block; }
  #main-header.rfl-open #top-menu li { display: block; padding: 0; margin: 0; }
  #main-header.rfl-open #top-menu li a { display: flex; align-items: center; min-height: 48px; padding: 0 5%;
    border-bottom: 1px solid rgba(0, 0, 0, .03); font-weight: 600; color: rgba(0, 0, 0, .6); }
  #main-header.rfl-open #top-menu li:last-child a { border-bottom: 0; }
  #main-header.rfl-open #top-menu li a:hover { background: rgba(0, 0, 0, .03); opacity: 1; }
  html:not(.js) #main-header { position: relative !important; }
  html:not(.js) #page-container { padding-top: 0 !important; }
  html:not(.js) #main-header .et_menu_container { height: auto; flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) #main-header #et-top-navigation { width: 100%; }
  html:not(.js) #main-header #top-menu-nav, html:not(.js) #main-header #top-menu { display: block; float: none; }
  html:not(.js) #main-header #top-menu li { padding: 0 18px 0 0; }
  html:not(.js) #main-header #top-menu a { display: inline-block; padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  #main-header, #main-header *, .rfl-bars, .rfl-bars::before, .rfl-bars::after { transition: none !important; }
}

/* the call-to-action band heading was a second H1; same look as an H2 */
.et_pb_text .rfl-cta-h { font-family: "Josefin Sans", Helvetica, Arial, Lucida, sans-serif; font-weight: 700; font-size: 90px;
  line-height: 1.4em; color: #fff; padding-bottom: 10px; }
.et_pb_text .rfl-cta-shadow { text-shadow: 0 .1em .1em rgba(0, 0, 0, .4); }
@media (max-width: 980px) { .et_pb_text .rfl-cta-h { font-size: 50px; } }
@media (max-width: 767px) { .et_pb_text .rfl-cta-h { font-size: 32px; } }

/* footer bar (standing decision): one line, credit on the right; stacked and left-aligned at 980 px and below */
.rfl-footbar { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.rfl-footbar__right { text-align: right; }
@media (max-width: 980px) {
  .rfl-footbar { flex-direction: column; align-items: flex-start; }
  .rfl-footbar__right { text-align: left; }
}

/* HTML sitemap page */
.rfl-sitemap__lead { margin-bottom: 1.5em; }
.rfl-sitemap h2 { margin-top: 1.2em; }
.et_pb_text_inner ul.rfl-sitemap__list { list-style: none; padding: 0 0 10px; }
.rfl-sitemap__list li { padding: 6px 0; }
.et_pb_text_inner ul.rfl-sitemap__sub { list-style: none; padding: 6px 0 0 24px; }
.rfl-sitemap__list a { font-weight: 600; }
.rfl-sitemap__desc, .rfl-sitemap__contact { display: block; }
@media (min-width: 52rem) {
  .et_pb_text_inner ul.rfl-sitemap__list { columns: 2; column-gap: 48px; }
  .rfl-sitemap__list li { break-inside: avoid; }
}

/* forms */
.rfl-turnstile { margin: 12px 0; min-height: 65px; }
.rfl-form-error { margin: 12px 0; padding: 10px 14px; background: #a1001a; color: #fff; font-weight: 600; }
.rfl-thanks { color: #fff; font-size: 18px; }
.rfl-thanks:focus, .gform_confirmation_message:focus { outline: none; }

/* 404 */
.rfl-404 { max-width: 760px; margin: 80px auto; padding: 0 20px; text-align: center; }

/* links inside running text are underlined so they do not rely on colour alone */
.et_pb_text_inner p a, .et_pb_text_inner li a, .et_pb_blurb_description p a, .et_pb_testimonial_description a { text-decoration: underline; }
.rfl-404 a { text-decoration: underline; }

/* links on the dark photo bands keep the site's light blue (the darker link blue is for white backgrounds) */
.et_pb_bg_layout_dark .et_pb_text_inner a:not(.et_pb_button), #page-container a.rfl-link-on-dark { color: #5cb9f6 !important; }
