/* ---------------------------------------------------------------------------
   The About and Contact templates.
   --------------------------------------------------------------------------- */

.bs-pagehead { padding-bottom: 8px; }

.bs-pagehead__title {
  margin: 24px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

@media only screen and (min-width: 990px) {
  .bs-pagehead__title { font-size: 48px; line-height: 60px; }
}

/* Two columns of lead copy, as the reference sets its About intro. */
.bs-pagehead__leads {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 24px;
  color: var(--bs-black-light);
  font-size: 14px;
  line-height: 1.7;
}

.bs-pagehead__leads p { flex: 1 1 100%; min-width: 0; margin: 0; }

@media only screen and (min-width: 990px) {
  /* Two columns: half the width less half the 48px gap. */
  .bs-pagehead__leads p { flex: 1 1 calc(50% - 24px); }
}

.bs-lede { margin-top: 16px; color: var(--bs-black-light); font-size: 16px; line-height: 1.7; }

/* ---------- Advantages row ---------- */

.bs-advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-start;
  padding-block: 24px;
  border-top: 1px solid var(--bs-gray-light);
  border-bottom: 1px solid var(--bs-gray-light);
}

.bs-advantages__title { flex: 0 0 auto; max-width: 240px; }

.bs-advantages__list {
  flex: 1 1 320px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.bs-advantages__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.bs-advantages__item svg { flex: none; color: var(--bs-black); }

/* ---------- Quote ---------- */

.bs-quote { padding-block: 48px; background: var(--bs-gray-ultra-light); }

/* The reference rotates three quotes. A snapping row does the same thing
   without a script: swipe on a phone, scroll on a trackpad. */
.bs-quote__track {
  display: flex;
  gap: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.bs-quote__track::-webkit-scrollbar { display: none; }

.bs-quote__slide {
  flex: 0 0 100%;
  max-width: 1152px;
  margin: 0 auto;
  scroll-snap-align: center;
  text-align: center;
}

.bs-quote__text {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

@media only screen and (min-width: 990px) {
  .bs-quote__text { font-size: 28px; }
}

.bs-quote__by { margin-top: 16px; color: var(--bs-gray); font-size: 14px; }

.bs-quote__media { margin-top: 32px; }
.bs-quote__media img { width: 100%; max-height: 420px; object-fit: cover; }

/* ---------- Alternating blocks ---------- */

.bs-split { padding-block: 24px; }

.bs-split__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.bs-split__inner > * { flex: 1 1 100%; min-width: 0; }

@media only screen and (min-width: 990px) {
  .bs-split__inner { gap: 56px; }
  .bs-split__inner > * { flex: 1 1 calc(50% - 28px); }

  /* Flip by moving the media, not by reversing the source: the heading has to
     stay before its own paragraph for a screen reader either way round. */
  .bs-split--flip .bs-split__media { order: 2; }
}

.bs-split__media img, .bs-split__media video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bs-gray-ultra-light); }
.bs-split__body p { margin: 16px 0 0; color: var(--bs-black-light); font-size: 14px; line-height: 1.7; }

/* Long-form story: the same two columns, with a taller photograph and room
   for several paragraphs. */
.bs-split--story { padding-block: 40px; }
.bs-split--story .bs-split__media img, .bs-split--story .bs-split__media video { aspect-ratio: 4 / 5; }
.bs-split--story .bs-split__body p { font-size: 16px; }
.bs-split--story .bs-split__body p + p { margin-top: 12px; }

/* ---------- Call-to-action panels ---------- */

.bs-panel { padding-block: 24px; }

.bs-panel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bs-gray-ultra-light);
}

.bs-panel__body,
.bs-panel__media { flex: 1 1 100%; min-width: 0; }

@media only screen and (min-width: 990px) {
  .bs-panel__body { flex: 1 1 calc(50% - 0px); }
  .bs-panel__media { flex: 1 1 calc(50% - 0px); }
}

.bs-panel__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 40px 32px;
}

@media only screen and (min-width: 990px) {
  .bs-panel__body { padding: 64px 56px; }
}

.bs-panel__text { margin: 0; color: var(--bs-black-light); font-size: 16px; line-height: 1.7; }

.bs-panel__media img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* ---------- Numbers ---------- */

.bs-numbers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  margin-top: 32px;
}

.bs-numbers__item { flex: 1 1 calc(50% - 12px); min-width: 0; }

@media only screen and (min-width: 990px) {
  .bs-numbers__item { flex: 1 1 calc(33.333% - 16px); }
}

