@charset "UTF-8";
/*
Theme Name: Autonet
Theme URI: https://github.com/Ratt-Grafiska/autonet
Update URI: https://github.com/Ratt-Grafiska/autonet
Author: Johan Wistbacka
Author URI: https://rattgrafiska.se
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 2025.10.24.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autonet
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
  text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

.grow-right {
  left: 0 !important;
  right: auto !important;
}
.grow-right ul {
  display: block;
  position: absolute;
  top: 45px;
  background-color: #181818 !important;
  margin: 0 -1em;
  padding: 8px 32px;
  border-radius: 1em;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transition: 100ms ease-in-out;
  transition-property: opacity;
}
.grow-right ul li {
  background-color: #181818;
  width: 100%;
  border-bottom: 1px solid #4b4b4b;
}
.grow-right ul li:last-of-type {
  border-bottom: none;
}
.grow-right ul li a {
  color: var(--wp--preset--color--base) !important;
}

.wp-block-navigation-item a {
  line-height: 50px;
  white-space: nowrap;
}
.wp-block-navigation-item a:hover, .wp-block-navigation-item a:hover span {
  transform: scale(1.05);
  color: var(--wp--preset--color--accent-2);
  text-decoration: none;
}
.wp-block-navigation-item.button a {
  background-color: var(--wp--preset--color--accent-2);
  line-height: 50px;
  padding: 0 24px;
  text-transform: uppercase;
  color: var(--wp--preset--color--base);
  font-weight: bolder;
  border-radius: 0px;
  display: inline-block;
  border: 1px solid var(--wp--preset--color--accent-2);
  transform: scale(1);
  transition: 100ms ease-in-out;
  transition-property: transform, font-weight;
  font-size: inherit;
  letter-spacing: 1px;
}
.wp-block-navigation-item.button a:hover, .wp-block-navigation-item.button a:hover span {
  transform: scale(1.1);
  color: var(--wp--preset--color--base) !important;
}

.wp-block-button a {
  transition: 100ms ease-in-out;
  transition-property: transform, font-weight;
}
.wp-block-button a:hover, .wp-block-button a:hover span {
  transform: scale(1.1);
  color: var(--wp--preset--color--base) !important;
  transition: 100ms ease-in-out;
  transition-property: transform, font-weight;
}

.is-style-section-1 .is-layout-grid {
  border: rgba(0, 0, 0, 0) !important;
}

.wp-block-read-more:after {
  content: "→";
  margin-left: 0.5em;
}
.wp-block-read-more:hover, .wp-block-read-more:hover span {
  transform: scale(1.1);
  transition: 100ms ease-in-out;
  transition-property: transform, font-weight;
}

.is-style-logo-gallery.wp-block-gallery.has-nested-images {
  justify-content: space-around;
}
.is-style-logo-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
  max-width: calc(50vw - 30px);
  height: auto;
  object-fit: contain;
  margin: 15px;
}

@media screen and (min-width: 960px) {
  .is-style-logo-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
    max-width: calc(25% - 30px);
    height: auto;
    object-fit: contain;
    margin: 15px;
  }
}
@media screen and (min-width: 1360px) {
  .is-style-logo-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
    max-width: calc(20% - 30px);
    height: auto;
    object-fit: contain;
    margin: 15px;
  }
}
.is-style-dark-menu.wp-block-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  padding: 1em 0;
  text-transform: uppercase;
  margin-left: 1em;
  width: 100%;
  /*
  .is-style-dark-menu .wp-block-navigation-item a::before {
  	content: '•';
  	color: var(--wp--preset--color--accent-2);
  	transform: scale(2.5);
  	font-size: 2em;
  	line-height: 12px;
  	padding: 0em;

  }
  .is-style-dark-menu .wp-block-navigation-item a {
  	color: #fff;
  	text-transform: uppercase;
  	letter-spacing: 0.05em;
  	text-decoration: none;
  	line-height: 1em;
  	font-size: .75rem;
  	align-self: stretch;
  }
  .is-style-dark-menu .wp-block-navigation-item a:hover {
  	color: var(--wp--preset--color--accent-2);
  	padding-left: 1em;
  	margin-right: -1em;*/
}
.is-style-dark-menu.wp-block-navigation .wp-block-navigation-item {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.1em;
  align-self: stretch;
  align-content: stretch;
}
.is-style-dark-menu.wp-block-navigation .wp-block-navigation-item:hover {
  transform: translateX(-1em);
}
.is-style-dark-menu.wp-block-navigation .wp-block-navigation-item a {
  line-height: 2rem;
  padding: 0.25em 1em;
  font-size: 0.75em;
  display: flex;
  border-bottom: 0.5px solid var(--wp--preset--color--accent-6);
  width: calc(100% - 3em);
  letter-spacing: 1px;
  margin: 0;
}
.is-style-dark-menu.wp-block-navigation .wp-block-navigation-item a span {
  display: flex;
}
.is-style-dark-menu.wp-block-navigation .wp-block-navigation-item a span::before {
  content: "•";
  color: var(--wp--preset--color--accent-2);
  transform: scale(2.5);
  font-size: 25px;
  line-height: 28px;
  padding: 0em 0.25em 0em 0em;
}

