/* Hand-written overrides for the Webflow stylesheet. Every page loads this file after it.
   Each block says what it fixes. improve.py makes the HTML edits that go with it. */

/* ---------- Keyboard ---------- */

/* One focus ring for every control: navy with a white ring inside it, so that one of the two
   shows on white, cyan, tan and navy. The Webflow CSS removed the outline on the menu controls,
   and the browser's own blue ring was close to invisible on the navy surfaces. */
:focus-visible {
  outline: 2px solid #1e2d68 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff !important;
}
/* These sit in boxes that clip, so their ring is drawn on the inside. */
.w-dropdown-toggle:focus-visible,
.w-dropdown-link:focus-visible,
.w-nav-button:focus-visible,
.w-nav-overlay .w-nav-link:focus-visible,
.slider_arrow:focus-visible {
  outline-offset: -2px !important;
  box-shadow: inset 0 0 0 4px #fff !important;
}
/* The accordion row on /about clips 4px of its toggle, so this ring sits further in. */
.accordion-toggle:focus-visible {
  outline-offset: -6px !important;
}

/* A focused control must stay clear of the sticky navbar (87px at its tallest) and of the
   bottom edge of the screen. */
html {
  scroll-padding-top: 96px;
  scroll-padding-bottom: 8px;
}
/* The skip link jumps to <main>. Webflow's script does that jump and puts the top of main at
   the top of the screen, under the sticky navbar. So the box of main starts 96px higher and
   its content stays where it was: the jump then lands on the top of the page. */
main#main {
  margin-top: -96px;
  padding-top: 96px;
}

/* The skip link is off screen until it has keyboard focus. */
.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 2000;
  padding: 12px 16px;
  border-radius: 40px;
  background: #fff;
  color: #1e2d68;
  font-size: 16px;
  line-height: 1.2;
}
.skip-link:focus {
  left: 16px;
}

/* ---------- Navbar ---------- */

/* The open mobile menu scrolls inside the screen. Before, links below the screen edge
   could not be reached on a small phone or at 200 percent zoom. */
