﻿/* reset all */

html {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a,
img {
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    display: inline-block;
}


/* body set-up */

body {
    font-family: Montserrat, sans-serif !important;
    font-size: .937rem;
    line-height: 1.625rem;
    color: #3c3c3c;
    background: #fff;
    font-weight: 300;
    background: url(../images/background.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover
}


/* main style */

a {
    color: inherit;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    word-break: break-word;
}
#wrapper > article > section:nth-child(3) > p:nth-child(1) > a{
        color: #0000EE;
}
u {
    text-decoration: underline;
}

a:hover,
a:focus {
    outline: none;
    /*	text-decoration: underline;*/
}

p {
    margin: 0 0 .625rem;
}

h1 {
    color: #E2001A;
    font-size: 1rem;
    line-height: 1.625rem;
    font-weight: 500;
    margin: 1.875rem 0;
}

h1 span {
    font-size: 0.7em;
    font-weight: normal;
}

h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 1.875rem 0 0;
    color: #e2001a;
}

h2 span {
    color: #000;
    font-weight: 300;
    font-size: .937rem
}

h3 {
    margin: 0 0 .625rem;

}

aside section h3 {
    color: #fff;
    text-transform: uppercase;
}

h4 {
    font-weight: 600;
    text-transform: uppercase;
}

ul {
    padding: 0;
    margin-bottom: 0;
    margin-left: .312rem;
    list-style: none;
}

ul li {
    padding-left: 1.25rem;
    margin-bottom: .312rem
}

ul li:before {
    content: "";
    float: left;
    position: relative;
    margin-left: -1.25rem;
    top: .375rem;
    background: #3c3c3c;
    height: .437rem;
    width: .375rem;
    top: .562rem;
}


ol {
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    position: absolute;
    left: 53%;
    right: 0;
    top: -5rem;
    z-index: 1000;
    width: 20.625rem;
}

ol li {
    display: block;
    color: #000;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 -.312rem 1.25rem .312rem rgba(0, 0, 0, 0.2);
}

ol li:nth-of-type(1) {
    display: block;
    color: #ffffff;
    font-weight: bold;
    line-height: 3.75rem;
    text-align: center;
    text-transform: uppercase;
    background: #E2001A;
    color: #FFFFFF;
    fill: #FFFFFF;
    width: 20.625rem;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

ol li:nth-of-type(2),
ol li:nth-of-type(3),
ol li:nth-of-type(4) {
    opacity: 0;
    background: #fff;
    line-height: 3.75rem;
    text-align: center;
    text-transform: uppercase;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s;
    z-index: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

ol li:nth-of-type(4) a img {
    max-width: 6.25rem;
}

ol li:nth-of-type(2):hover,
ol li:nth-of-type(3):hover,
ol li:nth-of-type(4):hover {
    background-color: rgba(230, 230, 230, 0.8);
    text-decoration: none;
}

ol li:nth-of-type(1) img {
    position: absolute;
    width: 3.125rem;
    right: -.125rem;
    bottom: -.312rem;
}

ol:hover li {
    opacity: 1;
    transform: scaleY(1);
    position: static;
}

article ol li a {
    color: #fff;
}


article > ol li:nth-of-type(2) a, article > ol li:nth-of-type(3) a{
    color: #000;
}



ol li a:hover {
    text-decoration: none;
}

strong {
    font-weight: 500;
}


/* layout  */

#wrapper {
    display: block;
    max-width: 72.5rem;
    margin: 0 auto;
}

header {
    background-image: url(../images/header.jpg);
    background-size: cover;
    background-position: center 20%;
    box-shadow: 0 .312rem 1.25rem .437rem rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 87rem;
    background-repeat: no-repeat;
    margin-bottom: 3.75rem;
    padding-top: 17.5rem;
    position: relative;
}

header > a {
    position: absolute;
    left: 50%;
    transform: translate(-50%)
}

header img {
    display: block;
    width: 100%;
}

header p {
    text-align: center;
    background: rgba(226, 0, 26, 0.8);
    color: #FFFFFF;
    padding: 3.125rem 4.125rem;
    display: inline-block;
    width: auto;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    font-size: 1.875rem;
    margin-top: 3.125rem;
    margin-bottom: 0;
    font-weight: 500;
}

article {
    float: left;
    width: 66%;
    position: relative;
    z-index: 11;
    
}
article p,
article h2 span,
article ul li{
    letter-spacing: -1px
}

article section {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.875rem;
    margin-bottom: 1.875rem;
}

article section:last-of-type p{
    letter-spacing: -1.2px;
    text-align: justify
}



#wrapper > article > section:nth-child(2) > address:nth-child(2) > h2:nth-child(1) {
    margin: 0;
}

/*
article a {
    color: blue;
}
*/

aside {
    float: right;
    width: 30%;
    line-height: 1.8;
}

aside section {
    background: rgba(60, 60, 60, 0.8);
    padding: 1.875rem;
    color: #fff;
    margin-bottom: 1.875rem;
    z-index: -5
}

aside section p {
    line-height: 1.5;
    margin-bottom: .937rem;
}

aside section:last-of-type {
    padding-bottom: 0;
}

