/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0.3
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold

Stylesheet för hela sidan

*/
:root { --anchor-offset: 200px; } /* default/desktop */

@media only screen and (max-width: 767px) {
  :root { --anchor-offset: 20px; }  /* mobil */
}

/* detta har du redan – låt det stå kvar */
html [id] { scroll-margin-top: var(--anchor-offset, 200px) !important; }



:root {
  /* Färger */
  --color-avocado: #023624;
  --color-lime: #7ce540;
  --color-lilac: #d1abff;
  --color-lavender: #6c2688;
  --color-off-white: #f9f7f3;
  --color-grey-1: #d3d1ce;
  --color-grey-2: #a5a3a1;
  --color-grey-3: #6a6968;
  --color-off-black: #222222;
  --color-btn-hover: #2CC033;

  /* Typsnitt */
  --font-family-heading: 'gilroy', Helvetica, Arial, sans-serif;
  --font-weight-heading: 800;
  --font-size-p: 1.375rem;
  --font-line-height-p: 2.125rem;
  --font-size-h2: 3.625rem;

  /* Border-radius */
  --radius-default: 20px;

  /* Scroll-offest */
  --radius-default: 20px;
}

/* WCAG */
  .visually-hidden{position:absolute!important; width:1px!important; height:1px!important; padding:0!important;margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important;}

  a:focus-visible, button:focus-visible {outline: 3px solid var(--color-lime);outline-offset: 3px;}
  a.av-contains-svg:focus-visible {border: 2px solid var(--color-lime);padding: 0px;}
  .helpie-faq.accordions .accordion .accordion__item .accordion__header:focus-visible {outline: 3px solid var(--color-lime) !important; outline-offset: 3px;}
  .helpie-faq.accordions .accordion {overflow: visible;}
  #top .footer_color .widget_pages ul li a:focus, #top .footer_color .widget_nav_menu ul li a:focus {color: inherit !important;}
  .skip-link {position: absolute; top: -40px; left: 0; background: #000; color: #fff; padding: 8px 16px; z-index: 100; text-decoration: none;transition: top 0.3s;}
  .skip-link:focus {top: 10px;}
  .gm-style > iframe + div {border: 2px solid var(--color-lime) !important;}
  .gm-style>div>div div {outline-color: var(--color-lime);}

  /* Behåll keyboard-outline för länkar & knappar */
  a:focus-visible,
  button:focus-visible {
    outline: 3px solid var(--color-lime);
    outline-offset: 3px;
  }

  /* Stäng av default-outline för select (även Safari) */
  #verkstadSelect:focus,
  #verkstadSelect:focus-visible {
    outline: none;
  }

  /* Visa outline endast när JS sätter denna klass (dvs. vid Tab) */
  #verkstadSelect.show-outline {
    outline: 3px solid var(--color-lime);
    outline-offset: 3px;
  }



/** Typografi **/
  html { font-size: 100%; }
  h1, h2 {text-transform: none !important}
  body #main {font-size: var(--font-size-p);line-height: var(--font-line-height-p);}
  body #main h1, body.home #main h2, body.page-template-template-verkstad #main h2{font-size: var(--font-size-h2); font-weight: var(--font-weight-heading); letter-spacing: 0;}
  body.home #main h3, body.page-template-template-verkstad #main h3, body #main .avia-button span, body #main h2 {font-size: 2rem; font-weight: var(--font-weight-heading);}
  body #main h3 {font-size: 1.375rem; font-weight: var(--font-weight-heading);}
  body #main .av-special-heading:not(.custom-color-heading) h3 {color:var(--color-lime);}
	body #main .av-special-heading-h3 + .av_textblock_section > div > p:first-child {margin-top:0;}
  body #main p, body #main p{line-height: var(--font-line-height-p); letter-spacing: -0.48px;}
  body #main a, .main-menu .menu .sub-menu > li > a, #footer .container a {display: inline-block; transition: transform 0.3s ease; color: var(--color-off-black);}
  body #main a{text-decoration: underline;}
  body #main a:hover, .main-menu .menu .sub-menu > li > a:hover, #footer .container a:hover{transform: scale(1.05); color: var(--color-off-black);}

