/*
 * Sutter Solutions site styles.
 * Bootstrap supplies the responsive grid; this file contains the site's own colors and layout.
 */

/* Brand colors used throughout the site. */
:root {
  --brand-blue: #0a8fd5;
  --ink: #333;
  --muted: #777;
  --light: #f5f5f5;
  --dark: #222;
}

/* Base page settings and typography. */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--brand-blue);
}

a:hover {
  color: #0878b3;
}

h1, h2, h3, h4, .masthead-subtitle {
  font-family: Raleway, Arial, sans-serif;
  font-weight: 700;
}

h2 {
  margin-bottom: 12px;
  font-size: 42px;
}

h3 {
  font-size: 22px;
}

hr.colored {
  width: 100px;
  height: 2px;
  margin: 22px auto;
  border: 0;
  background: var(--brand-blue);
}

/* Shared spacing for sections and the main content container. */

.page-section {
  padding: 88px 0;
  scroll-margin-top: 68px;
}

.page-section.bg-light {
  background: var(--light);
}

.container {
  max-width: 1180px;
}

/* Fixed top navigation. */
.navbar {
  min-height: 70px;
  padding: 5px 0;
  background: var(--brand-blue);
  transition: background .2s, box-shadow .2s;
}

.navbar.navbar-shrink {
  background: #181818;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.navbar-brand img {
  width: 190px;
  max-height: 48px;
}

.navbar-nav {
  align-items: center;
}

.navbar .nav-link {
  padding: 9px 12px !important;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.navbar .nav-link:hover, .navbar .nav-link:focus {
  color: rgba(255, 255, 255, .8);
}

.navbar .nav-link.active {
  color: var(--brand-blue);
  background: #fff;
  border-radius: 5px;
}

.navbar-toggler {
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 5px;
}

/* Hero image slideshow and headline. */
.masthead {
  position: relative;
  display: flex;
  min-height: 650px;
  height: 100vh;
  max-height: 950px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: #222;
}

.masthead::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.slideshow, .slide {
  position: absolute;
  inset: 0;
}

.slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 20px 110px;
  text-align: center;
}

.hero-logo {
  width: min(65%, 620px);
  max-height: 260px;
  object-fit: contain;
}

.masthead-subtitle {
  color: #fff;
  font-size: 18px;
}

.masthead-subtitle:hover {
  color: #fff;
}

.scroll-down {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: calc(50% - 24px);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  font-size: 28px;
}

.scroll-down:hover {
  color: #fff;
}

/* About and team sections. */
#about h1 {
  margin-bottom: 8px;
  font-size: 42px;
}

#about .row {
  margin-top: 45px;
}

#about .row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

#about .row h3 {
  margin: 15px 0 8px;
}

.team-carousel {
  max-width: 1050px;
  margin-right: auto;
  margin-left: auto;
}

.team-carousel .item {
  padding: 14px;
}

.item-wrapper {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 16px rgba(0,0,0,.13);
}

.item-wrapper > img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.team-caption {
  padding: 17px 14px 10px;
}

.team-caption h3 {
  margin: 0;
}

.team-caption hr.colored {
  margin: 12px auto;
}

.team-caption p {
  margin-bottom: 8px;
  color: var(--muted);
}

/* Brand statement and project process. */
.call-to-action {
  padding: 72px 0;
  color: #fff;
  background: var(--dark);
  scroll-margin-top: 68px;
}

.call-to-action .quote {
  display: block;
  font-size: 30px;
  line-height: 1.5;
}

.call-to-action .quote b {
  font-weight: 500;
}

.call-to-action p.quote {
  max-width: 900px;
  margin: 12px auto 18px;
}

.text-primary {
  color: var(--brand-blue) !important;
}

.btn {
  padding: 11px 22px;
  border-radius: 5px;
  font-family: Raleway, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.btn-primary {
  color: #fff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.btn-primary:hover, .btn-primary:focus {
  color: #fff;
  border-color: #0878b3;
  background: #0878b3;
}

.call-to-action .btn {
  text-transform: none;
  letter-spacing: normal;
}

.services .media {
  height: 100%;
  padding: 18px;
}

.services .pull-left {
  float: left;
  margin-right: 18px;
}

.services .pull-left .fa {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--brand-blue);
  font-size: 23px;
}

.services .media-heading {
  margin: 5px 0 12px;
}

.services ul {
  padding-left: 19px;
}

/* Work gallery and category filters. */
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.controls .btn {
  margin: 0 0 15px !important;
  border-width: 2px;
}

.btn-secondary {
  color: #555;
  border-color: var(--brand-blue);
  background: #fff;
}

.btn-secondary:hover, .btn-secondary.active {
  color: #fff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.portfolio-grid .mix {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.portfolio-grid .mix[hidden] {
  display: none !important;
}

.portfolio-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-wrapper img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s;
}

.portfolio-wrapper:hover img {
  transform: scale(1.05);
}

