/*
Theme Name: Floristen
Theme URI: https://floristen.nu/
Author: Floristen
Author URI: https://floristen.nu/
Description: Fully optimized website, packed with features while being lightweight.
Version: 1.0
Requires PHP: 6.0
Text Domain: floristen
*/

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

:root {
	--site-max-width: 1400px;
	--site-width-regular: 1300px;
	
	--scroll-amount: 0%;
	
	--border-radius: 10px;
	--button-border-radius: 25px;
	
	--padding-v: 50px;
	--padding-h: 20px;
	--narrow-padding-v: 40px;
	--content-padding: 20px;
	--header-height: 60px;
	--col-2-row-gap: 40px;
    --col-2-column-gap: 20px;
    --full-width-col-outer-side-padding: max(calc((100vw - var(--site-max-width)) / 2), var(--padding-h));
	
	--primary-font: "Playfair Display", sans-serif;
    --secondary-font: "Lato", sans-serif;
	--fs-7: clamp(2.986rem, 1.9363rem + 4.1988vi, 5.6102rem);
	--fs-6: clamp(2.4883rem, 1.8002rem + 2.7527vi, 4.2087rem);
	--fs-5: clamp(2.0736rem, 1.6401rem + 1.734vi, 3.1573rem);
	--fs-4: clamp(1.728rem, 1.4718rem + 1.0249vi, 2.3686rem);
	--fs-3: clamp(1.44rem, 1.3052rem + 0.539vi, 1.7769rem);
	--fs-2: clamp(1.2rem, 1.1468rem + 0.2128vi, 1.333rem);
	--fs-1: 1rem;
    --fs-0: 0.8rem;
	
	--text-color: #000000;
	--accent-color: #C66060;
	
	--white-color: #ffffff;
	--white-color-hover: #cde3ca;
	--white-color-transparent: #ffffffeb;
	--black-color: #080808;
	--black-color-hover: #392e2e;
	--black-color-transparent: #08080899;
	
	--dark-bg-1: #360016;
	--dark-bg-2: #162211;
	
	--bright-bg-1: #fff2f2;
	--bright-bg-2: #ffe0df;
    --bright-bg-3: #fee9e8;
    --bright-bg-4: #e5b1b1;
	
	--dark-bg-green-transparent-1: #1b2817d1;
	--dark-bg-green-transparent-2: #30392ed1;
	
	--bright-bg-transparent-1: #ffe0dfE6;
	--bright-bg-transparent-2: #fee9e8E6;
    --bright-bg-transparent-3: #fee9e8d1;
	
	--success-color: #509039;
	--error-color: #d13131;
	
	--box-shadow: 0 0 5px var(--blue-color-transparent);
	--box-shadow-hover: 0 5px 25px var(--blue-color);
	
	--transition-delay: 100ms;
	--cubic-bezier: cubic-bezier(0.25, 0.1, 0, 1);
}

::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;
	    --col-2-row-gap: 40px;
	    --col-2-column-gap: 80px;
	    
	    --font-size-hero: min( 80px, calc( 1rem + 2vw + 2vh ) );
	    --header-height: 80px;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        --content-padding: 30px;
        --padding-h: 50px;
        --col-2-row-gap: 80px;
	    --col-2-column-gap: 120px;
    }
}

