/*
Theme Name: Waldorf agora V2
Theme URI: 
Author: JK Effekt
Author URI: 
Description: Blocktema för Waldorfagora
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: waldorfagora
Tags: blog, news, two-columns, right-sidebar, custom-menu, editor-style, featured-images
*/


.header-cta:hover,  .wp-block-site-logo:hover {
    animation: pulse;
    animation-duration: 0.8s;
}

.versalgemen {
    text-transform: capitalize;
}

.distans-top-1 {
	margin-top: 2.4rem;
}

.page h1 {
    font-size: 18px;
}


/*
    AREAS LIST - på startsidan
*/
.areas-list {
    /*
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-word;*/

}
@media (max-width: 600px) {
    .wp-container-core-group-is-layout-13b221f0 {
        justify-content: space-evenly!important;
    }
}



/*
    NAVIGERING
*/

nav, .mini-header, .page h1  {
    text-transform: uppercase;
    letter-spacing: 2px;
}
/*
:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {
    text-decoration: none;
    border-bottom: 2px solid;
}
*/

.current-menu-item {
    border-bottom: 2px solid;
}


.wp-block-navigation-overlay-close svg {
    fill: currentColor;
    display: block;
    flex-shrink: 0;
    height: 24px;
    width: 24px;
}

/*
    ANIMERA MENY
*/
.wp-block-navigation .wp-block-navigation-item__content {
  text-decoration: none;
  padding-bottom: 0.2em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 2px;            /* linjens tjocklek: 2px */
  transition: background-size 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
  text-decoration: none;              /* stänger av temats egen underline */
  background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-navigation .wp-block-navigation-item__content {
    transition: none;
  }
}


/* 
    KARUSELL med CITAT - Testimonial Carousel 767px
*/

.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--wp--preset--spacing--40);
}

.testimonial-carousel > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.testimonial-carousel cite {
    text-transform: uppercase;
}

.testimonial-carousel .wp-block-quote {
    border: none;
}

@media (max-width: 500px) {
    .testimonial-carousel .tc-track p.has-x-large-font-size {
        font-size: 10px!important;
    }
}





/*

FORMULÄR

https://contactform7.com/styling-contact-form/
*/

.wpcf7 {
    
}

.wpcf7 .wpcf7-form label {
    padding-top:1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: var(--wp--preset--font-size--small) !important;
}

.wpcf7 label span.description-required {
    font-size: 75%;
    opacity: 0.8;
}


input,
select,
input[type="text"],
input[type="email"],
textarea
{
    box-sizing: border-box;
    color: #000;
    background-color: #fafafa;
    border: 0px;
    border-bottom: 1px solid #444444;
    width: 100%;
    height: auto;
    padding: 10px;
    position: relative;
    font-size: 100%;
    font-weight: 500;
}

.wpcf7-checkbox .wpcf7-list-item {
    width: 100%;
}

/* Form button */
input [type="submit"] { 
    /*width: 100%;*/
    border-radius: 100%;
}

.wpcf7 input [type="checkbox"], input[type="checkbox" i] {
    width: auto;
}

/* 
    BUTTON in forms 
*/

input.wpcf7-form-control.wpcf7-submit {
    width: auto;
    background-color:var(--wp--preset--color--accent-1) !important;
    border-radius: 9999px;;
    border-width: 0;
    color: var(--wp--preset--color--base);
    font-family: var(--wp--preset--font-family--inter);
    font-size: var(--wp--preset--font-size--small);
    font-style: inherit;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: inherit;
    padding-top: 1rem;
    padding-right: 2.25rem;
    padding-bottom: 1rem;
    padding-left: 2.25rem;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

input.wpcf7-form-control.wpcf7-submit:hover{
    background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, transparent);
    border-color: transparent;
    color: #ffffff;
    animation: pulse;
    animation-duration: 0.5s;
}
}

/*
span.wpcf7-list-item {
    width: 100%;
}
*/


/*
    FORMULÄR RADER
*/
.wpcf7 .form-rad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wpcf7 .form-rad label {
    display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
}

/* En kolumn på små skärmar */
@media (max-width: 600px) {
    .wpcf7 .form-rad {
        grid-template-columns: 1fr;
    }
}


/*
    Styling response messages   
*/
.wpcf7 form .wpcf7-response-output {
    margin: 2em 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2; /* Blue */
}.wpcf7 form.init .wpcf7-response-output {
    display: none;
}
 
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450; /* Green */
}
 
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: #dc3232; /* Red */
}
 
.wpcf7 form.spam .wpcf7-response-output {
    border-color: #f56e28; /* Orange */
}
 
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #ffb900; /* Yellow */
}

@media (max-width: 767px) {
  .hide-on-mobile-mq, .hide-on-mobile, .hide-mobile {
    display: none !important;
  }
}