.portfolio-wrapper .caption {
  position: absolute;
  inset: auto 0 0;
  padding: 14px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  text-align: left;
  opacity: 0;
  transition: opacity .2s ease;
}

.portfolio-grid .mix:hover .caption,
.portfolio-grid .mix:focus-visible .caption {
  opacity: 1;
}

.caption .text-category {
  font-size: 14px;
  font-weight: 700;
}

/* Customer testimonials and partner logos. */
.testimonials {
  color: #fff;
  background: #282828;
  text-align: center;
}

.testimonials .container {
  max-width: 1180px;
}

.testimonials-carousel {
  position: relative;
  padding: 0 48px 34px;
}

.testimonials-carousel .owl-controls {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.testimonials-carousel .owl-buttons {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.testimonials-carousel .owl-buttons div {
  display: grid !important;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  place-items: center;
  color: #fff;
  border-radius: 50% !important;
  background: var(--brand-blue);
  font-size: 24px;
  line-height: 1;
  opacity: 1 !important;
  pointer-events: auto;
}

.testimonials-carousel .owl-pagination {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
}

.testimonials .lead {
  font-family: Raleway, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials .item > p:not(.lead) {
  max-width: 1050px;
  min-height: 6.2em;
  margin: 14px auto;
  line-height: 1.5;
}

.testimonials .fa-star {
  color: #f6c84c;
}

.testimonials p {
  margin: 14px 0;
}

.testimonials img {
  display: inline-block;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonials .item {
  padding: 10px 0;
}

.testimonials .item::after {
  display: none;
}

.testimonial-img {
  display: inline-block;
  width: 82px;
  height: 82px;
  margin-right: 14px;
  vertical-align: middle;
}

.testimonial-img img {
  width: 82px;
  height: 82px;
}

.testimonial-author {
  display: inline-block;
  min-height: 0;
  overflow: visible;
  padding-top: 0;
  text-align: center;
  vertical-align: middle;
}

.testimonial-author .name {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.testimonial-author .small {
  margin: 2px 0 5px;
  font-size: 15px;
}

.portfolio-gallery {
  margin-top: 36px;
}

.portfolio-gallery .item {
  display: flex;
  height: 170px;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.portfolio-gallery img {
  display: block;
  max-width: 100%;
  max-height: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Contact form. */
.contact-details {
  text-align: center;
}

.floating-label-form-group {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.floating-label-form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.floating-label-form-group input, .floating-label-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
}

.floating-label-form-group textarea {
  resize: vertical;
}

.help-block {
  margin: 4px 0 0;
}

.g-recaptcha {
  overflow: hidden;
}

.btn-centered {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

#contactForm .btn-centered {
  min-width: 130px;
  border: 2px solid var(--brand-blue);
}

/* Footer contact information and social links. */
.footer {
  padding: 50px 0 25px;
  color: #ddd;
}

.footer a {
  color: inherit;
}

.footer a:hover {
  color: var(--brand-blue);
  text-decoration: none;
}

.footer-contact-details {
  margin-bottom: 20px;
}

.footer h4 {
  margin: 8px 0;
  color: #fff;
}

.footer-social {
  margin-top: 12px;
}

.footer-social .list-inline-item {
  margin: 0 9px;
}

.copyright {
  margin: 16px 0 0;
  color: #aaa;
  font-size: 14px;
}

.mfp-bg {
  z-index: 1100;
}

.mfp-wrap {
  z-index: 1101;
}

.owl-theme .owl-controls .owl-page span {
  background: var(--brand-blue);
}

.owl-theme .owl-controls .owl-buttons div {
  background: var(--brand-blue);
}

/* Tablet and mobile layout adjustments. */
@media (max-width: 991px) {
  .navbar {
    padding: 10px 15px;
    background: var(--brand-blue);
  }

  .navbar-collapse {
    padding: 10px 0;
  }

  .navbar-nav {
    align-items: stretch;
  }

  .navbar .nav-link {
    padding: 8px 5px !important;
  }

  .masthead {
    min-height: 600px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  h2 {
    font-size: 34px;
  }

  .page-section {
    padding: 64px 0;
  }

  .masthead {
    min-height: 540px;
    height: 88vh;
  }

  .hero-logo {
    width: min(86%, 500px);
  }

  #about .row > div {
    margin-bottom: 22px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .portfolio-wrapper .caption {
    padding: 8px;
  }

  .testimonials .lead {
    font-size: 24px;
  }

  .testimonial-img {
    width: 68px;
    height: 68px;
    margin-right: 10px;
  }

  .testimonial-img img {
    width: 68px;
    height: 68px;
  }

  .testimonial-author .name {
    font-size: 16px;
  }

  .testimonial-author .small {
    font-size: 14px;
  }

  .testimonials-carousel {
    padding-right: 38px;
    padding-left: 38px;
  }

  .testimonials-carousel .owl-buttons div {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .call-to-action .quote {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .controls .btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .g-recaptcha {
    transform: scale(.88);
    transform-origin: top left;
  }
}
