/* –––– GENERAL –––– */

section, footer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--padding-v) 0;
    position: relative;
    box-sizing: border-box;
}

section.narrow-padding {
    padding: var(--narrow-padding-v) 0;
}

.container {
    max-width: var(--site-max-width);
    padding: 0 var(--padding-h);
    width: 100%;
    box-sizing: content-box;
}

.container.full-width {
    max-width: 100%;
}

.no-padding {
    padding: 0;
}

.pos-rel {
    position: relative;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 20px;
}

.long-text > p:not(:last-child) {
    margin-bottom: 20px;
}

.long-text > h2,
.long-text > h3,
.long-text > h4 {
    margin-bottom: 20px;
}

.long-text > h2:not(:first-child),
.long-text > h3:not(:first-child),
.long-text > h4:not(:first-child) {
    margin-top: 60px;
}

.long-text li:not(:last-child) {
    margin-bottom: 20px;
}

.long-text li {
  list-style: none;
    position: relative;
}

.long-text li::before {
    content: '';
    display: inline-block;
    height: 1.1em;
    width: 1.1em;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(https://techtell.se/wp-content/uploads/techtell_check_dark.png);
    position: absolute;
    left: -40px;
    top: 4px;
}

#enkelt {
    min-height: 50vh;
}

@media screen and (min-width: 750px) {

}

@media screen and (min-width: 1200px) {
    .mb-40 {
        margin-bottom: 40px;
    }
}

/* –––– GRID & FLEX –––– */
.grid {
	display: grid;
}

.flex {
    display: flex;
}

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

.justify-end {
    justify-content: flex-end;
    justify-items: flex-end;
}

.align-start {
    align-items: flex-start;
    align-content: flex-start;
}

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

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

.grid.col-2,
.grid.col-3 {
	grid-template-columns: 1fr;
}

.grid.col-4 {
	grid-template-columns: 1fr 1fr;
}

.no-gap {
    gap: 0 !important;
}

.gap-5 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 10px;
}

.gap-40,
.gap-60 {
    gap: 20px;
}

.gap-80,
.gap-100 {
    gap: 40px;
}

.span-col-2 {
    grid-column: span 1;
}

.span-col-4 {
    grid-column: span 2;
}

