/* Lightweight overrides for the static Parusco conversion */
body.site {
  font-family: Roboto, "Open Sans", sans-serif;
}

.rstpl-brand img {
  max-height: 72px;
  width: auto;
}

/* Desktop menu: keep collapse open; let template-9.css own colors/borders */
@media (min-width: 980px) {
  .rstpl-main-menu-position .nav-collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
}

.rstpl-template-menu.nav > li {
  position: relative;
}

.rstpl-template-menu > li.dropdown:hover > .dropdown-menu,
.rstpl-template-menu > li.dropdown:focus-within > .dropdown-menu {
  display: block;
}

/* Search field is closed until .open is toggled by template.js */
.rstpl-template-menu .rstpl-search form .inputbox:not(.open) {
  width: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
}

.hero-banner {
  margin: 0;
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.site-content {
  padding: 30px 0 50px;
}

.site-content h1,
.site-content h2,
.site-content h3 {
  color: #3e97d2;
}

.site-content img {
  max-width: 100%;
  height: auto;
}

.btn-quote,
a.btn.btn-secondary,
.btn-secondary {
  display: inline-block;
  background: #3e97d2;
  color: #fff !important;
  padding: 12px 28px;
  border: 0;
  text-decoration: none;
  margin-top: 20px;
}

.btn-quote:hover,
a.btn.btn-secondary:hover {
  background: #2f7fb4;
  color: #fff !important;
}

/* Match live rsvario footer: white band above image (space under Testimonials) */
.rstpl-footer-position {
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto;
  color: #c1c1c1;
  margin: 0;
}

.body > section:last-of-type.rstpl-footer-position {
  padding: 80px 0 340px;
}

@media (max-width: 767px) {
  .body > section:last-of-type.rstpl-footer-position {
    padding: 80px 0 185px;
  }
}

.rstpl-footer-position a {
  color: #c1c1c1;
}

.footer-inner {
  text-align: center;
}

/* Services category blog (match live parusco.com/services/) */
.blog .items-leading > div[itemprop="blogPost"] {
  margin-bottom: 40px;
  overflow: hidden;
}

.blog .items-leading > div[itemprop="blogPost"]::after {
  content: '';
  display: table;
  clear: both;
}

.blog .readmore {
  margin-top: 20px;
  clear: both;
}

.blog .readmore a.btn {
  background: #3e97d2;
  border: 0;
  border-radius: 4px;
  color: #fff !important;
  display: inline-block;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  text-transform: none;
}

.blog .readmore a.btn:hover,
.blog .readmore a.btn:focus {
  background: #2f7fb4;
  color: #fff !important;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

.contact-layout ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-layout li {
  margin-bottom: 12px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 10px;
}

.contact-form .contact-hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.contact-form-success {
  background: #e8f6ec;
  border: 1px solid #b7dfc3;
  color: #246b3a;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.contact-form-error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #8a1f17;
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* ===== Homepage — let rsvario / RSPageBuilder CSS own the look ===== */
.home-content {
  padding: 0;
}

.home-content .rspbld-page section > .row-fluid.primary-overlay {
  position: relative;
}

/* Without RSPageBuilder scroll JS, keep animated blocks visible */
.home-content .animation {
  opacity: 1;
}

/* Ensure FA heart under detailed titles renders */
.detailed-title .rspbld-title:after {
  font-family: FontAwesome, 'Font Awesome 4', sans-serif;
}

/* Slideshow */
.rstpl-slideshow-position {
  margin: 0;
  overflow: hidden;
}

.rscarousel.form-slider {
  margin-bottom: 0 !important;
}

.rscarousel.form-slider .carousel-inner {
  width: 100% !important;
  position: relative;
}

.rscarousel.form-slider .carousel-inner:before {
  background-image: url('../templates/rsvario/images/sqr.png');
  background-repeat: repeat;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: block;
  z-index: 1;
  position: absolute;
  pointer-events: none;
}

.rscarousel.form-slider .item {
  position: relative;
  overflow: hidden;
}

/* Keep outgoing/incoming slides out of document flow so page content
   below (About Us, etc.) does not get pushed during the slide animation.
   Needs higher specificity than `.rscarousel.form-slider .item`. */
.rscarousel.form-slider .item.next,
.rscarousel.form-slider .item.prev {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
}

.rscarousel.form-slider .item.prev {
  left: -100%;
}

.rscarousel.form-slider .item.next.left,
.rscarousel.form-slider .item.prev.right {
  left: 0;
}

.rscarousel.form-slider .item.active.left {
  left: -100%;
}

.rscarousel.form-slider .item.active.right {
  left: 100%;
}

.rscarousel.form-slider .item > .span12 {
  float: none;
  width: 100%;
  margin: 0;
  position: relative;
}

.rscarousel.form-slider .item img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.rscarousel.form-slider .rstpl-caption {
  background-color: transparent !important;
  position: absolute;
  left: 8%;
  top: 50%;
  width: 42%;
  z-index: 2;
  padding: 0;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

.rscarousel.form-slider .rstpl-caption h1 {
  color: #fff;
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 20px;
  text-transform: none;
  font-size: 24px;
}

.rscarousel.form-slider .rstpl-caption h1 a {
  text-decoration: none;
}

.rscarousel.form-slider .rstpl-caption h1 small {
  font-size: 26px;
  line-height: 1.25;
  display: inline-block;
}

.rscarousel.form-slider .rstpl-caption p,
.rscarousel.form-slider .rstpl-caption ul {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.6;
  margin: 0;
}

.rscarousel.form-slider .carousel-indicators {
  display: block !important;
  bottom: 8%;
  z-index: 3;
}

.rscarousel.form-slider .carousel-indicators li {
  margin: 0 5px;
  background-color: #fff !important;
  border-radius: 50%;
  border: 2px solid #fff;
  height: 20px;
  width: 20px;
  box-shadow: none;
}

.rscarousel.form-slider .carousel-indicators li.active {
  background-color: transparent !important;
}

@media (max-width: 980px) {
  .rscarousel.form-slider .rstpl-caption {
    left: 8%;
    width: 70%;
  }

  .rscarousel.form-slider .rstpl-caption h1 small {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .rstpl-brand img {
    max-height: 56px;
  }

  .rscarousel.form-slider .rstpl-caption {
    position: relative;
    left: 0;
    top: auto;
    width: 100%;
    transform: none;
    margin-top: -4px;
  }

  .rscarousel.form-slider .carousel-indicators {
    display: none !important;
  }

  .home-content .rspbld-page .row-fluid {
    background-attachment: scroll !important;
  }
}
