/*
Theme Name: Wave
Text Domain: Wave
Author: Noli Alickaj
Author URI: https://wavecode.no
*/

html {
    scroll-behavior: smooth;

    /*
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    */
}


:root {
    --blue: #3D5567;
    --orange: #F26722;
    --purple: #26181E;
    --bluegrey: #8C99A7;
    --grey: #7C7275;
    --white: #fff;
    --offwhite: #f7f7f7;
    --border: rgba(255, 255, 255, 0.50);
}

*, ::after, ::before {
    box-sizing: border-box;
}

body {
    font-family: 'ApexNew';
    font-weight: 400;
    color: var(--white);
    margin: 0;
    padding: 0;
    font-size: 20px;
    background: var(--blue);
}


@font-face {
    font-family: 'ApexNew';
    src: url('/wp-content/themes/wavecode/assets/fonts/ApexNew-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ApexNew';
    src: url('/wp-content/themes/wavecode/assets/fonts/ApexNew-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ApexNew';
    src: url('/wp-content/themes/wavecode/assets/fonts/ApexNew-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ApexNew';
    src: url('/wp-content/themes/wavecode/assets/fonts/ApexNew-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ApexNew';
    src: url('/wp-content/themes/wavecode/assets/fonts/ApexNew-BookItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'ApexNew';
    src: url('/wp-content/themes/wavecode/assets/fonts/ApexNew-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}


/* ----------------- BASICS ----------------- */
h1, h2, h3, h4, h5 {
    margin: 0;
    line-height: 1.2;
    font-weight: 500;
    font-size: 36px;
}
p {
    margin: 0;
    line-height: 1.4;
}
a {
    text-decoration: none;
    vertical-align: bottom;
    color: var(--orange);
}
img {
    vertical-align: bottom;
    width: 100%;
    height: auto;
}
strong {
    font-weight: 500;
}
hr {
    width: 100%;
    height: 1px;
    background: var(--border);
    border: 0;
    margin: 0;
}


/* ----------------- EDITOR ----------------- */
.editor p {
    margin-bottom: 20px;
    line-height: 1.6;
}
.editor p:last-child {
    margin-bottom: 0;
}
.editor ul {
    margin: 0;
    margin-bottom: 30px;
    padding-left: 18px;
}
.editor li {
    /*margin-bottom: 10px;*/
    line-height: 1.6;
}
.editor li::marker {
  font-size: 1em;
}
.editor a {
    color: var(--white);
    text-decoration: underline;
}
.editor h1, .editor h2, .editor h3, .editor h4, .editor h5 {
    margin-top: 54px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 30px;
}
.editor h1:first-child, .editor h2:first-child, .editor h3:first-child, .editor h4:first-child, .editor h5:first-child {
    margin-top: 0;
}
.editor img {
    margin-top: 25px;
    margin-bottom: 25px;
}
.underline--none a {
    text-decoration: none !important;
}


/* ----------------- HEADER ----------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    isolation: isolate;
}
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: transparent;
    transition: background 0.2s ease;
    z-index: -1;
}
.header .inner {
    padding: 30px 0 30px 0; /*30px 0 20px 0*/
    border-bottom: 1px solid var(--border);
}

body.is-scrolled .header::before {
    background: var(--blue);
}
body.is-scrolled.post-type-archive-referanse .header::before, body.is-scrolled.single-referanse .header::before {
    background: var(--grey);
}
body.is-scrolled.post-type-archive-aktuelt .header::before, body.is-scrolled.single-aktuelt .header::before {
    background: var(--offwhite);
}
body.is-scrolled .header .inner {
    border-bottom: none;
}


/* ----------------- NAV ----------------- */
.logo {
    width: 100%;
    height: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 99;
}
.menu a {
    color: var(--white);
}

.menu--mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gap--menu {
    gap: 100px;
}


/* ----------------- TRANSPARENT START ----------------- */
.transparent .menu--left, .transparent .menu--right {
    border-color: rgba(255, 246, 226, 0.5);
}
.transparent .menu--left a, .transparent .menu--right a {
    color: var(--beige);
}
.transparent .header .logo .fill {
    fill: var(--beige);
}
.transparent .header .logo .stroke {
    stroke: var(--beige);
}

/*
.transparent .hamburger .line {
    background: var(--beige);
}
.transparent .hamburger.is-active .line {
    background: var(--dark);
}
.transparent.no-scroll .header .logo .fill {
    fill: var(--dark);
}
.transparent.no-scroll .header .logo .stroke {
    stroke: var(--dark);
}
    */


/* ----------------- FOOTER ----------------- */
.footer {
    padding-top: 100px;
    padding-bottom: 50px;
}
.footer .upper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}
.footer .upper > div {
    gap: 20px;
}

.footer .lower {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 100px;
}
.footer .lower div {
    display: flex;
    flex-direction: row;
}
.footer .lower > div:first-child {
    gap: 12px;
}
.footer .lower > div:nth-child(2) {
    gap: 30px;
}

.footer a {
    text-decoration: none;
}

.gap--footer {
    gap: 100px;
}


/* ----------------- LAYOUT ----------------- */
.wrapper {
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 80px;
    padding-right: 80px;
}


/* ----------------- HERO ----------------- */
.hero {
    position: relative;
    height: 94vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    padding-top: 50px;
    padding-bottom: 120px;
    margin-top: -136px;
}
.hero--media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    object-position: top;
}
.hero--overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}
.hero--content {
    position: relative;
    z-index: 3;
}
.width--hero {
    width: 100%;
    max-width: 846px;
}
.gap--hero {
    gap: 40px;
}

.hero.alt {
    padding-bottom: 95px;
}
.hero.alt .gap--hero {
    gap: 105px;
}


/* ----------------- GRID ----------------- */
/* -- DEFAULT -- */
.grid--4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(50px, 1fr));
}
.grid--3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(50px, 1fr));
}
.grid--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
}
.grid--auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--contact {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

/* -- COLUMNS -- */
.col-gap--l {
    column-gap: 100px;
}
.col-gap--m {
    column-gap: 50px;
}
.col-gap--s {
    column-gap: 25px;
}
.col-gap--xs {
    column-gap: 10px;
}

/* -- ROWS -- */
.row-gap--l {
    row-gap: 100px;
}
.row-gap--m {
    row-gap: 50px;
}
.row-gap--s {
    row-gap: 20px;
}
.row-gap--xs {
    row-gap: 10px;
}

/* -- EXTRA -- */
.grid--2 .inner {
    padding-right: 50px;
}
.grid--2 .inner--left {
    padding-left: 140px;
}


/* ----------------- Tjenester ----------------- */
.services {
    display: grid;
    /*grid-template-columns: repeat(4, minmax(50px, 1fr));*/
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 14px;
    row-gap: 14px;
}
.services .item {
    padding: 24px 20px 20px 20px;
    background: var(--purple);
    color: var(--white);

    text-transform: uppercase;
    font-weight: 500;
    font-size: 18px;
    transition: 0.1s ease;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.services .item:hover {
    background: var(--white);
    color: var(--purple);
}
.services .item:hover svg path {
    stroke: var(--purple);
}
.gap--services {
    gap: 80px;
}


/* ----------------- QUOTES ----------------- */
.quotes__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.quotes__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.quotes__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: 0.2s ease;
}
.quotes__arrow:hover {
    background: var(--orange);
    border-color: var(--orange);
}
.quotes__arrow svg {
    width: 10px;
    height: 18px;
}
.quotes__arrow--prev svg {
    transform: rotate(180deg);
}

.quotes-slider {
    width: 100%;
    overflow: hidden;
}
.quotes__slide {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(300px, 1fr);
    align-items: center;
    gap: 80px;
    height: auto;
}
.quotes__image img {
    aspect-ratio: 1;
    height: 100%;
    object-fit: cover;
}
.quotes__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.quotes__text {
    margin: 0;
    line-height: 1.25;
}
.quotes__person {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.quotes__job-title {
    font-size: 18px;
}


/* ----------------- WIDTH ----------------- */
.width--l {
    width: 100%;
    max-width: 900px;
}
.width--m {
    width: 100%;
    max-width: 800px;
}


/* ----------------- PADDING ----------------- */
/* -- TOP -- */
.pad-t--xl {
    padding-top: 160px;
}
.pad-t--l {
    padding-top: 100px;
}
.pad-t--m {
    padding-top: 50px;
}
.pad-t--s {
    padding-top: 20px;
}

/* -- BOTTOM -- */
.pad-b--xl {
    padding-bottom: 160px;
}
.pad-b--l {
    padding-bottom: 100px;
}
.pad-b--m {
    padding-bottom: 50px;
}
.pad-b--s {
    padding-bottom: 20px;
}


/* ----------------- FONT SIZES ----------------- */
.font--xl {
    font-size: 64px;
}
.font--l {
    font-size: 48px;
}
.font--m {
    font-size: 36px;
}
.font--s {
    font-size: 26px;
}
.font--xs {
    font-size: 16px;
}

.font--intro {
    font-size: 48px;
}
.font--module {
    font-size: 30px;
}


/* ----------------- FONT WEIGHT ----------------- */
.font--500 {
    font-weight: 500;
}
.font--400 {
    font-weight: 400;
}


/* ----------------- GAP ----------------- */
.gap--xxl {
    gap: 50px;
}
.gap--xl {
    gap: 40px;
}
.gap--l {
    gap: 32px;
}
.gap--m {
    gap: 26px;
}
.gap--s {
    gap: 14px;
}
.gap--xs {
    gap: 7px;
}

.gap--builder {
    gap: 80px;
}


/* ----------------- BACKGROUND ----------------- */
.bg--bluegrey {
    background: var(--bluegrey);
}
.bg--grey {
    background: var(--grey);
}
.bg--purple {
    background: var(--purple);
}


/* ----------------- COLOR ----------------- */
.color--white {
    color: var(--white);
}


/* ----------------- BUTTON ----------------- */
/* -- DEFAULT -- */
.btn {
    width: fit-content;
    height: fit-content;
    padding: 18px 18px 13px 18px;
    border: 1px solid;

    font-size: 18px;
    line-height: 1;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;

    transition: 0.2s ease;
}
.btn.small {
    font-size: 16px;
    padding: 11px 13px;
}

/* -- GREEN -- */
.btn.orange {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}
.btn.orange:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

/* -- WHITE -- */
.btn.white {
    background: var(--white);
    border-color: var(--white);
    color: var(--purple);
}
.btn.white:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.btn.purple {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}
.btn.purple:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--purple);
}