#top .all_colors .white-text strong, body #main main .white-text a, body #main main .white-text a {color: var(--color-off-white);}
body.page-id-5484 #main main a .white-text

/** Knappar **/
  #top #main .avia-button-wrap .avia-button{transition: background-color 0.3s ease, transform 0.3s ease;}
  #top #main .avia-button-wrap .avia-button:hover{background-color: var(--color-btn-hover); transform: scale(1.05);}
  body div .avia-button {border-bottom:none;}
  .avia-button-wrap a{text-decoration: none !important;}

/** Header **/
  body #wrap_all {overflow: visible;}
  .container.av-logo-container svg{max-width: 300px; cursor: pointer;}
  .header-wrapper{display: flex; width: 100%; background-color: var(--color-off-white); border-radius: var(--radius-default); transition: border-radius 0.2s ease;}
  #header_main div .logo {float: none; position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; margin-top: 30px;}
  #header .container, #header .header-bottom {display: flex; max-width: 1000px; width: 100%; padding: 0 50px 0 50px;}
  #header .header-bottom{margin: 0 auto 0 auto; padding-top: 50px;}
  #header .container{margin: 0 auto;}
  header#header {background: linear-gradient(to bottom,var(--color-avocado) 61%,transparent 93%);}

  #header ul{display: flex; justify-content: space-between; margin-bottom: 0; font-size: var(--font-size-p);line-height: var(--font-line-height-p); letter-spacing: -0.48px; margin-left: 0;}
  .main-menu .menu .sub-menu > li > a, #header .main-menu #menu-item-368 a{height: auto !important; line-height: normal !important; color: var(--color-avocado);}
  .main-menu .menu .hitta-verkstad-item a::before,  #header .main-menu #menu-item-368 a::before{content: ""; width: 14px; height: 21px;background-image: url('https://autoklinik.enestedt-playground.se/wp-content/uploads/2025/09/Pin.svg'); background-size: contain; background-repeat: no-repeat; display: inline-block; vertical-align: middle; margin-right: 6px; position: relative; top: -2px;}
  #header .main-menu{width: 100%; padding: 20px 30px 20px 30px; border-radius: var(--radius-default);}
  #header .main-menu .sub-menu{margin-left: 0;}
  #header .main-menu .sub-menu .boka-tid-item{display: none;}
  #header .main-menu #menu-item-368{display: none; flex: 2;}
  #header .main-menu .mobile-hamburger > a{display: none; line-height: normal !important; color: var(--color-avocado);}
  #header .main-menu #menu-item-367{width: 100%; flex: 1;}
#header #menu-huvudmeny{gap: 10px;}



/** Cookie banner **/
.cky-consent-bar .cky-notice-des a, .cky-preference-center a{display: inline-block; transition: transform 0.3s ease; color: var(--color-off-black); text-decoration: underline !important;}
.cky-consent-bar .cky-notice-des a:hover, .cky-preference-center a:hover{transform: scale(1.05); color: var(--color-off-black);}
.cky-preference-center .cky-preference-content-wrapper .cky-show-desc-btn{color: var(--color-lime) !important;}


/** Body **/
  body .content, body .sidebar {padding-top: 80px;}
  .html_header_top.html_header_sticky #main {padding-top: 213px !important;}
  .main_color.container_wrap{border-top: none;}

  .color-block {padding: 32px;}
  .color-block p, .color-block .av-special-heading-tag {color:var(--color-off-black);}
  .color-block p{margin-bottom: 0; margin-top: 0;}
  body .color-block .av-special-heading-tag{margin-bottom: 10px;}
  .special-heading-border {display:none !important;}
  #top #main .avia-button .avia_button_icon, #top #main .avia-button .avia_iconbox_title{color: var(--color-avocado);}
  #main ul{margin-left: 0;}

