/**
 * @file
 * Subtheme specific CSS.
 */

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.highlighted:has([data-drupal-messages-fallback].hidden:only-child),
.featured-top:has(.region-featured-top:empty) {
  display: none;
}

.path-frontpage #block-sanestrategy-page-title,
.path-frontpage #block-sanestrategy-breadcrumbs {
  display: none;
}

.front-page {
  margin: 1.5rem 0 2.5rem;
}

.front-carousel {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.front-carousel img {
  display: block;
  width: 100%;
  height: auto;
}

.front-promos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 1.5rem;
  align-items: start;
}

.front-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.front-service,
.front-contact {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  padding: 1rem;
}

.front-service h2 {
  font-size: 1.25rem;
  margin: 0 0 .75rem;
}

.front-service h2 img {
  margin-right: .35rem;
  vertical-align: baseline;
}

.front-service p:last-child {
  margin-bottom: 0;
}

.front-contact img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 991.98px) {
  .front-promos,
  .front-services {
    grid-template-columns: 1fr;
  }

  .front-contact {
    max-width: 326px;
  }
}

.path-articles #main {
  padding-bottom: 2rem;
}

.path-articles #block-sanestrategy-page-title h1 {
  margin-bottom: 1.25rem;
}

.path-articles .view-articles .views-view-grid > .row {
  row-gap: 1.5rem;
}

.path-articles .view-articles .views-view-grid > .row > [class*="col-"] {
  display: flex;
}

.path-articles .node--type-article.node--view-mode-teaser {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(32, 20, 18, .08);
}

.path-articles .node--type-article.node--view-mode-teaser header {
  margin-bottom: .75rem;
}

.path-articles .node--type-article.node--view-mode-teaser .node__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.path-articles .node--type-article.node--view-mode-teaser .node__title a {
  color: #166267;
  text-decoration: none;
}

.path-articles .node--type-article.node--view-mode-teaser .node__title a:hover,
.path-articles .node--type-article.node--view-mode-teaser .node__title a:focus {
  color: #0b4e52;
  text-decoration: underline;
}

.path-articles .node--type-article.node--view-mode-teaser .node__meta,
.path-articles .node--type-article.node--view-mode-teaser .comment-forbidden {
  display: none;
}

.path-articles .node--type-article.node--view-mode-teaser .node__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.path-articles .node--type-article.node--view-mode-teaser .layout,
.path-articles .node--type-article.node--view-mode-teaser .layout__region,
.path-articles .node--type-article.node--view-mode-teaser .block-field-blocknodearticlebody,
.path-articles .node--type-article.node--view-mode-teaser .block-field-blocknodearticlebody > .content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.path-articles .node--type-article.node--view-mode-teaser .field--name-body {
  color: #4f4f4f;
  line-height: 1.55;
}

.path-articles .node--type-article.node--view-mode-teaser .field--name-body p {
  margin-bottom: .85rem;
}

.path-articles .node--type-article.node--view-mode-teaser .field--name-body p:last-child {
  margin-bottom: 0;
}

.path-articles .node--type-article.node--view-mode-teaser .block-extra-field-blocknodearticlelinks {
  margin-top: auto;
  padding-top: 1rem;
}

.path-articles .node--type-article.node--view-mode-teaser .links-inline {
  margin: 0;
}

.path-articles .node--type-article.node--view-mode-teaser .node-readmore {
  padding: 0;
}

.path-articles .node--type-article.node--view-mode-teaser .node-readmore a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .45rem .8rem;
  border: 1px solid #166267;
  border-radius: 4px;
  color: #166267;
  font-weight: 700;
  text-decoration: none;
}

.path-articles .node--type-article.node--view-mode-teaser .node-readmore a:hover,
.path-articles .node--type-article.node--view-mode-teaser .node-readmore a:focus {
  background: #166267;
  color: #fff;
}

