/*
Theme Name: Landningssidor
Theme URI: https://smedigt.se/
Author: Amar Delic
Author URI: https://smedigt.se/
Description: Fully optimized and modular website design.
Version: 1.0
Requires PHP: 6.0
Text Domain: smedigt
*/

/* ––––– ROOT VARIABLES ––––– */

:root {
	--scroll-amount: 0%;
	--padding-v: 50px;
	--padding-h: 20px;
	--narrow-padding-v: calc(var(--padding-v) / 2);
	--content-padding: 20px;
	--header-height: 60px;
	--column-gap: 40px;
    --semifull-col-padding-h: max(calc((100vw - var(--site-max-width)) / 2), var(--padding-h));
    
    --white-color: white;
    --black-color: black;
}

::selection {
    background: #141414;
    color: #fff;
    mix-blend-mode: difference;
}

.dark-bg ::selection {
    background: #fff;
    color: #141414;
}

.grecaptcha-badge {
    z-index: -1;
}

@media screen and (min-width: 750px) {
    :root {
        --padding-v: 60px;
	    --padding-h: 40px;
	    --content-padding: 40px;
	    --narrow-padding-v: 70px;
	    --header-height: 80px;
    }
}

@media screen and (min-width: 1000px) {
    :root {
        --content-padding: 30px;
        --column-gap: 60px;
    }
}

@media screen and (min-width: 1600px) {
    :root {
        --content-padding: 40px;
    }
}

/* ––––– FONTS ––––– */

html[lang] {
    margin: 0 !important;
    font-family: var(--primary-font);
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--white-color);
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

input {
    font-family: var(--primary-font);
}

/* TRANSFORM */
.uppercase {
    text-transform: uppercase;
}

/* STYLE */
.italic {
    font-style: italic;
}

/* WEIGHT */
.fw-100 {
    font-weight: 100;
}

.fw-200 {
    font-weight: 200;
}

.fw-300 {
    font-weight: 300;
}

.fw-400 {
    font-weight: 400;
}

.fw-500,
.long-text h3,
.long-text h4 {
    font-weight: 500
}

.fw-600 {
    font-weight: 600
}

.fw-700,
b,
.long-text h2,
.text-link {
    font-weight: 700
}

.fw-800 {
    font-weight: 800;
}

.fw-900 {
    font-weight: 900;
}

/* SIZE */
.fs-7 {
    font-size: var(--fs-7);
    line-height: 1.2em;
}

.fs-6 {
    font-size: var(--fs-6);
    line-height: 1.2em;
}

.fs-5 {
    font-size: var(--fs-5);
    line-height: 1.2em;
    letter-spacing: -1px;
}

.fs-4 {
    font-size: var(--fs-4);
}

.fs-3 {
    font-size: var(--fs-3);
}

.fs-2 {
    font-size: var(--fs-2);
}

.fs-1 {
    font-size: var(--fs-1);
    line-height: 1.5em;
}

/* HEADING MARGINS */
h1,
h2,
h3,
h4,
h5 {
    margin: 0;
}

.long-text h2,
.long-text h3,
.long-text h4,
.long-text h5 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* DECORATION */
.underline {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

a.button > span,
a.button {
    text-decoration: none;
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.dark-bg .text-success,
.dark-bg .text-error {
    filter: brightness(2.5);
}

/* TEXT LAYOUT */
h1, h2, h3, h4, h5, h6, h7, h8, p {
    margin-block-start: 0;
    margin-block-end: 0;
}

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

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

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

br.big {
    display: none;
}

@media screen and (min-width: 750px) and (max-width: 1199px) {
    br.mid {
        display: inline;
    }
}

@media screen and (min-width: 1200px) {
    br.big {
        display: inline;
    }
}

/* ––––– COLORS ––––– */
.long-text a {
    color: var(--text-dark);
}

.long-text a:hover,
.long-text a:focus {
    text-decoration: none;
}

.accent-color {
    color: var(--accent-color);
}

.bg-accent {
    background: var(--accent-color);
    color: var(--accent-fg-color);
}

.bg-bright-1 {
    background: var(--bg-bright-1);
}

.bg-bright-2 {
    background: var(--bg-bright-2);
}

.bg-bright-3 {
    background: var(--bg-bright-3);
}

.bg-bright-4 {
    background: var(--bg-bright-4);
}

.dark-bg,
.bg-dark-1,
.bg-dark-2,
.bg-dark-3,
.bg-dark-4,
.dark-bg .long-text a {
    color: var(--text-bright);
}

.bg-dark-1 {
    background-color: var(--bg-dark-1);
}

.bg-dark-2 {
    background-color: var(--bg-dark-2);
}

.bg-dark-3 {
    background-color: var(--bg-dark-3);
}

.bg-dark-4 {
    background-color: var(--bg-dark-4);
}

/* ––––– HIDE ––––– */

@media screen and (max-width: 749px) {
    .hide-mobile {
        display: none;
    }
}

@media screen and (min-width: 1000px) {
    .hide-desktop {
        display: none;
    }
}

/* ––––– HEADER ––––– */
header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--header-height);
    box-sizing: border-box;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    color: white;
    transition: 0.3s background;
    z-index: 999;
}

header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: var(--header-bg-opacity);
    transition: 0.2s all;
}

