:root {
    --gold: rgb(225 197 111);
    --brightBlue: rgb(121 173 211);
    --secondary: #f5b325;
    --darkRed: #960329;
    --gray: #e9ecef;
}

body.fade {
    transition: opacity 1s ease-in-out .35s;
    opacity: 0;
}

body.fade.show {
    opacity: 1;
}

body.in,
body.modal-show {
    overflow: hidden;
}

body.footer-visible .bar.in {
    opacity: 0;
    transform: translateX(102%);
    pointer-events: none;
}

body {
    font-family: 'Poppins', sans-serif;
}

ul:not(.bullets) {
    list-style: none;
}

.shape+section {
    margin-top: -20px;
}

/*Utilities*/

.bangers {
    font-family: 'Bangers', system-ui;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}

.bg-bright {
    background-color: var(--brightBlue);
}

.bg-gray {
    background-color: var(--gray);
}

.bg-opaque {
    background-color: rgb(255 255 255 / .125);
}

.blue {
    color: var(--blue) !important;
}

.secondary {
    color: var(--secondary) !important;
}

.bright {
    color: var(--brightBlue) !important;
}

.border-bright {
    border-color: var(--brightBlue) !important;
}

.max {
    max-width: max-content;
}

.square {
    aspect-ratio: 1 / 1;
}

.fit {
    object-fit: cover;
    object-position: center;
}

.fit.bottom {
    object-position: bottom;
}

.fit.top {
    object-position: top;
}

.mix {
    mix-blend-mode: multiply;
}

.inset {
    inset: 0;
    margin: 0;
}

.z--1 {
    z-index: -1;
}

.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

.small {
    font-size: .875rem;
}

.serif {
    font-family: 'Lora', serif;
}

.pt-sans {
    font-family: 'PT Sans', sans-serif;
}

.text-small {
    font-size: .875rem;
}

.special {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.special::after {
    content: '';
    background-color: var(--gold);
    display: flex;
    align-self: center;
    flex-grow: 1;
    height: 2px;
    border-radius: .25rem;
    opacity: .875;
}

.disabled {
    opacity: .25;
    pointer-events: none;
}

.ga-rule {
    height: .5rem;
}

.ga-rule::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgb(0 0 0 / .75), transparent);
    mix-blend-mode: color-burn;
    opacity: .75;
}

/*Transitions and Animations*/

.appear {
    transition: opacity .5s ease-in-out .75s;
    opacity: 0 !important;
}

.appear.in {
    opacity: 1 !important;
}

.appear.in.opacity-75 {
    opacity: .75 !important;
}

.appear.in.opacity-50 {
    opacity: .5 !important;
}

.appear.delay {
    transition-delay: 1.35s;
}

.thumb.appear {
    transition-delay: 0s;
}

.fade {
    opacity: 0;
    transition: opacity .35s linear;
}

.fade.show {
    opacity: 1;
}

.modal-backdrop.fade.show {
    opacity: .85;
}

.zoom img {
    transition: opacity .75s ease-in-out, transform .75s ease-in-out;
    opacity: 1;
    transform: scale(1.0);
}

.zoom img:hover {
    opacity: .9;
    transform: scale(1.05);
}

.shape {
    -webkit-mask-image: url(../images/shape.svg);
    mask-image: url(../images/shape.svg);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/*Header Stuff*/

header h1 {
    /*    font-family: 'PT Sans', sans-serif;*/
    font-weight: 900;
    font-size: 1.5rem;
}

#topbar {
    height: 5px;
}

.navbar-toggler {
    height: 2.125rem;
    width: 2.25rem;
    z-index: 10;
    transition: transform .25s ease-in-out;
    transform-origin: center;
}

.button-holder {
    display: block;
    transition: transform .25s ease-in-out;
    transform-origin: center;
    width: 75%;
    height: 2px;
    border-radius: .25rem;
    background-color: var(--bs-dark);
}

.button-holder::before,
.button-holder::after {
    content: '';
    position: absolute;
    left: 12.5%;
    width: 75%;
    height: 2px;
    border-radius: .25rem;
    background-color: var(--bs-dark);
    transition: transform .25s ease-in-out, opacity .25s ease-in-out, rotate .25s ease-in-out;
    transform-origin: center;
    filter: invert(0);
}

.button-holder::before {
    transform: translate(0, -.5rem);
}

.button-holder::after {
    transform: translate(0, .5rem);
    opacity: 1;
}

.navbar-toggler:not(.collapsed) {
    transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) .button-holder::before {
    transform: translate(0, 0rem);
    rotate: -90deg;
}

