/*
 * 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 {
  /* brand colors */
  --suavitel-navy: #2b328c;
  --suavitel-cyan: #00b9f2;
  --suavitel-pink: #e00492;
  --suavitel-pink-dark: #b00373;
  --suavitel-blue: #06c;
  --suavitel-light-blue: #e0f6fd;
  --suavitel-gradient: linear-gradient(90deg, var(--suavitel-navy), var(--suavitel-cyan));

  /* colors */
  --background-color: white;
  --light-color: var(--suavitel-light-blue);
  --dark-color: var(--suavitel-navy);
  --text-color: #333;
  --heading-color: var(--suavitel-navy);
  --link-color: var(--suavitel-blue);
  --link-hover-color: var(--suavitel-pink);

  /* fonts */
  --body-font-family: nunito-sans, nunito-sans-fallback, sans-serif;
  --heading-font-family: quicksand, quicksand-fallback, sans-serif;

  /* body sizes */
  --body-font-size-m: 16px;
  --body-font-size-s: 14px;
  --body-font-size-xs: 12px;

  /* heading sizes */
  --heading-font-size-xxl: 40px;
  --heading-font-size-xl: 30px;
  --heading-font-size-l: 26px;
  --heading-font-size-m: 18px;
  --heading-font-size-s: 18px;
  --heading-font-size-xs: 16px;

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

/* fallback fonts */
@font-face {
  font-family: quicksand-fallback;
  size-adjust: 100.5%;
  src: local('Arial');
}

@font-face {
  font-family: nunito-sans-fallback;
  size-adjust: 98.5%;
  src: local('Arial');
}

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

    /* heading sizes */
    --heading-font-size-xxl: 40px;
    --heading-font-size-xl: 36px;
    --heading-font-size-l: 26px;
    --heading-font-size-m: 24px;
    --heading-font-size-s: 20px;
    --heading-font-size-xs: 18px;
  }
}

@media (width >= 992px) {
  :root {
    --nav-height: 108px;
  }
}

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.35;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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;
  color: var(--heading-color);
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.25;
  scroll-margin: calc(var(--nav-height) + 16px);
}

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);
  text-transform: uppercase;
}

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;
}

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

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

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

/* lists in default content use the brand heart-pink bullets */
main .default-content-wrapper ul {
  padding-left: 20px;
  list-style: none;
}

main .default-content-wrapper ul > li {
  position: relative;
  margin-bottom: 15px;
}

main .default-content-wrapper ul > li::before {
  content: '';
  position: absolute;
  top: 0.45em;
  left: -16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--suavitel-pink);
}

/* buttons */
p.button-wrapper {
  margin: 12px 0;
}

a.button:any-link,
button.button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0.5em 1.5em;
  font-family: var(--heading-font-family);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.3s ease;
}

a.button[aria-disabled="true"],
button.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/* primary: pink "buy now" style */
a.button.primary,
button.button.primary {
  background-color: var(--suavitel-pink);
  box-shadow: 0 2px 0 0 var(--suavitel-pink-dark);
  color: var(--background-color);
  text-transform: uppercase;
}

a.button.primary:hover,
a.button.primary:focus-visible,
button.button.primary:hover,
button.button.primary:focus-visible {
  background-color: var(--suavitel-pink-dark);
  box-shadow: none;
  color: var(--background-color);
}

/* secondary: white "learn more" style with chevron */
a.button.secondary,
button.button.secondary {
  background-color: var(--background-color);
  box-shadow: 0 0 10px 1px #d4d4d4;
  color: var(--suavitel-navy);
}

a.button.secondary::after,
button.button.secondary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-top: 3px solid currentcolor;
  border-right: 3px solid currentcolor;
  transform: rotate(45deg);
}

a.button.secondary:hover,
a.button.secondary:focus-visible,
button.button.secondary:hover,
button.button.secondary:focus-visible {
  box-shadow: 0 0 6px 1px #d4d4d4;
  color: var(--suavitel-pink);
}

/* accent: light blue high-impact call-to-action */
a.button.accent,
button.button.accent {
  background-color: var(--suavitel-cyan);
  box-shadow: 0 2px 0 0 #288bbc;
  color: var(--background-color);
  text-transform: uppercase;
}

a.button.accent:hover,
a.button.accent:focus-visible,
button.button.accent:hover,
button.button.accent:focus-visible {
  background-color: var(--suavitel-blue);
  box-shadow: none;
  color: var(--background-color);
}

a.button.primary[aria-disabled="true"],
a.button.secondary[aria-disabled="true"],
a.button.accent[aria-disabled="true"],
button.button:disabled {
  background-color: #eee;
  box-shadow: none;
  color: #666;
}

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

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

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

/* skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background-color: var(--background-color);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

/* 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;
}

main .section.spacious {
  margin: 0;
  padding: 60px 0;
}

@media (width < 768px) {
  main .section.spacious {
    padding: 30px 0;
  }
}

main .section.footnotes > div {
  max-width: 764px;
}

main .section.footnotes .default-content-wrapper {
  border-top: 3px solid var(--suavitel-cyan);
  padding-top: 30px;
  font-size: var(--body-font-size-s);
}

/* content page template: narrow centered reading column */
body.content-page main > .section > div {
  max-width: 764px;
}

body.content-page main > .section.tabs-container > div,
body.content-page main > .section.tabs-panel > div {
  max-width: 964px;
}

body.content-page main > .section > .hero-wrapper {
  max-width: unset;
}

@media (width >= 768px) {
  body.content-page main > .section.hero-container {
    margin-bottom: 80px;
  }
}

body.content-page main h1,
body.content-page main h2 {
  font-weight: 500;
  text-align: center;
}

body.content-page main h1 {
  margin: 0 0 20px;
}

body.content-page main h2 {
  margin: 50px 0 20px;
}

body.content-page main .default-content-wrapper > h3 {
  color: var(--suavitel-navy);
  font-weight: 500;
  text-align: center;
}

body.content-page main .default-content-wrapper > h2 + p {
  color: var(--suavitel-navy);
  text-align: center;
}

body.content-page main .default-content-wrapper img {
  display: block;
  width: 100%;
  margin: 30px auto;
}

/* related: section heading between cyan rules */
main .section.related {
  margin-top: 60px;
}

main .section.related > .default-content-wrapper {
  max-width: none;
  padding: 0;
}

main .section.related h2 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 40px;
  color: var(--suavitel-navy);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

main .section.related h2::before,
main .section.related h2::after {
  content: '';
  flex: 1;
  height: 3px;
  background-color: #6fb6dd;
}

/* product template */
body.product-page main > .section > div:not(.hero-wrapper) {
  max-width: 1140px;
}

/* product listing template */
body.product-listing main h1 {
  margin: 0 0 25px;
  font-weight: 500;
  text-align: center;
}
