/* Divi icon font (toggle arrows, social icons, button chevrons) ---------- */
@font-face {
  font-family: ETmodules;
  font-display: block;
  src: url(/assets/fonts/modules.woff) format("woff"),
       url(/assets/fonts/modules.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* SISU Behavioral Health - static overrides layered on the extracted Divi CSS. */

/* Accessibility -------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: #02126d;
  color: #fff;
  font-family: 'Work Sans', Helvetica, Arial, sans-serif;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible { outline: 3px solid #2ea3f2; outline-offset: 2px; }

/* Scroll reveal -------------------------------------------------------- */
.et_animated { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.et_animated.et-animated { opacity: 1; transform: none; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .et_animated { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Sticky header -------------------------------------------------------- */
.et_pb_sticky_module { position: sticky; top: 0; z-index: 999; }
.et_pb_sticky_module.is-stuck { box-shadow: 0 2px 18px rgba(0, 0, 0, .25); }

/* Mobile menu ---------------------------------------------------------- */
.mobile_menu_bar { cursor: pointer; }
.et_mobile_menu { display: none; }
.mobile_nav.opened .et_mobile_menu { display: block; }
@media (min-width: 981px) {
  .et_mobile_nav_menu { display: none; }
}
@media (max-width: 980px) {
  .et_pb_menu__menu > nav { display: none; }
  .et_mobile_nav_menu { display: block; float: right; }
  .et_mobile_menu {
    position: absolute;
    left: 0;
    right: 0;
    padding: 5%;
    z-index: 9999;
    border-top: 3px solid #2ea3f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    text-align: left;
  }
  .et_mobile_menu li a { display: block; padding: 10px 5%; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .et_mobile_menu ul { padding-left: 12px; }
}

/* Newsletter signup (was a Formidable form; now backend-free) ----------- */
.sisu-signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sisu-signup__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sisu-signup__input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 29px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: 400 15px/1.4 'Work Sans', Helvetica, Arial, sans-serif;
}
.sisu-signup__input::placeholder { color: rgba(255, 255, 255, .65); }
.sisu-signup__btn {
  padding: 13px 32px;
  border: 0;
  border-radius: 29px;
  background: #2ea3f2;
  color: #fff;
  font: 500 15px/1.4 'Work Sans', Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: background .3s ease;
}
.sisu-signup__btn:hover { background: #1d89d1; }

/* Housekeeping --------------------------------------------------------- */
img { max-width: 100%; height: auto; }
.et_pb_toggle_title { cursor: pointer; }
#page-container { overflow-x: hidden; }

/* Signup form: honeypot + status message */
.sisu-signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sisu-signup__msg { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 14px; color: #fff; }
.sisu-signup__msg.is-error { color: #ffd0d0; }

/* Desktop header: logo | menu | button on a single row, nothing wraps ---- */
@media (min-width: 981px) {
  .et_pb_row_1_tb_header {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
  }
  .et_pb_row_1_tb_header::after { display: none; }
  .et_pb_row_1_tb_header > .et_pb_column {
    float: none;
    margin: 0;
    width: auto;
  }
  .et_pb_column_2_tb_header { flex: 0 0 auto; width: clamp(180px, 20vw, 300px); }
  .et_pb_column_3_tb_header {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.5vw, 28px);
  }
  .et_pb_column_3_tb_header .et_pb_menu_0_tb_header {
    flex: 0 1 auto;
    margin: 0 !important;
    padding-right: 0;
  }
  .et_pb_column_3_tb_header .et_pb_menu__wrap,
  .et_pb_column_3_tb_header .et_pb_menu__menu,
  .et_pb_column_3_tb_header .et-menu-nav { display: block; }
  .et_pb_column_3_tb_header .et-menu { white-space: nowrap; }
  .et_pb_column_3_tb_header .et-menu li { white-space: nowrap; }
  .ah-v33-header-v1-menu.et_pb_menu .et-menu > li {
    padding-left: clamp(6px, 0.9vw, 17px);
    padding-right: clamp(6px, 0.9vw, 17px);
  }
  .et_pb_column_3_tb_header .et_pb_button_0_tb_header_wrapper {
    flex: 0 0 auto;
    margin: 0 !important;
  }
  .et_pb_button_0_tb_header { white-space: nowrap; }
}

/* Narrower desktops / landscape tablets: compact logo, menu and button */
@media (min-width: 981px) and (max-width: 1249px) {
  .et_pb_row_1_tb_header.et_pb_row { padding-left: 20px !important; padding-right: 20px !important; }
  .et_pb_column_2_tb_header { width: 150px; }
  .et_pb_menu_0_tb_header.et_pb_menu ul li a { font-size: 14px; }
  .ah-v33-header-v1-menu.et_pb_menu .et-menu > li { padding-left: 6px; padding-right: 6px; }
  body #page-container .et_pb_section .et_pb_button_0_tb_header { font-size: 14px; }
  .et_pb_button_0_tb_header_wrapper .et_pb_button_0_tb_header,
  .et_pb_button_0_tb_header_wrapper .et_pb_button_0_tb_header:hover { padding-left: 20px !important; padding-right: 20px !important; }
}

/* Home hero tagline: keep "Integrative Psychiatry in Inglewood | SISU Health" on one line */
@media (min-width: 981px) {
  .et_pb_text_0 h1 { font-size: 17px; letter-spacing: 2px; white-space: nowrap; }
}
@media (min-width: 981px) and (max-width: 1249px) {
  .et_pb_text_0 h1 { font-size: 15px; letter-spacing: 1px; }
}
