/* BrainON shared site layer.
   The original main.css remains the visual foundation; this file fixes the
   responsive shell and supplies reusable page, hub, calculator and viewer UI. */

html {
  background: #000;
}

body {
  min-width: 0;
  background: #000;
}

.unified-site {
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff;
}

.unified-site .headarr,
.unified-site .toplogo,
.unified-site .topmnu {
  visibility: visible;
}

.unified-site .toparr {
  position: relative;
}

.unified-site .topmnu a[aria-current="page"] {
  color: #cb3340;
  border-bottom: 1px solid #cb3340;
}

.inner-topgag {
  width: 100%;
  background: #fff;
}

.inner-topgag::before,
.inner-topgag::after,
.inner-main-section > .container > .row::before,
.inner-main-section > .container > .row::after {
  display: table;
  content: " ";
}

.inner-topgag::after,
.inner-main-section > .container > .row::after {
  clear: both;
}

.inner-page-title {
  color: #121212;
  font-family: PlayfairSmBold;
  font-size: 3.2em;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.5;
  margin: 50px 0;
  padding-bottom: 20px;
  text-align: center;
  background: url("/img/small_rect_red.png") no-repeat center bottom;
}

.inner-page-title .itlc {
  font-family: PlayfairIta;
}

.inner-services {
  padding-bottom: 50px;
  text-align: center;
}

.inner-copy {
  padding-bottom: 30px;
}

.inner-copy p:first-child,
.inner-legal p:first-child {
  padding-top: 0;
}

.inner-subtitle {
  margin-top: 35px;
}

.inner-legal h2,
.inner-sitemap h2 {
  color: #121212;
  font-family: PlayfairSmBold;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 35px;
  margin: 35px 0 5px;
  padding-bottom: 20px;
  text-align: left;
  background: url("/img/small_rect_red.png") no-repeat left bottom;
}

.inner-legal {
  padding-bottom: 45px;
}

.inner-legal p {
  padding-top: 10px;
}

.inner-sitemap {
  display: block;
  padding-bottom: 55px;
}

.inner-sitemap::after {
  display: table;
  clear: both;
  content: "";
}

.inner-sitemap h2 {
  margin-top: 0;
}

.inner-sitemap ul {
  margin: 0 0 35px;
  padding: 0;
}

.inner-sitemap li {
  line-height: 2;
}

.inner-publish {
  overflow: hidden;
}

.inner-price {
  padding-bottom: 15px;
}

.inner-about .faceteamtxt p {
  padding: 0;
}

.inner-about .faceteamimg img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.inner-contact {
  overflow: hidden;
}

.inner-contact .contct input[type="text"],
.inner-contact .contct input[type="email"],
.inner-contact .contct textarea {
  width: 100%;
  padding: .9em 1.1em;
  border: 1px solid #f0f0f0;
  transition: all .5s ease-out;
}

.inner-contact .contct input[type="text"]:hover,
.inner-contact .contct input[type="email"]:hover,
.inner-contact .contct textarea:hover {
  border-color: rgb(100 100 100);
}

.inner-contact .contct input[type="text"]:focus,
.inner-contact .contct input[type="email"]:focus,
.inner-contact .contct textarea:focus {
  border-color: #cb3340;
}

.form-status {
  min-height: 24px;
  clear: both;
  padding: 10px 0 0;
}

.form-status[data-state="success"] {
  color: #26713c;
}

.form-status[data-state="error"] {
  color: #cb3340;
}

.form-status[data-state="pending"] {
  color: #555;
}

.home-form-status {
  margin: 0;
  padding: 5px 0 0;
  font-size: 13px;
}

.inner-contact .form-consent {
  clear: both;
  color: #777;
  font-size: 12px;
  padding: 8px 0 15px;
}

.inner-contact button[disabled],
[data-ajax-form] [type="submit"][disabled] {
  cursor: wait;
  opacity: .65;
}