.btn.grey {
    background: var(--grey);
    border-color: var(--grey);
    color: var(--white);
}
.btn.grey:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--purple);
}



/* ----------------- ICONS ----------------- */
.icon--social {
    width: 30px;
}


/* ----------------- OTHER ----------------- */
.certification {
    width: auto;
    height: 70px;
}


/* ----------------- RESIDENT ALERTS ----------------- */
.frontent-resident .wrap {
    flex-wrap: wrap;
}

.frontent-resident-news__item {
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.30);*/
    /*padding-bottom: 30px;*/
    padding: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.frontent-resident-news__item h3 {
    font-size: 22px;
    margin-top: 5px;
    margin-bottom: 5px;
}
.frontent-resident-news__item p {
    font-size: 18px;
}

.frontent-resident-news__toggle {
    margin-bottom: 50px;
}

.frontent-resident-alert-form form {
    align-items: stretch;
    display: flex;
    gap: 10px;
}

.frontent-resident-alert-form label {
    flex: 1;
}

.frontent-resident-alert-form input[type="email"] {
    border: none;
    border-radius: 0;
    min-height: 48px;
    padding: 0 16px;
    width: 100%;

    font-size: 18px;
    color: var(--blue);
}

.frontent-resident-alert-form input[type="submit"] {
    border: 0;
    cursor: pointer;
}

