/* Variabler */
:root {
    --primaryColor: #22424e;
    --secondaryColor: #a4bec7;
    --beige: #efefe6;
    --cubicBezier: cubic-bezier(0.4, 0, 0.2, 1);
    --normalTrans: 0.25s var(--cubicBezier);
    --slowerTrans: 0.45s var(--cubicBezier);
}

/* Typsnitt */
@font-face {
    font-family: Inter;
    src: url(assets/Inter-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url(assets/Inter-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Bas */
*,
::before,
::after {
    box-sizing: border-box;
    border: 0 solid currentColor;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primaryColor);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
    margin: 0;
}

h1,
h2 {
    font-weight: 500;
}

h1 {
    font-size: 4.2rem;
    line-height: 1.25;
}

h2 {
    font-size: 4rem;
    line-height: 1.3;
}

p {
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--normalTrans);
}

img,
svg {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: var(--primaryColor);
    color: #fff;
}

.fp-watermark {
    display: none !important;
}

/* Hjälpklasser */
.relative {
    position: relative;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-end {
    align-items: flex-end;
}

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

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

.self-end {
    align-self: flex-end;
}

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

.w-full {
    width: 100%;
}

.w-1\/2 {
    width: 50%;
}

.h-full {
    height: 100%;
}

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

.text-secondary {
    color: var(--secondaryColor);
}

.ab100 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.objectFitCover {
    object-fit: cover;
}

.gutter-base {
    margin: -2rem;
}

.gutter-base > * {
    padding: 2rem;
}

.gutter-lg {
    margin: -2.5rem;
}

.gutter-lg > * {
    padding: 2.5rem;
}

/* Layout */
.app {
    background-color: var(--primaryColor);
    color: var(--secondaryColor);
    transition: 1s var(--cubicBezier);
}

.app.beige-active {
    background-color: var(--beige);
    color: var(--primaryColor);
}

.app.primary-active {
    background-color: var(--primaryColor);
    color: var(--secondaryColor);
}

.app.secondary-active {
    background-color: var(--secondaryColor);
    color: var(--primaryColor);
}

.line {
    background-color: var(--beige);
    opacity: 0.21;
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    transition: var(--slowerTrans);
}

.line.first {
    left: 10%;
}

.line.second {
    left: 40%;
}

.line.third {
    left: 60%;
}

.line.fourth {
    left: 90%;
}

.app.beige-active .line {
    background-color: var(--primaryColor);
}

.container {
    width: 168rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    max-width: 100%;
    padding-left: 4rem;
    padding-right: 4rem;
}

.container.sm {
    width: 134rem;
}

.section {
    height: 100%;
    overflow: auto;
}

.section .container {
    height: 100%;
}

.section__inner {
    padding: 20rem 0 10rem;
    min-height: 100%;
    opacity: 0;
    transition: opacity var(--slowerTrans);
}

.section.active .section__inner {
    opacity: 1;
}

/* Header */
.header {
    position: absolute;
    top: 6rem;
    left: 0;
    width: 100%;
    z-index: 1;
    transition: opacity var(--normalTrans);
}

.header__logo {
    width: 14rem;
    transition: none;
}

/* Hero */
.hero__textHolder {
    width: 68rem;
    max-width: 100%;
}

.hero__heading {
    margin-bottom: 3.5rem;
    width: 54rem;
    max-width: 100%;
}

.hero__preamble {
    width: 46rem;
    max-width: 100%;
    font-size: 1.6rem;
    font-weight: 500;
}

/* Om oss */
.about__textHolder {
    width: 56rem;
    max-width: 100%;
    margin: auto;
}

/* Kontakt */
.contact .section__inner {
    padding-bottom: 8rem;
}

.contact__peopleHolder {
    width: 70rem;
    max-width: 100%;
    padding: 4rem 0;
    margin: 5vh auto 0;
}

.contact__info {
    margin-bottom: 5rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.contact__info a:hover {
    color: var(--beige);
}

.contact__infoDivider {
    margin: 0 0.4rem;
}

.contact__socialLink {
    margin: 0 1rem;
}

.contact__socialLink:hover {
    color: var(--beige);
}

.contact__socialIcon {
    width: 2rem;
    height: auto;
}

.contactPerson {
    text-align: center;
    font-size: 1.6rem;
}

.contactPerson__imageHolder {
    width: 20rem;
    height: 20rem;
    border-radius: 99999px;
    overflow: hidden;
    margin: 0 auto 3rem;
}

.contactPerson__name {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.contactPerson__title {
    margin-bottom: 1.8rem;
}

.contactPerson__contactInfo a {
    text-decoration: underline;
}

.contactPerson__contactInfo a:hover {
    color: var(--beige);
}

/* Brytpunkter */
@media (min-width: 2000px) {
    html {
        font-size: 10.5px;
    }
}

@media (max-width: 1450px) {
    html {
        font-size: 9.5px;
    }
}

@media (max-width: 1240px) {
    html {
        font-size: 9px;
    }
}

@media (max-width: 1030px) {
    html {
        font-size: 8.5px;
    }
}

@media (max-width: 880px) {
    html {
        font-size: 8px;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 3rem;
    }

    .line.first {
        left: 25%;
    }

    .line.second,
    .line.third {
        display: none;
    }

    .line.fourth {
        left: 75%;
    }

    .section__inner {
        padding: 10rem 0 5rem;
    }

    .header {
        top: 3rem;
    }

    .header__logo {
        width: 12rem;
    }

    .hero__textHolder {
        width: 48rem;
    }

    .hero__heading {
        width: 38rem;
    }
}

@media (max-height: 500px) {
    .section__inner {
        padding: 12rem 0 6rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 7.5px;
    }

    .mobile\:gutter-sm {
        margin: -1.5rem;
    }

    .mobile\:gutter-sm > * {
        padding: 1.5rem;
    }

    .mobile\:w-full {
        width: 100%;
    }

    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .contact .section__inner {
        padding-bottom: 4rem;
    }

    .contact__peopleHolder {
        margin-top: 10vh;
    }

    .contact__info {
        margin-bottom: 4rem;
        font-size: 1.3rem;
    }

    .contact__infoDivider {
        margin: 0 0.2rem;
    }

    .contact__infoDivider.first {
        display: block;
        opacity: 0;
        line-height: 1;
        height: 0.8rem;
    }

    .contactPerson__imageHolder {
        width: 18rem;
        height: 18rem;
    }
}

@media (max-width: 359px) {
    html {
        font-size: 7px;
    }
}
