/* =========================================================================
   254 Cleaners — styles for components the original template did not have.
   Kept separate from css/style.css so the Prepros/SCSS build stays untouched.
   Colours are driven by CSS variables that app.js sets from config.json.
   ========================================================================= */

:root {
  --ftco-primary: #2b98f0;
  --ftco-secondary: #f3e53d;
}

/* ------------------------------------------------------------ diagnostics */

.ftco-boot-error,
.ftco-component-error {
  background: #fff4f4;
  border: 1px solid #f3c4c4;
  border-left: 4px solid #d64545;
  color: #7a2222;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.ftco-boot-error {
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1002;
}

.ftco-boot-error code,
.ftco-component-error code {
  background: rgba(0, 0, 0, .07);
  padding: 2px 6px;
  border-radius: 3px;
}

/* --------------------------------------------------------- sticky header */

/* .ftco-header wraps the top contact bar and the navbar so the pair travels
   together. At rest nothing changes: the contact bar sits in the flow and the
   navbar is absolutely positioned over the hero, exactly as the template drew
   it. Once the page scrolls past them, js/main.js adds .scrolled — fixing the
   whole block to the top and dropping the navbar back into the flow beneath
   the contact bar — then .awake a frame later so it slides down rather than
   snapping into place. */

.ftco-header.scrolled {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .09);
  transform: translateY(-100%);
  transition: transform .3s ease;
}

.ftco-header.scrolled.awake {
  transform: translateY(0);
}

/* Inside the stuck header the navbar is no longer an overlay. */
.ftco-header.scrolled .ftco-navbar-light {
  position: relative;
  top: 0;
  background: #fff !important;
}

/* A white bar needs dark type — the default is white-on-hero. */
.ftco-header.scrolled .navbar-brand {
  color: #33313b;
}

.ftco-header.scrolled .navbar-brand span {
  color: var(--ftco-primary);
}

.ftco-header.scrolled .navbar-nav > .nav-item > .nav-link {
  color: rgba(0, 0, 0, .75);
}

.ftco-header.scrolled .navbar-nav > .nav-item > .nav-link:hover,
.ftco-header.scrolled .navbar-nav > .nav-item.active > .nav-link {
  color: var(--ftco-primary);
}

/* The hover/active underline is $secondary (yellow) — near-invisible on white. */
.ftco-header.scrolled .navbar-nav > .nav-item > .nav-link:before,
.ftco-header.scrolled .navbar-nav > .nav-item.active > .nav-link:before {
  background-color: var(--ftco-primary);
}

@media (min-width: 992px) {
  /* Tighten the bar once it is stuck to the top. */
  .ftco-header.scrolled .navbar-nav > .nav-item > .nav-link {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
  }
}

