/* Gamla Bibliotekscaféet AB */

/* ==========================================================================
Generellt    
========================================================================== */
:root {
	/* 	Colors */
	--primary-color: 195, 166, 108;
	--primary-light-color: 249, 246, 241;
	--secondary-color: 67, 40, 24;

	--black-color: 0, 0, 0;
	--gray-dark-color: 75, 75, 75;
	--gray-light-color: 240, 240, 240;
	--white-color: 255, 255, 255;

	/* 	Layout  */
	--col-padding: 3rem;
	--menu-height: 8rem;
	--menu-height-scrolled: 8rem;
	--section-width: 140rem;

	/* 	Typography */
	--base-size: 1.6rem;

	/* 	Mobile nav */
	--activate-mobile-menu: 1000;
	--mobile-menu-height: 7rem;
	--mobile-menu-bg: var(--white-color);
	--menu-color: var(--black-color);
}

@media only screen and (max-width: 580px) {
	:root {
		--base-size: 1.5rem;
	}
}

/* Layout
========================================================================== */
.section-block {
	padding: 10rem 5rem;
}

/* Bredder */
.mw-1000 .section-block-wrapper {
	max-width: 100rem;
}

/* Paddings */
.p-2 .section-block,
.p-2:not(.section-wrapper) {
	padding: 2rem;
}

.p-3 .section-block,
.p-3:not(.section-wrapper) {
	padding: 3rem;
}

.pt-2 .section-block,
.pt-2:not(.section-wrapper) {
	padding-top: 2rem;
}

.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
	padding-bottom: 0rem;
}

.py-0 .section-block,
.py-0:not(.section-wrapper) {
	padding-bottom: 0rem;
	padding-top: 0rem;
}

.pb-5 .section-block,
.pb-5:not(.section-wrapper) {
	padding-bottom: 5rem;
}

/* Ovriga klasser */
.align-center {
	align-items: center;
}

@media only screen and (max-width: 1024px) {
	.section-block {
		padding: 8rem 3rem;
	}
}

@media only screen and (max-width: 580px) {
	.section-block {
		padding: 5rem 2rem;
	}
}

/* Text och typsnitt
========================================================================== */
body {
	font-family: 'Noto Sans', sans-serif;
}

/* Rubriker */
.text-label {
	font-size: 2.5em;
	font-weight: 600;
	padding-bottom: 1em;
	font-family: 'Dancing Script', cursive;
	color: rgb(var(--secondary-color));
}

.section-title {
	font-family: 'Aleo', serif;
	font-size: 4rem;
	font-weight: 700;
	line-height: 1.2;
	padding-bottom: .5em;
}

.small-title {
	font-family: 'Aleo', serif;
	font-size: 2.3rem;
	font-weight: 400;
	line-height: 1.2;
	padding-bottom: .2em;
}

/* Brodtext och lankar */
p,
li {
	font-weight: 300;
	color: rgb(var(--gray-dark-color));
}

a {
	font-size: inherit;
	font-weight: 300;
	text-decoration: underline;
	color: inherit;
}

a:hover {
	text-decoration: none;
}

/* Ovriga klasser */
.text-block {
	max-width: 70rem;
}

.text-block-center {
	max-width: 70rem;
	margin-left: auto;
	margin-right: auto;
}

.text-bold {
	font-weight: 700;
}

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

@media only screen and (max-width: 1200px) {
	.section-title {
		font-size: 3.8rem;
	}
}

@media only screen and (max-width: 580px) {
	.section-title {
		font-size: 2.5rem;
	}

	.small-title {
		font-size: 2rem;
	}
}

/* Knappar och speciella lankar
========================================================================== */
.btn-wrapper {
	margin-top: 2rem;
}

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

/* Knappar */
.btn,
.ContactSubmit {
	min-width: 20rem;
	padding: 1.4rem 2rem;
	margin: 3px;
	font-size: 1.4rem;
	font-weight: 600;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	transition: all .4s ease;
}

.btn-primary-filled,
.ContactSubmit {
	color: rgb(var(--white-color));
	border: 1px solid rgb(var(--primary-color));
	background-color: rgb(var(--primary-color));
}

.btn-primary-filled:hover,
.ContactSubmit:hover,
.ContactSubmit:focus {
	border: 1px solid rgb(var(--primary-color));
	background-color: transparent;
	color: rgb(var(--primary-color));
}

/* Arrow link */
.arrow-link {
	font-size: var(--base-size);
	padding-right: 1rem;
	color: rgb(var(--gray-dark-color));
}

