/*
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 {
    --black: #000;
    --white: #FFF;
    --offwhite: #f7f7f7;
    --blue: #00A0FF;
    --orange: orange;
    --border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'LayherText';
    font-weight: 500;
    color: var(--black);
    margin: 0;
    padding: 0;
    font-size: 18px;
}


@font-face {
    font-family: 'LayherHeadline';
    src: url('/wp-content/themes/wavecode/assets/fonts/LayherHeadline/LayherHeadlineWeb.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'LayherText';
    src: url('/wp-content/themes/wavecode/assets/fonts/LayherText/LayherTextWeb-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'LayherText';
    src: url('/wp-content/themes/wavecode/assets/fonts/LayherText/LayherTextWeb-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'LayherText';
    src: url('/wp-content/themes/wavecode/assets/fonts/LayherText/LayherTextWeb-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'LayherText';
    src: url('/wp-content/themes/wavecode/assets/fonts/LayherText/LayherTextWeb-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ----------------- BASICS ----------------- */
h1, h2, h3, h4, h5 {
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    font-size: 32px;
}
p {
    line-height: 1.6;
    margin: 0;
    margin-bottom: 20px;
}
a {
    text-decoration: none;
    color: var(--blue);
}
ul {
    margin: 0;
    padding-left: 18px;
}
li {
    line-height: 1.6;
}
img {
    width: 100%;
    height: auto;
}
strong {
    font-weight: 900;
}
hr {
    width: 100%;
    height: 1px;
    background: var(--border);
    border: 0;
    margin: 0;
}


/* ----------------- EDITOR ----------------- */
.editor p {
    margin-bottom: 30px;
    line-height: 1.3;
}
.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.3;
}
.editor li::marker {
  font-size: 0.7em;
}
.editor a {
    color: var(--purple);
    text-decoration: underline;
}
.editor h1, .editor h2, .editor h3, .editor h4, .editor h5 {
    margin-top: 54px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 24px;
}
.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: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.header .logo {
    width: 100%;
    max-width: 160px;
    height: auto;
}


/* ----------------- NAV ----------------- */
.nav {
    display: flex;
    align-items: center;
}
.nav__item a {
    display: flex;
    align-items: center;
    gap: 2px;

    padding: 40px 15px;
    text-decoration: none;
    color: var(--black);
}
.nav__item a:hover {
    background: #f7f7f7;
}
.nav .btn {
    margin-left: 15px;
}

.chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform 0.2s ease;
}
.nav__item:hover .chevron {
    transform: rotate(180deg);
}

.mega {
    position: absolute;

    top: 100%;
    left: calc(50% - 50vw);
    width: 100vw;

    background: black;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    display: none;
    z-index: 999;
}
.nav__item:hover .mega {
    display: block;
}
.nav__item--dropdown {
    position: relative;
}
.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 12px 0;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 999;
}
.nav__item:hover .nav__dropdown {
    display: block;
}
.nav__dropdown a {
    display: block;
    padding: 12px 18px;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
}
.nav__dropdown a:hover {
    background: #f7f7f7;
}
.mega__inner {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    padding-bottom: 30px;
}
.mega__inner a {
    padding: 0;
    color: white !important;
    background: none !important;
}
.mega__inner a:hover {
    color: var(--blue) !important;
}


/* ----------------- FOOTER ----------------- */
footer {
    padding-top: 100px;
    padding-bottom: 50px;
}


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


/* ----------------- GRID ----------------- */
/* -- DEFAULT -- */
.grid--4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
}
.grid--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
}
.grid--aside {
    display: grid;
    grid-template-columns: 1fr 3fr;
}


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

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


.width--l {
    width: 100%;
    max-width: 950px;
}


/* ----------------- PADDING ----------------- */
/* -- TOP -- */
.pad-t--xl {
    padding-top: 160px;
}
.pad-t--l {
    padding-top: 75px;
}
.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: 50px;
}
.font--l {
    font-size: 36px;
}
.font--m {
    font-size: 28px;
}
.font--20 {
    font-size: 20px;
}
.headline {
    font-family: 'LayherHeadline';
    font-size: 50px;
    letter-spacing: 5px;
}
.headline.post {
    font-size: 40px;
}