.w-nav-overlay {
  max-height: calc(100vh - 100%);
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* The open mobile menu spans the screen and ends in a line, so it reads apart from the page. */
@media screen and (max-width: 991px) {
  .kutup-nav-menu[data-nav-menu-open] {
    float: none;
    width: 100%;
    border-bottom: 2px solid #1e2d68;
  }
}

/* The menu marks the page you are on. */
.nav-link-2.w--current,
.kutup-dropdown-link.w--current {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* "Specialties" has one size on every page. The home page already had it. */
.kutup-dropdown-toggle {
  font-size: 1em;
}

/* ---------- Text ---------- */

/* One text rendering on every page. The home page already had it. */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Text that wraps needs room between its lines. Lists had too much: a wrapped line
   looked like a new item. */
.paragraph,
.paragraph.white.testimonial,
.rich-text-block {
  line-height: 1.5;
}
.paragraph.list,
.paragraph.list.outline,
.paragraph.list.no-gap {
  line-height: 1.5;
  row-gap: 12px;
}
.subheading {
  line-height: 1.4;
}
.hero,
.heading-1,
.heading-2 {
  line-height: 1.1;
  text-wrap: balance;
}

/* Long text keeps a line length that the eye can follow. */
.paragraph.doctor-2,
.paragraph._64-margin,
.paragraph.pricing,
.rich-text-block {
  max-width: 34em;
}
.paragraph.pricing.center {
  margin-left: auto;
  margin-right: auto;
}

/* On phones these side headings were larger than the page title, and the accordion
   labels on /about were 12.8px. */
@media screen and (max-width: 767px) {
  .heading-2.small {
    font-size: 2.5em;
  }
}
@media screen and (max-width: 479px) {
  .heading-2.small {
    font-size: 2em;
  }
  .accordion-toggle {
    padding-right: 40px;
  }
  .accordion-toggle .button {
    font-size: 1em;
    white-space: normal;
  }
}

/* ---------- Layout ---------- */

/* Buttons that sit side by side have one height. */
.primary-cta {
  border: 2px solid transparent;
}
.primary-cta.navbar {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Cards that sit side by side start at one line, so their headings line up. */
.div-block-67 {
  justify-content: flex-start;
}

/* The two review buttons wrap to two rows on a narrow screen. */
.div-block-58 {
  flex-wrap: wrap;
}

/* The footer starts at the same left edge as the page body. */
.footer-section {
  padding-left: 40px;
  padding-right: 40px;
}
@media screen and (max-width: 991px) {
  .div-block-64 {
    margin-left: 0;
  }
}
@media screen and (max-width: 767px) {
  .footer-section {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media screen and (max-width: 479px) {
  .footer-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ---------- Images and outlines ---------- */

/* The three step photos keep their shape on a narrow phone. */
.image-9 {
  object-fit: cover;
}

/* A rounded photo inside a rounded card: inner radius = outer radius - padding. */
@media screen and (max-width: 479px) {
  .home-card .image-9,
  .div-block-11 .image-7,
  .div-block-33 .div-block-34 {
    border-radius: 16px;
  }
}

/* Every outline on the site is navy with a 40px radius. These two were not. */
.div-block-57,
.slider_arrow {
  border-color: #1e2d68;
}
@media screen and (min-width: 1440px) {
  .div-block-57 {
    border-radius: 40px;
  }
}

/* The map is Google's embed. It takes the size the Webflow map widget had. */
iframe.map {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Color ---------- */

/* White text on the tan fill measured 2.65:1. Navy, the site's own text color, measures 4.87:1. */
.primary-cta._1-em.orange,
.cell-11 .heading-2.white,
.cell-11 .paragraph.white,
.div-block-34 .hero.card,
.div-block-34 .paragraph.white,
.cond-card.orange .heading-2.white,
.cond-card.orange .primary-cta.outline.white,
.div-block-36 .heading-1.white {
  color: #1e2d68;
}
.cond-card.orange .primary-cta.outline.white {
  border-color: #1e2d68;
}
@media screen and (max-width: 479px) {
  .primary-cta._1-em.orange.blue {
    color: #fff;
  }
}

/* Condition pages: below 1280px the white breadcrumb sat on the tan corner of the hero
   gradient. The gradient now starts in navy there. */
@media screen and (max-width: 1279px) {
  .section-6 {
    background-image: radial-gradient(circle at 0 0, #1e2d68 36%, #223068 50%, #4a496a 77%, #665b6b 86%, #c4966e 91%, #c8e7f1 100%, #c4966e 102%);
  }
}

/* Home hero: on tablets and phones the gradient was pinned to the screen and the white text
   scrolled across its light band. It now scrolls with the text, over navy. */
.section-2 {
  background-color: #1e2d68;
}
@media screen and (max-width: 991px) {
  .section-2 {
    background-attachment: scroll;
    background-position: 50% 30%;
  }
}

/* Home price cards, tablets and phones: the light arc of the card gradient ran under the
   white price. The arc now sits further out, past the text. */
@media screen and (max-width: 991px) {
  .div-block-14 {
    background-image: radial-gradient(circle at 0 100%, #c4966e, #c8e7f1 0%, #a3816d 12%, #1e2d68 38%, #3f5183 82%, #c8e7f1 90%, #526592 95%, #2d3d74 98%, #5b546a 99%);
  }
}

/* The slider dots that are not selected measured 2.41:1 against the page. */
.slider_pagination .w-slider-dot:not(.w-active) {
  background: #858585 !important;
}

/* ---------- Motion ---------- */

/* The navbar and the hero start hidden and Webflow's script fades them in. If that script is
   slow or fails, they show after 3 seconds, or at once when there is no JavaScript. The rule
   keeps holding them visible afterward, so a late script or a change of screen width cannot
   hide them again. */
@keyframes site-reveal {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes site-reveal-fade {
  to {
    opacity: 1;
  }
}
[data-w-id][style*="opacity"] {
  animation: site-reveal 0.3s ease-out 3s forwards;
}
/* The call button on the condition pages also shrinks on hover through its transform, so
   only its opacity is held. */
.primary-cta[data-w-id][style*="opacity"] {
  animation-name: site-reveal-fade;
}
html:not(.w-mod-js) [data-w-id][style*="opacity"] {
  opacity: 1 !important;
  transform: none !important;
}

/* For a visitor who asks for reduced motion, the menu, the slider and every transition change
   in one step. The body attribute data-wf-ix-vacation does the same for Webflow's animations. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Headings ---------- */

/* seo.py leaves one h1 on each page and retags the others as h2, h3, div or p. Their classes
   set the size, line height, margins and color, so the look does not depend on the tag. The
   one exception: the two prices on /pricing took their bold weight from the h1 tag. */
.hero.card {
  font-weight: bold;
}