.path-articles .feed-icons {
  margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
  .path-articles .view-articles .views-view-grid > .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .path-articles .view-articles .views-view-grid > .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.portfolio-intro {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.portfolio-item {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-item__content {
  padding: 1rem;
}

.portfolio-item h2 {
  font-size: 1.25rem;
  margin: 0 0 .5rem;
}

.portfolio-item p {
  margin: 0;
}

.page-node-1 #block-sanestrategy-page-title h1 {
  margin-bottom: 1rem;
}

.page-node-1 .node--type-page.node--view-mode-full > header,
.page-node-1 .node--type-page.node--view-mode-full .block-extra-field-blocknodepagelinks,
.page-node-1 .node--type-page.node--view-mode-full > .node__content > .ds-2col {
  display: none;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  max-width: 900px;
  color: #3b3b3b;
  line-height: 1.6;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > p:nth-of-type(1),
.page-node-1 .node--type-page.node--view-mode-full .field--name-body > p:nth-of-type(2) {
  grid-column: 1 / -1;
  max-width: 760px;
  color: #4f4f4f;
  font-size: 1.08rem;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.35rem 0 0;
  padding: 1rem 1.1rem .25rem;
  border: 1px solid #d8d8d8;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #f7fbfb;
  color: #166267;
  font-size: 1.2rem;
  line-height: 1.25;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2 img {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2 + p {
  margin: 0 0 1.1rem;
  padding: .35rem 1.1rem 1rem 2.75rem;
  border: 1px solid #d8d8d8;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(32, 20, 18, .08);
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2 + p + p {
  display: none;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(odd),
.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(odd) + p {
  grid-column: 1;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(even),
.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(even) + p {
  grid-column: 2;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(1),
.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(2) {
  grid-row: 3;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(1) + p,
.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(2) + p {
  grid-row: 4;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(3),
.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(4) {
  grid-row: 5;
}

.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(3) + p,
.page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2:nth-of-type(4) + p {
  grid-row: 6;
}

@media (max-width: 767.98px) {
  .page-node-1 .node--type-page.node--view-mode-full .field--name-body {
    grid-template-columns: 1fr;
  }

  .page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2,
  .page-node-1 .node--type-page.node--view-mode-full .field--name-body > h2 + p {
    grid-column: 1;
    grid-row: auto;
  }
}

#block-sanestrategy-webform {
  max-width: 760px;
  margin: 2rem 0 3rem;
  padding: 1.5rem;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(32, 20, 18, .08);
}

#block-sanestrategy-webform .webform-progress {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #f7fbfb;
}

#block-sanestrategy-webform .progress-tracker {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding: 0;
}

#block-sanestrategy-webform .progress-step {
  flex: 1 1 0;
  min-width: 0;
  color: #666;
  text-align: center;
}

#block-sanestrategy-webform .progress-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .45rem;
  font-weight: 700;
}

#block-sanestrategy-webform .progress-step .progress-marker::before,
#block-sanestrategy-webform .progress-step:hover .progress-marker::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid #f7fbfb;
  border-radius: 50%;
  background-color: #9c9c9c;
  box-shadow: 0 0 0 1px #d8d8d8;
  color: #fff;
  line-height: 1;
}

#block-sanestrategy-webform .progress-step .progress-marker::after {
  display: none;
}

#block-sanestrategy-webform .progress-step.is-active .progress-marker::before,
#block-sanestrategy-webform .progress-step.is-active:hover .progress-marker::before,
#block-sanestrategy-webform .progress-step.is-complete .progress-marker::before,
#block-sanestrategy-webform .progress-step.is-complete:hover .progress-marker::before {
  background-color: #166267;
  box-shadow: 0 0 0 2px rgba(22, 98, 103, .18);
  color: #fff;
}

#block-sanestrategy-webform .progress-step.is-complete .progress-marker::after {
  display: none;
}

#block-sanestrategy-webform .progress-title {
  display: block;
  color: #4f4f4f;
  font-family: Montserrat, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#block-sanestrategy-webform .progress-step.is-active .progress-title {
  color: #166267;
}

#block-sanestrategy-webform .progress-step.is-complete .progress-title {
  color: #3b3b3b;
}

#block-sanestrategy-webform label {
  margin-bottom: .35rem;
  color: #3b3b3b;
  font-family: Montserrat, sans-serif;
  font-size: .9rem;
  font-weight: 700;
}

#block-sanestrategy-webform .form-required::after {
  margin-left: .25rem;
  color: #166267;
}

#block-sanestrategy-webform .form-control {
  min-height: 2.75rem;
  border: 1px solid #cfd8d8;
  border-radius: 4px;
  background-color: #fbfdfd;
  color: #3b3b3b;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

#block-sanestrategy-webform textarea.form-control {
  min-height: 9rem;
}

#block-sanestrategy-webform .form-control:hover {
  border-color: #9dbfc1;
  background-color: #fff;
}

#block-sanestrategy-webform .form-control:focus {
  border-color: #166267;
  background-color: #fff;
  box-shadow: 0 0 0 .2rem rgba(22, 98, 103, .16);
}

#block-sanestrategy-webform .description,
#block-sanestrategy-webform .form-text {
  color: #666;
  font-size: .9rem;
}

#block-sanestrategy-webform .webform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

#block-sanestrategy-webform .webform-actions .btn {
  min-height: 2.6rem;
  padding: .55rem 1rem;
  border-radius: 4px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

#block-sanestrategy-webform .webform-actions .btn-primary {
  border-color: #166267;
  background: #166267;
  color: #fff;
}

#block-sanestrategy-webform .webform-actions .btn-primary:hover,
#block-sanestrategy-webform .webform-actions .btn-primary:focus {
  border-color: #0b4e52;
  background: #0b4e52;
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(22, 98, 103, .16);
}

#block-sanestrategy-webform .webform-button--preview {
  border-color: #166267;
  background: #fff;
  color: #166267;
}

#block-sanestrategy-webform .webform-button--preview:hover,
#block-sanestrategy-webform .webform-button--preview:focus {
  border-color: #166267;
  background: #eaf4f4;
  color: #0b4e52;
}

@media (min-width: 768px) {
  #block-sanestrategy-webform .webform-submission-contact-u-s-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  #block-sanestrategy-webform .form-item-subject,
  #block-sanestrategy-webform .form-item-message,
  #block-sanestrategy-webform .webform-actions,
  #block-sanestrategy-webform .webform-progress,
  #block-sanestrategy-webform input[type="hidden"],
  #block-sanestrategy-webform .url-textfield {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  #block-sanestrategy-webform {
    padding: 1rem;
  }

  #block-sanestrategy-webform .webform-progress {
    padding: .85rem;
  }

  #block-sanestrategy-webform .progress-tracker {
    gap: .5rem;
  }

  #block-sanestrategy-webform .progress-step .progress-marker::before,
  #block-sanestrategy-webform .progress-step:hover .progress-marker::before {
    width: 1.75rem;
    height: 1.75rem;
  }

  #block-sanestrategy-webform .progress-title {
    font-size: .72rem;
  }

  #block-sanestrategy-webform .webform-actions .btn {
    width: 100%;
  }
}
