@font-face {
    font-family: 'Blinker';
    src: url('fonts/blinker-regular.woff2') format('woff2'),
		url('fonts/blinker-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NunitoSans';
    src: url('fonts/nunitosans-light.woff2') format('woff2'),
		url('fonts/nunitosans-light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NunitoSans';
    src: url('fonts/nunitosans-semibold.woff2') format('woff2'),
		url('fonts/nunitosans-semibold.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'NunitoSans';
    src: url('fonts/nunitosans-bold.woff2') format('woff2'),
		url('fonts/nunitosans-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'NunitoSans';
    src: url('fonts/nunitosans-lightitalic.woff2') format('woff2'),
		url('fonts/nunitosans-lightitalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'NunitoSans';
    src: url('fonts/nunitosans-bolditalic.woff2') format('woff2'),
		url('fonts/nunitosans-bolditalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

body {
    padding-top: 52px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    -webkit-transition: top 0.5s;
    -moz-transition: top 0.5s;
    -o-transition: top 0.5s;
    transition: top 0.5s;
    z-index: 9999;
}

header.condensed {
    top: 0;
    border-bottom: 1px solid #ecf2f5;
}

header.hide {
    top: -52px;
}

h1,h2,h3,h4,h5,h6 {
    font-weight: normal;
}

p + h2 {
    margin-top: 2rem;
}

p + h3 {
    margin-top: 1.75rem;
}

p + h4 {
    margin-top: 1.5rem;
}

p + h5 {
    margin-top: 1.25rem;
}

a {
    text-decoration: none;
}

h2 > .injected-svg {
    position: relative;
    top: -4px;
}

a:hover {
    text-decoration: underline;
}

a.btn:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 2rem 0;
}

figcaption {
    font-style: italic;
}

footer {
    font-size: 1.125rem;
}

footer a {
    color: #fff !important;
}

.container-fluid {
    max-width: 1200px;
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-collapse {
    width: auto;
}

.navbar-brand,
header.condensed .navbar-brand {
    display: block;
    width: 135px;
    height: 36px;
    background-image: url('../images/hepoteq.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    padding: 0;
    margin: 0;
    transition: width .5s, height .5s;
}

.navbar-nav .nav-link {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.navbar-toggler {
    color: var(--bs-primary) !important;
    padding: .5rem;
    border: none;
    margin-top: .125rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.125rem;
}

.navbar-toggler svg {
    width: 2rem;
    height: 2rem;
}

.btn-primary {
    color: #fff !important;
}

.hero {
    position: relative;
    background-color: var(--bs-dark);
    background-size: cover;
    background-position: right 10% center;
    color: #fff;
    height: 0;
    padding-top: 100%;
    overflow: hidden;
}

.hero-main {
    background-image: url('../images/hepoteq-main.jpg');
}

.hero-subpage {
    background-image: url('../images/hepoteq-yritys.jpg');
    padding-top: 56.25%;
}

.hero-palvelut {
    background-image: url('../images/hepoteq-palvelut.jpg');
}

.hero-yhteystiedot {
    background-image: url('../images/hepoteq-yhteystiedot.jpg');
}

.hero::before,
.hero-main-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-subpage h1 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    font-family: NunitoSans, sans-serif;
    font-weight: 500;
    font-size: 2rem;
    line-height: 2rem;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.hero::before {
    content: '';
    display: block;
    background-color: rgba(45, 50, 60, .6);
}

.hero-main-texts {
   text-align: center;
   text-shadow: 0 0 10px #2d323c;
}

.hero-main-texts h1 {
    font-family: NunitoSans, sans-serif;
    font-weight: 500;
    font-size: 12vw;
    line-height: 12vw;
    color: #fff;
}

.hero-main-texts p {
    font-size: 5vw;
    font-style: italic;
    line-height: normal;
}

.intro-img {
    max-width: 576px;
    height: auto;
}

.card-header {
    font-size: 1.125rem;
    font-weight: 500;
}

.some-icons  {
    display: flex;
    justify-content: center;
}

.some-icons a {
    display: block;
    width: 3rem;
    height: 3rem;
    margin-left: 1rem;
}

.some-icons a:first-child {
    margin-left: 0;
}

.ratio-16x9 {
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bg-gray {
    background-color: #ecf2f5;

}

.injected-svg {
    fill: currentColor;
}

.service-img {
    max-width: 320px;
}

.person {
    text-align: center;
    margin-bottom: 2rem;
}

.person img {
    max-width: 180px;
    margin-bottom: 1rem;
}

.person h2 {
    font-size: 1.75rem;
    margin: 0;
}

#mainMenu {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: auto !important;
    background-color: var(--bs-secondary);
    color: #fff;
    text-align: center;
    z-index: 999;
    transition: left .5s;
}

#mainMenu.show,
#mainMenu.collapsing  {
    left: 0;
}

#menuBtn {
    opacity: 1;
    transition: opacity .5s, transform .5s;
}

#menuBtn.hide {
    opacity: 0;
    transform: rotate(180deg);
}

#closeMenuBtn {
    color: #fff !important;
    opacity: .75;
}

#mainMenu a {
    font-size: 2.5rem;
    /*text-transform: uppercase;*/
    color: #fff;
}

#closeMenuBtn:hover {
    opacity: 1;
}

#services svg {
    width: 3rem;
    height: 3rem;
    fill: var(--bs-secondary);
    margin-bottom: .5rem;
}

@media (min-width: 480px) {
    .hero-main {
        background-position: right center;
        padding-top: 56.25%;
    }
    .hero-main-texts h1 {
        font-size: 8vw;
        line-height: 8vw;
    }
    .hero-main-texts p {
        font-size: 4vw;
    }
    .hero-subpage h1 {
        font-size: 3rem;
        line-height: 3rem;
    }
}

@media (min-width: 576px) {
    .some-icons  {
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    body {
        padding-top: 104px;
    }
    header {
        padding: 1rem 0;
    }
    header.condensed {
        padding: .5rem 0;
    }
    header.hide {
        top: -104px;
    }
    .navbar-brand {
        width: 270px;
        height: 72px;
    }
    .hero-main {
        padding-top: 30%;
    }
    .hero-subpage {
        padding-top: 20%;
    }
    .hero-main::before {
        display: none;
    }
    .hero-main-texts {
        width: 60%;
        text-align: left;
        text-shadow: none;
     }
     .hero-main-texts h1 {
        font-size: 5vw;
        line-height: 5vw;
    }
    .hero-main-texts p {
        font-size: 2vw;
    }
    .service-img {
        max-width: 100%;
    }
    #mainMenu {
        position: static;
        width: auto !important;
        background-color: transparent;
    }
    #mainMenu a {
        font-size: 1.125rem;
        color: var(--bs-dark);
        opacity: .75;
    }
    #mainMenu a:hover,
    #mainMenu a.active {
        opacity: 1;
    }
}

@media (min-width: 1200px) {
    .hero-main-texts h1 {
        font-size: 3.75rem;
        line-height: 3.75rem;
    }
    .hero-main-texts p {
        font-size: 1.5rem;
    }
}
