/* Eskilstuna Guldsmedsverkstad Aktiebolag */

/* Animationer */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 10rem;
    --menu-height-scrolled: 8rem;
    --section-width: 130rem;

    /* 	Colors */
    --primary-color: 250, 182, 0;
    --primary-light-color: 204, 234, 255;
    --primary-dark-color: 0, 52, 89;
    --secondary-color: 205, 83, 52;
    --secondary-light-color: 239, 200, 190;
    --secondary-dark-color: 151, 60, 38;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

    /* 	Typography */
    --base-size: 1.8rem;

    /* 	Mobile nav */
    --activate-mobile-menu: 1100;
    --mobile-menu-height: 7rem;
    --mobile-menu-bg: var(--white-color);
    --menu-color: rgb(var(--black-color));
}

/* Layout
========================================================================== */
.section-block {
    padding: 10rem 5rem;
}

.section-block-wrapper {
    max-width: var(--section-width);
}

/* Paddings */
.p-2 .section-block,
.p-2:not(.section-wrapper) {
    padding: 2rem;
}

.pl-0 .section-block,
.pl-0:not(.section-wrapper) {
    padding-left: 0;
}

.pr-0 .section-block,
.pr-0:not(.section-wrapper) {
    padding-right: 0;
}

.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
    padding-bottom: 0;
}

/* Margins */
.mt-3 {
    margin-top: 3rem;
}