.form-trap,
.legacy-form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Home hub: each block is a concise route into unique full content. */
.home-hub-section {
  padding-bottom: 55px;
  text-align: center;
}

.home-hub-section .row::after,
.home-books-teaser .row::after,
.home-services-teaser .row::after,
.home-reviews-teaser .row::after {
  display: table;
  clear: both;
  content: "";
}

.home-hub-lead,
.home-hub-copy p {
  max-width: 820px;
  margin: 0 auto 25px;
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
}

.home-hub-copy {
  padding-top: 10px;
  text-align: left;
}

.home-hub-copy p {
  max-width: none;
  text-align: left;
}

.home-hub-visual img {
  display: block;
  max-width: 180px;
  margin: 0 auto 25px;
}

.home-feature-layout {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  gap: 58px;
  text-align: left;
}

.home-feature-visual {
  display: flex;
  flex: 0 0 31%;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.home-feature-visual img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

.home-feature-content {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.home-feature-content .home-hub-lead {
  max-width: none;
  margin: 0 0 22px;
  text-align: left;
}

.home-feature-action {
  text-align: left;
}

.home-hub-action {
  clear: both;
  text-align: center;
}

.home-services-teaser {
  padding-bottom: 50px;
  text-align: center;
}

.home-services-teaser .home-hub-lead {
  color: #121212;
}

.home-services-layout {
  max-width: 1140px;
  gap: 42px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.home-service-point {
  min-height: 142px;
  margin: 0;
  padding: 10px 8px 12px;
  color: #121212;
  font-family: AvenirMedCn;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.home-service-point img {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.home-books-teaser {
  padding-bottom: 55px;
  text-align: center;
}

.home-books-teaser .home-hub-lead {
  color: #ddd;
}

.home-book-teaser {
  margin: 5px 0 30px;
  text-align: center;
}

.home-book-teaser > a {
  display: block;
  height: 330px;
}

.home-book-teaser img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  transition: opacity .2s ease-out;
}

.home-book-teaser a:hover img {
  opacity: .75;
}

.home-book-teaser p {
  min-height: 60px;
  padding-top: 12px;
  color: #ccc;
  font-family: AvenirMedCn;
}

.home-book-teaser p span {
  font-family: BaskervilleIta;
}

.home-book-teaser .pictitle_a1,
.home-book-teaser .pictitle_a2 {
  color: #ccc;
}

.home-book-teaser .pictitle_a1 {
  font-family: AvenirMedCn;
}

.home-book-teaser .pictitle_a2 {
  font-family: BaskervilleIta;
}

.home-book-teaser .pictitle_a1:hover,
.home-book-teaser .pictitle_a2:hover {
  color: #fff;
}

.home-price-teaser,
.home-contact-teaser {
  padding-bottom: 65px;
}

.home-reviews-teaser {
  padding-bottom: 70px;
  text-align: center;
}

.home-reviews-teaser .home-hub-lead {
  color: #fff;
}

.home-reviews-teaser blockquote {
  max-width: 900px;
  margin: 20px auto 30px;
  padding: 10px 30px;
  border: 0;
  color: #fff;
  font-family: Academy;
  font-size: 26px;
  font-style: italic;
  line-height: 1.55;
}

.home-reviews-teaser cite {
  display: block;
  margin-top: 15px;
  color: #fff;
  font-family: AvenirReg;
  font-size: 16px;
  font-style: normal;
}

.home-reviews-teaser .btn5:hover {
  color: #fff;
  border-color: #fff;
}

/* Books and the viewer mount. */
.inner-books-section {
  padding-bottom: 45px;
}

.inner-books-section .inner-page-title,
.inner-reviews .inner-page-title {
  color: #fff;
}

.inner-books-intro {
  max-width: 760px;
  margin: -15px auto 15px;
  color: #ddd;
  text-align: center;
}

.inner-book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 42px;
  margin: 10px 0 20px;
}

.inner-book {
  min-width: 0;
  text-align: center;
}

.inner-book .picimg {
  position: relative;
  height: 282px;
  padding: 20px 0 10px;
}

.book-preview-trigger {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.inner-book .book-preview-trigger > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

.inner-book .pictitle {
  min-height: 72px;
  padding: 8px 5px 0;
  text-align: center;
}

.inner-book .pictitle a,
.inner-book .pictitle span {
  color: #ccc;
  font-size: 16px;
  line-height: .9;
}

.inner-book .pictitle a:hover {
  color: #fff;
}

.inner-book .pictitle_a1 {
  font-family: AvenirMedCn;
}

.inner-book .pictitle_a2 {
  display: block;
  margin-top: 7px;
  font-family: BaskervilleIta;
}

.book-preview-region {
  min-height: 0;
  background: #f0f0f0;
}

/* The project notes stay in the document for search engines and no-script
   readers. JavaScript progressively enhances the horizontal list into a
   compact, single-card carousel. */
.inner-project-notes {
  padding: 28px 0 34px;
  overflow: hidden;
}

.project-notes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.project-notes-heading h2 {
  margin: 0;
  padding: 0 0 14px;
  font-size: 38px;
  line-height: 1.15;
  text-align: left;
  background: url("/img/small_rect_red.png") no-repeat left bottom;
}

.project-slider-controls {
  display: none;
  flex: none;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
}

.inner-project-notes.is-enhanced .project-slider-controls {
  display: flex;
}

.project-slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid #aaa;
  border-radius: 50%;
  color: #111;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 29px;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.project-slider-button:hover,
.project-slider-button:focus-visible {
  color: #fff;
  border-color: #d51820;
  outline: 0;
  background: #d51820;
}

.project-slider-button:focus-visible {
  box-shadow: 0 0 0 3px rgb(213 24 32 / 22%);
}

.project-slider-button:disabled {
  cursor: default;
  opacity: .42;
}

.project-slider-toggle {
  margin-left: 5px;
  font-size: 17px;
}

.project-slider-counter {
  min-width: 68px;
  color: #555;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
}

.project-notes-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.inner-project-notes.is-enhanced .project-notes-viewport {
  overflow: hidden;
  scroll-snap-type: none;
}

.project-notes-track {
  display: flex;
  align-items: stretch;
}

.inner-project-notes.is-enhanced .project-notes-track {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.inner-project-note {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(210px, .85fr) minmax(0, 2.2fr) auto;
  align-items: center;
  gap: 30px;
  min-width: 100%;
  min-height: 158px;
  padding: 25px 30px;
  scroll-snap-align: start;
  border-left: 4px solid #d51820;
  background: #fff;
  box-sizing: border-box;
}

.inner-project-note h3 {
  margin: 0;
  color: #151515;
  font-size: 24px;
  line-height: 1.25;
  text-align: left;
}

.inner-project-note p {
  margin: 0;
  padding: 0;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.inner-project-author {
  font-weight: 700;
}

.inner-project-preview {
  display: inline-block;
  justify-self: end;
  white-space: nowrap;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.inner-project-preview::after {
  content: "  \2192";
}

@media (prefers-reduced-motion: reduce) {
  .inner-project-notes.is-enhanced .project-notes-track,
  .project-slider-button {
    transition: none;
  }
}

/* Preserve the original visual treatment after correcting heading levels. */
.home-hub .topform .topform-title {
  margin: 0 0 10px;
  padding-bottom: 20px;
  color: #121212;
  font-size: 24px;
  line-height: 35px;
  text-align: center;
  background: url("/img/small_rect_red.png") no-repeat center bottom;
}

.willget h2.service-group-title,
.inner-contact .contact-form-heading,
.inner-reviews .review-author-title {
  margin: 20px 0 40px;
  padding-bottom: 20px;
  font-size: 32px;
  font-style: normal;
  line-height: 35px;
  text-align: left;
  background: url("/img/small_rect_black.png") no-repeat left bottom;
}

.inner-contact .contact-form-heading {
  margin: 0 0 25px;
  background-image: url("/img/small_rect_red.png");
}

.inner-reviews .review-author-title {
  margin: 0 0 25px;
  color: #fff;
  background-image: url("/img/small_rect_red.png");
}

/* Reviews are static and crawlable; no carousel dependency. */
.inner-reviews {
  padding-bottom: 70px;
}

.inner-reviews .review-list {
  overflow: visible;
}

.inner-reviews .revcontent {
  min-height: 0;
}

.inner-reviews .revcontent > article,
.inner-reviews .revcontent > div {
  max-width: 900px;
  margin: 0 auto 45px;
  padding: 0 0 40px;
  border-bottom: 1px solid rgb(255 255 255 / 35%);
}

.inner-reviews .revcontent > :last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.inner-reviews .revcontent p {
  font-size: 1.45em;
  line-height: 1.55;
}

/* Correct, self-contained two-level footer. */
.inner-footer {
  clear: both;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  background: #000;
}

.inner-footer .subfooter,
.inner-footer .doublefooter {
  width: 100%;
  margin: 0;
}

.inner-footer .footermenu {
  clear: both;
}

.inner-footer .whiteheader::before,
.inner-footer .whiteheader::after,
.inner-footer .footermenu::before,
.inner-footer .footermenu::after {
  display: table;
  content: " ";
}

.inner-footer .whiteheader::after,
.inner-footer .footermenu::after {
  clear: both;
}

@media (max-width: 1169px) {
  .inner-book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .inner-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The eight-item navigation needs its compact form on phones, landscape
   phones and smaller tablets. This deliberately supersedes Bootstrap's
   768px default so the menu never wraps into several horizontal rows. */
@media (max-width: 991px) {
  .home-hub .topform {
    display: none !important;
  }

  .home-feature-layout {
    gap: 32px;
  }

  .home-feature-visual {
    flex-basis: 30%;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unified-site .headarr {
    min-height: 90px;
  }

  .unified-site .toparr {
    min-height: 90px;
  }

  .unified-site .toplogo {
    float: left;
    margin-top: 10px;
  }

  .unified-site .toplogo a {
    width: 150px;
    height: 70px;
  }

  .unified-site .toplogo img {
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: auto;
    height: 70px;
    margin: 0;
  }

  .unified-site .topmnu {
    position: static;
    float: none;
    min-height: 0;
    margin: 0;
  }

  .unified-site .navbar {
    position: static;
    min-height: 0;
    margin: 0;
  }

  .unified-site .navbar-toggle {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 0;
    display: block !important;
    float: none;
    margin: 0 15px 0 0;
  }

  .unified-site .navbar-collapse,
  .unified-site .navbar-collapse.collapse {
    position: absolute;
    z-index: 3;
    top: 90px;
    right: 0;
    left: 0;
    display: none !important;
    float: none !important;
    clear: both;
    width: 100%;
    max-height: calc(100vh - 90px);
    margin: 0 !important;
    padding: 8px 20px 12px;
    overflow-y: auto !important;
    border-top: 1px solid #e7e7e7;
    background: #fff;
    box-shadow: 0 8px 12px rgb(0 0 0 / 18%);
  }

  .unified-site .navbar-collapse.in,
  .unified-site .navbar-collapse.collapse.in {
    display: block !important;
  }

  .unified-site .navbar-nav {
    float: none !important;
    width: 100%;
    margin: 0;
  }

  .unified-site .topmnu ul li,
  .unified-site .navbar-nav > li {
    float: none;
    width: 100%;
    padding: 0;
    line-height: 20px;
  }

  .unified-site .topmnu .nav > li > a {
    display: block;
    margin: 0;
    padding: 12px 0;
    line-height: 20px;
    text-align: center;
  }

  .unified-site .topmnu a[aria-current="page"],
  .unified-site .navbar-default .navbar-nav > li > a:hover {
    border-bottom: 0;
    background: #f5f5f5;
  }

  .unified-site .topgag {
    height: 90px;
  }
}

@media (max-width: 767px) {
  .home-hub .txt1 {
    width: 75%;
  }

  .home-hub .txt1lite {
    font-size: 40px !important;
    line-height: 1.3;
  }

  .home-hub .tbtext {
    font-size: 65px;
    line-height: 1.2;
  }

  .home-hub img.bookman {
    top: 20px;
    left: 75%;
    height: 150%;
    margin-left: -210px !important;
  }

  .inner-sitemap h2 {
    margin-top: 25px;
  }

  .inner-project-notes {
    padding: 24px 0 28px;
  }

  .project-notes-heading {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .project-notes-heading h2 {
    font-size: 32px;
    text-align: center;
    background-position: center bottom;
  }

  .inner-project-note {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 250px;
    padding: 24px 26px;
  }

  .inner-project-note h3,
  .inner-project-note p {
    text-align: center;
  }

  .inner-project-preview {
    justify-self: center;
  }

  .home-hub-copy,
  .home-hub-copy p {
    text-align: center;
  }

  .home-feature-layout {
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
  }

  .home-feature-visual {
    flex: none;
    width: 100%;
  }

  .home-feature-visual img {
    max-width: 230px;
  }

  .home-feature-content,
  .home-feature-content .home-hub-lead,
  .home-feature-action {
    text-align: center;
  }

  .home-feature-content .home-hub-lead {
    margin-bottom: 18px;
  }

  .home-services-layout {
    gap: 10px;
  }

  .home-services-layout .home-feature-visual img {
    max-width: 250px;
  }

  .home-service-grid {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .home-book-teaser > a {
    height: 300px;
  }

  .inner-footer .subfooter ol li {
    padding: 0;
    text-align: center;
    text-indent: 0;
  }

  .inner-footer .footerlogo .logo {
    max-width: 100%;
  }

  .inner-footer .doublefooter {
    padding: 20px 0;
  }

  .inner-footer .doublefooter .contactareas {
    width: 100%;
  }

  .inner-footer .contactareas {
    height: 45px;
  }
}

@media (max-width: 748px) {
  .inner-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .project-notes-heading {
    margin-bottom: 16px;
  }

  .project-notes-heading h2 {
    padding-bottom: 13px;
    font-size: 29px;
    text-align: center;
    background-position: center bottom;
  }

  .project-slider-controls {
    padding-bottom: 0;
  }

  .inner-project-note {
    min-height: 280px;
    padding: 23px 20px;
    border-left-width: 3px;
  }

  .inner-project-note h3 {
    font-size: 22px;
  }

  .inner-project-note p {
    font-size: 14px;
  }

  .inner-book-grid {
    grid-template-columns: 1fr;
  }

  .inner-book .pictitle {
    min-height: 0;
  }

  .home-reviews-teaser blockquote {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 22px;
  }

  .home-feature-visual img,
  .home-services-layout .home-feature-visual img {
    max-width: 195px;
  }

  .home-service-point {
    min-height: 122px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 17px;
  }

  .home-service-point img {
    width: 68px;
    height: 68px;
  }

  .footerlogo .whitelogo,
  .footerlogo .whitetext {
    float: none;
    height: auto;
    border: 0;
    text-align: center;
  }

  .footerlogo .whitelogo {
    padding: 0 0 12px;
  }

  .footerlogo .whitetext p {
    padding: 0;
    text-align: center;
  }
}

@media (max-width: 374px) {
  .home-hub .txt1lite {
    font-size: 34px !important;
  }

  .home-hub .tbtext {
    font-size: 50px;
  }
}

@media only screen and (min-width: 375px) and (max-width: 667px) and (orientation: portrait) {
  .inner-books-section .inner-page-title {
    margin-bottom: 20px;
  }

  .inner-book .picimg {
    height: 400px;
    padding: 10px 0;
  }

  .inner-book .pushcorner {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .headarr,
  .book-preview-trigger,
  .home-book-teaser img {
    scroll-behavior: auto;
    transition: none !important;
  }
}