/* ----------------- COLOR ----------------- */
.color--white {
    color: var(--white);
}
.color--blue {
    color: var(--blue);
}
.bg--black {
    background: var(--black);
}
.bg--blue {
    background: var(--blue);
}
.bg--offwhite {
    background: var(--offwhite);
}


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


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

    font-size: 18px;
    line-height: 1;
    text-align: center;
    font-weight: 500;
    cursor: pointer;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;

    transition: 0.2s ease;
}


.btn.outline {
    background: transparent;
    border-color: var(--black);
    color: var(--black);
}
.btn.outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn.blue {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--black);
}
.btn.black {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
.btn.white {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}


button {
    font-family: "LayherText";
}

/* ----------------- OTHER ----------------- */
.element {
    padding: 30px;
    background: var(--offwhite);
}
.element a {
    display: flex;
    align-items: center;
    gap: 20px;

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

.box {
    padding: 40px;
}

.mega__block {
    background: rgb(15, 15, 15);
    padding: 30px;
}
.mega__block h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
}

.light--menu .mega {
    background: #ececec;
}
.light--menu .mega__block {
    background: var(--white);
}
.light--menu .mega__block h3, .light--menu .mega__block a {
    color: var(--black) !important;
}

.light--menu .mega__block a:hover {
    color: var(--blue) !important;
}


.img--post {
    aspect-ratio: 5/2;
    object-fit: cover;
    margin-top: 10px;
}


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

    /* ----------------- GENERAL ----------------- */
    body {
        font-size: 18px;
    }
    .wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* ----------------- HEADER ----------------- */
    .nav {
        display: none;
    }
    /* ----------------- FOOTER ----------------- */   

    /* ----------------- GRID ----------------- */
    .grid--4 {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
    .grid--aside {
        display: flex;
        flex-direction: column-reverse;
    }
    .grid--2 {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
    .grid--2.flip {
        display: flex;
        flex-direction: column-reverse;
    }


    /* ----------------- FONT ----------------- */
    .font--l {
        font-size: 30px;
    }
    .font--m {
        font-size: 26px;
    }


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

    .mobilee {
        flex-wrap: wrap;
    }

    
    .header__inner {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .img--post {
        aspect-ratio: 5/4;        
    }

}


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

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

    /* ----------------- OTHER ----------------- */
    .mobilee {
        flex-direction: column;
    }

    .mega__block {
        width: 100%;
    }

}



/* Wrapper = scroll container */
.mobile-nav {
    display: flex;
    flex-direction: column;

    height: 100vh;
    overflow-y: auto;
    padding-top: 50px;

    -webkit-overflow-scrolling: touch;
}
/* Item */
.mobile-nav__item {
    border-top: 1px solid #e5e5e5;
}
/* Top row */
.mobile-nav__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    height: 70px;
}

/* Parent link */
.mobile-nav__parent-link {
    color: var(--black);
}

/* Toggle button container */
.mobile-nav__toggle {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;

    min-width: 44px;
    touch-action: manipulation;

    min-height: 44px;
    position: relative;
}
/* Plus icon */
.mobile-nav__toggle::before,
.mobile-nav__toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #000;
    transform: translate(-50%, -50%);
}
/* Vertical line (for +) */
.mobile-nav__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: opacity 0.2s ease;
}
/* Open state → minus */
.mobile-nav__item.open .mobile-nav__toggle::after {
    opacity: 0;
}

/* Panel (in flow) */
.mobile-nav__panel {
    display: none;
}
/* Open */
.mobile-nav__item.open .mobile-nav__panel {
    display: flex;
    flex-direction: column;
    gap: 15px;

    padding-bottom: 20px;
}
/* Child links */
.mobile-nav__link {
    color: var(--black);
}




.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th,
.custom-table td{
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--black);
}

.custom-table thead {
    background: var(--blue);
}

.custom-table tbody tr:nth-child(even){
    background: var(--offwhite);
}

@media (max-width: 768px) {
    .custom-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}



.document {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.document:last-child {
    border-bottom: none;
}