@media (max-width: 991.98px) {
  /* Fixed position plus an open menu can outrun a phone viewport.
     6rem leaves room for the contact bar above the navbar. */
  .ftco-header.scrolled .navbar-collapse {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ftco-header.scrolled {
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------ forms */

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.ftco-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-control.is-invalid {
  border-color: #d64545 !important;
  background-color: #fffafa;
}

.field-error {
  display: block;
  color: #d64545;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.form-message-success,
.form-message-warning {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 3px;
}

.form-message-success {
  background: #e8f6ec;
  border: 1px solid #b6e0c2;
  color: #1e6b34;
}

.form-message-warning {
  background: #fff4f4;
  border: 1px solid #f3c4c4;
  color: #7a2222;
}

form.is-submitting {
  opacity: .75;
  pointer-events: none;
}

.subscribe-form .form-message-success,
.subscribe-form .form-message-warning {
  margin-top: 10px;
}

.newsletter-heading {
  color: #fff;
  font-size: 24px;
}

/* ------------------------------------------------------------------- hero */

.hero-wrap .hero-body {
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  max-width: 34em;
}

.hero-actions .btn {
  white-space: nowrap;
}

/* --------------------------------------------------------------- counters */

.block-18 .number-suffix {
  font-size: 30px;
  font-weight: 700;
  color: var(--ftco-primary);
  line-height: 1;
}

/* --------------------------------------------------------------- services */

.services .service-price {
  font-size: 14px;
  color: #82868b;
  margin-bottom: .5rem;
}

.services .heading a {
  color: inherit;
}

.services .heading a:hover {
  color: var(--ftco-primary);
}

.ftco-check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.ftco-check-list li {
  padding: 4px 0;
}

.ftco-check-list .fa-check {
  color: var(--ftco-primary);
}

.service-facts .bg-light span {
  letter-spacing: .1em;
  color: #82868b;
}

/* --------------------------------------------------------------- pricing  */

.block-7 .price-period {
  font-size: 13px;
  color: #82868b;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.block-7 .plan-summary {
  font-size: 14px;
  color: #82868b;
  min-height: 3em;
}

.addon-list li {
  border-bottom: 1px solid #eceef0;
}

.addon-list li:last-child {
  border-bottom: 0;
}

/* ----------------------------------------------------------------- areas  */

.areas-list li {
  font-size: 15px;
}

.areas-list .fa-check {
  color: var(--ftco-primary);
}

/* ------------------------------------------------------------------ staff */

/* The card's text panel sits on $primary (#2b98f0), not on white — so the bio
   has to be light. Grey on that blue measures 1.2:1, which is unreadable.
   White at .92 tracks the panel's other text (h3 is #fff, .position is
   rgba(255,255,255,.8)) and stays legible at this size. */
.staff .staff-bio {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  margin-bottom: .75rem;
}

/* The template sets margin-bottom:0, so stacked cards touch — and because the
   yellow underline is positioned at bottom:-7px, they actually overlap it.
   Every layout here wraps onto multiple rows at some breakpoint (the team page
   wraps even at lg), so this applies at all widths. */
.staff {
  margin-bottom: 40px;
}

/* ----------------------------------------------------------- testimonials */

.testimony-wrap .rating .fa {
  color: #f0b429;
  font-size: 13px;
  margin-right: 2px;
}

/* -------------------------------------------------------------- portfolio */

.work .desc .subheading {
  display: block;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.work .desc .location {
  display: block;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}

.project-meta li {
  border-bottom: 1px solid #e6e8ea;
  font-size: 14px;
}

.project-meta li:last-child {
  border-bottom: 0;
}

.project-gallery img {
  width: 100%;
}

/* ------------------------------------------------------------------- blog */

.post-meta {
  color: #82868b;
  font-size: 14px;
}

.active-filter {
  font-size: 14px;
  color: #82868b;
}

.sidebar .categories li span:not(.fa) {
  color: #b3b3b3;
  font-size: 13px;
}

blockquote {
  border-left: 3px solid var(--ftco-primary);
  color: #6b7075;
  font-style: italic;
}

/* -------------------------------------------------------------------- faq */

.faq-group-heading {
  font-size: 20px;
  font-weight: 500;
}

.faq-item {
  border-bottom: 1px solid #e6e8ea;
}

.faq-item .btn-link {
  padding: 18px 30px 18px 0;
  font-size: 16px;
  color: #33313b;
  text-decoration: none;
  position: relative;
  white-space: normal;
}

.faq-item .btn-link:hover,
.faq-item .btn-link:not(.collapsed) {
  color: var(--ftco-primary);
  text-decoration: none;
}

.faq-item .btn-link .fa {
  position: absolute;
  right: 4px;
  top: 22px;
  font-size: 13px;
  transition: transform .3s ease;
}

.faq-item .btn-link:not(.collapsed) .fa {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 30px 20px 0;
  color: #6b7075;
}

/* -------------------------------------------------------------------- 404 */

.notfound-links a {
  color: #6b7075;
}

.notfound-links a:hover {
  color: var(--ftco-primary);
}

/* -------------------------------------------------------------------- map */

.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: #f3f5f7;
  border: 1px solid #e6e8ea;
  text-align: center;
}

.map-fallback-inner .fa-map-marker {
  font-size: 40px;
  color: var(--ftco-primary);
  display: block;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------- loading  */

/* Avoid a flash of unrendered mount points before the data arrives. */
body:not(.ftco-ready) [data-component]:empty {
  min-height: 1px;
}