@media screen and (min-width: 750px) {
    .gap-20 {
        gap: 20px;
    }
    
    .gap-60,
    .gap-80,
    .gap-100 {
        gap: 40px
    }
    
    .grid.col-2 {
	    grid-template-columns: repeat(2, 1fr);
    	grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.col-3 {
    	grid-template-columns: repeat(3, 1fr);
    }
    
    .grid.col-4 {
    	grid-template-columns: repeat(4, 1fr);
    }
    
    .span-col-2 {
        grid-column: span 2;
    }
    
    .span-col-4 {
        grid-column: span 4;
    }
    
    .grid-col-full {
        grid-row: span 2;
    }
    
    .grid-row-full {
        grid-column: span 2;
    }
}

@media screen and (min-width: 1200px) {
    .gap-40 {
        gap: 40px
    }
    
    .gap-80 {
        gap: 80px
    }
    
    .gap-100 {
        gap: 100px
    }
}

@media screen and (max-width: 749px) {
    .order-mobile-last {
        order: 99;
    }
}

/* –––– BUTTONS –––– */

a.button, button {
    transition: all 0.2s;
    font-family: var(--main-font);
    font-size: 1rem;
    cursor: pointer;
    appearance: auto
}

.button {
    padding: 0.6rem 2rem;
    border-radius: var(--button-border-radius);
    background: var(--green-btn-color);
    color: var(--white-color);
    border: none;
    text-decoration: none; 
}

.button.alternate {
    background: var(--black-color);
}

.black-bg .button,
.green-dark-bg .button,
.button-white {
    background: var(--white-color);
    color: var(--black-color);
}

a:not(.button) {
    color: inherit;
    text-decoration: underline;
}

.button:hover {
    background: var(--green-btn-color-hover);
}

.button.alternate:hover {
    background: var(--black-color-hover);
}

.black-bg .button:hover,
.green-dark-bg .button:hover,
.button-white:hover {
    background: var(--white-color-hover);
}

a.button:active {
    transform: scale(0.98);
}

@media screen and (max-width: 749px) {
    .button {
        padding: 0.5rem 1.6rem;
    }
}

/* –––– IMAGES –––– */
section:not(#hero) .image-col,
section:not(#hero) .image-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
}

img.full {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

section:not(#hero) img.full {
    transform: scale(1.01);
}

.bg-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -2;
}

.bg-img-overlay {
    background: var(--overlay-color);
    opacity: 0.27;
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* –––– DETAILS & SUMMARY –––– */
details {
    position: relative;
    padding-bottom: 20px;
}

details[open] {
    animation: fade-in 0.3s forwards;
    padding-bottom: 0;
}

@keyframes fade-in {
    from {opacity: 0}
    to {opacity: 1}
}

summary {
    position: absolute;
    bottom: 0;
    font-weight: 700;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    opacity: 1;
}

/* –––– PARALLAX –––– */
.parallax {
    --translate-y: 0px;
    transform: translateY(var(--translate-y)) scale(1.1);
    transform-origin: bottom center;
    transition: 0.05s all;
}

/* –––– HERO VIDEO –––– */
.hero-video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* DIAGONAL DIVIDERS */
.diagonal-divider-r {
    z-index: 2;
    padding-top: 100px;
    margin-top: 0px;
    clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 100%);
}

.diagonal-divider-l {
    z-index: 2;
    padding-top: 100px;
    margin-top: 0px;
    clip-path: polygon(0 3%, 100% 0%, 100% 100%, 0 100%);
}

@media screen and (min-width: 750px) {
    .diagonal-divider-r {
        padding-top: 150px;
        margin-top: -75px;
        clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 100%);
    }
    
    .diagonal-divider-l {
        padding-top: 150px;
        margin-top: -75px;
        clip-path: polygon(0 3%, 100% 0%, 100% 100%, 0 100%);
    }
}

@media screen and (min-width: 1200px) {
    .diagonal-divider-r {
        padding-top: 200px;
        margin-top: -100px;
        clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 100%);
    }
    
    .diagonal-divider-l {
        padding-top: 200px;
        margin-top: -100px;
        clip-path: polygon(0 7%, 100% 0%, 100% 100%, 0 100%);
    }
}

@media screen and (min-width: 1400px) {
    .diagonal-divider-r {
        clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 100%);
    }
    
    .diagonal-divider-l {
        clip-path: polygon(0 7%, 100% 0%, 100% 100%, 0 100%);
    }
}

/* CARDS */
.card {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.card > .card-content {
    padding: var(--content-padding);
    box-sizing: border-box;
}

/* KPIs */
.kpi-item {
    display: grid;
    justify-items: center;
    justify-content: center;
    padding: 40px 0;
    width: 75%;
    margin: 0 auto;
    align-items: flex-start;
    align-content: flex-start;
}

.kpi-item:first-child { padding-top: 0; }
.kpi-item:last-child { padding-bottom: 0; }

.kpi-item:not(:first-child) {
    border-top: solid 4px var(--green-bright-bg-2-color);
}

.green-dark-bg .kpi-item,
.black-bg .kpi-item
{
    border-color: var(--green-btn-color) !important;
}

.kpi-title {
    padding: 0 0px;
    margin-top: 20px;
}

@media screen and (min-width: 750px) {
    .kpi-item {
        padding: 0 40px;
        width: unset;
        margin: 0;
    }
    
    .kpi-item:not(:first-child) {
        border-top: none;
        border-left: solid 4px var(--green-bright-bg-2-color);
    }
}

@media screen and (min-width: 1200px) {
    .kpi-title {
        padding: 0 40px;
    }
}

/* CAROUSEL NAVIGATION */
.carousel-left,
.carousel-right {
    width: 30px;
    position: relative;
    display: block;
    cursor: pointer;
}

.carousel-left img,
.carousel-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.carousel-right {
    transform: scaleX(-1);
}

@media screen and (min-width: 750px) {
    .carousel-left,
    .carousel-right {
        width: 40px;
    }
}

/* USP LIST */
.usp-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 20px;
}

