/*
Theme Name: Café Villa Ed Theme
Theme URI: 
Author: Kim M29
Author URI: https://m29media.se/
Description: Detta är ett barntema till Twenty Twenty-Five skapat av M29 Media för Café Villa Ed.
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: cafe-villa-ed-theme
Tags: 
*/

/* Global styles */

*:focus {
    outline: none;
}

.hide-on-desktop {
    display: none;
}
.show-on-desktop {
    display: unset;
}

html {
    scroll-behavior: smooth;
}

.noshow {
    display: none !important;
}

.nowrap {
    white-space: nowrap;
}

.button-invert-on-hover a {
    transition: .3s;
}
.button-invert-on-hover a:hover {
    background-color: #8f966a !important;
    color: #FBFAF3 !important;
    border-color: transparent !important;
}

.square-container {
    aspect-ratio: 1/1;
    height: auto;
}

.link-no-decoration, .link-no-decoration p, .link-no-decoration a {
    text-decoration: none !important;
}

/* Header */

.header-wrapper {
    z-index: 100 !important;
}

header .header-logo {
    width: 0px;
}

.nav-top a {
    text-decoration: none;
    transition: .5s;
}
.nav-top a {
  display: inline-block;
  position: relative;
}

.nav-top a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #8f966a;
  transition: transform 0.25s ease-out;
}

.nav-top a:hover::after {
  transform: scaleX(1);
}

.nav-top a::after {
  transform-origin: bottom right;
}

.nav-top a:hover::after {
  transform-origin: bottom left;
}

/** Frontpage styles **/

.fp-intro-col1 img {
    width: auto;
}

.flip-x img {
    -webkit-transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.floating-decoration-container {
    position: absolute !important;
    z-index: 2;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
    max-width: 100%;
    padding: 0 !important;

}
.floating-decoration-container:has(.floating-leaf) {
    bottom: -80px;
    left: 100px;
}
.floating-decoration-container:has(.floating-leaf-2) {
    bottom: -80px;
    right: 40px;
}
.floating-decoration-container:has(.floating-oak-branch) {
    bottom: -200px;
    left: -100px;
}

.floating-decoration-container:has(.floating-onion) {
    right: 200px;
    bottom: -40px;
}

.filter-shadow {
    -webkit-filter: drop-shadow(5px 5px 5px #696969);
    filter: drop-shadow(5px 5px 5px #747474);
}

.fp-top-column {
    height: auto !important;
}

.fp-top-column-right {
    height: auto !important;
}

.fp-top-slider, .fp-top-slider .n2-ss-align, .fp-top-slider .n2-padding, .fp-top-slider .n2-ss-slider  {
    height: 100%;
}

.img-events .rl-gallery-item {
    width: 100% !important;
}

.fp-menu-wrapper img {
    max-height: 800px !important;
    width: auto;
}
.fp-menu-wrapper {
}

.column-height-100 {
    height: auto;
}

#menu-section, #contact-section, #oppet-section, #hitta-section, #catering-section, #aktuellt-section {
    display: block;
    position: relative;
    top: -120px;
    visibility: hidden;
}

.catering-info-box-cols {
    padding: 0px !important;
    gap: 12px;
}

.column-info-box {
    height: 100% !important;
    flex: 1 !important;
    min-height: 180px;
}

.contact-item {
transition: .3s;
}

.contact-item:hover {
    opacity: .7;
}

.opening-hours-table td {
	border: none;
    text-align: center;
	border-bottom: solid 2px #8f966a;
    stroke-linecap: round;
    height: 3em;
    vertical-align: bottom;
}

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

.contact-icon img {
    width: 42px;
    height: 42px;
}

.fp-gallery-wrapper, .wp-block-responsive-lightbox-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

#aktuellt-section {
    margin-top: -2px;
}

.section-title-tag {
    padding: 64px 16px;
    position: absolute;
    top: 20%;
    border-radius: 16px 0 0 16px;
    transform: translateY(-50%);
    left:0;
    transform: rotate(180deg);
    font-size: 42px;
}

.corners-round img {
    border-radius: 8px;
}

.fp-slider-container {
    margin-top: 0;
    display: none;
}

.fp-slider img {
    width: 100%;
    margin: 0;
}

.fp-slider-container {}

.fp-slider-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    z-index: 99;
}

/*

.firstcharacter:first-child:first-letter {
  color: #8f966a;
  float: left;
  font-size: 3.5em;
  line-height: 3em;
  margin-top: -28px;
  margin-left: -10px;
  font-family: Cinzel;
  font-weight: 500;
}

.has-dropcap:first-letter {
	color: #8f966a;
	font-family: Cinzel, serif;
	float: left;
	font-size: 6rem;
	line-height: 0.65;
	margin-left: -.5rem;
	margin-top: -2rem;
}

*/
.enlarge-on-scroll {
    transition: transform 0.3s ease;
    transform: scale(0);
}