header:not(.on-scroll)::before,
html.scrolled header.on-scroll::before {
    background: var(--header-bg);
}

html:not(.scrolled) header.on-scroll {
    background: transparent;
}

header > .container {
    display: grid;
    align-items: center;
    height: 100%;
    z-index: 2;
}

header > .container > .header-logo {
    width: 100%;
    height: 45px;
    display: grid;
    grid-template-columns: auto 100px;
    gap: 5px;
    justify-content: flex-start;
    align-items: flex-end;
    color: inherit;
    text-decoration: none;
}

header > .container > .header-logo h1 {
    color: var(--text-dark);
}

html:not(.scrolled) header.on-scroll > .container > .header-logo.dark-bg-below h1,
header:not(.on-scroll) > .container > .header-logo.dark-bg-below h1,
header.dark-bg:not(.on-scroll) > .container > .header-logo.dark-bg-below h1,
html.scrolled header.dark-bg.on-scroll > .container > .header-logo.dark-bg-below h1 {
    color: var(--text-bright);
}

header .menu-wrapper > ul a {
    color: var(--text-dark);
    text-decoration: none;
}

html:not(.scrolled) header.on-scroll .menu-wrapper > ul.dark-bg-below a,
header:not(.on-scroll) .menu-wrapper > ul.dark-bg-below a,
header:not(.on-scroll).dark-bg .menu-wrapper > ul a,
html.scrolled header.on-scroll.dark-bg .menu-wrapper > ul a {
    color: var(--text-bright);
}

header .menu-wrapper > ul a:not(.button):hover,
header .menu-wrapper > ul a:not(.button):focus {
    color: var(--accent-color) !important;
}

header > .container > .menu-wrapper {
    display: flex;
    justify-content: end;
}

header .menu-wrapper > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0;
}

header > .container > .menu-wrapper > ul {
    margin: 0;
}

.header-logo svg {
    margin-left: 10px;
    width: 100px;
    height: auto;
}

.header-logo svg #bg-color {
    fill: var(--accent-color) !important;
}

.header-logo svg *:not(#bg-color) {
    fill: var(--accent-fg-color) !important;
}




header > .container {
    grid-template-columns: 130px 1fr;
}

header .header-logo {	 
    width: 150px;	 
    height: 100px;	 
    position: relative;	 
}

header .header-logo.dark-bg-below .logo-color,	 
header .header-logo .logo-white	 
 {	 
    opacity: 0;	 
    visibility: hidden;	 
}

header .header-logo .logo-color,	 
header .header-logo.dark-bg-below .logo-white {	 
    position: absolute;	 
    left: 0;	 
    top: 0;	 
    width: 100%;	 
    height: 100%;	 
    object-fit: contain;	 
    object-position: center left;	 
    transition: all 0.2s;	 
    opacity: 1;	 
    visibility: visible;	 
}







@media screen and (max-width: 849px) {
    header .menu-wrapper {
        position: fixed;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-bright-1);
        justify-content: center !important;
        justify-items: center !important;
        align-content: center !important;
        align-items: center !important;
        padding: var(--padding-v) var(--padding-h);
        overflow-y: auto;
        box-sizing: border-box;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    body.open-mobile-menu header .menu-wrapper {
        transform: translateX(0)
    }
    
    header .menu-wrapper > ul {
        display: grid;
        gap: 30px;
        text-align: center;
    }
    
    header .menu-wrapper a {
        font-size: var(--fs-3);
        color: var(--text-dark) !important;
    }
    
    header .mobile-menu-toggle {
        position: absolute;
        right: var(--padding-h);
        top: 50%;
        transform: translateY(-50%);
        width: 25px;
        height: 25px;
    }
    
    header .mobile-menu-toggle > button {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
    }
    
    header .mobile-menu-toggle img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    header:not(.on-scroll) .mobile-menu-toggle.dark-bg-below > .open > img,
    html:not(.scrolled) header.on-scroll .mobile-menu-toggle.dark-bg-below > .open > img,
    header:not(.on-scroll).dark-bg .mobile-menu-toggle > .open > img,
    html.scrolled header.on-scroll.dark-bg .mobile-menu-toggle > .open > img {
        filter: invert(1);
    }
    
    body.open-mobile-menu .mobile-menu-toggle > .open, 
    body:not(.open-mobile-menu) .mobile-menu-toggle > .close {
        display: none;
    }
}

@media screen and (max-width: 749px) {
    header > .container > .header-logo h1 {
        font-size: var(--fs-1);
        line-height: 1.2em;
    }
    
    header > .container > .header-logo {
        align-items: center;
    }
}

@media screen and (min-width: 850px) {
    header .mobile-menu-toggle {
        display: none;
    }
}

/* ––––– FOOTER ––––– */

footer {
    padding: var(--padding-v) 0;
}

footer > .container {
    display: grid;
    gap: 40px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px
}

footer a {
    text-decoration: none;
    color: var(--bg-bright-3) !important;
}

footer a:hover {
    text-decoration: underline !important;
}

@media screen and (max-width: 749px) {
    footer .sm-column:nth-child(1) {
        order: 3;
    }
    
    footer .sm-column:nth-child(2) {
        order: 2;
    }
    
    footer .sm-column:nth-child(3) {
        order: 1;
    }
}

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