.usp-list-item {
    padding-left: 30px;
}

.usp-list-item-text {
    color: rgb(100,100,100);
    margin-top: -5px;
}

.usp-list-item {
    position: relative;
    margin: 0;
}

.usp-list-item::before {
    position: absolute;
    left: 0px;
    top: 10px;
    width: 15px;
    height: 15px;
    content: '';
    background: url('https://techtell.se/wp-content/uploads/techtell_check.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (min-width: 750px) {
    .usp-list-item::before {
        top: 5px;
        width: 20px;
        height: 20px;
    }
    
    .usp-list-item {
        padding-left: 40px;
    }
}

@media screen and (min-width: 1200px) {
    .usp-list-item::before {
        top: 5px;
        width: 25px;
        height: 25px;
    }
    
    .usp-list-item {
        padding-left: 60px;
    }
}

/* GRADIENT OVERLAY */

.gradient-overlay {
    position: relative;
}

.gradient-overlay::after {
    content: '';
    opacity: 0.15;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* SECTION DIVIDER */
.section-divider {
    width: 100%;
    height: 30px;
    box-sizing: content-box;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
    background-position: bottom;
    pointer-events: none;
    transform: translateY(1px);
    background-image: url(https://techtell.se/wp-content/uploads/techtell_divider_simple.svg);
    background-size: cover;
}

.section-divider.inverted {
    transform: scaleX(-1) translateY(1px);
}

@media screen and (min-width: 750px) {
    .section-divider {
        height: 50px;
    }
}

@media screen and (min-width: 900px) {
    .section-divider {
        height: 80px;
    }
}

@media screen and (min-width: 1200px) {
    .section-divider {
        height: 100px;
    }
}

@media screen and (min-width: 1800px) {
    .section-divider {
        height: 150px;
    }
}

@media screen and (min-width: 2500px) {
    .section-divider {
        height: 200px;
    }
}

/* YOUTUBE VIDEO */
.video-placeholder-wrapper {
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: center;
    padding: 0 20px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.video-placeholder {
    height: 100%;
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
}

.video-placeholder-wrapper:hover .youtube-play-button {
    transform: translate(-50%, -50%) scale(1.05);
    filter: drop-shadow(0 0 7px rgb(0,0,0,0.6));
}

.video-placeholder-wrapper:active .youtube-play-button,
.video-placeholder-wrapper:focus .youtube-play-button {
    transform: translate(-50%, -50%) scale(0.99);
    filter: drop-shadow(0 0 3px rgb(0,0,0,0.6));
}

.youtube-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 40%;
    max-height: 40%;
    object-fit: contain;
    filter: drop-shadow(0 0 7px rgb(0,0,0,0.3));
    transition: all 0.3s;
}

@media screen and (max-width: 749px) {
    #youtube-video > iframe {
        width: 100%;
        height: auto;
    }
}


/* FORM MESSAGES */
.form-message {
    position: relative;
    padding-left: 40px;
    font-weight: 300;
}

#fast-form .form-message {
    grid-column: span 2;
}

.form-message::before {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1em;
    margin-top: 0.3em;
    background-position: top left;
    background-size: contain;
    background-repeat: no-repeat;
}

.form-message.success::before {
    content: '';
    background-image: url('http://dev.1337.techtell.se/wp-content/uploads/techtell_check.png');
}

.form-message.failed::before {
    content: '';
    background-image: url('http://dev.1337.techtell.se/wp-content/uploads/techtell_cross.png');
    filter: invert(1) brightness(0.7)
}

input.missing {
    border: solid 2px var(--black-color) !important;
}