/* BrainON Homepage SEO V40.
   Loaded only by the homepage. No shared stylesheet or JavaScript changes. */

/* Keep the form's two-line heading treatment, with only the first line an H2. */
.home-seo-v40 .topform .topform-title {
  margin: 0;
  padding: 0;
  background: none;
}

.home-seo-v40 .topform .home-form-subtitle {
  margin: 0 0 10px;
  padding: 0 0 20px;
  color: #121212;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 35px;
  text-align: center;
  background: url("/img/small_rect_red.png") no-repeat center bottom;
}

.home-seo-v40 .topform label.inputtittle {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* Keep the six existing icons and their red dividers. Descriptions are compact,
   readable text, not additional panels or animated elements. */
.home-seo-v40 .advarea {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px 28px;
  width: 100%;
  margin: 40px auto 50px;
  overflow: visible;
}

.home-seo-v40 .advcontent {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.home-seo-v40 .advarea .contimg {
  float: none;
  height: auto;
  min-height: 66px;
  margin: 0;
  padding: 8px 17px 8px 0;
  border-right: 3px dotted #cb3340;
  box-sizing: border-box;
}

.home-seo-v40 .advarea .contimg img {
  display: block;
  float: none;
  width: 50px;
  height: 50px;
  margin: 0;
}

.home-seo-v40 .home-adv-copy {
  min-width: 0;
}

.home-seo-v40 .home-adv-copy h3 {
  margin: 0 0 8px;
  padding: 0;
  color: #121212;
  font-family: AvenirMedCn, Arial, sans-serif;
  font-size: 21px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
  background: none;
}

.home-seo-v40 .home-adv-copy p {
  margin: 0;
  padding: 0;
  color: #444;
  font-family: AvenirReg, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
}

/* Longer descriptive link text may wrap, without escaping the existing button. */
.home-seo-v40 .home-hub-section a.btn5,
.home-seo-v40 .home-services-teaser a.btn5,
.home-seo-v40 .home-books-teaser a.btn5,
.home-seo-v40 .home-reviews-teaser a.btn5 {
  max-width: 100%;
  height: auto;
  min-height: 50px;
  padding: 13px 25px;
  box-sizing: border-box;
  line-height: 22px;
  white-space: normal;
}

@media (min-width: 768px) and (max-width: 991px) {
  .home-seo-v40 .advarea {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  /* Descriptive headings must not turn a compact teaser into a full screen. */
  .home-seo-v40 #whychoosebrainon h2,
  .home-seo-v40 .home-hub-section h2,
  .home-seo-v40 .home-services-teaser h2,
  .home-seo-v40 .home-books-teaser h2,
  .home-seo-v40 .home-reviews-teaser h2 {
    font-size: 32px;
    line-height: 1.3;
  }

  .home-seo-v40 .advarea {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    max-width: 500px;
    margin-top: 30px;
    margin-bottom: 40px;
  }
}


/* V40.1 visual polish: keep section headings in the same centred hierarchy. */
.home-seo-v40 #start-with-brainon > .container > .row > .col-sm-12 > h2 {
  text-align: center;
}

.home-seo-v40 #start-with-brainon .home-publish-layout {
  padding-top: 0;
}

/* main.css gives CTA links height:50px + 5px vertical padding + line-height:42px.
   That legacy combination places the label optically high. On the homepage,
   use flex centring instead of compensating with another magic line-height. */
.home-seo-v40 a.btn-default.btn4,
.home-seo-v40 a.btn-default.btn5,
.home-seo-v40 button.btn-default.btn4,
.home-seo-v40 button.btn-default.btn5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  padding: 0 25px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Two real author voices, presented as quotations rather than page copy. */
.home-seo-v40 .home-review-grid {
  display: block;
  max-width: 900px;
  margin: 8px auto 20px;
}

.home-seo-v40 .home-reviews-teaser .home-review-grid blockquote {
  max-width: none;
  margin: 0 0 18px;
  padding: 10px 24px 10px 30px;
  text-align: left;
}

.home-seo-v40 .home-reviews-teaser .home-review-grid cite {
  margin: 15px 0 0 22px;
  text-align: left;
}

@media (max-width: 767px) {
  .home-seo-v40 .home-review-grid {
    margin-top: 0;
  }

  .home-seo-v40 .home-reviews-teaser .home-review-grid blockquote {
    padding-right: 18px;
    padding-left: 22px;
    font-size: 22px;
  }

  .home-seo-v40 a.btn-default.btn4,
  .home-seo-v40 a.btn-default.btn5,
  .home-seo-v40 button.btn-default.btn4,
  .home-seo-v40 button.btn-default.btn5 {
    max-width: calc(100vw - 40px);
    padding-right: 20px;
    padding-left: 20px;
    font-size: 15px;
  }
}


/* V40.2: AvenirReg has asymmetric cap/descender metrics. Flexbox correctly
   centres the font line box, but all-uppercase CTA glyphs still look about
   2px high inside it. Move only the visible label ink, never the button box. */
.home-seo-v40 a.btn-default.btn4 .bn-btn-label,
.home-seo-v40 a.btn-default.btn5 .bn-btn-label {
  display: inline-block;
  transform: translateY(2px);
}

/* The hero form submit is an <input>, so it cannot contain a label span.
   Equivalent asymmetric padding moves its text centre down by 2px while
   preserving the 50px control height. */
.home-seo-v40 input.btn-default.btn5 {
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  padding-top: 4px;
  padding-bottom: 0;
  line-height: 1.2;
}

/* V40.3: keep all homepage teaser copy in the site's Avenir body face. */
.home-seo-v40 .home-hub-lead {
  font-family: AvenirReg, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
