/*
 * Site CSS layered on top of the stylesheet exported from Webflow
 * (moreprofesh.css). Interactive bits that used to need Webflow's runtime are
 * plain HTML/CSS here, with a little help from site.js.
 */

/* ---------------------------------------------------------------------------
 * Site-wide custom code (was an embed pasted at the top of every page)
 * ------------------------------------------------------------------------- */

body { font-feature-settings: "ss03", "ss04"; }

:root { font-size: 26px; }

/* Rich text photos & videos */
.rich-text.w-richtext figure.w-richtext-align-fullwidth.w-richtext-figure-type-video {
  padding-bottom: 84.375% !important;
  min-width: 150%;
  margin-left: -25%;
  margin-right: -25%;
}

.rich-text.w-richtext figure.w-richtext-align-fullwidth.w-richtext-figure-type-video > div {
  padding-bottom: 0;
  width: 100%;
  height: 100%;
}

.rich-text.w-richtext figure.w-richtext-align-floatleft {
  margin-right: 0px;
  margin-left: -25%;
  width: calc(75% - 4px);
  max-width: none;
}

.rich-text.w-richtext figure.w-richtext-align-floatright {
  margin-left: 0px;
  margin-right: -25%;
  width: calc(75% - 4px);
  max-width: none;
}

@keyframes mp-fade-in { from { opacity: 0; } }

/* ---------------------------------------------------------------------------
 * Navbar mobile menu. site.js toggles .is-open on the navbar and Webflow's
 * own [data-nav-menu-open] hook on the menu, which moreprofesh.css styles as
 * the dropdown card.
 * ------------------------------------------------------------------------- */

/* Logo: the white ribbon runs off the top of the page. Webflow nudged it up
 * 20px only where the logo links to the current page (.w--current); elsewhere
 * the hover effect (moves it 12px down) exposed the ribbon's top edge. Place
 * it the same way on every page. */
.navbar__logo { margin-top: -20px; position: static; }
@media screen and (max-width: 991px) { .navbar__logo { margin-left: -56px; } }
@media screen and (max-width: 767px) { .navbar__logo { margin-left: -70px; } }
@media screen and (max-width: 479px) { .navbar__logo { margin-left: -55px; } }

/* Position the open card against the whole navbar, not the inner container. */
.w-nav.is-open > .container-1170 { position: static; }

.w-nav-menu[data-nav-menu-open] { animation: mp-nav-menu-in 400ms ease; }

@keyframes mp-nav-menu-in {
  from { opacity: 0; transform: translateY(-2rem); }
}

/* ---------------------------------------------------------------------------
 * Home page closing notice: a quieter version of the hero heading (h2 size,
 * bold instead of black, lines balanced).
 * ------------------------------------------------------------------------- */

.hero__heading.hero__heading--notice {
  font-size: 2.369em;
  font-weight: 700;
  text-wrap: balance;
}
@media screen and (max-width: 479px) {
  .hero__heading.hero__heading--notice { font-size: 1.9em; }
}

/* ---------------------------------------------------------------------------
 * Tabs
 * ------------------------------------------------------------------------- */

.w-tab-pane.w--tab-active { animation: mp-fade-in 300ms ease; }

/* ---------------------------------------------------------------------------
 * Support form: GIF in the "message sent" note (was a gfycat embed).
 * ------------------------------------------------------------------------- */

.contact-form__success-gif { display: block; width: 100%; max-width: 408px; height: auto; }