.arrow-link::after {
	content: ' \f105';
	display: inline-block;
	margin-left: 1rem;
	font-weight: 400;
	font-family: 'Font Awesome 5 Pro';
	transition: transform .4s ease;
}

.arrow-link:hover::after {
	transform: translateX(1rem);
	transition: transform .4s ease;
}

/* Cirkelikon */
.circle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	padding: 0;
	margin: .5rem;
	font-size: 0;
	color: rgb(var(--primary-color));
	text-decoration: none;
	border-radius: 50%;
	background-color: rgb(var(--white-color));
	transition: .3s ease;
}

.circle-icon:hover {
	color: rgb(var(--white-color));
	background-color: rgb(var(--primary-color));
}

.circle-icon i:before,
.circle-icon em:before {
	font-size: 1.4rem;
}

@media only screen and (max-width: 480px) {
	.btn {
		display: block;
		width: 100%;
	}
}

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-primary {
	background-color: rgb(var(--primary-color));
}

.bg-primary-light {
	background-color: rgb(var(--primary-light-color));
}

.bg-white {
	background-color: rgb(var(--white-color));
}

/* Gradient */
.bg-primary-light-white {
	background-image: linear-gradient(to bottom, rgb(var(--primary-color), .5) 50%, rgb(var(--primary-color), .1) 50%);
}

.bg-white-light-primary {
	background-image: linear-gradient(to bottom, rgb(var(--white-color)) 50%, rgb(var(--primary-light-color)) 50%);
}

/* Text */
.text-primary {
	color: rgb(var(--primary-color));
}

.text-white {
	color: rgb(var(--white-color));
}

.text-secondary {
	color: rgb(var(--secondary-color));
}

/* Grafiska element
========================================================================== */
/* Box shadow */
.box-shadow {
	box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
}

/* Pil */
.arrow-primary-right {
	position: relative;
}

.arrow-primary-right::after {
	content: '\2192';
	position: absolute;
	top: 5rem;
	right: 0;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1;
	color: rgb(var(--primary-color));
	transform: translateX(50%);
}

/* Bakgrundsbild
========================================================================== */
.bg-image {
	position: relative;
	overflow: hidden;
}

.bg-image-wrapper {
	z-index: -1;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Cards
========================================================================== */
.cards-wrapper {
	display: flex;
	flex-wrap: wrap;
}

/* Card grow */
.cards-grow .card-item {
	display: flex;
	flex-direction: column;
}

.cards-grow .card-body {
	flex-grow: 1;
}

/* Specifika bredder */
.cards-wrapper.w-33 .card-item,
.cards-wrapper.w-33-catering .card-item {
	width: calc((100% / 3) - 2rem);
	margin: 1rem;
}

.cards-wrapper.w-100 .card-item {
	width: 100%;
	margin: 1rem 0;
}

/* Generellt */
a.card-item {
	transition: .3s ease;
}

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

	/* Bredder */
	.cards-wrapper.w-33 .card-item {
		width: calc((100% / 2) - 2rem);
	}
}

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

	/* Bredder */
	.cards-wrapper.w-33 .card-item,
	.cards-wrapper.w-33-catering .card-item {
		width: 100%;
		margin: 1rem 0;
	}

	/* Generellt */
	.cards-wrapper .arrow-primary-right::after {
		top: unset;
		right: calc(50% + -1rem);
		bottom: -2rem;
		transform: translateY(-50%) rotate(90deg);
	}
}

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

	.card-item.p-3,
	.card-item .p-3 {
		padding: 2rem;
	}
}

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

	/* Paddings */
	.card-item.p-3,
	.card-item .p-3 {
		padding: 2rem;
	}
}

/* Card 2-2 */
.card-2-2 {
	padding-bottom: 2rem;
}

.card-2-2 a.card-item:hover {
	background: rgb(var(--gray-light-color));
}

.card-2-2 .card-header {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 5rem;
	height: 5rem;
	margin-bottom: 1.8rem;
	border-radius: 50%;
}

.card-2-2 .card-header p {
	font-size: 1.5rem;
	padding-bottom: 0;
}

.card-2-2 .card-header i {
	font-size: 3rem;
}

/* Card 2-4 */
.card-2-4 .card-item {
	display: flex;
	text-decoration: none;
	transition: .3s ease;
}

.card-2-4 a.card-item:hover {
	background: rgb(var(--primary-light-color));
}

.card-2-4 .card-header {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 7rem;
	height: 7rem;
	border-radius: 50%;
}

.card-2-4 .card-header i {
	font-size: 3rem;
}

.card-2-4 .card-body {
	flex: 1 1 0px;
	padding: 0 2rem;
}

.card-2-4 .text-small {
	font-size: 1.4rem;
}

