/*!
 * Start Bootstrap - Stylish Portfolio v5.0.1 (https://startbootstrap.com/template-overviews/stylish-portfolio)
 * Copyright 2013-2018 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-stylish-portfolio/blob/master/LICENSE)
 */

body,
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
}

body {
  font-family: 'Calibri', 'Candara', 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
}

/* BS5 dropped text-justify — restore it */
.text-justify {
  text-align: justify !important;
}

/* Smaller text in narrow columns */
.narrow-col {
  font-size: 1.1rem !important;
  line-height: 1.4rem !important;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
}

.content-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.content-section-heading h2 {
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 3rem);
  text-align: center;
}

.content-section-heading {
  margin-bottom: 1rem;
}

.content-section-heading h3 {
  font-size: clamp(0.8rem, 0.7rem + 0.4vw, 1.1rem);
  text-transform: uppercase;
  text-align: center;
}

h4,
h5 {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.text-faded {
  color: rgba(255, 255, 255, 0.7);
}

/* Map */
.map {
  height: 30rem;
}

@media (max-width: 992px) {
  .map {
    height: 75%;
  }
}

.map iframe {
  pointer-events: none;
}

.scroll-to-top {
  position: fixed;
  right: .5rem;
  bottom: 15px;
  display: none;
  width: 50px;
  height: 50px;
  text-align: center;
  color: white;
  background: rgba(52, 58, 64, 0.5);
  line-height: 45px;
}

.scroll-to-top:focus,
.scroll-to-top:hover {
  color: white;
}

.scroll-to-top:hover {
  background: #343a40;
}

.scroll-to-top i {
  font-weight: 800;
}

.icon {
  max-width: 75%;
  height: auto;
  transition: filter 0.2s;
}

.icon:hover {
  filter: invert(35%) sepia(80%) saturate(400%) hue-rotate(155deg) brightness(90%);
  opacity: 0.5;
}

.img-collagen {
  max-width: 60%;
  height: auto;
}

.masthead {
  position: relative;
  display: table;
  width: 100%;
  height: 100vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0.1)), to(rgba(255, 255, 255, 0.1))), url("../img/other/masthead16-9.png");
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%), url("../img/other/masthead16-9.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.masthead h1 {
  font-size: clamp(2.5rem, 2rem + 3vw, 5.5rem);
  margin: 0;
  padding: 0;
}

.masthead a {
  color: #000;
  text-decoration: none;
}

.masthead a:hover {
  color: #000;
  text-decoration: none;
}


/* Side Menu */
#sidebar-wrapper {
  position: fixed;
  z-index: 2;
  right: 0;
  width: 250px;
  height: 100%;
  -webkit-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  -webkit-transform: translateX(250px);
  transform: translateX(250px);
  background: #1D809F;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 250px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav li.sidebar-nav-item a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 15px;
}

.sidebar-nav li a:hover {
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}

.sidebar-nav>.sidebar-brand {
  font-size: 1.2rem;
  background: rgba(52, 58, 64, 0.1);
  height: 80px;
  line-height: 50px;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 15px;
}

.sidebar-nav>.sidebar-brand a {
  color: #fff;
}

.sidebar-nav>.sidebar-brand a:hover {
  color: #fff;
  background: none;
}

#sidebar-wrapper.active {
  right: 250px;
  width: 250px;
  -webkit-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

.menu-toggle {
  position: fixed;
  right: .5rem;
  top: 15px;
  width: 50px;
  height: 50px;
  text-align: center;
  color: #fff;
  background: rgba(52, 58, 64, 0.5);
  line-height: 50px;
  z-index: 999;
}

.menu-toggle:focus,
.menu-toggle:hover {
  color: #fff;
}

.menu-toggle:hover {
  background: #343a40;
}

.service-icon {
  background-color: #fff;
  color: #1D809F;
  height: 7rem;
  width: 7rem;
  display: block;
  line-height: 7.5rem;
  font-size: 2.25rem;
  -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.portfolio {
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
}

/* Scale portfolio text and spacing with viewport height */
.portfolio p {
  font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.3rem);
  margin-bottom: clamp(0.3rem, 0.5vh, 1rem);
}

.portfolio h5 {
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.2rem);
}

.portfolio .row {
  gap: clamp(0.25rem, 0.5vh, 1rem) 0;
}

.portfolio img {
  max-height: 100%;
}

.bg-primary {
  background-color: #1D809F !important;
}

.about {
  height: 100vh;
  padding-top: 2rem;
  padding-bottom: 1rem;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

footer.footer {
  padding-top: 3rem;
  scroll-snap-align: start;
}

footer.footer .social-link {
  display: block;
  height: 4rem;
  width: 4rem;
  line-height: 4.3rem;
  font-size: 1.5rem;
  background-color: #1D809F;
  -webkit-transition: background-color 0.15s ease-in-out;
  transition: background-color 0.15s ease-in-out;
  -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
}

footer.footer .social-link:hover {
  background-color: #155d74;
  text-decoration: none;
}

a {
  color: #1D809F;
}

a:hover,
a:focus,
a:active {
  color: #155d74;
}

.carousel-inner {
  text-align: justify;
  overflow: hidden;
  max-height: calc(100vh - 4rem);
}

.carousel-item {
  overflow: hidden;
}

/* Make carousel fill the section so arrows reach edges */
/* Side padding scales with viewport width — wider screen = bigger gutters, same content proportions */
.portfolio>.carousel {
  max-width: 100%;
  width: 100%;
  padding-left: clamp(6rem, 10vw, 22rem);
  padding-right: clamp(6rem, 10vw, 22rem);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  position: static;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF7F50' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
  width: 2.5rem;
  height: 2.5rem;
}

.carousel-control-prev {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5.5rem;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 2;
  opacity: 1;
  transition: background-color 0.2s;
}

.carousel-control-prev:hover {
  background-color: rgba(255, 255, 255, 0.55);
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF7F50' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
  width: 2.5rem;
  height: 2.5rem;
}

.carousel-control-next {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5.5rem;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 2;
  opacity: 1;
  transition: background-color 0.2s;
}

.carousel-control-next:hover {
  background-color: rgba(255, 255, 255, 0.55);
}

.carousel-indicators li,
.carousel-indicators button {
  background-color: rgb(255, 165, 0) !important;
  bottom: -0.5rem;
}

.carousel-indicators .active {
  background-color: #ff7f50 !important;
}

.btn-primary {
  background-color: #1D809F !important;
  border-color: #1D809F !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #155d74 !important;
  border-color: #155d74 !important;
}

.btn-secondary {
  background-color: #ecb807 !important;
  border-color: #ecb807 !important;
  color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #ba9106 !important;
  border-color: #ba9106 !important;
}

.btn-dark {
  color: #fff !important;
}

.btn {
  -webkit-box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.bg-primary {
  background-color: #1D809F !important;
}

.text-primary {
  color: #1D809F !important;
}

.text-secondary {
  color: #ecb807 !important;
}