.bs-numbers__value { color: var(--bs-blue); font-size: 40px; font-weight: 700; line-height: 1.1; }

@media only screen and (min-width: 990px) {
  .bs-numbers__value { font-size: 48px; }
}

/* A short line above the figure and another below it, both quiet. */
.bs-numbers__label { color: var(--bs-gray); font-size: 14px; line-height: 1.4; }
.bs-numbers__label + .bs-numbers__value,
.bs-numbers__value + .bs-numbers__label { margin-top: 6px; }

/* ---------- Contact rows ---------- */

/* What repeat(auto-fit, minmax(240px, 1fr)) did: never narrower than 240px,
   otherwise share the row equally. flex-basis plus grow is the same bargain. */
.bs-contactrows {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bs-contactrow { flex: 1 1 240px; min-width: 0; }

.bs-contactrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* flex: 1 1 240px is set above, where the row is defined. */
  padding: 24px;
  border: 1px solid var(--bs-gray-light);
  border-radius: 8px;
  color: var(--bs-black);
  transition: border-color var(--bs-dur) var(--bs-ease);
}

a.bs-contactrow:hover { border-color: var(--bs-black); }

.bs-contactrow__icon { color: var(--bs-blue); }
.bs-contactrow__label { margin-top: 8px; color: var(--bs-gray); font-size: 14px; }
.bs-contactrow__value { font-size: 18px; font-weight: 500; }

/* ---------- Contact body ---------- */

.bs-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.bs-contact > * { flex: 1 1 100%; min-width: 0; }

@media only screen and (min-width: 990px) {
  .bs-contact { gap: 64px; }
  .bs-contact__form { flex: 1 1 0; }
  .bs-contact__aside { flex: 0 0 320px; }
}

.bs-note {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--bs-green);
  border-radius: 4px;
  background: var(--bs-gray-ultra-light);
  font-size: 14px;
}

.bs-note--bad { border-left-color: var(--bs-red-discount); }

.bs-form { margin-top: 24px; }
.bs-form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.bs-form__row > * { flex: 1 1 100%; min-width: 0; }

@media only screen and (min-width: 700px) {
  .bs-form__row > * { flex: 1 1 calc(50% - 8px); }
}

.bs-form__field { display: block; margin-bottom: 16px; }
.bs-form__field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }

/* Three classes and two elements, to beat a plugin's grouped form-control rule
   the same way the header's search field does. */
body.bs-chrome .bs-form input[type="text"],
body.bs-chrome .bs-form input[type="email"],
body.bs-chrome .bs-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bs-gray-light);
  border-radius: 8px;
  background: var(--bs-white);
  color: var(--bs-black);
  font-family: var(--bs-font);
  font-size: 16px;
  box-shadow: none;
}

body.bs-chrome .bs-form input:focus,
body.bs-chrome .bs-form textarea:focus { outline: none; border-color: var(--bs-blue); }

/* Off-screen rather than display:none — a bot reads the stylesheet too, and
   skips anything that is plainly hidden. */
.bs-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bs-hours { margin: 24px 0 0; }
.bs-hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bs-gray-light); font-size: 14px; }
.bs-hours dt { font-weight: 500; }
.bs-hours dd { margin: 0; color: var(--bs-gray); }

.bs-address { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; color: var(--bs-black-light); font-size: 14px; font-style: normal; }

.bs-map { height: 420px; }
.bs-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Showrooms ---------- */

.bs-showrooms__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

/* A fixed share of the row at each width rather than flex-grow: with five
   cards on a four-up row the fifth would otherwise stretch across the whole
   line and read as a different kind of thing. */
.bs-showroom {
  flex: 0 1 100%;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--bs-gray-light);
  border-radius: 8px;
}

@media only screen and (min-width: 700px) {
  .bs-showroom { flex-basis: calc(50% - 12px); }
}

@media only screen and (min-width: 990px) {
  .bs-showroom { flex-basis: calc(25% - 18px); }
}

.bs-showroom__name { font-size: 20px; font-weight: 700; line-height: 1.3; }
.bs-showroom__block { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; font-size: 15px; line-height: 1.5; }
.bs-showroom__label { margin-bottom: 4px; color: var(--bs-gray); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.bs-showroom__address { font-style: normal; }
.bs-showroom__address span,
.bs-showroom__line { display: block; }
.bs-showroom a { color: var(--bs-blue); text-decoration: underline; text-underline-offset: 3px; }
