/********** CSS **********/
:root {
    --primary: #1b2433;
    --secondary: #cd9105;
    --light: #FFFFFF;
    --dark: #152440;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 36, 64, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.service-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50px;
    bottom: -50px;
    left: 0;
    background: var(--light);
    border-radius: 100% 100% 0 0;
    box-shadow: 0px -10px 5px #EEEEEE;
    transition: .5s;
}

.service-item:hover::after {
    bottom: -25px;
}

.service-item p {
    transition: .3s;
}

.service-item:hover p {
    margin-bottom: 25px !important;
}

.team-item img {
    transform: scale(1.15);
    margin-left: -30px;
    transition: .5s;
}

.team-item:hover img {
    margin-left: 0;
}

.team-item .team-text {
    left: -100%;
    transition: .5s;
}

.team-item .team-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 50%;
    right: -60px;
    margin-top: -30px;
    border: 30px solid;
    border-color: transparent transparent transparent var(--primary);
}

.team-item:hover .team-text {
    left: 0;
}

.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.1);
}

/* ==================================================
   Firm Registration Section
================================================== */

.firm-registration-section {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

/* Decorative red line at top */
.firm-registration-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #9e120b;
}


/* Heading underline */

.firm-heading-line {
    width: 75px;
    height: 3px;
    background: #9e120b;
    border-radius: 10px;
}


/* Card */

.firm-info-card {
    position: relative;
    display: flex;
    align-items: center;

    background: #ffffff;

    padding: 35px;

    border-radius: 14px;

    border: 1px solid rgba(0, 31, 63, 0.08);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    overflow: hidden;
}


/* Flyer-inspired bottom accent */

.firm-info-card::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #001f3f 0%,
        #001f3f 50%,
        #9e120b 50%,
        #9e120b 100%
    );
}


/* Hover */

.firm-info-card:hover {
    transform: translateY(-6px);

    border-color: rgba(158, 18, 11, 0.25);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.12);
}


/* Icon */

.firm-icon {
    flex: 0 0 78px;

    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 25px;

    background: #9e120b;

    color: #ffffff;

    border-radius: 50%;

    font-size: 30px;

    box-shadow:
        0 7px 18px rgba(158, 18, 11, 0.22);
}


/* Text */

.firm-info-content {
    flex: 1;
}

.firm-info-label {
    display: block;

    color: #001f3f;

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    margin-bottom: 7px;
}


.firm-info-number {
    color: #9e120b;

    font-size: 27px;

    font-weight: 700;

    margin-bottom: 6px;
}


.firm-info-content p {
    color: #777777;

    font-size: 14px;
}


/* Mobile */

@media (max-width: 767px) {

    .firm-info-card {
        padding: 25px 20px;

        flex-direction: column;

        text-align: center;
    }

    .firm-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .firm-info-number {
        font-size: 23px;
    }
}