@media only screen and (max-width: 420px) {
	.card-2-4 .card-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.card-2-4 .card-body {
		padding: 1rem;
	}
}

/* Card-2-6 */
.card-2-6 .card-item {
	position: relative;
	padding: 0;
	border-radius: 3px;
	overflow: hidden;
}

.card-2-6 .quote {
	position: relative;
	margin: -5rem 0 2rem;
	font-size: 6.5rem;
	color: rgb(var(--primary-color));
}

/* Card 3-1 */
.card-3-1 .card-item {
	border-radius: 5px;
}

.card-3-1 .image-wrapper {
	height: 25rem;
	border-radius: 5px;
}

/* Split wrapper
========================================================================== */
.split-wrapper {
	display: flex;
	flex-wrap: wrap;
}

.split-wrapper.reverse {
	flex-direction: row-reverse;
}

.split-content {
	width: 50%;
	padding: 5rem;
}

.split-image {
	width: 50%;
}

/* Speciella bredder */
.split-wrapper .w-60 {
	width: 60%;
}

.split-wrapper .w-40 {
	width: 40%;
}

/* Centrera content */
.split-wrapper .align-center {
	align-self: center;
}

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

	.split-content,
	.split-wrapper .w-60,
	.split-wrapper .w-40 {
		width: 100%;
	}

	.split-content {
		padding: 0 0 4rem;
	}

	.split-content.pt-0 {
		padding: 4rem 0 4rem;
	}

	.split-image {
		width: 100%;
		min-height: 20rem;
	}
}

@media screen and (max-width: 580px) {
	.split-wrapper {
		background: transparent;
	}

	.split-wrapper.p-2 {
		padding: 0;
	}

	.split-content {
		padding: 0 0 3rem 0;
	}
}

/* Popup-notis
========================================================================== */
.EditMode .popup-wrapper {
	display: none;
}

.popup-wrapper {
	z-index: 8;
	position: fixed;
	bottom: 3rem;
	right: 3rem;
}

/* Knappar */
.popup-button {
	position: relative;
	appearance: none;
	width: 5rem;
	height: 5rem;
	background: rgb(var(--primary-color));
	border-radius: 50%;
	box-shadow: 0 0 3rem rgba(var(--black-color), .3);
	border: none;
	cursor: pointer;
}

.popup-button i {
	position: absolute;
	top: 50%;
	left: 50%;
	font-size: 2.8rem;
	transform: translate(-50%, -50%);
	transition: .3s ease;
	color: rgb(var(--black-color));
}

.popup-wrapper .popup-button .icon-open,
.popup-wrapper.opened .popup-button .icon-close {
	transform: translate(-50%, -50%) scale(1);
}

.popup-wrapper.opened .popup-button .icon-open,
.popup-wrapper .popup-button .icon-close {
	transform: translate(-50%, -50%) scale(0);
}

/* Innehall */
.popup-window {
	opacity: 0;
	visibility: hidden;
	position: fixed;
	right: 0;
	bottom: 6rem;
	width: 100%;
	max-width: 35rem;
	max-height: calc(100vh - 12rem);
	margin: 0 2rem;
	background: rgb(var(--white-color));
	border-radius: 3px;
	box-shadow: 0 0 3rem rgba(var(--black-color), .3);
	transition: opacity .3s ease, bottom .3s ease;
}

.popup-wrapper.opened .popup-window {
	opacity: 1;
	visibility: visible;
	display: block;
	bottom: 10rem;
}

.popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem 1rem 2rem;
	border-bottom: 1px solid rgb(var(--gray-light-color));
}

.popup-header p {
	padding: 0;
	line-height: 1;
}

.icon-close-popup {
	appearance: none;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 3rem;
	height: 3rem;
	background-color: transparent;
	border: none;
	border-radius: 50%;
	font-size: 1.6rem;
	cursor: pointer;
}

.icon-close-popup:hover {
	background-color: rgb(var(--gray-light-color));
}

.popup-content {
	padding: 1rem 2rem 3rem;
	max-height: 30rem;
	overflow: auto;
}

@media only screen and (max-width: 480px) {
	.popup-window {
		max-width: calc(100vw - 6rem);
	}
}

/* Header / Navigation
========================================================================== */
/* Logo */
.header-logo {
	margin: 0 auto 0 0;
}

/* Nav */
.TemplateMenu a {
	font-family: 'Aleo', serif;
	font-weight: 400;
	font-size: 1.3rem;
	text-transform: uppercase;
	letter-spacing: .2em;
	color: rgb(var(--black-color));
}

.TemplateMenu>li>a:hover {
	color: rgb(var(--primary-color));
}

