/* STYLES FOR ABOVE THE FOLD */
/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero {
    z-index: 1;
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 15vw, 10rem) 1rem;
    background-color: var(--background);
    /* Paper texture */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='400' height='400' fill='%23F4F0E6'/%3E%3Crect width='400' height='400' filter='url(%23a)'/%3E%3C/svg%3E");
    background-blend-mode: multiply;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
  }
  #hero .cs-container {
    position: relative;
    margin: auto;
    max-width: 45rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
  }
  #hero .cs-flex-group {
    max-width: 45rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #hero .cs-topper {
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: "Fraunces", serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-align: inherit;
  }
  #hero .cs-title {
    width: 100%;
    color: var(--headerColor);
    font-family: "Caveat Brush", cursive;
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1.1em;
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
    text-align: inherit;
  }
  #hero .cs-text {
    margin-bottom: 2.5rem;
    color: var(--bodyTextColor);
    font-size: 1.25rem;
    line-height: 1.5em;
    text-align: inherit;
  }
  #hero .cs-button-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  #hero .cs-button-transparent {
    z-index: 1;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.375rem;
    border: 1px solid var(--headerColor);
    margin: 0;
    background-color: transparent;
    height: clamp(2.875em, 5.5vw, 3.5em);
    width: auto;
    min-width: 11.25rem;
    box-sizing: border-box;
    padding: 0 2rem;
    text-decoration: none;
    font-family: "Caveat Brush", cursive;
    font-size: 1.4rem;
    line-height: clamp(2.875em, 5.5vw, 3.5em);
    font-weight: 400;
    color: var(--headerColor);
    transform: rotate(1deg);
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
  }
  #hero .cs-button-transparent:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(0deg) scale(1.05);
  }
  #hero .cs-image-group {
    width: 100%;
    max-width: 45rem;
    height: clamp(400px, 65vw, 680px);
    position: relative;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #hero .cs-picture {
    width: clamp(220px, 38vw, 430px);
    height: auto;
    position: absolute;
    transition: none; /* Removed hover transitions */
  }
  #hero .cs-picture img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 10px 30px;
    border: 0.4rem solid var(--background);
    background-color: var(--background);
    display: block;
  }
  #hero .cs-picture1 {
    z-index: 1;
    transform: translateX(-35%) rotate(-8deg);
  }
  #hero .cs-picture2 {
    z-index: 3;
    transform: translateY(-5%) rotate(2deg);
  }
  #hero .cs-picture3 {
    z-index: 2;
    transform: translateX(35%) rotate(12deg);
  }
}
/* Desktop - 1200px+ (side-by-side) */
@media only screen and (min-width: 75rem) {
  #hero {
    text-align: left;
    flex-direction: row; /* Side-by-side layout */
    justify-content: space-between;
    align-items: center;
    padding: clamp(6rem, 15vw, 10rem) clamp(2rem, 8vw, 12rem);
    gap: 3rem;
  }
  #hero .cs-container {
    margin: 0;
    max-width: 45rem;
    flex: 1;
    align-items: flex-start;
    padding: 0;
  }
  #hero .cs-flex-group {
    align-items: flex-start;
  }
  #hero .cs-button-group {
    justify-content: flex-start;
  }
  #hero .cs-image-group {
    margin-top: 0;
    flex: 0 0 auto;
    max-width: 52rem;
    width: 48%;
    height: 750px;
    overflow: hidden;
  }
  #hero .cs-picture {
    width: 360px;
  }
  #hero .cs-picture1 {
    transform: translateX(-28%) translateY(5%) rotate(-12deg);
  }
  #hero .cs-picture2 {
    transform: translateY(-5%) rotate(2deg);
  }
  #hero .cs-picture3 {
    transform: translateX(28%) translateY(8%) rotate(15deg);
  }
}
/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
  .services {
    z-index: 100;
    position: relative;
    border-top: 0.375em solid var(--primary);
    border-radius: 0.3125em;
    margin: auto;
    margin-top: -10.4375em;
    margin-bottom: 3.125em;
    background: #fff;
    max-width: 82.5em;
    width: 90%;
    padding: 3.125em 1.25em;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
  }
  .services .card {
    display: block;
    margin: auto;
    margin-bottom: 3.125em;
    max-width: 22.3125em;
    width: 100%;
  }
  .services .card picture {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: auto;
    margin-bottom: 1.4375em;
    background: var(--primary);
    height: 5.5em;
    width: 5.5em;
  }
  .services .card picture img {
    height: 3em;
    width: 3em;
  }
  .services .card h2 {
    margin-bottom: 0.65em;
    font-size: 2em;
    line-height: 1.35em;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
  }
  .services .card p {
    opacity: 0.7;
    width: 100%;
    line-height: 1.3333333333em;
    text-align: center;
  }
  .services .card:last-of-type {
    margin-bottom: 0;
  }
}
/* Inbetween */
@media only screen and (min-width: 768px) {
  .services {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 98%;
    font-size: min(1.8vw, 1em);
  }
  .services .card {
    margin: 0;
    max-width: 20.3125em;
  }
}
/* Large Desktop */
@media only screen and (min-width: 1300px) {
  .services {
    padding: 3.125em 5em;
  }
  .services .card {
    max-width: 22.3125em;
  }
}
