:root{
  --splash-bg: var(--light);
  --fade: 500ms;
}

/* Fullscreen overlay */
.splash{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--splash-bg);
  opacity: 1;
  pointer-events: all;
  transition: opacity var(--fade) ease;
}

.splash__panel{
  position: absolute;
  inset: 50%;
  width: 90vw;
  height: 90vh;
  max-width: 90%;
  max-height: 90%;
  background: transparent;
  transform: translate(-50%, -50%) scale(0.9);
  border: solid 1px var(--navy);
  opacity: 0;
  transition:
    opacity 500ms ease,
    transform 3s ease;
}

.splash.is-panel-visible .splash__panel{
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.8);
}

.splash__logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 1s ease, transform 2s ease;
  z-index: 2;
}

.splash__logo img{
  display: block;
  width: 80%;
  max-width: 55rem;
  margin: 0 auto;
  height: auto;
}

.splash.is-logo-visible .splash__logo{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.splash.is-hidden{
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce){
  .splash,
  .splash__logo,
  .splash__panel{
    transition: none !important;
  }
}





/* HOME HERO SLIDER */

.hero-slider-wrapper {
    overflow: hidden;
}

#card-slider {
    position: relative;
    margin: var(--nav-height) auto 0 auto;
}

#card-slider .splide__slide {
  width: 100%; 
  aspect-ratio: 3/4;
}

#card-slider .card {
  width: 100%;
  height: 100%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

#card-slider .card img {
    height: 100%;
    object-fit: cover;
}

#card-slider .splide__arrow {
    width: 3rem;
    height: 3rem;
    background-color: var(--light);
    border-radius: 0;
}
#card-slider .splide__arrow--prev { left: 1rem; }
#card-slider .splide__arrow--next { right: 1rem; }

.card5050, .card4060, .card6040 {
    display: grid;
    gap: 10px;
    height: 100%;
}

.card5050 {
    grid-template-rows: 1fr 1fr;
}

.card4060 {
    grid-template-rows: 40% 60%;
}

.card6040 {
    grid-template-rows: 60% 40%;
}

/* HOME INTRO */

.home-intro {
    max-width: 55rem;
    padding: 2.5rem;
    margin: 0 auto;
    text-align: center;
}

.home-intro h1 {
    padding: 1rem;
    text-align: center;
    margin: 0 auto;
    font-size: clamp(2.25rem, 5vw, 3.65rem);
}

.home-intro p {
    font-size: var(--fs-main);
}

/* HERO SECTION */

.hero {
    padding: 8rem 0;
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
    color: white;
    overflow: hidden;
    margin-top: var(--nav-height);
}

.hero h1 {
    padding: 1rem;
    max-width: 44rem;
    text-align: center;
    margin: 0 auto;
    font-size: clamp(2.75rem, 5vw, 3.65rem);
    color: var(--light);
}

.hero-bg-image {
    animation: heroAni 3s ease forwards;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 1;
    background-image: url(../images/home/hero.jpg);
    background-position: center;
    background-size: cover;
}

@keyframes heroAni {
  from {
    scale: 1.2
  }
  to {
    scale: 1
  }
}

.hero-overlay-1 {
    background-color: var(--black);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 2;
    mix-blend-mode: overlay;
    opacity: 0.3;
}

.hero-overlay-2 {
    background-color: var(--black);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 3;
    opacity: 0.3;
}

.hero-content {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: relative;
    z-index: 4;
}

.hero-tag {
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    padding: 0 1rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-content a {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: var(--light);
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    color: var(--navy);
    font-weight: 520;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border: solid 2px var(--light);
    transition: all 0.2s ease;
}

.hero-content i {
    transition: all 0.2s ease;
}

.hero-content a:hover i {
    margin-left: 0.25rem;
}

.hero-content a:hover {
    background-color: rgba(0,0,0,0);
    color: var(--light);
}

/* SIDEKICKS */

.sidekick {
    margin-top: 2.5rem;
}

.sidekick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
}

.sidekick-grid p, .sidekick-grid ul {
    font-size: var(--fs-main);
    max-width: 33rem;
}

.sidekick-grid p {
    margin: 1.25rem auto;
}

.sidekick-grid ul {
    margin: 0 auto;
    list-style: none;
    padding: 0;
    font-weight: 550;
    color: var(--navy);
}

.sidekick-grid ul li {
    margin-bottom: 0.5rem;
}

