:root {
  --theme-color: #354;
  --accent-color: #7cabc0;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button, input[type="button"] {
  font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: inline-block;
  cursor: pointer;
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
  height: 40px;
  background: var(--theme-color);
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 20px;
}

h1, h2 {
  font-family: "Great Vibes", cursive;
  font-weight: normal;
}

h3, h4, h5, h6, .eyebrow {
  font-family: Lora, Georgia, Cambria, "Times New Roman", serif;
}

a {
  color: var(--theme-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;

  background-image: url("/images/lotus.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

body > header {
  background: #fff;
  height: 120px;
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 2px 4px #0003;

  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;

  & > a,
  & > #contacts {
    flex: 0 0 400px;
    padding: 0 24px;
    text-decoration: none;
  }

  & > a:hover {
    text-decoration: none;
  }

  & > #contacts {
    text-align: right;
    a {
      display: block;
    }

    img {
      height: 26px;
      vertical-align: middle;
    }
  }

  #hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    cursor: pointer;
    background: #edf4f6;
    color: var(--theme-color);
    font-size: 33px;
    line-height: 35px;
  }

  #hamburger::before {
    content: "\2630";
  }

  #hamburger.popped {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  #hamburger.popped::before {
    content: "\00D7";
  }

  nav {
    flex: 1;
    text-align: center;

    a {
      margin-right: 30px;
      color: #888;
      text-transform: uppercase;
    }

    a:hover, a.active {
      color: var(--theme-color);
      text-decoration: underline;
    }

    a:last-child {
      margin-right: 0;
    }
  }

  img {
    max-height: 100px;
  }
}

#popup {
  position: fixed;
  top: 5px;
  left: 50%;
  width: auto;
  height: auto;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 19px;
  line-height: 19px;
  padding: 12px;
  color: #fff;
  background: var(--accent-color);
  transform: translateX(-50%);
  z-index: 3;
}

#hero {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;

  & > * {
    height: 640px;
    flex: 1;
    background-color: #edf4f6ff;
    padding: 20px 0;
  }

  aside {
    flex: 0 0 480px;
    background-size: cover;
    position: relative;
  }

  header {
    text-align: center;
    min-width: 390px;
    color: var(--theme-color);
    .eyebrow {
      font-size: 24px;
    }

    h1 {
      font-size: 65px;
      line-height: 65px;
      margin-top: 24px;
      margin-bottom: 12px;
    }

    img {
      height: 64px;
      margin: 0 24px;
    }

    .goatee::before, .goatee::after {
      display: inline-block;
      content: " ";
      height: 2px;
      width: 100px;
      background: var(--accent-color);
      position: relative;
      top: -32px;
    }
  }

  .healer-card {
    z-index: 2;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url("/images/splotch.png");
    aspect-ratio: 75 / 46;
    width: 300px;
    text-align: center;
    color: var(--theme-color);
    padding-top: 60px;

    h2 {
      font-size: 36px;
      margin: 0;
    }

    h3 {
      font-size: 16px;
      margin: 0;
      font-weight: normal;
    }
  }

  div:nth-child(2) {
    li {
      font-size: 14px;
      line-height: 1.618em;
      margin-bottom: 12px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    button {
      display: block;
      margin: 0 auto;
    }
  }

  aside:first-child {
    background-image: linear-gradient(to right, #edf4f600 65%, #edf4f6cc 80%, #edf4f6ff),
                      url("/images/max_photo.jpg");
  }
  
  #clippy {
    display: block;
    z-index: 1;
    position: absolute;
    bottom: -1px;
    line-height: 0;
    left: 0;
    padding: 0;
    width: 100%;
    height: auto;
    background: transparent;
    pointer-events: none;

    & svg {
      height: auto;
      display: block;
    }

    & path {
      fill: #fff;
    }
  }

  aside:last-child {
    background-image: linear-gradient(to left, #edf4f600 65%, #edf4f6cc 80%, #edf4f6ff),
                      url("/images/suneet_photo.jpg");
  }
}

.content-width {
  padding-left: calc((100svw - 1280px) / 2);
  padding-right: calc((100svw - 1280px) / 2);
}

section {
  scroll-margin-top: 132px;
  min-height: calc(100vh - 132px);
  min-height: calc(100svh - 132px);
  padding-top: 0;
  padding-bottom: 0;

  h3 {
    text-align: center;
    color: var(--theme-color);
    font-size: 30px;
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 0;

  /* styling */
  padding: 20px;
  background: #fff;
  border: 1px solid #4a604888;
  border-radius: 20px;

  /* equal height content layout */
  display: flex;
  flex-direction: column;

  h3 {
    font-weight: normal;
    margin: 0;

    strong {
      display: block;
      font-weight: bold;

      &:first-child {
        color: #fff;
        background: var(--theme-color);
        border-radius: 50%;
        width: 80px;
        height: 60px;
        line-height: 60px;
        margin: 0 auto;

        &::before {
          display: inline;
          content: "#";
        }
      }
    }
  }

  p {
    margin: 0;
    margin-top: 12px;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
  }

  ul {
    padding-left: 24px;
    padding-right: 24px;
  }

  @media (max-width: 900px) { flex-basis: calc(50% - 20px); }
  @media (max-width: 600px) { flex-basis: 100%; }
}

#comments {
  text-align: center;
}

form {
  display: block;
  text-align: left;
  max-width: 800px;
  border-radius: 24px;
  margin: 0 auto;
  padding: 24px;
  background-color: var(--accent-color);

  input[type="text"], input[type="number"], input[type="tel"], input[type="email"], textarea {
    padding: 10px 12px;
    border: 1px solid var(--theme-color);
    border-radius: 8px;
    background-color: #fffc;
    font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

    &:focus {
      background-color: #ffff;
      border-color: #ffff;
      outline: none;
    }
  }

  label {
    color: #fff;
    font-size: 18px;
  }
}

#disclaimer {
  position: relative;

  p {
    margin-bottom: 520px;
  }

  img {
    height: 500px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }
}