/** Footer **/
  #footer{border-top: none;}
  #footer .container {max-width: 900px;background: var(--color-off-white);border-radius: var(--radius-default); display: flex; align-items: center; padding: 30px;}
  #footer .container > div:nth-child(2){align-self: flex-start;}
  #footer .container #footer_button{border-color: var(--enfold-main-color-button-border); background-color: var(--enfold-main-color-primary); text-decoration: none;}
  #footer .container p, #footer .container a{color: var(--color-off-black); font-size: var(--font-size-p);line-height: var(--font-line-height-p);}
  #footer .container p{margin-top: 0; margin-bottom: 0;}
  #footer .container section{overflow: visible; margin-top: 0; margin-bottom: 0;}
  #footer .container #nav_menu-2{justify-items: center;}
  #footer .container #custom_html-2{justify-items: flex-end;}
  #footer .widget_nav_menu a{padding: 0;}
	body #main .copyright a {color: #fff;font-size: 1rem;line-height: 1.4;padding: 5px 10px;}
  #socket .container {text-align:center;padding-top:20px;padding-bottom:60px;}
	#socket .copyright {float:none;}

/** FAQ **/
  #main .helpie-faq .accordion__item {border-bottom: none;}
  #main .helpie-faq .accordion__header{border-radius: var(--radius-default);transition: border-radius 0.2s ease;}
  #main .helpie-faq .accordion__header:before{content: none;}
  #main .helpie-faq .accordion__header:after {content: ""; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(0deg); width: 60px; height: 60px; background-image: url('https://autoklinik.enestedt-playground.se/wp-content/uploads/2025/09/Group-9.svg'); background-size: contain; background-repeat: no-repeat; background-color: transparent !important; transition: transform 0.3s ease, background-image 0.3s ease;}
  #main .helpie-faq .accordion__header.active{border-radius: var(--radius-default) var(--radius-default) 0 0;}
  #main .helpie-faq .accordion__header.active:after {background-image: url('https://autoklinik.enestedt-playground.se/wp-content/uploads/2025/09/Minus.svg'); transform: translateY(-50%) rotate(180deg);}
  #main .helpie-faq .accordion__title{font-family: var(--font-family-heading); font-weight: var(--font-weight-heading);}
  #main .helpie-faq .accordion__body{margin-top: -20px !important; border-radius: 0 0 var(--radius-default) var(--radius-default);}