.sidekick-grid img {
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

.sidekick-grid .cta {
    margin-top: 2rem;
}

.sidekick-quality {
    padding-right: 2.5rem;
}

.sidekick-services {
    padding-left: 2.5rem;
}

.sidekick-grid .fa-slash-forward {
    color: var(--sage);
}

/* FEATURED */

.feature-renovations {
    margin: var(--mp) 0;
    overflow: hidden;
}

.fr-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.fr-header div {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.fr-header div a {
    margin-right: 1rem;
    color: var(--navy);
    font-size: 1.1rem;
}

.fr-header div a:hover {
    text-decoration: underline;
}

.projects-slider{
  position: relative;
  margin-top: 18px;
}

.clients {
  margin-top: var(--mp);
}

.clients-quotes {
  display: grid;
  grid-template-columns: 22rem auto;
  margin-top: 2rem;
  border: solid 1px rgba(19, 26, 33, 0.1);
}

.clients-quotes p {
    font-weight: 420;
    font-size: var(--fs-smol);
}

.clients-quotes .smol-tag {
    color: var(--navy);
    border-color: var(--navy);
}

.clients-quotes .slider__track > .card {
    border: none;
}

.project-card-img span {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover span {
    opacity: 1;
}

.clients-quotes .slider__track {
    gap: 6rem;
}

.clients-quotes-meta {
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

.testi-tags {
    margin-top: 1rem;
}

.clients-quotes h3 {
    font-size: 1.4rem;
    margin: 0 0 0.25rem 0;
}

.clients-quotes img {
    height: 24rem;
    object-fit: cover;
}

.clients-mobile {
    display: none;
}

.clients-mobile-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    opacity: 0.25;
    max-height: 25rem;
}

.clients-mobile img {
    max-height: 25rem;
    object-fit: cover;
}

.slider__viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-right: calc(50% - 50vw);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.slider__viewport::-webkit-scrollbar {
  display: none;
}

.slider__track {
  display: flex;
  gap: 18px;
  overflow: visible;
  padding: 8px 0 16px;

  --content-max: 1250px;
}

.slider__track::after {
  content: "";
  flex: 0 0 clamp(0px, calc((100vw - var(--content-max)) / 2), 9999px);
  padding-right: 0.5rem;
}

.slider__track > .card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 33rem; 
  min-height: 220px;
  border: solid 1px rgba(19, 26, 33, 0.1);
  color: var(--navy);
  background-color: white;
}

.slider__track > a.card {
  -webkit-user-drag: none;
  user-select: none;
  touch-action: manipulation;
}

.slider__btn {
  appearance: none;
  border: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  line-height: 1;
  transition: all 0.3s ease;
}

.slider__btn[disabled] {
  opacity: 0.15;
  cursor: not-allowed;
}

[data-slider="testimonials"] .slider__viewport {
  margin-right: 0;
  touch-action: pan-x;
}

[data-slider="testimonials"] .slider__track::after {
  content: none;
}

[data-slider="testimonials"] .slider__track > .card {
  width: 30rem;
}

[data-slider="testimonials"] .slider__viewport{
  margin-right: 0 !important;
  scroll-padding-left: 0;
}

#testimonials-slider .splide__list {
    height: 20rem;
    position: relative;
}

.test-name-etc {
    position: absolute;
    bottom: 5px;
}

.quotes-section {
  min-width: 0; 
  position: relative;
  padding: 2rem 0 0 2rem;
  background-color: white;
}

.slider__controls {
    display: flex;
    column-gap: 0.25rem;
    position: absolute;
    bottom: 0;
    right: 2rem;
    z-index: 4;
}

.quote-gradient {
    width: 25rem;
    height: 100%;
    background: linear-gradient(270deg, white 15%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.nothing {
    width: 10rem;
    height: 1px;
}

[data-slider="testimonials"] .slider__viewport {
  max-width: 100%;
}

.project-card-img {
    position: relative;
    overflow: hidden;
}

.project-card-img img {
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: all 2s ease;
}

a.card:hover img {
    scale: 1.125;
}

.project-card-overlay {
    position: absolute;
    width: 100%;
    height: 5rem;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(19, 26, 33, 0) 0%, rgba(19, 26, 33, 0.6) 100%);
}

.project-card-tags {
    position: absolute;
    z-index: 3;
    width: fit-content;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: calc(100% - 2rem);
    place-content: end;
}

.project-card-deets {
    background-color: white;
    padding: 1.5rem;
}

.project-card-deets h3 {
    margin-bottom: 0.5rem;
}

.project-card-deets p {
    font-size: var(--fs-smol);
}

.project-card-deets .cta {
    font-size: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.4rem 0.5rem;
}

/* MEET THE TEAM */

.team {
    background-color: white;
    padding: var(--mp) 0;
}

.team h2 {
    text-align: center;
    margin: 0 0 2.5rem 0;
}

.team h3 {
    color: var(--light);
}

.team p {
    font-size: var(--fs-main);
    text-align: center;
    max-width: 45rem;
    margin: 0 auto 2rem auto;
}

.team-pepper {
    width: 3.5rem;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    margin: 0 auto;
}

.team-pic-container {
    position: relative;
    overflow: hidden;
}

.team-pic-container img {
    filter: grayscale();
    transition: all 0.8s ease;
}

.team-pic-container:hover img {
    filter: none;
}

.team-pic-container .project-card-overlay {
    background: linear-gradient(180deg, rgba(19, 26, 33, 0) 0%, rgba(19, 26, 33, 0.8) 100%);
    height: 7.5rem;
    transition: all 0.8s ease;
    opacity: 0;
}

.team-pic-container:hover .project-card-overlay {
    opacity: 1;
}

.team-names {
    position: absolute;
    width: calc(100% - 2rem);
    z-index: 4;
    display: flex;
    bottom: 0.75rem;
    padding: 0 1rem;
    color: var(--light);
    align-items: end;
    opacity: 0;
    transition: all 1s ease;
}

.team-names a {
    margin-left: auto;
    color: var(--light);
    font-size: 1.75rem;
}

.team-names span {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.65rem;
}

.team-pic-container:hover .team-names {
    opacity: 1;
}

#portfolio-slider .splide__slide {
  display: flex;
}

#portfolio-slider .card {
  width: 100%;
  height: 100%;
  color: var(--navy);
}