.navbar-toggler:not(.collapsed) .button-holder::after {
    transform: translate(0, 0rem);
    opacity: 0;
}

.navbar-nav span {
    row-gap: 1rem;
}

.navbar-nav span .nav-link {
    font-size: 1.25rem;
}

/*Banner stuff*/

@keyframes buttonFlash {
    0% {
        transform: translateX(0%) scale(1.0);
    }

    50% {
        transform: translateX(0%) scale(1.05);
    }

    100% {
        transform: translateX(0%) scale(1.0);
    }
}

.banner {
    aspect-ratio: 1 / 1.0625;
}

.banner img {
    z-index: -1;
    /*    filter: grayscale(1);*/
}

.banner h2 .banner p {
    text-shadow: 1px 1px 1px rgb(0 0 0 / .5);
}

#bannerCarousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgb(0 0 0 / .25), rgb(0 0 0 / .5), rgb(0 0 0 / .25));
    z-index: 0;
}

#home main{
    margin-top: -32px;
}

main section:first-child {
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

#bannerCarousel h2 {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .75s ease-in-out 1s, transform .5s ease-in-out 1s;
    text-shadow: 1px 1px 1px rgb(0 0 0 / .25);
}

#bannerCarousel .active.in h2 {
    opacity: 1;
    transform: translateY(0%);
}

#bannerCarousel p {
    opacity: 0;
    transition: opacity .75s ease-in-out 1.75s;
    text-wrap: balance;
    text-wrap: pretty;
    text-shadow: 1px 1px 1px rgb(0 0 0 / .25);
}

#bannerCarousel .active.in p {
    opacity: 1;
}

#bannerCarousel a {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity .5s ease-in-out 2.5s, transform .35s ease-in-out 2.5s, scale .35s ease-in-out;
}

#bannerCarousel .active.in a {
    opacity: 1;
    transform: translateX(0%);
    animation-name: buttonFlash;
    animation-duration: .35s;
    animation-iteration-count: 3;
    animation-delay: 3s;
}

.banner-text a:hover {
    scale: 1.05;
}

.banner [data-name="company"] {
    object-position: center top;
}

/*Service Card Stuff*/

.service-card {
    aspect-ratio: 3 / 3.5;
}

/*.service-card:first-of-type .service-card-text{
    background-image: linear-gradient(180deg, rgba(255 255 255 / 0), rgba(0 0 0 / .25), rgba(0 0 0 / .5), rgba(225 197 111 / .9));
}*/

.service-card img {
    scale: 1;
    filter: brightness(1.0);
    transition: scale .75s ease, filter .75s ease;
}

.service-card:hover img {
    scale: 1.05;
    filter: brightness(1.1);
}

.service-card-text {
    background-image: linear-gradient(180deg, rgba(0 0 0 / 0), rgba(0 0 0 / .25), rgba(0 0 0 / .5), rgba(0 0 0 / .9));
}

.service-card-snippet {
    opacity: .85;
}

/*Accordion Stuff*/

.accordion-heading {
    color: var(--bs-body-color);
    background-color: transparent;
    border: 0;
    width: 100%;
    text-align: left;
}

.accordion-heading::after {
    font-family: 'bootstrap-icons';
    content: '\f659';
    color: inherit;
    margin-left: auto;
    transition: transform .35s ease-in-out;
    transform: rotate(-135deg);
    font-size: 1rem;
    font-weight: 900;
}

.accordion-heading+.d-grid {
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease-in-out;
    overflow: hidden;
}

.accordion-heading.collapsed+.d-grid {
    grid-template-rows: 1fr;
}

.accordion-heading.collapsed::after {
    transform: rotate(0);
}

/*Our Company Stuff*/

ul.checks li {
    display: flex;
    align-items: center;
}

ul.checks li::before {
    content: '\F26B';
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'bootstrap-icons';
    font-size: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: .5rem;
    color: rgb(224 197 111 / .82);
    background: var(--bs-dark) var(--bs-gradient);
    border-radius: 100%;
    /*-webkit-background-clip: text !important;
    background-clip: text !important;
    align-self: start;*/
}

.breadcrumb-item {
    font-size: 1.125rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-light);
}

.breadcrumb-item.active {
    color: var(--bs-light);
    opacity: .75;
}

#sidebar li:has(a.active),
#sidebar li:has(a:hover) {
    background-color: var(--bs-light);
}

#sidebar a.active,
#sidebar a:focus,
#sidebar a:hover {
    position: relative;
    color: var(--gold) !important;
    filter: brightness(.9);
}