.frontent-resident-alert-hp {
    height: 1px !important;
    left: -9999px !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 1px !important;
}

.frontent-resident-alert-form .no-error {
    color: #1f6b45;
    margin-top: 12px;
}

.frontent-resident-alert-form .mail-error {
    color: #9a2f22;
    margin-top: 12px;
}

.frontent-resident-alert-form input[type="email"]::placeholder {
    color: var(--purple) !important;
}



@media (max-width: 768px) {
    .frontent-resident-alert-form form {
        flex-direction: column;
    }
}


.period {
    width: fit-content;
    border: 2px solid var(--orange);
    padding: 12px 18px;
    margin-top: 20px;
}
.page-template-contact .period {
    margin-top: 0;
}

.link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    padding: 22px 22px;
    background: rgba(0,0,0,0.2);
    color: var(--white);
    font-size: 18px;
}
.link:hover {
    background: rgba(0, 0, 0, 0.5);
}

.alert {
    background: var(--orange);
    padding: 30px 40px;

    display: flex; 
    flex-direction: column;
    gap: 14px;
}
.alert--btn {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;

    padding: 0 18px;
    background: var(--purple);
    color: var(--white);
    min-height: 46px;
}


.grid--news {
    display: grid;
    grid-template-columns: 1fr 2fr;
}




/* ----------------- CUSTOM ----------------- */
.post-type-archive-referanse, .single-referanse {
    background: var(--grey);
}
.post-type-archive-aktuelt, .single-aktuelt {
    background: var(--offwhite);
}

.dark--text:not(.no-scroll) {
    color: var(--purple);
}
.dark--text:not(.no-scroll) .color--white {
    color: var(--purple);
}

.dark--text:not(.no-scroll) .btn.white {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.dark--text:not(.no-scroll) .logo path, .dark--text:not(.no-scroll) .icon--social path {
    fill: var(--purple);
}
.dark--text:not(.no-scroll) hr {
    background: rgba(0, 0, 0, 0.2);
}
.dark--text:not(.no-scroll) .header .inner {
    border-bottom-color: rgba(0, 0, 0, 0.2);
}
.dark--text:not(.no-scroll) .editor a {
    color: var(--purple);
}

.cta h2, .cta p {
    color: var(--white);
}



.object .inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    margin-top: 30px;
}
.object .inner .btn {
    margin-top: 20px;
    margin-bottom: auto;
}


