/* brandtlawpa.com additions: appointment popup and form, side contact tab, phone Call / Book row, skip link, counter
   source line, blog search, FAQ focus, and the accessibility contrast fixes (WCAG 2.1 AA). Brand orange #ff6600 is kept
   for large and decorative use; text on orange or orange text uses darker shades that pass contrast. */

/* skip link */
.jb-skip { position: absolute; left: -9999px; top: 0; z-index: 100001; background: #1a1a1a; color: #fff; padding: 10px 16px; font-weight: 700; }
.jb-skip:focus { left: 8px; top: 8px; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid #1a5fb4; outline-offset: 2px;
}

/* contrast: white text on orange buttons, orange phone text on white (live #ff6600 = 2.9:1) */
.et_pb_button_0_tb_header, .et_pb_button_0_tb_footer, .jb-submit, .jb-drawer-tab, .jb-mobile-cta__book { background-color: #b84a00 !important; color: #fff !important; }
.et_pb_text_0_tb_header h3 a, .et_pb_text_0_tb_header h3 span { color: #c24e00 !important; }

/* sticky menu bar (Divi's sticky script is not carried) */
.et_pb_section_1_tb_header.et_pb_sticky_module { position: sticky; top: 0; z-index: 9990; background: #fff; }

/* appointment popup */
html.jb-popup-open { overflow: hidden; }
.jb-popup[hidden] { display: none !important; }
.jb-popup:not([hidden]) { display: flex !important; }
.jb-popup { position: fixed !important; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .65) !important; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px !important; margin: 0 !important; }
.jb-popup__box { position: relative; background: #fff; color: #333; width: 100%; max-width: 640px; border-radius: 6px; padding: 32px 28px 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.jb-popup__close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 32px; line-height: 1; color: #333; cursor: pointer; }
.jb-popup__title { font-size: 26px; color: #1a1a1a; padding: 0 40px 6px 0; }
.jb-popup__lede { font-size: 15px; color: #444; margin-bottom: 18px; }

/* forms */
.jb-form { font-size: 16px; }
.jb-row { display: flex; gap: 16px; flex-wrap: wrap; }
.jb-row .jb-field { flex: 1 1 220px; }
.jb-field { margin: 0 0 16px; border: 0; padding: 0; }
.jb-field label, .jb-field legend { display: block; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; font-size: 15px; }
.jb-req { font-weight: 400; color: #555; font-size: 13px; }
.jb-field input, .jb-field textarea { width: 100%; padding: 12px; border: 1px solid #767676; border-radius: 4px; font-size: 16px; color: #1a1a1a; background: #fff; }
.jb-choices label { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; margin: 0; }
.jb-choices input { width: 20px; height: 20px; }
.jb-note { font-size: 13px; color: #555; }
.jb-submit { display: inline-block; border: 0 !important; border-radius: 5px; padding: 14px 26px !important; font-size: 16px !important; font-weight: 700; cursor: pointer; min-height: 44px; }
.jb-submit:after { display: none !important; }
.jb-form-msg { margin-top: 12px; font-weight: 700; }
.jb-form-msg--ok { color: #1e6b2f; }
.jb-form-msg--err { color: #a40000; }

/* side contact tab (desktop) */
.jb-drawer-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; z-index: 9995; padding: 16px 10px; font-weight: 700; font-size: 14px; letter-spacing: .03em; border-radius: 0 6px 6px 0; text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
/* phone: pinned Call / Book row */
.jb-mobile-cta { display: none; }
@media (max-width: 767px) {
  .jb-drawer-tab { display: none; }
  .jb-mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995; box-shadow: 0 -2px 10px rgba(0, 0, 0, .2); }
  .jb-mobile-cta a { flex: 1; text-align: center; padding: 14px 8px; min-height: 48px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .jb-mobile-cta__call { background: #1a1a1a; color: #fff !important; }
  body { padding-bottom: 56px; }
  /* keep the UserWay button above the pinned Call / Book row */
  .uwy .userway_buttons_wrapper, .uwy.userway_p3 .userway_buttons_wrapper, .uwy.userway_p4 .userway_buttons_wrapper { bottom: 70px !important; top: auto !important; }
}

/* counters source line */
.jb-counter-source { text-align: center; font-size: 13px; color: #444; margin-top: 10px; }
.jb-counter-source a { color: #1a5fb4; text-decoration: underline; }

/* blog search */
.jb-search-form { margin: 10px 0 24px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jb-search-form input { padding: 10px; border: 1px solid #767676; font-size: 16px; min-width: 240px; }
#jb-search-results article { margin-bottom: 26px; }

/* FAQ accordion */
.wpt-faq-question[role="button"] { cursor: pointer; }
.wpt-faq-answer[hidden] { display: none !important; }
.wpt-faq-item[data-wpt-faq-state="open"] .wpt-faq-answer { display: block; }

/* phones: smaller copies of the three large home backgrounds (tools/migration/slim-heroes.py) */
@media (max-width: 767px) {
  div.et_pb_section.et_pb_section_0 { background-image: linear-gradient(#ffc93b40 0%, #00b3bd63 82%, #3ec99f87 100%), url(/img/2022/10/gated-community-association-828.webp) !important; }
  .et_pb_row_5, .et_pb_column_18 { background-image: url(/img/2022/10/hoa-rule-enforcement-828.webp) !important; }
  div.et_pb_section.et_pb_section_5 { background-image: url(/img/2022/10/hoa-case-study-828.webp) !important; }
}
