.hero-section {
    position: relative;
}

.hero-section img {
    position: relative;
    width: 100%;
    height: 30rem;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    inset: 0;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    top: 0;
    left: 0;
}

.hero-content h1 {
    color: var(--color-secondary);
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;

    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    
    color: var(--color-secondary);
    width: 20rem;
    text-shadow: 1px 1px 1px var(--color-primary);
}

.hero-content p {
    padding-bottom: 2rem;
}


/* ---------------------------- Service Cards NEW HOME -------------------- */

/* --------------------- FEATURES SECTION ----------------------- */

/* Section wrapper */

.features-section {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 1rem 1rem 4rem 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

/* Section header wrapper */

.features-header {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    gap: 2rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

/* 
  TODO (JS enhancement):
  On desktop, add drag-to-scroll (grab & drag) interaction 
  for horizontal card scrolling to improve usability.
*/

/* Outside wrapper for cards/cards container*/

.features-cards-wrapper {
    overflow-x: scroll;
    max-width: 100%;
    padding-bottom: 2rem;
}

/* Inner wrapper for cards, for better dimensions control */

.features-cards-inner-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
    text-align: center;
    scrollbar-width: none;
}

.features-cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* Card wrapper */

.features-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 23rem;
    min-width: 15.3rem;
}

.features-card img {
    position: absolute;
    inset: 0;
    max-height: 23em;
    width: auto;
    object-fit: cover;
    z-index: 1;
    border: 1px solid gray;
    border-radius: 2rem;
}

/* Slight tint for better readability */

.features-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    border-radius: 2rem;
}

.card-content {
    position: absolute;
    color: white;
    padding: 1rem;
    z-index: 3;
    width: 100%;
    
}

.card-content h3 {
    padding-bottom: 2rem;
    color: var(--color-accent-alt);
    text-align: center;
    margin: 0 auto;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-list-item {
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
}

.card-list-item p {
    margin: 0;
    font-weight: 500;
    text-align: left;
}

.card-list-item svg {
    height: 25px;
    width: auto;
    color: var(--color-accent);
}

/* ----------------------- RECOVERY IMAGE -------------------*/

.recovery-image {
    display: flex;
    object-fit: cover;
    justify-content: center;
}

/* ---------------------- FEATURED ---------------------------*/

.featured-section .container {
    padding-top: 0;
}

.featured-content {
    border: 0 solid var(--color-primary);
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 1px 1px 3px var(--color-accent-alt),
    -1px -1px 3px var(--color-accent);
}

/* ------------------- TESTIMONIALS SECTION --------------------- */

.testimonial-section {
    background-color: black;
    padding-bottom: 2rem;
    
}

.testimonial-section .container {
    padding-bottom: 0;
}

.testimonial-section h2 {
    color: var(--color-secondary);
}

.testimonials-section{
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
}

.testimonials-wrapper {
    width: 100%;
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-overlay-left,
.testimonial-overlay-right {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 3;
}

.testimonial-overlay-left {
    left: 0;
    background: linear-gradient(to right, black, transparent);
}

.testimonial-overlay-right {
    right: 0;
    background: linear-gradient(to left, black, transparent);
}

.testimonials-inner-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
    text-align: center;
    scrollbar-width: none;
}

.testimonials-card {
    background-color: rgb(12, 12, 12);
    border: 1px solid rgb(48, 48, 48);
    border-radius: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 18rem;
    max-width: 18rem;
    justify-content: center;
    align-items: center ;
    padding: 1rem;
    text-align: center;
}

.special-p {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: gray;
    text-align: right;
    padding-top: 0;
}

.features-cards-wrapper,
.testimonials-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    position: relative;
    width: 100%;
}

.features-cards-wrapper.dragging,
.testimonials-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
}

.features-cards-inner-row,
.testimonials-inner-row {
    display: flex;
    width: max-content;
}

.features-overlay,
.testimonial-overlay-left,
.testimonial-overlay-right {
    pointer-events: none;
}

/* ------------------------------------------------------------------------ */

.location-section .container {
    padding-bottom: 1rem;
    padding-top: 0;
}

.location-section iframe {
    width: 100%;
    height: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details svg {
    height: 20px;
    width: auto;
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.contact-item p {
    font-weight: 500;
}

.contact-item a {
    color: var(--color-accent);
}

.contact-item span {
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .hero-content {
        margin-top: 2rem;
        width: 40rem;
    }

    .features-card {
        min-height: 27rem;
        min-width: 18.3rem;
    }

    .features-card img {
        max-height: 27em;
        width: 18.3rem;
    }

    .testimonials-card {
        min-height: 20rem;
        max-width: 20rem;
    }
}

@media (min-width: 1024px) {
    .hero-section img {
        height: 35rem;
    }

    .location-section iframe {
        height: 600px;
    }

    .features-card {
        min-height: 30rem;
        min-width: 20.3rem;
    }

    .features-card img {
        max-height: 30em;
        width: 20.3rem;
    }

}

@media (min-width: 1440px) {
    .hero-section img {
        height: 40rem;
    }

    .hero-content {
        margin-top: 2rem;
        width: 50rem;
    }

    .features-card {
        min-height: 35rem;
        min-width: 23.3rem;
    }

    .features-card img {
        max-height: 35em;
        width: 23.3rem;
    }

    .location-section iframe {
        max-width: 82%;
        display: block;
        margin: 0 auto;
    }

    .recovery-image {
        height: auto;
        max-width: 800px;
        margin: 0 auto;
    }

    .footer-ps a {
        font-size: 1.3rem;
    }
}

@media (min-width: 1920px) {
    .hero-section img {
        height: 50rem;
    }

    .location-section iframe {
        height: 700px;
    }

    .hero-content {
        margin-top: 8rem;
        width: 80rem;
    }

    .recovery-image {
        max-width: 1000px;
    }

    .footer-ps a {
        font-size: 1rem;
    }

    .footer-ps p{
        font-size: 1.2rem;
    }
}