/* Styles */

.red-background {
    background-color: #bc032a
}

.grey-background {
    background-color: #ccc;
}

.lightgrey-background {
    background-color: #efefef;
}

.blue-background {
    background: #000047;
}

.lightblue-background {
    background-color: #cae6fe;
}


/* Formatting */

.relative {
    position: relative;
}

.full-width {
    margin: 0 -1.1% 0 -1%;
}

.large-width {
    max-width: 1366px;
    margin: auto;
}

.small-width {
    max-width: 1000px;
    margin: auto;
}

.xlarge-padding {
    padding: 64px;
}

.large-padding {
    padding: 32px;
}

.padding {
    padding: 16px;
}

.xlarge-margin {
    margin: 64px;
}

.large-margin {
    margin: 32px;
}

.margin {
    margin: 16px;
}

.center-text {
    text-align: center;
}

.xlarge-text {
    font-size: 64px;
}


/* Layout */

.large-text {
    font-size: 48px;
}

.row {
    box-sizing: border-box;
}

.row::after {
    content: "";
    clear: both;
    display: block;
}

[class*="col-"] {
    float: left;
    box-sizing: border-box;
}

.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

@media only screen and (max-width: 768px) {
    [class*="col-"] {
        width: 100%;
    }
}


/* Percentage */

.percent-container {
    position: relative;
    margin: auto;
    display: block;
    width: 150px;
    height: 150px;
    background-color: #bc032a;
    text-shadow: none !important;
    transition: 0.3s;
}

.percent {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: white;
    width: 100%;
    text-align: center;
}

.percent h4 {
    margin: 0;
    font-weight: normal;
    color: white;
    font-size: 1em;
}

.percent h4:first-child {
    margin-bottom: 28px;
}

.percent h4:last-child {
    margin-top: 14px;
}

.stat {
    font-size: 26px;
    font-family: var(--first-font);
    color: var(--first-color);
}

.counter {
    margin-top: 8px;
    font-size: 48px;
    line-height: 1;
    color: var(--second-color);
}

.unit-percent::after {
    content: "%";
}

.unit-pound::before {
    content: "£";
}

.unit-dollar::before {
    content: "$";
}

.percent-title {
    margin: 0;
    margin-bottom: 16px;
    color: #000047;
}


/* Project Summery */

.info-case {
    position: relative;
    margin-top: -65px;
    padding-top: 55px;
    overflow: hidden;
}

.info-logo {
    display: block;
    margin: auto;
    margin-bottom: 32px;
    max-width: 250px;
    max-height: 125px;
}

.info-background {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    -webkit-transition: 0.7s;
    -moz-transition: 0.7s;
    -o-transition: 0.7s;
    transition: 0.7s;
}

.info-case:hover .info-background {
    -webkit-transform: translate(-50%, -50%) scale(1.1, 1.1);
    -moz-transform: translate(-50%, -50%) scale(1.1, 1.1);
    -ms-transform: translate(-50%, -50%) scale(1.1, 1.1);
    -o-transform: translate(-50%, -50%) scale(1.1, 1.1);
    transform: translate(-50%, -50%) scale(1.1, 1.1);
}

.info-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: #bc032a;
    opacity: 0.7;
}

.info-text h3,
.info-text p {
    color: white;
}

.case-summary h4 {
    color: #bc032a;
}

.case-summary p {
    margin: 0;
}


/* Contact */

.send-email {
    font-size: 5em;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
    margin: 0;
    margin-top: -16px;
    color: white;
}

.send-email+h3 {
    color: white;
}


/* Case Studies */

.case-container {
    float: left;
    position: relative;
    width: 23%;
    padding-top: 23%;
    margin: 1%;
    overflow: hidden;
    box-sizing: border-box;
}

.case-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    -webkit-transition: 0.7s;
    -moz-transition: 0.7s;
    -o-transition: 0.7s;
    transition: 0.7s;
}

.case-image {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: block;
    max-width: 60%;
    max-height: 30%;
}

.case-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(188, 3, 42, .7);
    box-sizing: border-box;
    text-align: center;
}

.case-text p {
    color: white;
    margin: 0;
    margin-bottom: 8px;
    font-weight: normal;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0 8px;
    font-family: var(--first-font);
    text-transform: uppercase;
    box-sizing: border-box;
    display: none;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .7s ease;
    background: #bc032a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.case-container:hover .case-overlay {
    opacity: 1;
}

.case-overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    height: 100%;
}

.case-cover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.case-link {
    color: white !important;
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    letter-spacing: 16px;
    transition: 0.7s;
    opacity: 0;
    font-family: var(--first-font);
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
}

.case-container:hover .case-link {
    letter-spacing: normal;
    opacity: 1;
}

.resultswrapper::after {
    content: "";
    clear: both;
    display: block;
}


/* Responsive */

@media only screen and (max-width: 1000px) {
    .case-container {
        width: 23%;
        padding-top: 23%;
    }
}

@media only screen and (max-width: 850px) {
    .case-container {
        width: 31.33%;
        padding-top: 31.33%;
    }
}

@media only screen and (max-width: 677px) {
    /* Responsive Projects Hero*/
    .case-container {
        width: 48%;
        padding-top: 48%;
    }
    .projects-image {
        width: auto;
        height: 100%;
    }
    .projects-image:hover {
        width: auto;
        height: 105%;
    }
    .counter-mobile-margin {
        margin: 32px 0;
    }
}