@media screen and (min-width: 1600px) {
    :root {
        --padding-h: 80px;
        --padding-v: 100px;
        --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-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
}

/* SIZE */
.fs-7 {
    font-family: var(--primary-font);
    font-size: var(--fs-7);
    line-height: 1.2em;
    letter-spacing: -1px;
}

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

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

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

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

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

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

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

@media screen and (max-width: 749px) {
    .fs-2.fw-300,
    .fs-2.fw-400,
    .fs-2:not(.fw-500):not(.fw-600):not(.fw-700) {
        font-size: var(--fs-1);
        font-weight: 400;
    }
    
    .fs-3 {
        font-size: var(--fs-2);
    }
    
    .fs-4 {
        font-size: var(--fs-3);
    }
    
    .fs-5 {
        font-size: var(--fs-4);
    }
    
    .fs-6 {
        font-size: var(--fs-5);
    }
    
    .fs-7 {
        font-size: var(--fs-6);
    }
}

/* TYPOGRAPHY */
.primary-font {
    font-family: var(--primary-font);
}

.secondary-font {
    font-family: var(--secondary-font);
}

/* 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 */
.green-dot::after {
    content: '.';
    font-family: sans-serif;
    font-size: 1.25em;
    color: var(--accent-color);
}

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

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

.text-link {
    position: relative;
    text-decoration: none !important;
    cursor: pointer;
    display: inline-block;
}

.text-link::before {
    content: '';
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 0.1em;
    background: var(--black-color);
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.dark-bg .text-link::before {
    background: var(--white-color);
}

.text-link:hover::before,
.text-link.current::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.dark-bg .text-link::after {
    filter: invert(1);
}

.text-link.arrow::before {
    width: calc(100% - 1.4em);
}

a.arrow::after {
    content: '';
    display: inline-block;
    margin-left: 0.4em;
    width: 1em;
    height: 0.5em;
    transform: translate(0, -0.25em);
    background: url('https://xn--vlt-ula.se/wp-content/uploads/2024/02/valt-grafik_pil.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.1s;
}

.dark-bg a.arrow::after {
    filter: invert(1);
}

a.arrow:hover::after,
a.arrow:focus::after {
    transform: translate(0.1em, -0.35em);
}

.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) {
    html {
        font-size: 16px;
    }
    
    br.mid {
        display: inline;
    }
}

@media screen and (min-width: 1200px) {
    html[lang] {
        font-size: 16px;
    }
    
    br.big {
        display: inline;
    }
}

/* SPECIAL STYLES */


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

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

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

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

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

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

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

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

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

/* ––––– BANNER ––––– */
.banner.general {
    background: var(--dark-bg-green-1);
}

.banner.general span {
    color: white;
}

.banner.important {
    background: #40BF0C;
}

.banner.important span {
    color: white;
}

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

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

header > .container {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
}

header > .container > .header-logo {
    width: 100%;
    height: 100%;
}

header > .container > .header-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
}

header > .container > .header-logo img {
    width: 100%;
    height: 100%;
}

header > .container > .header-menu-wrapper > .header-menu {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 40px;
}

header > .container > .header-menu-wrapper a {
    text-decoration: none;
    cursor: pointer;
}

header > .container > .header-menu-wrapper a.cta {
    --button-color: var(--accent-color)
}

@media screen and (max-width: 749px) {
    header > .container {
        grid-template-columns: 120px 1fr auto;
    }

    header .header-logo {
        max-height: 40px;
    }
    
    header .header-menu-wrapper {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        z-index: 99999;
        transform: translateX(100%);
        background: var(--bright-bg-1);
        transition: transform 0.5s;
        
        display: flex;
        justify-content: center;
        align-items: center;
        padding: var(--padding-v) var(--padding-h);
        box-sizing: border-box;
    }
    
    .mobile-menu-open header .header-menu-wrapper {
        transform: translateX(0);
    }
    
    header .header-menu-wrapper > .header-menu {
        font-size: var(--fs-5);
        font-weight: 300;
        display: grid !important;
        gap: 10vh !important;
        color: black;
    }
    
    header .header-menu-wrapper > .header-menu .mega-menu-button::after {
        filter: invert(0);
        transform: rotate(-90deg);
    }
    
    header .header-menu-wrapper > .header-menu .cta.button {
        display: none;
    }
    
    header .mobile-menu-toggle > button,
    .mega-menu-close > button {
        padding: 8px;
        width: 37px;
        height: 37px;
    }
    
    header .mobile-menu-toggle > button img,
    .mega-menu-close > button img {
        width: 100%;
        height: 100%;
    }
    
    header .mobile-menu-toggle.close > button {
        position: absolute;
        top: 20px;
        right: 20px;
        background: black;
        border-color: black;
    }
    
    header .mobile-menu-toggle.close img {
        filter: invert(1);
    }
    
    header .mobile-menu-toggle > button::before {
        display: none;
    }
}

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

@media screen and (min-width: 1200px) {
    header > .container > .header-menu-wrapper > .header-menu {
        gap: 60px;
    }
}

.mega-menu-button::after {
    content: '';
    width: 1em;
    height: 0.8em;
    margin-left: 0.6em;
    display: inline-block;
    background-image: url(https://xn--vlt-ula.se/wp-content/uploads/2024/02/valt_chevron.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.dark-bg .mega-menu-button::after {
    filter: invert(1)
}

.mega-menu-button.open::after {
    transform: scaleY(-1);
}

.mega-menu-item {
    position: fixed;
    background: var(--bright-bg-1);
}

.mega-menu-item.active {
    opacity: 1;
    visibility: visible;
}

.mega-menu-item > .container {
    display: grid;
    gap: 40px;
    align-items: flex-start;
    align-content: flex-start;
}

.mega-menu-item > .container > div {
    height: 100%;
    box-sizing: border-box;
}

.mega-menu-item > .container > .menu-wrapper {
    display: grid;
    justify-items: flex-start;
    align-content: baseline;
    gap: 10px;
}

.mega-menu-item > .container > .text-wrapper {
    display: flex;
    align-items: center;
}

.mega-menu-item > .container > .img-wrapper > div {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.mega-menu-item > .container > .img-wrapper img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

@media screen and (max-width: 749px) {
    .mega-menu-item {
        z-index: 9999999;
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.5s;
        background: var(--bright-bg-2);
    }
    
    .mega-menu-item.active {
        transform: translateX(0);
    }
    
    .mega-menu-item > .container {
        padding: 20px var(--padding-h) 100px var(--padding-h);
        height: 100%;
        box-sizing: border-box;
        overflow: auto;
    }
    
    .mega-menu-item .mega-menu-title {
        background: var(--dark-bg-green-1);
        padding: 20px var(--padding-h);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px
    }
    
    .mega-menu-item .mega-menu-title > h2 {
        font-size: var(--fs-4);
        font-weight: 300 !important;
        color: white;
    }
    
    .mega-menu-item .img-wrapper {
        min-height: 150px;
    }
    
    .mega-menu-item .mega-menu-close img {
        transform: rotate(90deg) translate(0px, 1px);
        width: 16px;
        height: 16px;
    }
    
    .mega-menu-close > button {
        background: white;
        border-color: white;
    }
    
    .mega-menu-close > button::before {
        display: none;
    }
}

@media screen and (min-width: 750px) {
    .mega-menu-item {
        z-index: 999;
        left: 0;
        top: 80px;
        width: 100%;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: 0.2s all;
        box-shadow: 0 5px 20px rgb(0,0,0,.1)
    }
    
    .mega-menu-item > .container {
        gap: 80px;
        padding: var(--content-padding);
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .mega-menu-item .mega-menu-title,
    .mega-menu-item .mega-menu-close {
        display: none;
    }
}

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

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

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

footer .cta-text span {
    color: var(--accent-color)
}

footer .logo {
    margin-top: 40px;
    width: 250px;
    height: auto;
    filter: brightness(0) invert(1)
}

@media screen and (max-width: 749px) {
    footer .cta-text {
        font-size: var(--fs-5);
        margin-bottom: 20px;
    }

    footer .logo {
        order: -1;
        width: 175px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 999px) {
    footer .links-col {
        order: 2;
    }
    
    footer .contact-col {
        order: 1;
    }
    
    footer .form-col {
        order: 3;
    }
}

@media screen and (min-width: 1000px) {
    footer > .container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 80px
    }
}

.tvx-footer-content {
    display: none !important;
}

#CybotCookiebotDialog {
    border-radius: 15px !important;
}

#CybotCookiebotDialogPoweredbyCybot {
    display: none !important;
}

#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection,
#CybotCookiebotDialogBodyLevelButtonCustomize,
#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll {
    border-radius: 50px !important;
}