/*** Default Styles ***/
:root {
    --primary: #2c2e84;
    --primaryRGB: 44, 46, 132;
    --primaryDark: #121549;
    --primaryDarkRGB: 18, 21, 73;
    --accent: #fab71d;
    --accentRGB: 250, 183, 29;
    --black: #000;
    --offblack: #262626;
    --white: #fff;
    
}
*, *:before, *:after {
    word-wrap: break-word;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}
body {
    font-family: "Outfit", sans-serif;
    margin: 0;
}
body:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/hero_bg.jpg);
    background-size: cover;
    z-index: -1;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Bebas Neue", sans-serif;
    margin: 0;
}
.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 6px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.eyebrow:after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    flex: 0 0 60px;
    background-color: var(--accent);
    opacity: .5;
}
.eyebrow:before {
    margin-right: 8px;
}
.btn {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out 0s;
    border: 4px solid var(--accent);
    color: var(--primary);
    font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
}
.btn:hover, .btn:focus {
    border: 4px solid var(--accent); 
    transform: scale(1.1);
    background-color: var(--primary);
    color: var(--white);
}
.btn-white {
    color: var(--white);
}
.reset-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
section {
    padding: 60px 0;
}
.section__inner {
    max-width: 1072px;
    padding: 0 24px;
    margin: 0 auto;
}
section h2 {
    font-size: 36px;
    line-height: 36px;
    color: var(--primary);
}

/*** Nav ***/
nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 95px;
    padding: 0 48px;
    transition: all 0.2s ease-in-out 0s;
    z-index: 12;
    background-color: var(--white);
}
.nav__logo {
    margin-right: auto;
    color: var(--white);
    text-align: center;
}
.nav__logo img {
    width: 150px;
}
html.not-top nav {
    background-color: rgba(var(--primaryRGB), .9);
    box-shadow: 0px 8px 10px 2px rgba(0, 0, 0, 0.25);
}
.nav__items {
    height: 100%;
}
.nav__items li {
    margin: 0 12px;
    height: 100%;
}
.nav__items li a {
    color: var(--primary);
    text-decoration: none;
    font-size: 18px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nav__items li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: all 0.2s ease-in-out 0s;
}
.nav__items li a:hover:after, .nav__items li a:focus:after, .nav__items li a.active:after {
    width: 100%;
    height: 4px;
}
.nav__phone {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    margin: 0 48px 0 36px;
    display: flex;
    align-items: center;
}
.nav__phone.mobile {
    display: none;
}
.nav__phone svg {
    margin-right: 6px;
}
.nav__phone svg path {
    fill: var(--accent);
}
.nav__toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
}
.nav__toggle .icon {    
    position: absolute;    		
    top: 50%;
    left: 50%;    
    transform: translate(-50%, -50%);  
}
.nav__toggle .menu {
    width: 60px;
    height: 60px;
    zoom: 0.5;
    cursor: pointer;
}
.nav__toggle .menu-middle, .nav__toggle .menu:before, .nav__toggle .menu:after {
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 10px;
}
html.not-top .nav__toggle .menu-middle, 
html.not-top .nav__toggle .menu:before, 
html.not-top .nav__toggle .menu:after,
body.nav-open .nav__toggle .menu-middle,
body.nav-open .nav__toggle .menu:before, 
body.nav-open .nav__toggle .menu:after {
    background-color: var(--white);
} 
.nav__toggle .menu-middle {
    top: 50%;
    margin-top: -2px;
    transition: transform ease-out 0.2s;
}
.nav__toggle .menu:before, .nav__toggle .menu:after {
    content: '';
}
.nav__toggle .menu:before {
    top: 8px;
    transition: top 0.2s ease-out 0.2s, transform ease-out 0.2s;
}
.nav__toggle .menu:after {
    bottom: 8px;
    transition: bottom 0.2s ease-out 0.2s, transform ease-out 0.2s;
}
body.nav-open .nav__toggle .menu:before {
    top: 28px;
    transform: rotate(-45deg);
    transition: top ease-out 0.2s, transform 0.2s ease-out 0.2s;
}
body.nav-open .nav__toggle .menu:after {
    bottom: 28px;
    transform: rotate(45deg);
    transition: bottom ease-out 0.2s, transform 0.2s ease-out 0.2s;
}
body.nav-open .nav__toggle .menu-middle {
    transform: rotate(-45deg);
    transition: transform 0.2s ease-out 0.2s;
}
html.not-top .nav__items li a, html.not-top .nav__phone, html.not-top .nav .btn {
    color: var(--white);
}