header.scrolled .enlarge-on-scroll {
    transform: scale(1);
}

.minimize-on-scroll {
    transition: transform 0.3s ease;
    transform: scale(1);
}
header.scrolled .minimize-on-scroll {
    transform: scale(0);
}

header.scrolled .header-inner {
    background-color: #fff;
    z-index: 100;
}



@media screen and (max-width: 600px) {

    .hide-on-mobile {
        display: none;
    }

    .show-on-mobile {
        display: unset;
    }

    .intro-cols {
        flex-direction: column-reverse;
    }

    .fp-slider, .fp-slider div {
        height: 60vh;
    }
    .fp-slider .n2-ss-item-content {
        position: relative;
        top: 30%;
        margin: 0 auto;
    }
    .fp-slider .fp-slider-logo img {
        width: 250px;
        height: auto;
        margin: 0 auto;
    }

    header {
        top: 0 !important;
    }
    header .row {
        display: flex;
        justify-content: space-between;
    }


    header .sticky-nav nav {
        float: right;
    }
    header .header-logo {
    float: left;
    width: auto;
    transform: scale(0);
    transition: .5s;
    }
    .mobile-nav svg {
        width: 32px;
        height: auto;
    }
    .mobile-nav nav ul {
        margin-top: 60px;
    }
    .mobile-nav nav li {
        font-size: 20px;
        text-align: right;
    }

    header.header-scrolled .header-logo {
        transform: scale(1);
    }

	.ingress {
		font-size: 24px !important;
	}
	
    .fp-intro-col1 {
        padding: 0px !important;
    }
    .fp-intro-col2 {
        padding: 2em;
        padding-top: 0;
        width: auto !important;
    }
    .intro-text-con .firstcharacter {
        font-size: 1.4em !important;
    }

    .floating-decoration-container:has(.floating-leaf) {
        bottom: -60px;
        left: 50%;
      transform: translateX(-50%);
    }
    .floating-decoration-container:has(.floating-leaf-2) {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .floating-leaf img, .floating-leaf-2 img {
        width: 220px !important;
        height: auto;
    }
    .menu-section-buttons {
        justify-content: center;
    }

    .hander-inner-container {
        padding-top: 40px !important;
        padding-bottom: 80px !important
    }
    .hander-left-col {
        margin-left: 1em !important;
        margin-right: 1em !important;
    }
    .hander-left-col .box {
        border-radius: 16px;
        border-bottom-right-radius: 0px !important;
        border-bottom-left-radius: 0px;

    }
    .hander-left-col p {
        font-size: 1.2em !important;
    }
    .hander-container .hander-cols {
        gap: 0;
    }
    .hander-right-col {
        margin-left: 1em !important;
        margin-right: 1em !important;
    }
    .hander-right-col .box, .hander-right-col .corners-round img {
    border-radius: 16px;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px;
    }
    
    .hander-left-col .img-menu img {
        border-radius: 16px !important;
        border-bottom-right-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
    }
    .box.ata-hos-oss {
        padding-bottom: 20px;
    }
    .catering-container {
        padding-top: 60px !important;
    }
 
    p.has-medium-font-size {
        font-size: 18px !important;
    }

    .button-invert-on-hover a {
        background-color: #8f966a !important;
        color: #FBFAF3 !important;
        border-color: transparent !important;
    }

    .column-info-box {
        display: flex;
       flex-direction: row !important;
       gap: 24px;
       align-items: center;
       min-height: unset;
    }

    .column-info-box .info-box-icon-wrapper figure {
        width: 64px;
        height: 64px;
    }

    .hitta-till-oss-con {
        padding: 0 !important;
    }

    .contact-section {
        padding: 1em !important;
        padding-top: 2em !important;
    }

    .mobile-menu-wrapper {
        background-color: white;
        width: 80px;
        height: 80px;
        border-radius: 100px;
        position: fixed;
        bottom: 40px;
        right: 40px;
        z-index: 100;
    }
    
    .iframe-maps {
        border-radius: 8px !important;
    }

	/*
    .firstcharacter:first-child:first-letter {
        color: black;
        float: none;
        font-size: inherit;
        line-height: inherit;
        margin-top: 0px;
        margin-left: 0px;
        font-family: inherit;
        font-weight: inherit;
    }

.has-dropcap:first-letter {
	color: #8f966a;
	font-family: Cinzel, serif;
	float: left;
	font-size: 6rem;
	line-height: 0.65;
	margin-left: -.5rem;
	margin-top: 0;
}
	*/
	
  header img.custom-logo {
    transition: .5s;
    opacity: 0 !important;
  }
  header.header-scrolled img.custom-logo {
    opacity: 1 !important;
  }

}