/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:root {
  /* colors */
  --red: #ad343e;
  --dark-grey: #333333;
  --medium-grey: #c2c2c2;
  --light-grey: #e2e2e2;
  --light-blue: #37c0f8;
  --light-green: #d4f4cf;
  --background-color: white;
  --light-color: #ffffff;
  --dark-color: var(--dark-grey);
  --text-color: #131313;
  --link-color: var(--light-blue);
  --link-hover-color: var(--light-blue);

  /* fonts */
  --body-font-family: museo-sans, sans-serif;
  --heading-font-family: museo-sans, sans-serif;

  /* body sizes */
  --body-font-size-m: 22px;
  --body-font-size-s: 19px;
  --body-font-size-xs: 17px;

  /* heading sizes */
  --heading-font-size-xxl: 55px;
  --heading-font-size-xl: 44px;
  --heading-font-size-l: 34px;
  --heading-font-size-m: 27px;
  --heading-font-size-s: 24px;
  --heading-font-size-xs: 22px;

  /* nav height */
  --nav-height: 48px;
}

/* fallback fonts */
@font-face {
  font-family: museo-sans, sans-serif;
  size-adjust: 88.82%;
  src: local('Arial');
}

@font-face {
  font-family: museo-sans, sans-serif;
  size-adjust: 99.529%;
  src: local('Arial');
}

@media (width >= 900px) {
  :root {
    /* body sizes */
    --body-font-size-m: 18px;
    --body-font-size-s: 16px;
    --body-font-size-xs: 14px;

    /* heading sizes */
    --heading-font-size-xxl: 45px;
    --heading-font-size-xl: 36px;
    --heading-font-size-l: 28px;
    --heading-font-size-m: 22px;
    --heading-font-size-s: 20px;
    --heading-font-size-xs: 18px;
  }
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.6;
}

body.appear {
  display: block;
}

header {
  height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.25;
  scroll-margin: 40px;
  text-transform: uppercase;
  text-align: center;
}

h1 {
  &::after {
    content: " ";
    background-color: var(--light-blue);
    display: inline-block;
    font-weight: 700 !important;
    height: 10px;
    width: 10px;
  }
}

h2 {
  &::after {
    content: " ";
    background-color: var(--light-blue);
    display: inline-block;
    font-weight: 700 !important;
    height: 8px;
    margin-left: 2px;
    width: 8px;
  }
}

h1 { font-size: var(--heading-font-size-xxl); }
h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

select, input {
  border: 1px solid var(--medium-grey);
  box-sizing: border-box;
  border-radius: 4px;
  height: 50px;
  padding: 5px 10px;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* buttons */
a.button:any-link,
button {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: 12px 0;
  border: 2px solid transparent;
  border-radius: 2.4em;
  padding: 0.5em 1.2em;
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background-color: var(--link-color);
  color: var(--background-color);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.button:hover,
a.button:focus,
button:hover,
button:focus {
  background-color: var(--link-hover-color);
  cursor: pointer;
}

button:disabled,
button:disabled:hover {
  background-color: var(--light-color);
  cursor: unset;
}

a.button.secondary,
button.secondary {
  background-color: unset;
  border: 2px solid currentcolor;
  color: var(--text-color);
}

p {
  font-size: 16px;
  font-style: normal;
  font-weight: lighter;
  line-height: 30px;
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections */
main > .section {
  margin: 40px 0;
}

main > .section > div {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

main > .section:first-of-type {
  margin-top: 0;
}

@media (width >= 900px) {
  main > .section > div {
    padding: 0 32px;
  }
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 40px 0;
}


/* custom - banners */
.section.banner-full-width {
  position: relative;
}

.section.banner-full-width > div {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.section.banner-full-width h1 {
  font-weight: lighter;
  color: var(--light-color);
}

.section.banner-full-width h1 {
  font-weight: lighter;
  color: var(--light-color);
  width: 100%;
  font-size: 30px;
  text-align: center;
  top: 31%;
  position: absolute;
  left:0;
}

.section.banner-full-width h1 a {
  color: inherit;
  text-decoration: none;
}

.section.banner-full-width h1 a:hover {
  text-decoration: none;
}

.section.banner-full-width h1#online-vrt-booking {
  color: var(--red);
}

.section.banner-full-width picture {
  inset: 0;
  object-fit: cover;
  box-sizing: border-box;
}

.section.banner-full-width img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* custom - homepage banner section */

.section.brands {
  background-color: var(--light-grey);
  padding: 30px 0;
}

.section.brands h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
}

.section.brands p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
}

.section.brands p picture:nth-of-type(1) {
  width: 170px;
  margin: 0 auto;
}

.section.brands p picture:nth-of-type(2) {
  width: 100%;
}

@media (width >= 900px) {
  header {
    height: 96px;
  }

  .section.banner-full-width h1 {
    cursor: pointer;
    font-size: 95px;
  }

  .section.brands p {
    flex-direction: row;
    align-items: center;
    gap: 100px;
  }

  .section.brands p picture:nth-of-type(1) {
    margin: 0;
  }

  .section.brands p picture:nth-of-type(2) {
    width: 400px;
  }
}

/* Page Specific */
.servicing {
  .columns-2-cols {
    div {
      div {
        &:nth-child(2) {
          background-color: var(--light-grey);
          padding: 8% 3%;
          font-size: 18px;
          line-height: 45px;
        }
      }
    }
  }
}

.parts {
  .columns > div {
    align-items: flex-start;
  }
}

.about {
  p {
    &:nth-child(2) {
      font-size: 20px;
      text-align: center;
      margin: 50px 0;
      font-weight: 500;
    }
  }
}

.faq {
  li {
    font-size: 16px;
    font-weight: 100;
  }
}