/*** Hero ***/
.hero {
    min-height: calc(100vh - 95px);
    margin-top: 95px;
    background-color: rgba(var(--primaryDarkRGB), .75);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
}
.hero__cert-logos {
    margin-bottom: 48px;
}
.hero__cert-logos img {
    width: 250px;
}
.hero .eyebrow {
    font-size: 18px;
    margin: 0;
    letter-spacing: 8px;
}
.hero .eyebrow:before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    flex: 0 0 60px;
    background-color: var(--accent);
    opacity: .5;
}
.hero h1 {
    font-size: 100px;
    line-height: 90px;
    margin: 24px 0 0;
}
.hero h1 span {
    color: var(--accent);
}
.hero p {
    font-size: 24px;
    margin: 0;
    position: relative;
}
.hero p.address {
    margin-top: 24px;
}
.hero p.address:after {
    content: '';
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 78px;
    background-color: var(--accent);
    opacity: .5;
}
.hero p span {
    color: var(--accent);
    font-weight: 700;
}
.hero ul {
    margin-top: 60px;
    position: relative;
}
.hero ul:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 1px;
    background-color: var(--accent);
    opacity: .5;
}
.hero ul li {
    margin: 0 12px;
}
.hero ul li a.btn {
    width: 150px;
}

/*** Services Bar ***/
.services-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}
.services-bar__row {
    display: flex;
    margin: 0 -12px 48px;
}
.services-bar__item {
    flex: 1 1 auto;
    width: calc(25% - 24px);
    margin: 0 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.services-bar__item-icon-title {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(var(--accentRGB), .5);
    height: 60px;
    align-items: center;
}
.services-bar__item-icon {
    flex: 0 0 40px;
    margin-right: 12px;
}
.services-bar__item-icon img {
    width: 40px;
}
.services-bar__item-icon-title h3 {
    font-size: 21px;
}
.services-bar__item .btn {
    margin-top: auto;
}

/*** About ***/
.about {
    background-color: var(--white);
}
.about__row {
    display: flex;
}
.about__left, .about__right {
    flex: 1 1 50%;
}
.about__left-img {
    position: relative;
    padding-top: 24px;
    padding-left: 24px;
    margin-right: 48px;
    height: 100%;
}
.about__left-img:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 75%;
    border: 2px solid var(--accent);
}
.about__left-img img {
    position: relative;
    z-index: 4;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.about__right {
    padding-top: 24px;
}
.about p {
    color: var(--offblack);
}

/*** Services ***/
.services {
    background-color: var(--white); 
    padding: 0;
}
.services__row {
    display: flex;
    flex-direction: row-reverse;
}
.services__left, .services__right {
    flex: 1 1 50%;
}
.services__left-img {
    position: relative;
    padding-top: 24px;
    padding-right: 24px;
    margin-left: 48px;
    height: 100%;
}
.services__left-img:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 75%;
    border: 2px solid var(--accent);
}
.services__left-img img {
    position: relative;
    z-index: 4;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.services p {
    color: var(--offblack);
}
.services ul {
    flex-wrap: wrap;
    margin: 24px -6px 0;
}
.services ul li {
    padding: 12px 24px;
    background-color: var(--primary);
    border-radius: 12px;
    margin: 6px;
    font-weight: 700;
    color: var(--white);
    flex: 0 0 auto;
    width: calc(25% - 12px);
    text-align: center;
}
.services__bottom {
    background-color: var(--primary);
    margin-top: 48px;
    padding: 24px 0;
}
.services__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.services__bottom-row:before {
    content: '';
    position: absolute;
    top: -60px;
    left: 12px;
    width: 1px;
    height: 36px;
    background-color: var(--primary);
}
.services__bottom-row h3 {
    font-family: "Outfit", sans-serif;
    font-size: 24px;
    color: var(--white);
}

/*** Projects ***/
section.projects h2 {
    color: var(--white);
}
.projects {
    background-color: var(--primary);
    color: var(--white);
    padding-bottom: 72px;
}
.projects__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 36px 0 48px;
}
.projects__filters-btn {
    font-size: 16px;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease-in-out 0s;
    border: 2px solid rgba(var(--accentRGB), 0);
    font-family: "Bebas Neue", sans-serif;
  }
.projects__filters-btn:hover, .projects__filters-btn:focus, .projects__filters-btn.active {
    border: 2px solid rgba(var(--accentRGB), 1);
}
.projects__grid{
    position: relative;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}