main[data-id="our-company"] img {
    aspect-ratio: 16 / 11;
}

/*Category Slider Stuff*/

.category:hover {
    cursor: pointer;
}

/*Areas of expertise stuff*/

img[data-src="images/hotrod.png"] {
    filter: grayscale(1) brightness(.9);
    mix-blend-mode: soft-light;
}

#areas-of-expertise img {
    aspect-ratio: 4 / 3;
}

.from-left .row {
    transition: transform .35s ease-in-out 1s, opacity .75s ease-in-out 1s;
    transform: translateX(-111%);
    opacity: 0;
}

.from-left.in .row {
    transform: translateX(0%);
    opacity: 1;
}

.from-right .row {
    transition: transform .35s ease-in-out 1s, opacity .75s ease-in-out 1s;
    transform: translateX(111%);
    opacity: 0;
}

.from-right.in .row {
    transform: translateX(0%);
    opacity: 1;
}

#services div .service .row {
    transition: transform .35s ease-in-out 1s, opacity .75s ease-in-out 1s;
    opacity: 0;
}

#services div:nth-child(even) .service .row {
    transform: translateX(111%);
}

#services div:nth-child(odd) .service .row {
    transform: translateX(-111%);
}

#services div .service.in .row {
    transform: translateX(0%);
    opacity: 1;
}

.row-back {
    transform: translateX(42%);
}

/*Quotation Stuff*/

#quotation h1 {
    line-height: 1.45;
}

#quotation .appear.in {
    opacity: .875 !important;
}

/*Products and Services Stuff*/

.service .special::after {
    height: 1px;
    background-color: var(--bs-gray-400);
}

.service li{
    text-wrap: pretty;
}

.service i {
    font-size: 1em;
    width: 2rem;
    height: 2rem;
    background: var(--bs-dark) var(--bs-gradient);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 1px solid var(--gold);
    outline-offset: -.15rem;
}

.service i.ga::before{
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.service i.ball::before{
    background-image: url(../images/ball.svg);
}

.service i.peace::before{
    background-image: url(../images/peace.svg);
}

.service i.family::before{
    background-image: url(../images/family.svg);
}

.service i.splash::before{
    background-image: url(../images/splash.svg);
}

.service i.bi-clock-fill {
    color: rgb(191 165 86) !important;
}

/*Our Work Stuff*/

.tile:hover {
    cursor: pointer;
}

.tile span {
    transition: transform .35s ease-in-out;
    transform: translateX(100%);
    background: rgb(0 0 0 / .85) var(--bs-gradient);
}

.tile span i {
    filter: brightness(.7);
}

.tile:hover span {
    transform: translateX(0);
}

#loader:not(.fade) img {
    transition: transform ease;
    filter: drop-shadow(1px 1px 1px rgb(0 0 0 / .5));
    animation: buttonFlash 1s ease infinite both;
}

div:has(#loader:not(.fade)) {
    margin-bottom: 1.5rem;
}

/*Inquiries Stuff*/

input,
textarea,
select {
    background-color: transparent !important;
    outline: 1px solid rgb(255 255 255 / .875);
    outline-offset: .125rem;
    transition: outline .35s ease-in-out;
    border-radius: 1rem;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff67' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: rgb(255 255 255 / .67);
}

input,
textarea {
    color: rgb(0 0 0 / .875) !important;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--brightBlue);
}

input::placeholder,
textarea::placeholder,
select::placeholder {
    color: rgb(255 255 255 / .67);
}

button[type=submit] {
    color: rgb(255 255 255 / .67);
    border: 1px solid rgb(255 255 255 / .875);
    margin-left: .5rem;
}

form button[type=submit].disabled {
    pointer-events: all;
    opacity: 1;
}

button[type=submit]::before {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    font-size: 1.125em;
}

button[type=submit].disabled::before {
    content: '\F47A';
}

button.disabled.appear.in {
    opacity: .5 !important;
}

form .appears {
    display: none !important;
}

form label:not([for="inputMath"]) {
    display: none;
}

.mt-6 {
    display: none;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg)
    }
}

button .spinner-border {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    vertical-align: -.125em;
    border: .125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: .75s linear infinite spinner-border;
}

button:not(.processing) .spinner-border {
    display: none;
    animation-play-state: paused;
}

button.processing::before {
    display: none;
}

/*Footer stuff*/

footer li {
    border-color: rgb(222 226 230 / .75);
}

footer a:not(.active, [target="_blank"]) {
    opacity: .75;
}

footer li a.active,
footer li a:focus,
footer li a:focus-within,
footer li a:hover {
    color: var(--gold) !important;
    opacity: 1;
}

