:root {
    --bs-nav-link-font-size: 1.1rem;
    --bs-nav-link-font-weight: 600;
}

html {
    scrollbar-width: none;
    scroll-behavior: auto !important;
}

html::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
}

.scroll-section {
    scroll-snap-align: start;
    scroll-margin-top: 1000px;
    flex: 0 0 100%;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 2rem;
    background: #f8f9fa;
    border-right: 1px solid #ccc;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, rgb(195, 213, 255) 0%, rgb(63, 87, 153) 100%) !important;
    color: #222;
    font-family: "Roboto Condensed", sans-serif !important;
}

nav {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px #5b6986;
}

nav .nav-link {
    width:100px;
    margin-right: 2rem;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    user-select: none;
    border-radius: 15px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px #eee;
}

.unselectable {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hide-scrollbar {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}


.nav-link {
    background-color: unset !important;
    /* color: #476bb1 !important; */

    border-radius: 0px !important;
    box-shadow: none !important;
    transition: transform 1s ease;
}

.nav-link.active {
    border-bottom: 3px solid #c30000 !important;
    box-shadow: 0 2px 8px #000000;
}


.bg-blue {
    background-color: #e5ebfc;
}

h1 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    cursor: default;
    user-select: none;
}

p {
    color: #444;
    font-size: 1.1em;
    margin-bottom: 1em;
}

button {
    font-family: inherit;
}


.banner-image {
    width: 100%;
    height: 400px !important;
    background-blend-mode: lighten;  
    background-color: rgba(255,255,255,0.7); 
    background-size: cover;
    background-position: center;
}

.motto {
    font-weight: 700;
    text-shadow: 1px 1px 2px #ffffff;
}

.red-divider {
    height: 0;
    border-top: 2px solid rgb(196, 0, 0);
    width:30%;
    opacity: 1;
    margin: 40px auto;
}


.carousel-item {
    overflow: visible !important;
}

.carousel .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: rgb(236, 246, 255);
}


/* .city-image-crop {
  width: 100%;
  height: 45vh;
  overflow: hidden;
}

.city-image-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
} */

.free-quote-btn {
    padding: 8px 18px !important;
    background-color: #b10000 !important;
    border-radius: 50px !important;
    /* border: 1px solid #eaf5fa !important; */
    /* transition: transform 1s ease; */
    color: white !important;
    box-shadow: 2px 3px 2px #0000005c !important;
}

.shake-btn {
  animation: shake 5.5s cubic-bezier(.36, .07, .19, .97) infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  0%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }

  10% { transform: translate3d(-2px, 0, 0); }
  12% { transform: translate3d(2px, 0, 0); }
  14% { transform: translate3d(-4px, 0, 0); }
  16% { transform: translate3d(4px, 0, 0); }
  18% { transform: translate3d(-2px, 0, 0); }
  20% { transform: translate3d(0, 0, 0); }
}


.form-control {
    background-color: #eff4ff !important;
    border-radius: 12px !important;
}

#formStatus {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

#formStatus.show {
    max-height: 200px;
    opacity: 1;
}

#formStatusCloseBtn {
    width: 0.5rem;
    height: 0.5rem;
    background-size: 0.5rem;
    padding: 0.4rem;

}

#submitBtn {
    border-radius: 15px;
}

#undoBtn {
    cursor: pointer;
    border-radius: 15px;
}

footer {
    font-size: 0.9rem;
}



/* Our client logos */
@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.logos {
    overflow: hidden;
    padding: 20px 0;
    background: white;
    white-space: nowrap;
    position: relative;
}

.logos:before,
.logos:after {
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    content: "";
    z-index: 2;
}

.logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.logos-slide img {
    box-sizing: border-box;
    height: 70px;
    margin: 0 30px;
    transition: transform 0.3s ease;
}

.logos-slide img:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Our client logos */

@media (max-width: 800px) {

    #splash-logo img {
        width: 90vw !important;
    }

    #about-york {
        flex-direction: column !important;
    }

    #aboutUs .card {
        max-width: 100%;
    }

    nav .nav-link {
        width: 80px;
        margin: 0.0rem !important;

    }
}

@media (max-width: 768px) {

    /* .carousel, */
    .carousel-inner {
        padding-left: 10px;
        padding-right: 10px;
        overflow: visible !important;
    }

    .carousel-control-prev {
        width: 0px !important
    }

    .carousel-control-next {
        width: 0px !important
    }
}

@media (max-width: 620px) {

    #nav-logo {
        max-height: 50px;
    }

    .navbar {
        justify-content: center !important
    }

    nav .nav-link {
        font-size: small !important;
    }

    .scroll-section {
        padding: 0rem !important;
    }

    .free-quote-btn {
        display: none !important;
    }

    .navbar-brand {
        flex-direction: column !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    div.container {
        padding: 15px !important;
    }

    div.clients-div {
        padding: 5px !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: scale(1.15);
        z-index: 10;
        position: relative;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .nav-link:hover {
        background: 
        linear-gradient(to right, transparent, #5576b818 30%, #647eb118 70%, transparent)
        !important;
        border-bottom: 2px solid #970000 !important;
    }

    .nav-link.active {
        border-bottom: 3px solid #c30000 !important;
        box-shadow: 0 8px 20px #000000;
    }
}

@media (hover: none) and (pointer: coarse) {
    .card.hovered {
        transform: scale(1.15);
        z-index: 10;
        position: relative;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform: translateZ(0);
        -webkit-overflow-scrolling: touch;
    }
}