.projects__card {
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
}
.projects__card.is-animating {
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease;
}
.projects__card.is-leaving {
    opacity: 0;
    transform: scale(.92);
}
.projects__card.is-hidden {
    display: none;
}
.projects__thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.projects__thumb img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.projects__card:hover .projects__thumb img {
    transform: scale(1.06);
}
.projects__details {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,rgba(28,32,29,.92) 0%,rgba(28,32,29,.35) 45%,rgba(28,32,29,0) 65%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
    padding: 24px;
}
.projects__details p {
    margin: 0;
}
.projects__details .eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
}
.projects__details .eyebrow:after {
    width: 24px;
    flex: 0 0 24px;
}
.projects__card:hover .projects__details {
    opacity: 1;
}

/*** Testimonials ***/
section.testimonials h2 {
    color: var(--primary);
}
.testimonials {
    background-color: rgba(var(--accentRGB), .9);
    text-align: center;
    position: relative;
    z-index: 3;
}
.testimonials__left {
    min-width: 1px;
    min-height: 1px;
    color: var(--primary) !important;
}
.testimonials__right {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% + 48px);
    color: var(--white);
    width: 520px;
}
.testimonials__right:before {
    content: '';
    position: absolute;
    top: -24px;
    right: -24px;
    width: 50%;
    height: 75%;
    border: 2px solid var(--white);
    z-index: -1;
}
.testimonials__right-inner {
    background-color: var(--primaryDark);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    position: relative;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.25);
}
.testimonials .eyebrow {
    justify-content: center;
}
.testimonials .eyebrow:before, .testimonials .eyebrow:after {
    background-color: var(--white);
}
.testimonials .eyebrow:before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    flex: 0 0 60px;
    opacity: .5;
}
.testimonials__right p {
    font-size: 18px;
    margin: 12px 0;
}
.testimonials__right p.big {
    font-size: 24px;
    font-weight: 700;
}
.testimonials__right .btn {
    display: inline-flex;
    margin-top: 24px;
}
.testimonials .swiper-slide img {
    width: 100px;
    margin-top: 24px;
}
.swiper-pagination {
    position: relative;
}
.swiper-pagination-bullet-active {
    background: var(--primary);
}

/*** Contact ***/
.contact {
    background-color: var(--white);
    text-align: center;
    position: relative;
    padding-bottom: 120px;
    color: var(--primary);
}
.contact:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: var(--primary);
}
.contact p {
    font-size: 48px;
    line-height: 48px;
    font-weight: 700;
    margin: 0;
}
.contact p.small {
    font-size: 21px;
    line-height: normal;
    font-weight: 400;
    margin: 12px;
}
.contact p.small a {
    text-decoration: none;
    color: var(--primary);
}
.contact__form {
    margin: 40px auto 0;
    text-align: left;
}
.contact__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.contact__field { min-width: 0; }
.contact__field--full { grid-column: 1 / -1; }
.contact__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.contact__field label span { color: var(--primary); }
.contact__field input,
.contact__field textarea {
    display: block;
    width: 100%;
    padding: 15px 16px;
    border: 2px solid #d9dbea;
    border-radius: 0;
    background: var(--white);
    color: var(--offblack);
    font: 16px "Outfit", sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact__field textarea { resize: vertical; min-height: 150px; }
.contact__field input:focus,
.contact__field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--accentRGB), .25);
}
.contact__form .btn {
    cursor: pointer;
    background-color: transparent;
}
.contact__form .btn:hover, .contact__form .btn:focus {
    background-color: var(--primary);
}
.contact__button {
    text-align: center;
}
.contact .btn {
    margin: 24px auto 0;
}
.contact__status {
    display: none;
    margin: 24px auto 0;
    padding: 18px 24px;
    max-width: 640px;
    text-align: left;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    border-left: 6px solid;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.12);
}
.contact__status.is-visible {
    display: block;
    animation: statusIn .3s ease-out;
}
.contact__status.is-success {
    background-color: #e9f6ec;
    border-color: #2e7d32;
    color: #1b5e20;
}
.contact__status.is-error {
    background-color: #fdecea;
    border-color: #c62828;
    color: #8e1b1b;
}
.contact__status a {
    color: inherit;
    font-weight: 700;
}
@keyframes statusIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/*** Footer ***/
.footer {
    background-color: var(--primary);
    padding: 60px;
    color: var(--white);
    text-align: center;
}
.footer__logo img {
    width: 300px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    background: var(--primaryDark);
    transition: all 0.2s ease-in-out 0s;
}
.social-icons a:hover, .social-icons a:focus {
    background: var(--accent);
    color: var(--black);
    transform: translateY(-2px);
}