/* ==========================================================================
Startsida 
========================================================================== */

/* Top-section
========================================================================== */
.top-section .section-block {
	display: flex;
	align-items: center;
	min-height: 80vh;
	background-image: linear-gradient(to right, rgb(var(--primary-light-color)) 20%, transparent);
}

.top-section .section-block-wrapper {
	width: 100%;
}

.top-section .section-title {
	font-size: 8rem;
	max-width: 60rem;
}

@media only screen and (max-width: 1200px) {
	.top-section .section-title {
		font-size: 4.5rem;
	}
}

@media only screen and (max-width: 580px) {
	.top-section .section-title {
		font-size: 3rem;
	}
}

/* Sektion Omdomen
========================================================================== */
.section-reviews {
	overflow: hidden;
}

/* Slider */
.scroll-wrapper.cards-wrapper {
	margin: 3rem 0 0;
}

.scroll-wrapper.cards-wrapper .slick-list {
	width: 100%;
	overflow: visible;
}

.scroll-wrapper.cards-wrapper .slick-track {
	display: flex;
}

.scroll-wrapper.cards-wrapper .card-item {
	display: flex;
	height: auto;
	overflow: visible;
}

/* Card item */
.scroll-wrapper .card-item {
	display: flex;
	flex-direction: column;
	margin: 0 2rem 0 0;
	background-color: rgb(var(--primary-color), .1);
}

/* Slick Arrow */
.scroll-wrapper .slick-arrow {
	position: absolute;
	top: auto;
	bottom: -4rem;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background-color: rgb(var(--primary-color));
}

.scroll-wrapper .slick-arrow::after {
	font-weight: 300;
	color: rgb(var(--white-color));
}

.scroll-wrapper .slick-next {
	right: 2rem;
}

.scroll-wrapper .slick-prev {
	left: auto;
	right: 6rem;
}

/* Instagram
========================================================================== */
.section-insta {
	overflow: hidden;
}

/* ==========================================================================
Undersidor
========================================================================== */

/* Hero
========================================================================== */
.hero {
	margin: 0 2rem;
}

.hero .section-block {
	display: flex;
	align-items: flex-end;
	min-height: 50rem;
	background-color: rgb(var(--black-color), .5);
}

.hero .section-block-wrapper {
	width: 100%;
}

@media only screen and (max-width: 580px) {
	.hero {
		margin: 0;
	}

	.hero .section-block {
		min-height: 30rem;
	}
}

/* ==========================================================================
Undersida: Meny
========================================================================== */

/* Sektion meny 
========================================================================== */
.menu-wrapper {
	list-style: none;
	columns: 2;
	column-gap: 6rem;
	padding: 0;
	margin: 0;
}

.menu-wrapper>li {
	margin: 0 0 3rem;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid;
}

.menu-wrapper .small-title {
	text-align: center;
}

.menu-course {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu-course li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	border-bottom: 1px dotted rgb(var(--primary-color));
	padding: 0 0 1rem;
	margin: 0 0 1rem;
}

.menu-course .price {
	font-weight: 700;
	padding: 0 0 0 2rem;
	margin: 0 0 0 auto;
}