@media screen and (min-width: 960px) {
  .is-style-cover-50 {
    max-height: 460px !important;
    overflow: hidden;
  }
  .is-style-cover-50 > video, .is-style-cover-50 > img {
    position: relative;
    left: 50vw !important;
    width: 51vw !important;
  }
}
@media screen and (max-width: 960px) {
  .is-style-cover-50 {
    flex-direction: column-reverse !important;
  }
  .is-style-cover-50 > *:first-child {
    position: relative !important;
    width: 100vw !important;
    max-height: 460px !important;
  }
  .is-style-cover-50 .wp-block-cover__inner-container {
    padding: 5rem 0 7rem !important;
  }
}
.is-style-logo-quote {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  margin: 0 10px 0 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.is-style-logo-quote img {
  width: auto;
  max-width: 100%;
}

.is-style-section-6:nth-child(odd) .wp-block-columns {
  flex-direction: row-reverse;
}

.is-style-section-2 .wp-block-list {
  color: var(--wp--preset--color--base);
  list-style: none;
  padding-left: 1.5em;
}
.is-style-section-2 .wp-block-list li::before {
  content: "✔";
  display: inline-block;
  border-radius: 1rem;
  text-align: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.5em;
  padding-top: 2px;
  border: 2px solid var(--wp--preset--color--base);
  margin: 0 0.5em 0.25em 0;
  vertical-align: middle;
}

.is-style-overflow-50 {
  overflow: hidden;
}
.is-style-overflow-50 img {
  margin-left: 50%;
}

body:not(.wp-admin) .will-animate {
  top: 60px;
  opacity: 0;
  transition: 700ms ease-in-out;
  transition-property: top, opacity;
}
body:not(.wp-admin) .will-animate.animate {
  top: 0;
  opacity: 1;
}

.squares {
  background-image: url("assets/images/square.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  padding-bottom: 150px !important;
}

.forest {
  background-image: url("assets/images/forest.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  padding-bottom: 150px !important;
}

.wave {
  background-image: url("assets/images/wave.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  padding-bottom: 150px !important;
}

.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
  /* När popupen triggas */
}
.popup__inner {
  background: #fff;
  color: #000;
  border-radius: 0.5em;
  padding: 2em;
  max-width: 500px;
  width: 90%;
  position: relative;
  top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.popup:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.popup:target .popup__inner {
  opacity: 1;
  transform: translateY(0);
}

/* Popup form styling inspired by Autonet design */
.popup__inner {
  background: #111;
  color: #fff;
  border-radius: 0.75em;
  padding: 1em 2.5em;
  max-width: 720px;
  width: 90%;
  min-height: 98%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  font-family: "Inter", "Helvetica Neue", sans-serif;
  /* Close link bottom-left */
}
.popup__inner h2, .popup__inner h3, .popup__inner h4 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5em;
  text-align: left;
}
.popup__inner p {
  color: #ccc;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 2em;
  line-height: 1.5;
}
.popup__inner form, .popup__inner .wpcf7-form {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* Two-column layout for larger screens */
}
.popup__inner form p, .popup__inner .wpcf7-form p {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin: 0;
  gap: 1em;
}
.popup__inner form label, .popup__inner .wpcf7-form label {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1em;
  width: 100%;
}
.popup__inner form .wpcf7-form-control, .popup__inner .wpcf7-form .wpcf7-form-control {
  border: none;
  margin-top: 0.5em;
  border-radius: 2em;
  padding: 0.5em 1.25em;
  font-size: 1rem;
  background: #fff;
  color: #111;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}
.popup__inner form .wpcf7-form-control:focus, .popup__inner .wpcf7-form .wpcf7-form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px #e35045;
}
.popup__inner form .c-50, .popup__inner form .half, .popup__inner .wpcf7-form .c-50, .popup__inner .wpcf7-form .half {
  width: 100%;
}
@media (min-width: 768px) {
  .popup__inner form .c-50, .popup__inner form .half, .popup__inner .wpcf7-form .c-50, .popup__inner .wpcf7-form .half {
    width: calc(50% - 0.5em);
  }
}
.popup__inner form .wpcf7-submit, .popup__inner .wpcf7-form .wpcf7-submit {
  background: #e35045;
  color: #fff;
  border: none;
  border-radius: 0.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 1em 2em;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.3s ease;
}
.popup__inner form .wpcf7-submit:hover, .popup__inner .wpcf7-form .wpcf7-submit:hover {
  background: #ff6258;
}
.popup__inner .popup__close {
  position: absolute;
  top: 1.5em;
  right: 2em;
  color: #e35045;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.popup__inner .popup__close:hover {
  opacity: 1;
}

.has-accent-3-background-color .wpcf7-form {
  display: flex;
  flex-direction: column;
}
.has-accent-3-background-color .wpcf7-form p {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1em;
}
.has-accent-3-background-color .wpcf7-form label {
  color: var(--wp--preset--color--base) !important;
  font-weight: 700;
}
.has-accent-3-background-color .wpcf7-form .wpcf7-form-control {
  margin: 0.5em 0 0em 0 !important;
  background-color: var(--wp--preset--color--base) !important;
  padding: 1em 2em !important;
  color: var(--wp--preset--color--contrast) !important;
  border: none !important;
  border-radius: 2em;
  display: block;
  box-sizing: border-box;
  width: 100% !important;
}
.has-accent-3-background-color .wpcf7-form .wpcf7-submit {
  background-color: var(--wp--preset--color--accent-2) !important;
  color: var(--wp--preset--color--base) !important;
  font-weight: 700;
  padding: 1em 2em !important;
  border: none !important;
  border-radius: 0.75em;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  width: 100px !important;
  justify-self: right;
  cursor: pointer;
}
.has-accent-3-background-color .wpcf7-form .wpcf7-submit:hover {
  background-color: var(--wp--preset--color--accent-6) !important;
}

.c-100, .c-50 {
  width: 100% !important;
}

@media screen and (min-width: 960px) {
  .c-50 {
    width: 47% !important;
  }
}