#portfolio-slider .splide__arrow {
  width: 44px;
  height: 44px;
}

#portfolio-slider .splide__track {
    overflow: visible;
}
#portfolio-slider .splide__track {
  height: 100%;
}

#portfolio-slider .splide__slide,
#portfolio-slider .card {
  height: 100%;
}

@media (max-width: 768px) {
  #portfolio-slider .splide__track {
    height: 100%;
  }
}



/* MEDIA QUERIES */

@media only screen and (max-width: 1120px) { 
    .clients-quotes img {
        display: none;
    }

    .quotes-section {
        padding: 2rem;
    }

    .clients-quotes {
        grid-template-columns: 1fr;
    }

    .clients-mobile {
        display: block;
    }

    .clients h2 {
        color: var(--light);
    }

    .clients .content {
        margin-top: -26rem;
        z-index: 4;
        position: relative;
    }

}

@media only screen and (max-width: 1080px) { 
    .sidekick-grid img {
        aspect-ratio: 2/3;
    }
}

@media only screen and (max-width: 1000px) { 
    .sidekick-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 1.5rem;
    }
}

@media only screen and (max-width: 768px) { 
    .home-intro {
        padding: 2.5rem 1rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-tag {
        font-size: 0.65rem;
    }

    .hero-content a {
        font-size: 0.75rem;
    }

    .sidekick-grid {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .sidekick-grid div {
        order: 2;
    }

    .sidekick-grid img {
        aspect-ratio: 16/9;
        order: 1;
    }

    .sidekick-quality {
        padding-right: 0;
        margin-bottom: var(--mp);
    }

    .sidekick-services {
        padding-left: 0;
    }

    .quotes-section {
        padding: 1.25rem;
    }

    .clients-quotes {
        min-height: fit-content;
        margin-top: 1rem;
    }

    .clients-quotes h3 {
        font-size: 1.25rem;
    }

    .quote-gradient {
        display: none;
    }

    [data-slider="testimonials"] .slider__track > .card {
        width: 100%;
    }

    .slider__controls {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .nothing {
        display: none;
    }

    #card-slider .card {
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 700px) { 
    .project-card-img img {
        aspect-ratio: 1;
    }

    .slider__track > .card {
        width: 85vw;
        height: auto;
    }

    .project-card-deets .cta {
        font-size: 0.7rem;
    }

    .project-card-deets {
        padding: 1.25rem;
    }

    .project-card-overlay {
        height: 10rem;
        background: linear-gradient(180deg, rgba(19, 26, 33, 0) 0%, rgba(19, 26, 33, 0.6) 90%);
    }

    .project-card-tags {
        width: calc(80% - 2rem);
    }

    .slider__track {
        gap: 0.5rem;
    }

    a.card:hover img {
        scale: 1;
    }
}

@media only screen and (max-width: 520px) { 
    .sidekicks-items {
        grid-template-columns: 1fr;
    }

    .fr-header div {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .team-pic-container {
        aspect-ratio: 1;
    }

    .team-pic-container .project-card-overlay {
        bottom: 0;
        opacity: 1;
    }

    .team-pic-container .team-names {
        opacity: 1;
    }

    .team-josh {
        order: -1;
    }

    .pb-intro {
        margin: 1.5rem 0 0 0;
    }

}