.menu-images {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.menu-images img {
	width: calc(50% - 1rem);
}

@media only screen and (max-width: 800px) {
	.menu-wrapper {
		columns: 1;
	}
}

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .section-block-wrapper {
	align-items: center;
}

/* Formular */
.ContactForm p {
	color: rgb(var(--primary-color));
	line-height: 1.8;
	font-weight: 600;
	font-size: 1.4rem;
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm input[type="datetime-local"],
.ContactForm textarea {
	border: 1px solid rgb(var(--primary-color), .5);
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm input[type="datetime-local"]:not(.illegal),
.ContactForm textarea:not(.illegal) {
	background-color: rgb(var(--primary-light-color));
}

.ContactForm .ContactSubmit {
	margin: 0;
	margin-top: 2rem;
}

/* Bekraftelseruta */
.ContactSentMessage {
	padding: 1rem 1rem 1rem 7rem;
	margin-bottom: 2rem;
	border-radius: .5rem;
	background-color: rgba(var(--primary-color), .2);
	background-image: url(/assets/images/icons/message-sent.svg);
	background-size: 4rem;
	background-position: 1.5rem center;
	background-repeat: no-repeat;
}

.ContactSentMessage p {
	padding: 0;
}

@media only screen and (max-width: 980px) {
	.section-contact .col-2 {
		margin-top: 5rem;
	}
}

/* Karta
========================================================================== */
.section-map iframe {
	width: 100%;
	height: 50rem;
	border: none;
}

/* ==========================================================================
Undersida: Catering
========================================================================== */

/* Sektion meny 
========================================================================== */
.menu-wrapper-catering {
	background-color: rgb(var(--white-color));
	padding: 5rem 4rem 5rem 4rem;
	border-radius: 5px;
}

/* Formular catering
========================================================================== */
.contact-form-catering .ContactForm {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.contact-form-catering .ContactForm div {
	width: 49%;
}

.contact-form-catering .ContactForm .ContactFormMessage {
	width: 100%;
}

/* Submit button */
.contact-form-catering .ContactForm .submit-button-container {
	width: 100%;
}

@media only screen and (max-width: 600px) {
	.contact-form-catering .ContactForm div {
		width: 100%;
	}
}

/* Vanliga frågor - FAQ
========================================================================== */
.accordion-wrapper {
	display: flex;
	flex-wrap: wrap;
}

.accordion-wrapper.w-50 .accordion-item {
	width: calc((100% / 2) - 2rem);
	margin: 1rem;
}

.accordion-item {
	width: 100%;
	padding-bottom: 2rem;
}

.accordion-header {
	position: relative;
	width: 100%;
	padding: 0 5rem 1rem 2rem;
	text-decoration: none;
	border-bottom: 1px solid rgb(var(--primary-color));
}

.accordion-header::after {
	content: "\f078";
	position: absolute;
	top: .3rem;
	right: 2rem;
	font-size: 1.7rem;
	font-family: "Font Awesome 5 Pro";
	transition: .5s ease;
}

.accordion-item.active .accordion-header::after {
	transform: rotate(180deg);
}

.accordion-body {
	padding: 2rem;
}

.accordion-body p {
	font-size: 1.5rem;
}

@media only screen and (max-width: 800px) {
	.accordion-wrapper.w-50 .accordion-item {
		width: 100%;
		margin: 1rem 0;
	}
}

@media only screen and (max-width: 580px) {
	.accordion-header {
		padding: 0 3rem 1rem .5rem;
	}

	.accordion-header::after {
		right: .5rem;
	}

	.accordion-body {
		padding: 2rem 1rem;
	}
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
	padding: 0 5rem;
	background-color: rgb(var(--secondary-color));
}

.footer-container {
	max-width: var(--section-width);
	margin: 0 auto;
}

/* Footer top */
.footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 8rem 0 3rem;
}

.footer-menu {
	width: 20%;
	margin: 0 0 3rem;
}

.footer-menu-large {
	width: 30%;
}

.footer .text-label {
	font-size: 1.8rem;
	padding: 0 0 1rem;
	line-height: 1;
}

.footer-submenu {
	padding: 0;
	margin: 0 0 3rem;
	list-style: none;
}

.footer-top p,
.footer-top li,
.footer-top a {
	font-size: 1.4rem;
	color: rgb(var(--white-color));
	text-decoration: none;
	transition: .3s ease-in-out;
}

.footer-top a:hover {
	color: rgb(var(--primary-color));
	text-decoration: none;
}

/* Sociala medier */
.footer-socials {
	display: flex;
	align-items: center;
}

.footer-socials::before,
.footer-socials::after {
	position: relative;
	display: inline-block;
	content: '';
	flex: 1 1 0%;
	border-top: 1px solid rgb(var(--white-color));
}

.footer-socials::before {
	margin-right: 2rem;
}

.footer-socials::after {
	margin-left: 2rem;
}

/* Footer bottom */
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 2rem 0;
}

.footer-bottom p,
.footer-bottom a {
	font-size: 1.3rem;
	line-height: 1.6;
	color: rgb(var(--white-color));
}

/* WebbEss Stamp  */
.footer .webbess-stamp {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.webbess-stamp img {
	width: 2.5rem;
	margin-left: 1rem;
	filter: invert(1);
}

@media only screen and (max-width: 1200px) {
	.footer {
		padding: 0 3rem;
	}

	/* Footer top */
	.footer-menu {
		width: 33.333%;
	}

	.footer-menu-large {
		width: 100%;
	}

	.footer-menu-large p {
		max-width: 55rem;
	}
}

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

	/* Footer top */
	.footer-menu,
	.footer-menu-large {
		width: 100%;
	}
}

@media only screen and (max-width: 580px) {
	.footer {
		padding: 0 2rem;
	}

	/* Footer top */
	.footer-top {
		padding: 5rem 0 0 0;
	}

	/* Footer bottom */
	.footer-bottom {
		flex-direction: column-reverse;
		text-align: center;
	}

	.webbess-stamp {
		margin: 0 auto 2rem;
	}
}