footer {
  color: #fff;
  background: var(--theme-color);
  padding-top: 24px;
  padding-bottom: 24px;

  a {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: underline;
  }
}

@media (max-width: 1440px) {
  #hero {
    header h1 {
      font-size: 45px;
    }
  }
}

@media (max-width: 1300px) {
  body > header > a,
  body > header > #contacts {
    flex: 0 0 auto;
    padding: 0 24px;
    text-decoration: none;
  }

  body > header nav {
    text-align: left;
  }

  .content-width {
    padding-left: 8px;
    padding-right: 8px;
  }

  #popup {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
    transform: none;
    margin-bottom: 12px;
    z-index: 0;
  }

  #hero {
    flex-direction: column;

    & > * {
      flex: 1;
      background-color: #edf4f6ff;
      padding: 20px 0;
    }

    & > div {
      order: 1;
      padding-left: 20px;
      padding-right: 20px;
    }

    aside:first-child {
      order: 2;
      background-image: linear-gradient(to right, #b0cdd900 150px, #b0cdd933 240px, #b0cdd9ff 360px),
                        url("/images/max_photo.jpg");
      background-position: left;

      .healer-card {
        left: calc(380px + 150px);
        bottom: 148px;
      }
    }

    aside:last-child {
      order: 3;
      background-image: linear-gradient(to left, #edf4f600 150px, #edf4f633 240px, #edf4f6ff 360px),
                        url("/images/suneet_photo.jpg");
      background-position: right;

      .healer-card {
        left: calc(100% - 380px - 150px);
        bottom: 148px;
      }
    }

    #clippy {
      /* display: none; */
    }

    aside {
      background-size: contain;
      background-repeat: no-repeat;
      position: relative;
    }
  }
}

@media (max-width: 800px) {
  body > header {
    height: 80px;
    width: 100%;
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    text-align: center;

    img {
      max-height: 75px;
    }

    & > a:first-child img {
      margin-top: 3px;
    }

    nav {
      position: fixed;
      top: -400px;
      right: 8px;
      z-index: 2;
      background: #fff;
      padding: 10px;
      border-radius: 4px;
      border-top-right-radius: 0;
      border: 1px solid var(--theme-color);
      transition: top 0.6s ease;

      a {
        display: block;
        text-align: left;
        margin-bottom: 12px;
      }

      a:last-child {
        margin-bottom: 0;
      }
    }

    nav.popped {
      top: 57px;
    }

    #hamburger {
      display: block;
    }

    & > #contacts {
      position: absolute;
      display: block;
      top: 20px;
      left: 8px;
      padding: 0;
      vertical-align: top;

      img {
        width: 38px;
        height: 38px;
      text-decoration: none;
      }

      a {
        display: inline;
        text-decoration: none;
      }

      span {
        display: none;
      }
    }
  }

  #popup {
    padding: 6px 12px;
    font-size: 18px;
    line-height: 20px;
  }

  #hero {
    padding-top: 80px;

    header {
      min-width: 0;
    }

    & > * {
      background-color: #edf4f6ff;
    }

    aside {
      flex: 0 0 213px;
    }

    aside:first-child {
      background-image: linear-gradient(to right, #b0cdd900 80px, #b0cdd933 93px, #b0cdd9ff 160px),
                        url("/images/max_photo.jpg");


      .healer-card {
        bottom: 24px;
        left: 75%;
      }
    }

    aside:last-child {
      background-image: linear-gradient(to left, #edf4f600 80px, #edf4f633 93px, #edf4f6ff 160px),
                        url("/images/suneet_photo.jpg");

      .healer-card {
        bottom: 24px;
        left: 25%;
      }
    }
  }

  #disclaimer {
    p {
      margin-bottom: 12px;
    }

    img {
      position: relative;
      height: auto;
      max-width: 90vw;
    }
  }
}

@media (max-width: 420px) {
  body > header > a:first-child {
    position: relative;
    left: 18px;
    img {
      max-height: 70px;
      margin-top: 5px;
    }
  }
}
