/* Site improvements on top of the Counselor theme */

/* ---------- "Book tid" button in the header ----------
   Mobile:  logo row, button centred below it, then the menu.
   Tablet:  logo and button share the first row, menu wraps below (theme sets nav order 3).
   Desktop: logo | menu | button on one row. */
.site-header .btn.header-booking {
  order: 2;
  flex: 0 0 auto;
  float: none;
  padding: 12px 24px;
  margin: 12px auto 0;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .site-header.minimal .main-navigation {
    order: 3;
  }
}

@media (min-width: 768px) {
  .site-header .btn.header-booking {
    margin: 0 0 0 20px;
  }
}

/* ---------- Call-to-action button lists ----------
   Wrap a list of buttons in .cta-buttons so they get vertical space
   between them when they wrap onto separate lines on mobile. */
@media (max-width: 767px) {
  .cta-buttons .btn {
    display: inline-block;
    margin-bottom: 10px;
  }
}

/* ---------- Info boxes on the home page ----------
   Placed in the theme grid (.row > .col-xs-12.col-lg-4): three equally high
   boxes side by side, stacked below 992px so long words fit on one line.
   Sizes are in em, relative to the site's body text (22px, 20px on phones). */
.info-boxes > [class*="col-"] {
  margin-bottom: 0.9em;
}

.info-boxes .info-box {
  height: 100%;
  padding: 1.2em 1.2em 0.95em;
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 0.8em;
}

.info-boxes .info-box h3 {
  margin: 0 0 0.4em;
  font-size: 1.1em;
}

.info-boxes .info-box-text p {
  margin: 0 0 0.75em;
}

.info-boxes .info-box-text > :last-child {
  margin-bottom: 0;
}

/* Text pasted into the editor can carry its own inline styling (font, size,
   colour, background...): drop all of it and use the site's body text style. */
.info-boxes .info-box-text span {
  all: unset !important;
}

/* Side by side: each box is at most 16.82em wide (17.73em column minus 2 x 0.455em
   gutter = 370px), so three boxes are as wide as the 1150px text above, and centred. */
@media (min-width: 992px) {
  .info-boxes {
    justify-content: center;
  }

  .info-boxes > [class*="col-"] {
    max-width: min(33.33333%, 18em);
    padding-left: 0.6em;
    padding-right: 0.6em;
  }
}