/* STYLES FOR ABOVE THE FOLD */
/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero-custom {
    /* 200px - 350px top - leaving extra space for the navigation */
    /* 100px - 200px bottom */
    padding: clamp(8rem, 7vw, 15rem) 1rem clamp(6.25rem, 7vw, 12.5rem);
    /* prevents the topper line from causing an overflow */
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #hero-custom .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 64rem;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
  }
  #hero-custom .cs-content {
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 35.625rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
  }
  #hero-custom .cs-title,
  #hero-custom .cs-text {
    text-align: center;
  }
  #hero-custom .cs-title {
    /* 39px - 49px */
    font-size: clamp(2.4375rem, 6.4vw, 3.0625rem);
    font-weight: 700;
    line-height: 1.2em;
    text-align: center;
    max-width: 51.8125rem;
    color: #fff;
    position: relative;
    z-index: 1;
    margin: 0 0 1rem 0;
    padding: 0;
  }
  #hero-custom .cs-title span {
    color: #fff;
    display: inline;
  }
  #hero-custom .cs-text {
    /* 16px - 18px */
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.5em;
    text-align: center;
    width: 100%;
    /* 464px - 622px */
    max-width: clamp(29rem, 60vw, 38.785rem);
    margin: 0;
    margin-bottom: 1.5rem;
    color: #fff;
  }
  #hero-custom .cs-badges {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    justify-content: center;
  }
  #hero-custom .cs-badge {
    display: flex;
    align-items: center;
  }
  #hero-custom .cs-badge-img {
    width: auto;
    height: 35px;
    object-fit: contain;
  }
  #hero-custom .cs-service-list {
    display: flex;
    margin: 1.5rem 0 0 0;
    padding: 0;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  #hero-custom .cs-service-item {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.875rem;
    background-color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    white-space: nowrap;
    font-weight: 500;
  }
  #hero-custom .cs-check-icon {
    width: 13px;
    height: 13px;
    margin-right: 0.375rem;
    fill: #fff;
    flex-shrink: 0;
  }
  #hero-custom .cs-reviews,
  #hero-custom .cs-reviews-flex,
  #hero-custom .cs-stars,
  #hero-custom .cs-desc {
    display: none;
  }
  #hero-custom .cs-rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0.25rem;
  }
  #hero-custom .cs-ratings {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.75rem;
  }
  #hero-custom .cs-rating-icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-bottom: 0.25rem;
  }
  #hero-custom .cs-rating-score,
  #hero-custom .cs-rating-trusted {
    font-size: 0.5625rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
  }
  #hero-custom .cs-reviews-img {
    width: calc(48 / 16 * 1rem);
    height: auto;
    border-radius: 50%;
    border: 5px solid #fff;
    background-color: #fff;
  }
  #hero-custom .cs-reviews-number {
    font-size: 1rem;
    font-weight: 700;
    width: 3rem;
    height: 3rem;
    background-color: var(--secondary);
    color: var(--bodyTextColorWhite);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #hero-custom .cs-right {
    text-align: center;
    width: 100%;
    max-width: 25rem;
    /* increase padding all around */
    padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    box-sizing: border-box;
    border-radius: 0.75rem;
    background-color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  #hero-custom .cs-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.75rem;
    padding: 0 2rem 0 1.75rem;
    overflow: hidden;
    color: var(--bodyTextColorWhite);
    border-radius: 2.5rem;
    display: inline-block;
    position: absolute;
    top: 0.5rem;
    right: 0;
    z-index: 1;
    transform: rotate(14deg);
    transform-origin: right;
  }
  #hero-custom .cs-tag:before {
    /* background color */
    content: '';
    height: 100%;
    background: var(--secondary);
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 20px;
    z-index: -1;
  }
  #hero-custom .cs-tag:after {
    /* triangle */
    content: '';
    width: 1.5625rem;
    height: 1.5625rem;
    background-color: var(--secondary);
    opacity: 1;
    overflow: hidden;
    position: absolute;
    display: block;
    top: 50%;
    right: 0.375rem;
    z-index: -1;
    transform: translateY(-50%) rotate(45deg);
  }
  #hero-custom .cs-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    right: 0.9375rem;
    top: 50%;
    transform: translateY(-50%);
  }
  #hero-custom .cs-h3 {
    /* 20px - 22px */
    font-size: clamp(1.25rem, 2vw, 1.375rem);
    font-weight: 700;
    text-align: inherit;
    max-width: 100%;
    margin: 0;
    color: #242424;
    line-height: 1.2;
  }
  #hero-custom .cs-expires {
    font-size: 1rem;
    line-height: 1.5em;
    text-align: inherit;
    margin: 0 0 1rem 0;
    color: var(--secondary);
    display: block;
  }
  #hero-custom .cs-form-text {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3em;
    text-align: inherit;
    width: 100%;
    margin: 0 0 0.75rem 0;
    color: #242424;
  }
  #hero-custom .cs-form {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  #hero-custom .cs-label {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  #hero-custom .cs-input,
  #hero-custom select {
    font-size: 0.875rem;
    width: 100%;
    height: 2.625rem;
    padding: 0 0.75rem;
    color: var(--bodyTextColor);
    background-color: #f5f5f5;
    border: none;
    border-radius: 0.25rem;
    /* prevents padding from adding to height and width */
    box-sizing: border-box;
    transition: border-color 0.3s;
  }
  #hero-custom .cs-input:hover,
  #hero-custom select:hover {
    border-color: var(--secondary);
  }
  #hero-custom .cs-input:focus,
  #hero-custom select:focus {
    outline: 1px solid #007bff;
  }
  #hero-custom .cs-input::placeholder,
  #hero-custom select::placeholder {
    color: #777;
    opacity: 0.9;
  }
  #hero-custom .cs-textarea {
    min-height: 5.9375rem;
    padding-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: inherit;
  }
  #hero-custom .cs-submit {
    width: 100%;
    margin: 0;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 2.75rem;
    font-size: 0.875rem;
    background-color: #007bff;
    border-radius: 0.25rem;
    color: #fff;
    transition: background-color 0.3s;
    margin-top: 0.125rem;
    letter-spacing: 0.5px;
  }
  #hero-custom .cs-submit:hover {
    cursor: pointer;
    background-color: #0056b3;
  }
  #hero-custom .cs-disclaimer {
    font-size: 0.625rem;
    text-align: center;
    line-height: 1.4em;
    margin: 0.75rem 0 0 0;
    color: #666;
    width: 100%;
  }
  #hero-custom .cs-disclaimer-icon {
    width: 1.25rem;
    height: auto;
  }
  #hero-custom .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }
  #hero-custom .cs-background:before {
    /* Overlay */
    content: "";
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    opacity: 0.75;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 1;
    /* prevents the cursor from interacting with it */
    pointer-events: none;
  }
  #hero-custom .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  #hero-custom .cs-button-solid {
    background-color: #007bff;
    transition: background-color 0.3s;
  }
  #hero-custom .cs-button-solid:hover {
    background-color: #0056b3;
  }
  #hero-custom .cs-google-review {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
  }
  #hero-custom .cs-google-icon {
    width: 24px;
    height: 24px;
    margin-right: 4px;
  }
  #hero-custom .cs-star-row {
    display: flex;
    align-items: center;
    margin: 0 4px;
  }
  #hero-custom .cs-star {
    width: 13px;
    height: 13px;
    margin-right: 1px;
  }
  #hero-custom .cs-review-text {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
  }
  #hero-custom .cs-badges {
    justify-content: center;
  }
}
@media only screen and (min-width: 0rem) and only screen and (max-width: 360px) {
  #hero-custom .cs-google-review {
    flex-direction: column;
    gap: 4px;
  }
  #hero-custom .cs-google-icon {
    margin-right: 0;
  }
  #hero-custom .cs-star-row {
    margin-right: 0;
  }
  #hero-custom .cs-badge-img {
    height: 30px;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #hero-custom {
    padding: clamp(12rem, 7vw, 15rem) 1rem clamp(6.25rem, 7vw, 12.5rem);
  }
  #hero-custom .cs-content {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  #hero-custom .cs-title,
  #hero-custom .cs-text {
    text-align: left;
  }
  #hero-custom .cs-badges {
    justify-content: flex-start;
  }
  #hero-custom .cs-service-list {
    justify-content: flex-start;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #hero-custom .cs-container {
    max-width: 73.75rem;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
  }
  #hero-custom .cs-content {
    max-width: 40.625rem;
    padding-left: 1.25rem;
  }
  #hero-custom .cs-title {
    font-size: clamp(2.8rem, 3.5vw, 3.5rem);
    line-height: 1.1;
  }
  #hero-custom .cs-text {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    max-width: 34.375rem;
  }
  #hero-custom .cs-right {
    max-width: 25rem;
    margin-right: 1.25rem;
  }
  #hero-custom .cs-service-list {
    margin-top: 1.25rem;
  }
}
/* Desktop Parallax Effect - 1600px */
@media only screen and (min-width: 100rem) {
  #hero-custom {
    background: url("/assets/images/hero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  #hero-custom .cs-background img {
    display: none;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #hero-custom .cs-right {
    background-color: var(--medium);
  }
  body.dark-mode #hero-custom .cs-h3,
  body.dark-mode #hero-custom .cs-form-text,
  body.dark-mode #hero-custom .cs-label,
  body.dark-mode #hero-custom .cs-disclaimer {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #hero-custom .cs-review-text {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #hero-custom .cs-disclaimer-icon {
    /* turns it white */
    filter: grayscale(1) brightness(1000%);
  }
  body.dark-mode #hero-custom .cs-input,
  body.dark-mode #hero-custom select {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #hero-custom .cs-form-text {
    opacity: 0.8;
  }
}
