/* Meat Smoke Fire: header, mobile menu and callback styles. Loaded from the Divi-Child theme. */

@media (max-width: 980px) {
  /* Big, easy-to-scan top-level rows */
  .et_mobile_menu { max-height: 80vh; overflow-y: auto; padding: 0 !important; border-top: 3px solid #14294a !important; }
  .et_mobile_menu > li { position: relative; border-bottom: 1px solid #e4e0d8; }
  .et_mobile_menu > li > a { font-weight: 700 !important; font-size: 17px !important; color: #14294a !important; min-height: 56px; display: flex !important; align-items: center; padding: 8px 64px 8px 16px !important; background: transparent !important; }

  /* Hide each section until it is opened */
  /* Sections slide open and closed (height is set by the script below) */
  .et_mobile_menu > li.menu-item-has-children > ul.sub-menu { display: block !important; overflow: hidden !important; max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; background: #eaf3fb; visibility: hidden; transition: max-height .3s ease, padding .3s ease, visibility 0s linear .3s; }
  .et_mobile_menu > li.msf-open > ul.sub-menu { padding-top: 4px !important; padding-bottom: 12px !important; visibility: visible; transition: max-height .3s ease, padding .3s ease, visibility 0s; }
  @media (prefers-reduced-motion: reduce) { .et_mobile_menu > li.menu-item-has-children > ul.sub-menu, .et_mobile_menu .msf-toggle::after { transition: none !important; } }

  /* Group headings (Choose your Egg, Cook, Tools...) */
  .et_mobile_menu li.msf-group > a { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: #5f5a52 !important; padding: 14px 16px 4px !important; }
  .et_mobile_menu li.msf-group > ul.sub-menu { display: block !important; padding: 0 !important; }
  .et_mobile_menu li.msf-group > ul.sub-menu > li > a { font-size: 15px !important; color: #161616 !important; min-height: 44px; display: flex !important; align-items: center; padding: 6px 16px 6px 24px !important; }

  /* "View all ..." link at the top of each open section */
  .et_mobile_menu li.msf-viewall > a { font-size: 15px !important; font-weight: 700 !important; color: #2f6fb5 !important; min-height: 44px; display: flex !important; align-items: center; padding: 6px 16px !important; }
  /* The expand/collapse arrow button */
  .et_mobile_menu .msf-toggle { position: absolute; top: 4px; right: 4px; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
  .et_mobile_menu .msf-toggle::after { content: ""; display: block; margin: -4px auto 0; width: 10px; height: 10px; border-right: 2px solid #14294a; border-bottom: 2px solid #14294a; transform: rotate(45deg); transition: transform .2s; }
  .et_mobile_menu li.msf-open > .msf-toggle::after { transform: rotate(-135deg); margin-top: 4px; }
}

/* Desktop mega menu: group headings as small labels, navy hover */
@media (min-width: 981px) {
  .et_pb_menu li.mega-menu li.msf-group > a { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: #5f5a52 !important; }
  .et_pb_menu li.mega-menu li.msf-group li a:hover { color: #2f6fb5 !important; }
  .et_pb_menu .et-menu > li.mega-menu > a:hover { box-shadow: inset 0 -3px 0 #2f6fb5; }
}

/* ---------- Header layout ---------- */
/* Divi 5 puts a 60px gap between rows in a section - remove it in the header */
.et-l--header .et_pb_section { row-gap: 0 !important; gap: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
@media (min-width: 981px) {
  .et-l--header .et_pb_row { width: 90% !important; max-width: 1280px !important; }
  .et-l--header .et_pb_row:has(.et_pb_menu) { padding: 14px 0 !important; }
  /* keep logo, menu and icons on one line */
  .et-l--header .et_pb_menu__wrap, .et-l--header .et-menu { flex-wrap: nowrap !important; }
  .et-l--header .et-menu > li > a { white-space: nowrap; }
  .et-l--header .et_pb_menu__logo-wrap, .et-l--header .et_pb_menu__logo { flex-shrink: 0 !important; }
}
@media (min-width: 981px) and (max-width: 1199px) {
  .et-l--header .et-menu > li { padding-left: 6px !important; padding-right: 6px !important; }
  .et-l--header .et-menu > li > a { font-size: 13px !important; }
  .et-l--header .et_pb_menu__logo img { max-height: 30px; }
}
@media (max-width: 980px) {
  .et-l--header .et_pb_row:has(.et_pb_menu) { padding: 8px 0 !important; }
}

/* ---------- Top strip (desktop) ---------- */
.et-l--header .et_pb_row:has(.msf-strip) { width: 100% !important; max-width: none !important; padding: 0 !important; background: #14294a; }
.et-l--header .et_pb_row:has(.msf-strip) .et_pb_column,
.et-l--header .et_pb_row:has(.msf-strip) .et_pb_module { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.msf-strip { color: #ffffff; font-size: 13px; }
.msf-strip p { margin: 0; padding: 0; }
.msf-strip__inner { width: 90%; max-width: 1280px; margin: 0 auto; padding: 0; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.msf-strip a { color: #ffffff !important; text-decoration: none; }
.msf-strip a:hover { text-decoration: underline; }
.msf-strip__call { font-weight: 700; }
.msf-strip__spacer { flex: 1 1 auto; }

/* ---------- Search bar (desktop + mobile) ---------- */
.msf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msf-search { position: relative; max-width: 620px; margin: 0 auto 10px; }
.msf-search p { margin: 0; padding: 0; }
.msf-search input[type="search"] { width: 100%; box-sizing: border-box; height: 46px; border: 1.5px solid #cfd9e6; border-radius: 23px; background: #eaf3fb; padding: 0 52px 0 18px; font-size: 16px; color: #161616; -webkit-appearance: none; }
.msf-search input[type="search"]:focus { outline: 2px solid #2f6fb5; outline-offset: 1px; background: #ffffff; }
.msf-search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 19px; background: #14294a; color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 980px) { .msf-search { margin: 0 auto 8px; } }

/* ---------- Help panel inside the mobile menu ---------- */
@media (max-width: 980px) {
  .et_mobile_menu li.msf-help { border-bottom: 0 !important; padding: 16px !important; background: #14294a; }
  .et_mobile_menu li.msf-help p { color: #d6e4f2; margin: 0 0 10px; font-size: 14px; }
  .et_mobile_menu li.msf-help a { display: flex !important; align-items: center; justify-content: center; min-height: 48px; border-radius: 24px; font-weight: 700 !important; margin-bottom: 10px; padding: 0 16px !important; }
  .et_mobile_menu li.msf-help a.msf-help__call { background: #8ec1ea !important; color: #14294a !important; }
  .et_mobile_menu li.msf-help a.msf-help__callback { border: 1.5px solid #ffffff; color: #ffffff !important; }
  .et_mobile_menu li.msf-help a.msf-help__small { min-height: 40px; border-radius: 0; margin: 0; justify-content: flex-start; color: #ffffff !important; font-weight: 400 !important; padding: 0 !important; }
}

.et-l--header .et_pb_contact_form_container { display: none !important; }
.msf-cb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 16px; }
.msf-cb.is-open { display: flex; }
.msf-cb__backdrop { position: absolute; inset: 0; background: rgba(20, 41, 74, 0.6); }
.msf-cb__card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #ffffff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); font-family: 'Open Sans', system-ui, sans-serif; color: #161616; }
.msf-cb__head { background: #14294a; color: #ffffff; padding: 22px 56px 20px 24px; border-radius: 16px 16px 0 0; }
.msf-cb__kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8ec1ea; }
.msf-cb__title { margin: 0; padding: 0; font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.2; color: #ffffff; text-transform: none; letter-spacing: 0; }
.msf-cb__intro { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #d6e4f2; }
.msf-cb__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: #ffffff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.msf-cb__close:hover, .msf-cb__close:focus-visible { background: rgba(255,255,255,0.12); }
.msf-cb__body { padding: 20px 24px 24px; }
.msf-cb__body .et_pb_contact_form_container { margin: 0 !important; padding: 0 !important; width: 100% !important; background: none !important; }
.msf-cb__body .et_pb_contact_main_title { display: none !important; }
.msf-cb__body .et_pb_contact_form { display: flex; flex-direction: column; gap: 14px; margin: 0 !important; }
.msf-cb__body .et_pb_contact_field { width: 100% !important; margin: 0 !important; padding: 0 !important; flex: none !important; }
.msf-cb__body .et_pb_contact_form_label,
.msf-cb__body .et_pb_contact_field_options_title { display: block !important; position: static !important; margin: 0 0 6px !important; font-size: 14px; font-weight: 700; color: #14294a; }
.msf-cb__body .et_pb_contact_field[data-type="checkbox"] > .et_pb_contact_form_label { display: none !important; }
.msf-cb__body input.input[type="text"], .msf-cb__body input.input[type="tel"] { width: 100% !important; box-sizing: border-box; height: 48px; padding: 0 14px !important; border: 1.5px solid #cfd9e6 !important; border-radius: 10px !important; background: #eaf3fb !important; font-size: 16px !important; color: #161616 !important; }
.msf-cb__body input.input:focus { outline: 2px solid #2f6fb5; outline-offset: 1px; background: #ffffff !important; }
.msf-cb__body .et_pb_contact_field_options_list { display: flex; flex-wrap: wrap; gap: 8px; }
.msf-cb__body .et_pb_contact_field_checkbox { margin: 0 !important; }
.msf-cb__body .et_pb_contact_field_checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.msf-cb__body .et_pb_contact_field_checkbox label { display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 18px !important; border: 1.5px solid #14294a; border-radius: 22px; font-size: 15px; font-weight: 600; color: #14294a !important; cursor: pointer; background: #ffffff; }
.msf-cb__body .et_pb_contact_field_checkbox label i { display: none !important; }
.msf-cb__body .et_pb_contact_field_checkbox input:checked + label { background: #14294a; color: #ffffff !important; }
.msf-cb__body .et_pb_contact_field_checkbox input:focus-visible + label { outline: 2px solid #2f6fb5; outline-offset: 2px; }
.msf-cb__body .et_pb_contact_field[data-id="page_name"], .msf-cb__body .et_pb_contact_field[data-id="page_url"] { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.msf-cb__body .et_contact_bottom_container { display: block !important; float: none !important; margin: 4px 0 0 !important; width: 100%; }
.msf-cb__body .et_pb_contact_submit, .msf-cb__body .et_pb_button { width: 100% !important; min-height: 50px; margin: 0 !important; border: 0 !important; border-radius: 25px !important; background: #8ec1ea !important; color: #14294a !important; font-family: 'Raleway', sans-serif !important; font-weight: 800 !important; font-size: 17px !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }
.msf-cb__body .et_pb_contact_submit:hover { background: #7db6e6 !important; }
.msf-cb__body .et_pb_contact_submit::after { display: none !important; }
.msf-cb__body .et-pb-contact-message { margin: 0 0 8px; font-size: 15px; color: #14294a; }
.msf-cb__body .et-pb-contact-message ul { margin: 6px 0 0 18px; color: #b3261e; }
.msf-cb__alt { margin: 16px 0 0; font-size: 14px; text-align: center; color: #5f5a52; }
.msf-cb__alt a { color: #14294a !important; font-weight: 700; }
body.msf-cb-lock { overflow: hidden; }

/* Hide the "came from" fields from visitors; they are still sent with the form */
.et_pb_contact_field[data-id="came_from"], .et_pb_contact_field[data-id="came_from_url"] { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