@media only screen and (max-width: 1024px) {
    .section-block {
        padding: 8rem 3rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-block {
        padding: 5rem 2rem;
    }
}

/* Text och typsnitt
========================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
}

/* Rubriker */
.text-label {
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    padding-bottom: 2rem;
    letter-spacing: 0.4rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.4;
    padding-bottom: .5em;
    font-family: 'Gotu', sans-serif;
}

.small-title {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.3rem;
    padding-bottom: .7em;
    font-family: 'Gotu', sans-serif;
}

/* Brodtext och lankar */
p,
li {
    font-weight: 400;
    color: rgb(var(--gray-dark-color));
}

a {
    font-size: inherit;
    font-weight: 400;
    text-decoration: underline;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* Ovriga klasser */
.text-block {
    max-width: 70rem;
}

.text-block-center {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.text-bold {
    font-weight: 700;
}

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

@media only screen and (max-width: 1200px) {
    .section-title {
        font-size: 3.8rem;
    }

    .small-title {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-title {
        font-size: 2.5rem;
    }

    .small-title {
        font-size: 2rem;
    }

    .text-label {
        font-size: 1.2rem;
    }
}

/* Knappar och speciella lankar
========================================================================== */
.btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-wrapper.center {
    justify-content: center;
}

/* Knappar */
.btn {
    min-width: 15rem;
    padding: 1.5rem 2rem;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.2rem;
    font-size: 1.2rem;
    border-radius: 4rem;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

.btn-primary-filled {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

.btn-primary-filled:hover {
    border: 1px solid rgb(var(--primary-color));
    background-color: transparent;
    color: rgb(var(--primary-color));
}

/* Circle icon */
.circle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    font-size: 0;
    text-decoration: none;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
    transition: .3s ease;
}

.circle-icon:hover {
    background-color: rgb(var(--primary-color), .5);
}

.circle-icon i:before,
.circle-icon em:before {
    font-size: 1.4rem;
    color: rgb(var(--black-color)); 
} 

@media only screen and (max-width: 480px) {
    .btn {
        display: block;
        width: 100%;
    }
}

/* Farger
========================================================================== */
/* Text */
.text-white {
    color: rgb(var(--white-color));
}

/* Grafiska element
========================================================================== */
/* Video ratio */
.video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image {
    position: relative;
    overflow: hidden;
}

.bg-image-wrapper,
.bg-video-wrapper {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video */
.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Parallax
========================================================================== */
.parallax {
    min-height: 40rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media only screen and (hover:none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }
}

/* Popup-notis
========================================================================== */
.EditMode .popup-wrapper {
    display: none;
}

.popup-wrapper {
    z-index: 8;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
}

/* Knappar */
.popup-button {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: rgb(var(--white-color));;
    border-radius: 50%;
    box-shadow: 0 0 3rem rgba(15, 36, 47, .3);
    cursor: pointer;
}

.popup-button i {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2.8rem;
    transform: translate(-50%,-50%);
    transition: .3s ease;
    color: rgb(var(--gray-dark-color));;
}

.popup-wrapper .popup-button .icon-open,
.popup-wrapper.opened .popup-button .icon-close {
    transform: translate(-50%,-50%) scale(1);
}

.popup-wrapper.opened .popup-button .icon-open,
.popup-wrapper .popup-button .icon-close {
    transform: translate(-50%,-50%) scale(0);
}

/* Innehåll */
.popup-window {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    right: 0;
    bottom: 6rem;
    max-width: 55rem;
    max-height: calc(100vh - 12rem); 
    padding: 4rem;
    margin: 0 2rem;
    background: rgb(var(--white-color));
    border-radius: 2rem;
    box-shadow: 0 0 3rem rgba(15, 36, 47, .3);
    overflow: auto;
    transition: opacity .3s ease, bottom .3s ease;
}

.popup-wrapper.opened .popup-window {
    opacity: 1;
    visibility: visible;
    display: block;
    bottom: 10rem;
}

.icon-close-popup {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
}

@media only screen and (max-width: 450px) {
    .popup-window {
        padding: 2rem 3rem 2rem 2rem;
    }

    .icon-close-popup {
        top: 1rem;
    }
}

/* Cards
========================================================================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}

.card-item {
    text-decoration: none;
    transition: all .3s ease;
}

/* Specifika bredder */
.cards-wrapper.w-33 .card-item {
    width: calc((100% / 3) - 2rem);
    margin: 1rem;
}

@media only screen and (max-width: 1050px) {
    .cards-wrapper.w-33 .card-item {
        width: calc((100% / 2) - 2rem);
    }
}

@media only screen and (max-width: 750px) {
    .cards-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .cards-wrapper.w-33 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Card 3-6 */
.cards-wrapper.card-3-6 .card-item {
    position: relative;
    margin-bottom: 0;
}

.cards-wrapper.card-3-6 .card-item .image-wrapper {
    height: 30rem;

}

.cards-wrapper.card-3-6 .card-item .small-title {
    border-bottom: 1px solid rgb(var(--gray-light-color));
    margin-bottom: 1rem;
}

.card-3-6 .card-body {
    z-index: 1;
    padding: 1rem 0 3rem;
    transition: all .3s ease;
    background-color: rgb(var(--white-color));
}

.card-3-6 .small-title {
    line-height: 4rem;
    padding-bottom: 1rem;
}

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.split-wrapper.reverse {
    flex-direction: row-reverse;
}

.split-content {
    width: 50%;
    padding: 5rem;
}

.split-image {
    width: 50%;
}

/* Centrera content */
.split-wrapper .align-center {
    align-self: center;
}

@media screen and (max-width: 1300px) {
    .split-content {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media screen and (max-width: 1000px) {
    .split-content {
        width: 100%;
        padding: 0 0 3rem;
    }

    .split-image {
        width: 100%;
        min-height: 20rem;
    }
}

@media screen and (max-width: 580px) {
    .split-wrapper {
        background: transparent;
    }
}

/* Header / Navigation
========================================================================== */
header {
    background-color: transparent;
    border-bottom: 1px solid rgb(var(--gray-light-color), .5);
    padding: 0 5rem;
}

header.scrolled {
    background-color: rgb(var(--white-color));
}

.header-logo a {
    height: 7rem;
    width: 20rem;
    background-image: url(/assets/images/logos/egv-logo-white.png);
    background-size: contain;
    background-repeat: no-repeat;
}

header .container {
    max-width: var(--section-width);
    padding: 0;
    margin: 0 auto;
}

/* Logo */
.header-logo {
    margin: 0 auto 0 0;
}

header.scrolled .header-logo a {
    background-image: url(/assets/images/logos/egv-logo.png);
}

/* Nav */
.TemplateMenu a {
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.2rem;
    font-size: 1.2rem;
    color: rgb(var(--white-color));
}

header.scrolled .TemplateMenu a {
    color: rgb(var(--gray-dark-color));
}

.TemplateMenu>li>a:hover {
    color: rgb(var(--primary-color));
}

/* CTA  */
.header-cta-wrapper {
    position: relative;
    z-index: 9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0 0 0 2rem;
    list-style: none;
}

.header-cta-wrapper li {
    margin: 0 .5rem;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem;
    line-height: 1;
}

/* Mobilmeny */
.mobile-menu .container {
    height: var(--mobile-menu-height);
}

.mobile-menu .hamburger {
    margin: 0 -1rem 0 1rem;
}

@media only screen and (max-width: 1024px) {
    header {
        padding: 0 3rem;
        background-color: rgb(var(--white-color));
    }

    .header-logo a {
        height: 6rem;
        background-image: url(/assets/images/logos/egv-logo.png);
    }

    .TemplateMenu a {
        color: rgb(var(--black-color));
    }
}

@media only screen and (max-width: 580px) {
    header {
        padding: 0 2rem;
    }

    .header-logo a {
        font-size: 1.6rem;
    }

    .header-cta-wrapper .btn {
        display: none;
    }
}

/* ==========================================================================
Startsida
========================================================================== */

/* Top-section
========================================================================== */
.top-section .section-block {
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    background-color: rgb(var(--black-color), .3);
}

.top-section {
    margin-top: calc(-1 * var(--menu-height));
}

.top-section .section-block-wrapper {
    width: 100%;
}

.top-section .text-block {
    max-width: 80rem;
}

.top-section .section-title {
    font-size: 4.5rem;
    font-weight: 300;
    color: rgb(var(--white-color));
}

@media only screen and (max-width: 1200px) {
    .top-section .section-title {
        font-size: 3.5rem;
    }
}

@media only screen and (max-width: 580px) {
    .top-section .section-title {
        font-size: 2.5rem;
    }
}

/* Parallax
========================================================================== */
.section-start {
    background-image: url('/assets/images/egv-parallax.jpg');
}

/* Produkter
========================================================================== */
.section-services {
    overflow: hidden;
}

.scroll-wrapper {
    padding-bottom: 5rem;
}

.scroll-wrapper .slick-list {
    overflow: visible;
    width: 100%;
}

.scroll-wrapper .card-item {
    margin: 0 3rem 0 0;
}

/* slick knappar */
.scroll-wrapper .slick-arrow {
    position: absolute;
    top: auto;
    bottom: -2rem;
    width: 4rem;
    height: 4rem;
    font-size: 0;
    background-color: rgb(var(--primary-color));
    border: 1px solid rgb(var(--primary-color));
    border-radius: 50%;
    cursor: pointer;
    transition: .4s;
}

.scroll-wrapper .slick-arrow::after {
    color: rgb(var(--white-color));
    font-weight: 300;
}

.scroll-wrapper .slick-arrow:not(.slick-disabled):hover,
.scroll-wrapper .slick-arrow:not(.slick-disabled):focus {
    background-color: rgb(var(--primary-medium-color));
    border-color: rgb(var(--primary-medium-color));
}

.scroll-wrapper .slick-arrow.slick-disabled {
    opacity: .5;
    cursor: not-allowed;
}

.scroll-wrapper .slick-prev {
    left: auto;
    right: 52%;
}

.scroll-wrapper .slick-next {
    left: auto;
    left: 52%;
}

@media only screen and (max-width: 1024px) {
    .scroll-wrapper .card-item {
        margin: 0 2rem 0 0;
    }
}

@media only screen and (max-width: 580px) {
    .scroll-wrapper .card-item {
        margin: 0 1rem 0 0;
    }
}

/* ==========================================================================
Undersidor
========================================================================== */

/* Hero - Grundkod
========================================================================== */
/* .hero .section-block {
    display: flex;
    align-items: center;
    min-height: 40rem;
}

.hero .section-block-wrapper {
    width: 100%;
}

.hero .section-title {
    font-size: 6rem;
}

@media only screen and (max-width: 580px) {
    .hero .section-block {
        min-height: 30rem;
    }

    .hero .section-title {
        font-size: 4rem;
    }
} */


/* ==========================================================================
Footer
========================================================================== */
.footer {
    background-color: rgb(var(--white-color));
    padding: 0 5rem;
}

.footer-container {
    max-width: var(--section-width);
    margin: 0 auto;
}

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8rem 0 5rem;
    border-bottom: 1px solid rgb(var(--primary-color));
}

.footer-menu {
    width: 20%;
    margin: 0 0 3rem;
}

.footer .small-title {
    color: rgb(var(--black-color));
    padding: 0 0 1rem;
    line-height: 1;
}

.footer-submenu {
    padding: 0;
    margin: 0 0 3rem;
    list-style: none;
}

.footer-top li,
.footer-top p:not(.small-title),
.footer-top a {
    font-size: 1.5rem;
    line-height: 2;
    font-weight: 300;
    color: rgb(var(--black-color));
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
    color: rgb(var(--primary-color));
}

.footer-menu.flex {
    display: flex;
    gap: 2rem;
}

.footer-menu.flex img {
    width: 10rem;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.footer-bottom p,
.footer-bottom a:not(.circle-icon) {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
    color: rgb(var(--black-color));
}

/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.webbess-stamp img {
    width: 2.5rem;
    margin-left: 1rem;
}

@media only screen and (max-width: 1200px) {
    .footer {
        padding: 0 3rem;
    }

    /* Footer top */
    .footer-menu {
        width: 48%;
    }

    .footer-menu-large {
        width: 100%;
    }

    .footer-menu-large p {
        max-width: 55rem;
    }
}

@media only screen and (max-width: 750px) { 
    /* Footer top */
    .footer-menu,
    .footer-menu-large {
        width: 100%;
    }
}

@media only screen and (max-width: 580px) {
    .footer {
        padding: 0 2rem;
    }

    .footer-top {
        padding: 5rem 0;
    }

    .footer-bottom {
        flex-direction: column-reverse;
    }

    .webbess-stamp {
        margin: 0 auto 2rem;
    }
}