footer h4 {
    font-size: 2.6653rem;
}

footer .vr {
    width: 2px;
    opacity: .75;
}

footer i {
    -webkit-text-stroke: .5px #000;
}

/*Bottom floating button stuff*/

.bar {
    opacity: 0;
    transform: translateX(102%);
    transition: all .5s ease;
    pointer-events: none;
    /*    right: 0 !important;*/
    /*    bottom: 1rem;*/
}

.bar.in {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/*Videos Stuff*/

#pessa-modal .spinner-border {
    animation-play-state: paused;
}

.modal-open #pessa-modal .show .spinner-border {
    animation-play-state: running;
}

#pessa-modal iframe {
    aspect-ratio: 16 / 9;
}

.video-loader {
    outline: 1px solid var(--gold);
    outline-offset: -.375rem;
}

#videos .video img:hover {
    cursor: pointer;
}

/*Media Queries*/

/*Small devices (landscape phones, 576px and up)*/
@media (max-width: 575.98px) {

    .container {
        width: 90%;
    }

    .banner [data-name="company"]{
        object-position: 37.5% top;
    }

    #logo img {
        transition: max-width .25s ease-in-out;
        transform-origin: center top;
    }

    #menu-holder {
        min-height: 110dvh;
        padding-bottom: 5rem !important;
        overflow-y: scroll;
    }

    #about p,
    #areas-of-expertise p:not(.link),
    #solutions p {
        line-height: 1.75 !important;
    }

    #quotation h1 {
        font-size: 1.25rem;
        line-height: 1.5 !important;
    }
}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {

    header h1 {
        font-size: 1.75rem;
    }

    header #header-icons {
        font-size: 1.25rem;
    }

    #menu-holder p {
        font-size: 3rem;
    }

    .banner {
        aspect-ratio: 16 / 10;
    }

    .banner [data-name="company"] {
        object-position: center 22%;
    }

    .banner [data-name="helical"] {
        object-position: center bottom;
    }

    .breadcrumb li {
        font-size: 1.25rem;
    }

    #areas-of-expertise img {
        aspect-ratio: 16 / 9;
    }

    .service img[src="../images/helical-piles-and-piers.jpg"]{
        object-position: 83% center;
    }

    .service img[src="../images/pool-1.jpg"]{
        object-position: 18% center;
    }

    .checks {
        column-count: 2;
    }

    #footer-cap {
        aspect-ratio: 16 / 9;
    }

    footer h4 {
        font-size: 5.6rem;
    }
}

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {

    header h1 {
        font-size: 2.25rem;
    }

    header #header-icons {
        font-size: 1.5rem;
    }

    .navbar-nav span .nav-link {
        font-size: 1rem;
    }

    .banner {
        aspect-ratio: 16 / 9;
    }

    .banner [data-name="company"] {
        object-position: center 28%;
    }

    .breadcrumb li {
        font-size: 1.25rem;
    }

    #areas-of-expertise img {
        aspect-ratio: 1 / 1;
    }

    .service img[src="../images/pool-1.jpg"]{
        object-position: center;
    }

    #solutions img.square {
        aspect-ratio: 3 / 4.25;
    }

    .square.rectangle {
        aspect-ratio: 1 / 1;
    }

    .house-pic {
        position: static;
    }

    #footer-cap {
        aspect-ratio: 21 / 9;
    }

    footer h4 {
        font-size: 4.5rem;
        line-height: .8;
    }
}

/*X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {

    #menu-holder #sub-menu {
        gap: 5rem;
    }

    .banner {
        aspect-ratio: 21 / 10;
    }

    .banner [data-name="company"] {
        object-position: center 35%;
    }

    .banner [data-name="excavation"] {
        object-position: center 64%;
    }

    #areas-of-expertise img {
        aspect-ratio: 1 / 1 !important;
    }

    main[data-id="our-company"] img {
        aspect-ratio: 16 / 9;
    }

    footer h4 {
        font-size: 6rem;
    }
}

/*XX-Large devices (large desktops, 1400px and up)*/
@media (min-width: 1400px) {

    #menu-holder #sub-menu {
        gap: 5rem;
    }

    .banner {
        aspect-ratio: 21 / 9;
    }

    .banner [data-name="company"] {
        object-position: center 38%;
    }

    #solutions img.square {
        aspect-ratio: 1 / 1;
    }

    .service img[src="../images/helical-piles-and-piers.jpg"]{
        object-position: center;
    }

    footer h4 {
        font-size: 6rem;
    }
}