/*** Media Queries ***/
@media(max-width: 1023px) {
    body.nav-open {
        overflow: hidden;
    }
    .nav {
        padding: 0 24px;
    }
    .nav__items {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(var(--primaryRGB), .9);
        transform: translateX(100%);
        transition: all 0.2s ease-in-out 0s;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 48px 24px;
        z-index: 2;
    }
    body.nav-open nav ul {
        transform: none;
    }
    .nav__items li {
        height: auto;
        width: 100%;
    }
    .nav__items li a {
        padding: 24px;
        font-size: 24px;
        border-bottom: 1px solid rgba(var(--accentRGB), .5);
    }
    .nav__items li:last-child a {
        border-bottom: none;
    }
    .nav__toggle {
        display: flex;
        z-index: 9;
    }
    .nav__phone {
        margin: 0;
    }
    .nav .btn {
        margin: 0 24px;
    }
    .nav__items li a {
        color: var(--white);
    }
    .services-bar__row {
        flex-wrap: wrap;
    }
    .services-bar__item {
        width: calc(50% - 24px);
        margin: 12px;
    }
    .about__row, .services__row {
        display: block;
    }
    .about__left-img {
        margin-right: 0;
    }
    .services__left-img {
        margin-left: 0;
    }
    .services__right {
        padding-top: 24px;
    }
    .services ul li {
        width: calc(33.3334% - 12px);
    }
    .about__left-img img, .services__left-img img {
        width: 100%;
    }
    .projects {
        padding-bottom: 60px;
    }
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials {
        padding: 60px 24px;
    }
    .testimonials__right {
        position: relative;
        top: auto;
        transform: none;
        height: auto;
        width: auto;
        right: 0;
    }
    .testimonials__right:before {
        display: none;
    }
}

@media(max-width: 767px) {
    section {
        padding: 24px 0;
    }
    [data-aos] {
        transition-delay: 0s !important;
    }
    .nav {
        height: 130px !important;
        padding-top: 50px;
        background-color: rgba(var(--primaryRGB), .9);
        box-shadow: 0px 8px 10px 2px rgba(0, 0, 0, 0.25);
    }
    .nav__logo {
        flex: 0 0 80px;
    }
    .nav__phone {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        justify-content: center;
        background-color: var(--accent);
    }
    .nav__phone.desktop {
        display: none;
    }
    .nav__phone.mobile {
        display: flex;
    }
    .nav__phone.mobile a {
        display: flex;
        text-decoration: none;
        color: var(--black);
    }
    .nav__phone svg path {
        fill: var(--black);
    }
    .nav .btn {
        color: var(--white) !important;
    }
    .nav__toggle .menu-middle,
    .nav__toggle .menu:before, 
    .nav__toggle .menu:after {
        background-color: var(--white) !important;
    } 
    .hero {
        padding: 24px;
        min-height: calc(100svh - 130px);
        margin-top: 130px;
    }
    .hero .eyebrow {
        font-size: 12px;
        letter-spacing: 6px;
        padding-left: 6px;
    }
    .hero .eyebrow:before, .hero .eyebrow:after, .testimonials .eyebrow:before, .testimonials .eyebrow:after {
        display: none;
    }
    .hero h1 {
        font-size: 48px;
        line-height: 44px;
        margin-top: 12px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero ul {
        width: 100%;
    }
    .hero ul li {
        flex: 1 1 50%;
    }
    .hero ul li a.btn {
        width: 100%;
    }
    .services-bar {
        padding: 12px 0 24px;
    }
    .services-bar__row {
        display: block;
        margin: 0 0 48px;
    }
    .services-bar__item {
        width: 100%;
        margin: 12px 0;
    }
    .services-bar .btn {
        display: flex;
    }
    .services__bottom-row {
        display: block;
        text-align: center;
    }
    .services__bottom-row h3 {
        margin-bottom: 12px;
    }
    .services ul li {
        width: calc(100% - 12px);
    }
    .projects {
        padding-bottom: 24px;
    }
    .projects__grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .contact {
        padding-bottom: 90px;
    }
    .contact p {
        font-size: 24px;
    }
    .contact .btn {
        display: flex;
    }
}