.modal-content h3 {
    font-size: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--orange);
    margin-bottom: 10px;
    width: fit-content;
}
.modal-content a {
    font-size: 22px;
}


.label {
    text-transform: capitalize;
    padding: 8px 12px 6px 12px;
    border: 2px solid var(--orange);
    width: fit-content;
    font-size: 16px;
    font-weight: 500;
}

.top {
    margin-top: 20px;
}

.cta {
    width: 100%;
    max-width: 800px;

    padding: 80px 60px 20px 60px;
}



.filter {
    color: var(--white);
    padding: 18px 18px 13px 18px;
    border: 1px solid var(--white);
    font-size: 18px;
}
.filter.active {
    background: var(--orange);
    border-color: var(--orange);
}


.featured {
    padding: 120px 80px;
    background: rgba(0, 0, 0, 0.2);
}
.featured h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--orange);
    width: fit-content;
    margin-bottom: 5px;
}

/* ----------------- TABLET ----------------- */
@media (max-width: 992px) {

    /* ----------------- GENERAL ----------------- */
    .wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* ----------------- HEADER ----------------- */
  

    /* ----------------- FOOTER ----------------- */
    .footer .upper {
        flex-direction: column;
        gap: 60px;
    }
 

    /* ----------------- HERO ----------------- */
    .hero {
        margin-top: -116px;
        padding-top: 230px;
        padding-bottom: 70px;
        height: auto;
        min-height: 600px;
    }
    .gap--hero {
        gap: 40px;
    }


    /* ----------------- QUOTES ----------------- */
    .quotes__slide {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quotes__image {
        max-width: 460px;
    }

    /* ----------------- GRID ----------------- */
    .grid--4 {
        grid-template-columns: repeat(2, minmax(50px, 1fr));
    }
    .grid--3 {
        grid-template-columns: repeat(2, minmax(50px, 1fr));
    }
    .grid--2 {
        grid-template-columns: repeat(1, minmax(50px, 1fr));
    }
    .grid--contact {
        grid-template-columns: 1fr;
    }
    .grid--news {
        grid-template-columns: 1fr;
    }


    /* ----------------- FONT ----------------- */
    .font--xl {
        font-size: 50px;
    }
    .font--l {
        font-size: 36px;
    }
    .font--m {
        font-size: 28px;
    }
    .font--intro {
        font-size: 32px;
    }

    /* ----------------- CAROUSEL ----------------- */
    .marquee__track img {
        height: 400px;
    }

    /* ----------------- OTHER ----------------- */
    .btn {
        font-size: 18px;
    }

    .utvalg {
        margin-top: 40px;
    }
    .bottom {
        margin-bottom: 0;
    }
}


/* ----------------- MOBILE ----------------- */
@media (max-width: 768px) {
    
    /* ----------------- GENERAL ----------------- */
    .wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ----------------- NAV ----------------- */    
    .menu a {
        display: none;
    }
    .gap--menu {
        gap: 40px;
    }
    .modal-content h3 {
        font-size: 24px;
        padding-bottom: 10px;
        margin-bottom: 0px;
    }
    .modal-content a {
        font-size: 22px;
    }

    /* ----------------- FOOTER ----------------- */
    .footer .upper > div {
        gap: 15px;
    }
    .footer .gap.lower {
        margin-top: 60px;
    }
    .footer .lower > div:nth-child(2) {
        flex-direction: column;
    }

    /* ----------------- GRID ----------------- */
    .grid--4 {
        grid-template-columns: repeat(1, minmax(50px, 1fr));
    }
    .grid--3 {
        grid-template-columns: repeat(1, minmax(50px, 1fr));
    }

    /* ----------------- QUOTES ----------------- */
    .quotes__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .quotes__nav {
        width: 100%;
        justify-content: flex-end;
    }
    .quotes__arrow {
        width: 48px;
        height: 48px;
    }
    .quotes__content {
        gap: 28px;
    }

    /* ----------------- PADDING ----------------- */
    /* -- TOP -- */
    .pad-t--xl {
        padding-top: calc(160px * 0.6);
    }
    .pad-t--l {
        padding-top: calc(100px * 0.6);
    }
    .pad-t--m {
        padding-top: calc(50px * 0.6);
    }
    .pad-t--s {
        padding-top: calc(20px * 0.6);
    }

    /* -- BOTTOM -- */
    .pad-b--xl {
        padding-bottom: calc(160px * 0.6);
    }
    .pad-b--l {
        padding-bottom: calc(100px * 0.6);
    }
    .pad-b--m {
        padding-bottom: calc(50px * 0.6);
    }
    .pad-b--s {
        padding-bottom: calc(20px * 0.6);
    }

    /* ----------------- OTHER ----------------- */

    .cta {
        padding: 80px 40px 20px 40px;
    }
    .featured {
        padding: 80px 40px;
    }

}