aside section:last-of-type p {
    line-height: 2;
    margin-bottom: 0;
}

aside section:last-of-type p a {
    line-height: 1.4;
    white-space: normal;
}

aside section > a:first-of-type {
    margin: -.937rem auto .937rem;
    display: block;
    width: 13.75rem;
}

aside section a:nth-of-type(2) {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.875rem;
    padding-left: 1.875rem;
    white-space: pre-wrap;
    line-height: 1.3;
}

aside section a:nth-of-type(2):before {
    content: "";
    float: left;
    position: relative;
    width: 1.25rem;
    height: 1.125rem;
    background: url(../images/sageata.png) no-repeat;
    background-size: contain;
    margin-left: -1.875rem;
    top: .125rem;
}

aside section a:nth-of-type(3),
aside section a:nth-of-type(4),
aside section a:nth-of-type(5) {
    text-transform: uppercase;
    text-align: center;
    display: block;
    margin: 0 -1.875rem;
    background: rgba(255, 255, 255, 0.9);
    color: #3c3c3c;
    padding: .937rem 0;
}

aside section a:nth-of-type(3):hover,
aside section a:nth-of-type(4):hover,
aside section a:nth-of-type(5):hover {
    background: rgba(255, 255, 255, 0.6);
    text-decoration: none
}

aside section a:nth-of-type(5) img {
    width: 5rem;
}

aside section h5 {
    display: block;
    background: #E2001A;
    color: #fff;
    font-weight: 600;
    font-size: 1.375rem;
    padding: .437rem .437rem .437rem 5.312rem;
    margin: 0 -1.875rem 0 -4.687rem;
    position: relative;
    z-index: 0;
}

/*--use clearfix when float get's overflowed--*/

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0;
}


/*----------------- footer --------------------*/

footer {
    background: rgba(255, 255, 255, 0.8);
    width: 66%;
    padding: 1.875rem;
    margin-top: 2.187rem;
}

footer p {
    margin: 0;
}


/*--use when you have phone number--*/

footer span {
    white-space: nowrap;
}

article section:first-of-type {
    display: flex;
    justify-content: space-between;
}

address {
    font-style: normal;
    width: 48%;
    display: block;
}


article section:last-of-type p a {
    white-space: normal;
    display: inline;

}


#wrapper > article > section:nth-child(2) > address:nth-child(1) > p:nth-child(9){
    margin-top: 30px;
}
@media only screen and (max-width:1159px) {
    #wrapper {
        margin: 0 auto;
        border: 0;
        padding: 0 .625rem;
    }

    footer {
        margin: 0;
        padding: .625rem;
        width: 100%;
    }

    header {
        margin: 0 0 .937rem;
        padding: .625rem;
        padding-top: 25%
    }

    header > a {
        margin: 0 auto;
        position: static;
        width: 12.5rem;
        display: block;
        margin: 0 auto;
        transform: none;
    }

    header p {
        margin: .625rem 0 .625rem;
        display: block;
        padding: .937rem;
        font-size: 1.25rem;
        transform: none;
        position: static;
    }

    article {
        float: none;
        width: 100%;
        line-height: 1.5
    }

    article section {
        padding: .625rem;
        margin-bottom: .625rem;
    }

    article section:last-of-type {
        text-align: left;
    }
    article p,
    article h2 span,
    article ul li{
        letter-spacing: 0
    }

    article section:last-of-type p{
        letter-spacing: 0;
        text-align: left;
    }

    aside {
        float: none;
        width: 100%;
        line-height: 1.5;
    }

    aside section {
        padding: .625rem;
        margin-bottom: 0;
    }

    h1 {
        font-size: 1rem;
        margin: 0 0 .625rem;

    }

    h2 {
        font-size: .875rem;
        margin: .625rem 0 .125rem;
    }

    aside section h5 {
        display: block;
        padding: .312rem;
        margin: 0 -.625rem;
        font-size: 1rem;
        text-align: center;
    }

    aside section a:nth-of-type(2) {
        margin-bottom: .625rem
    }

    aside section a:nth-of-type(3),
    aside section a:nth-of-type(4) {
        padding: .312rem 0;
        margin: 0 -.625rem;
    }

    ul li {
        padding-left: .937rem;
    }

    ul li:before {
        content: "";
        float: left;
        position: relative;
        margin-left: -.937rem;
        background: #3c3c3c;
        height: .312rem;
        width: .312rem;
        top: .437rem;
    }

    ol {
        display: none
    }

    article section:first-of-type {
        display: block;
    }

    address {
        width: auto;
    }

    address > br,
    section > br {
        display: none;
    }

    ul {
        margin-left: 0
    }

    ul br {
        display: none;
    }

    #wrapper > article > section:nth-child(3) > p:nth-child(1),
    #wrapper > article > section:nth-child(4) > p {
        text-align: left;
    }

    #wrapper > aside > section:nth-child(2) > p > a > br {
        display: none;
    }
}

@media only screen and (max-width:29.937rem) {
    body {
        font-size: .812rem;
    }

    h1 {
        font-size: 1.125rem;
    }

    ul li:before {
        font-size: 1rem;
        line-height: 1.125rem;
    }
}