/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box; }

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0; }

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0; }

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5; }

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none; }

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto; }

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block; }

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit; }

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important; } }

.button {
  background-color: #cb3ff1;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 1em 1.25em;
  text-decoration: none; }
  .button svg {
    width: 1.5em;
    height: auto;
    margin-left: 1.2em; }
    .button svg path {
      stroke: currentColor; }
  .button--large {
    font-size: 1.3rem; }

body {
  background: linear-gradient(to right, white, #cb3ff1);
  display: flex;
  flex-direction: column;
  font-family: Open Sans, Arial, Helvetica, sans-serif; }

figure {
  overflow: hidden;
  position: relative; }
  figure figcaption {
    background-color: #272727;
    bottom: -3rem;
    color: #ffffff;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    transition: bottom .4s ease; }
  figure:hover figcaption {
    bottom: 0rem; }

.sidebar {
  position: relative; }

.subnav {
  position: sticky;
  top: 2rem; }
  .subnav a {
    color: #bdbdbd;
    display: flex; }

.main {
  flex-grow: 1;
  justify-content: center;
  min-height: 100vh; }
  .main__inner {
    column-gap: 2rem;
    display: grid;
    flex: 0 1 1200px;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 2rem;
    flex: 0 1 1200px;
    margin: 0 2rem; }
  .main__content {
    grid-column: span 8; }
  .main--pages {
    display: flex; }
    .main--pages__inner {
      flex: 0 1 1200px; }

.main__inner--pages {
  background-color: #ffffff; }
  .main__inner--pages .sidebar {
    padding: 2rem;
    grid-column: span 4;
    background-color: #f7f2f2; }

a {
  color: #3f1297; }

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Fira Code;
  color: #272727; }

p {
  max-width: 600px;
  line-height: 1.7em;
  color: #646363; }

.footer {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  padding: 4rem 2rem 8rem 2rem; }
  .footer__inner {
    column-gap: 2rem;
    display: grid;
    flex: 0 1 1200px;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 2rem; }
  .footer__nav {
    display: grid;
    grid-column: 3 / span 8;
    grid-template-columns: subgrid; }
  .footer__link {
    align-items: center;
    background: #f7f2f2;
    color: #646363;
    display: flex;
    grid-column: span 2;
    justify-content: space-between;
    padding: 1rem;
    text-decoration: none; }

.copyright {
  grid-column: span 12;
  text-align: center; }

.header {
  background: #ffffff;
  display: flex;
  justify-content: center; }
  .header__wrap--home {
    display: grid;
    grid-template-rows: 1fr 11fr;
    height: 100vh; }
  .header__inner {
    column-gap: 2rem;
    display: grid;
    flex: 0 1 1200px;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 2rem;
    margin: 0 2rem; }

@supports not (grid-template-columns: subgrid) {
  .header__nav {
    display: contents; } }

.header__logo {
  align-items: center;
  color: #272727;
  display: flex;
  font-size: 1.5rem;
  grid-column: span 2;
  justify-content: space-between;
  padding: 1em 1em 1em 0;
  text-decoration: none; }
  .header__logo:hover {
    color: #cb3ff1; }
    .header__logo:hover h1 {
      color: currentColor; }
    .header__logo:hover svg {
      fill: currentColor; }
  .header__logo svg {
    max-width: 2em;
    fill: currentColor; }

.header__nav {
  align-content: center;
  display: grid;
  grid-column: 5 / span 8;
  grid-template-columns: subgrid;
  grid-template-rows: max-content; }

.header__link {
  align-items: center;
  color: #646363;
  display: flex;
  grid-column: span 2;
  font-size: 1.2rem;
  justify-content: space-around;
  padding: 0.66666667em 1em;
  text-decoration: none;
  transition: background .4s ease; }
  .header__link svg {
    margin-left: 0.5em;
    min-width: 2em; }
  .header__link:hover {
    background: #f7f2f2; }
  .header__link--active {
    border-bottom: 2px solid #3f1297; }

.hero {
  align-items: center;
  display: flex;
  justify-content: center; }
  .hero--medium h1 {
    grid-column: span 12; }
  .hero__inner {
    column-gap: 2rem;
    display: grid;
    flex: 0 1 1200px;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 2rem;
    margin: 1rem; }
  .hero__intro {
    background-color: #ffffff;
    grid-column: 4 / span 6;
    padding: 2rem;
    text-align: center; }
  .hero__title {
    font-size: 3rem;
    margin-bottom: .5em; }
    .hero__title::after {
      background: linear-gradient(to right, #ffffff, #646363, #ffffff);
      content: "";
      display: flex;
      height: 2px;
      margin: .3em 3rem 0 3rem;
      width: calc(100% - 6rem); }
  .hero__text {
    font-size: 1.5rem; }

.section {
  background-color: #e4e4e4;
  display: flex;
  justify-content: center; }
  .section:last-of-type {
    padding-bottom: 4rem; }
  .section__inner {
    margin: 0 2rem;
    column-gap: 2rem;
    display: grid;
    flex: 0 1 1200px;
    grid-template-columns: repeat(12, 1fr);
    row-gap: 2rem; }
    .section__inner--cards, .section__inner--gallery, .section__inner--page, .section__inner--testimonials {
      padding: 4rem 0 6rem 0; }
  .section__intro {
    grid-column: span 12;
    justify-self: center; }
  .section:nth-child(even) {
    background-color: #f7f2f2; }

.block {
  padding: 4rem; }
  .block--button, .block--gallery {
    align-items: center;
    background-color: #f7f2f2;
    display: grid;
    grid-template-columns: 1fr 1fr; }
  .block--blockimage {
    background-color: #f7f2f2; }
  .block--smallhero {
    align-items: center;
    background-color: #f7f2f2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem; }
  .block--testimonials {
    background-color: #f7f2f2;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(8, 1fr); }
  .block--gallery {
    padding: 0; }
  .block__intro {
    grid-column: span 8;
    text-align: center; }

.subnav a {
  background-color: #ffffff;
  color: #646363;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: background-color .8s ease; }
  .subnav a:hover {
    background-color: #f7f2f2; }

.pagination a {
  color: #cb3ff1; }

.section--button {
  display: flex;
  justify-content: space-between; }

.section--gallery {
  display: flex;
  padding: 0; }

.section--blockImage {
  display: flex;
  padding: 0; }

.testimonial {
  grid-column: span 6; }

.block--texttitle h2,
.block--texttitle p {
  margin-bottom: 2rem; }

.card {
  background-color: #ffffff;
  display: grid;
  grid-column: span 3; }
  .card__figure {
    align-self: end; }
  .card__intro {
    padding: 2rem; }

.section__inner--gallery img {
  grid-column: span 3; }

.page__text {
  align-self: center;
  grid-column: span 8; }

.page__button {
  display: flex;
  grid-column: span 4;
  justify-content: end; }

.section__inner--bannertestimonials {
  padding: 2rem; }

.testimonial {
  align-items: center;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  padding: 2rem; }
  .testimonial h4 {
    margin-bottom: 1rem; }
  .testimonial h4,
  .testimonial p {
    text-align: center; }

.imagetitletext {
  display: grid; }
  .imagetitletext__text {
    align-self: center;
    grid-column: span 6; }
  .imagetitletext__figure {
    grid-column: span 6; }