/** Media queries **/

	/** Desktop **/
    @media only screen and (min-width:990px){}

	/** Tablet and mobile **/
		@media only screen and (max-width: 989px) {
			#header .main-menu #menu-item-368{display: block; width: 100%;}
			#header .main-menu .mobile-hamburger > a{display: inline-flex; text-align: right; width: auto;}
			.mobile-hamburger::before {content: ""; display: inline-block; width: 30px; height: 30px; background: url("https://autoklinik.enestedt-playground.se/wp-content/uploads/2025/09/Frame-235.svg") no-repeat center center; background-size: contain; cursor: pointer; margin-right: 6px; transition: transform 0.3s ease, background-image 0.3s ease;}
			.header-wrapper.active .mobile-hamburger::before{background: url(https://autoklinik.enestedt-playground.se/wp-content/uploads/2025/09/x-Frame-235.svg) no-repeat center center; background-size: contain; transform: rotate(180deg);}
			#header .main-menu #menu-item-367{display: flex; justify-content: flex-end; align-items: center;}
			.header-wrapper.active{border-radius: var(--radius-default) var(--radius-default) 0 0;}

			#header .main-menu{position: relative;}
			#header .main-menu .sub-menu{margin-left: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-off-white); max-height: 0; display: block; margin-top: 0; border-radius: 0 0 var(--radius-default) var(--radius-default);}
			#header .header-wrapper.active .main-menu .sub-menu li{border-bottom: 1px solid var(--color-grey-1); opacity: 1; transform: rotateX(0);}
			#header .main-menu .sub-menu li{opacity: 0; transform: rotateX(-90deg); transform-origin: top; transition: transform 0.4s ease, opacity 0.4s ease;}
			#header .header-wrapper.active .main-menu .sub-menu li:last-child{border: none;}
			#header .main-menu .sub-menu a{display: block; padding: 15px 50px; text-align: center;}
			#header .main-menu .sub-menu .boka-tid-item{display: block;}
			#header .main-menu .sub-menu .hitta-verkstad-item{display: none;}
			#footer .container{margin-left: 0; margin-right: 0;}
			#footer{padding: 0 50px;}
			.mobile-hamburger .sub-menu {display: none;}
			.header-wrapper.closed{border-radius: var(--radius-default); transition-delay: 0.2s;}

			#header .header-wrapper.active li:nth-child(1) { transition-delay: 0.1s; }
			#header .header-wrapper.active li:nth-child(2) { transition-delay: 0.2s; }
			#header .header-wrapper.active li:nth-child(3) { transition-delay: 0.3s; }
			#header .header-wrapper.active li:nth-child(4) { transition-delay: 0.4s; }
			#header .header-wrapper.active li:nth-child(5) { transition-delay: 0.5s; }
			#header .header-wrapper.active li:nth-child(6) { transition-delay: 0.6s; }
			#header .header-wrapper.active li:nth-child(7) { transition-delay: 0.7s; }
			#header .header-wrapper.active li:nth-child(8) { transition-delay: 0.8s; }
			#header .header-wrapper.active li:nth-child(9) { transition-delay: 0.9s; }
			#header .header-wrapper.active li:nth-child(10) { transition-delay: 1s; }
		}

	/** Mobile **/
		@media only screen and (max-width: 767px) {
			:root {
				--font-size-p: 1.25rem;
				--font-heading-1-2: 2.5rem;
				--font-heading-3: 1.5rem;
				--font-heading-3-line-height: 1.3;
        --font-size-h2: 2.625rem;
			}
			body #main h1, body #main h2{font-size: var(--font-heading-1-2);}
			body #main h3, body.single-verkstad #main h2{font-size: var(--font-heading-3); line-height: var(--font-heading-3-line-height);}
			body #main .avia-button span{font-size: var(--font-heading-3);line-height: 1.8;}


			.container{padding: 0 20px;}
			#header .container, #header .header-bottom{padding: 50px 20px 0 20px;}
			.content, .sidebar{padding-top: 30px; padding-bottom: 0;}
			#top .avia-button{padding: 10px 15px;}
			body #main .column-top-margin, #footer{margin-top: 40px;}
			#main .av-special-heading{margin-top: 0;}
			.helpie-faq.accordions .accordion{margin-bottom: 0;}

			/* Meny */
				.responsive #top #header .logo{position: absolute; width: auto;}
				.responsive #top #wrap_all #header .av-logo-container{height: 80px !important;}
				.responsive #top #wrap_all #header .logo svg{max-height: 80px !important;}
				.main-menu .menu .sub-menu > li > a, #header .main-menu #menu-item-368 a, #header .main-menu #menu-item-367{font-size: 1.125rem;}
  				.mobile-hamburger::before{width: 21px; height: 21px;}
  				#header .main-menu{padding: 15px;}
			/* Footer */
				#footer{padding: 0 20px 40px;}
				#footer .container{flex-direction: column !important; justify-content: center;}
				#footer .container:first-child{margin-top: 0;}
				#footer .flex_column{width: 100% !important; clear: both; text-align: center; align-items: center; margin-left: 0; margin-top: 30px;}
				#footer .container #custom_html-2 .textwidget.custom-html-widget{justify-self: center;}
		}

  /* Respektera prefers-reduced-motion */
    @media (prefers-reduced-motion: reduce) {
      a, .avia-button { transition: none !important; transform: none !important; }
    }
