.header {
    position: relative;
}

.header__slideshow {
    position: relative;
    width: 100%;
    height: 38rem;
    overflow: hidden;
    background: transparent;

    background-image: url("../images/image_100dp_242424_FILL0_wght400_GRAD0_opsz48.svg");
    background-image: url("../images/apartment_48dp_242424_FILL0_wght400_GRAD0_opsz48.svg");
    background-image: url("../images/real_estate_agent_48dp_242424_FILL0_wght400_GRAD0_opsz48.svg");
    background-image: url("../images/home_48dp_242424_FILL0_wght400_GRAD0_opsz48.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;

  border-bottom: solid 1px var(--color-accent);
}

.header__slide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.header__slide--active {
    pointer-events: auto;
    pointer-events: none;
    z-index: 4;
}

.header__slide--next {
    z-index: 3;
}

.header__image {
    width: 120%;
    height: 100%;
    object-fit: fill;
    /* object-fit: cover; */
    transform-origin: center;
    opacity: 0;
}

.header__slide--next .header__image {
    opacity: 1;
}

.header__slide--active .header__image {
    /* 4 to 6 seconds */
    /* animation: hero 10s linear; */
    animation: hero 6s linear;
}

@keyframes hero {
    0% { 
        opacity: 1; 
        transform: scale(1) translateX(0); 
    }

    90% { 
        opacity: 1; 
    }
    
    100% { 
        opacity: 0; 
        transform: scale(1.10) translateX(calc(-100% * 5% / 120%)); 
        /* transform: scale(1.0) translateX(-30px);  */
    }
}

@media (prefers-reduced-motion: reduce) {
    .header__slide--active .header__image {
        animation: none;
        transform: none;
    }
}



.header__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-primary-backdrop);
    opacity: 0.6;
    opacity: 0.8;
    
    opacity: 0.65;
    z-index: 5;
}

.header__content {
    position: absolute;
    top: 35%;
    left: 50%;
    left: 5%;
    width: 90%;
    padding: 0 2rem;
    text-align: center;
    z-index: 6;
    /* transform: translateX(-50%); */
}

.header__title {
    color: rgb(235, 235, 235);
}

.header__description {
    color: rgb(235, 235, 235);
}

.header__actions {
    margin-top: 2rem;
}

.header__button {
    position: relative;
    display: inline-block;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    color: var(--color-accent);
    border: solid 1px var(--color-accent);
    font-size: 1.25rem;
    overflow: hidden;
    transition: color 0.25s ease-in-out;
}

.header__button:hover {
    text-decoration: none;
    color: var(--color-secondary-text);
}

.header__button:focus,
.header__button:active {
    box-shadow: 0 0 0 .2rem var(--color-accent-25);
}

.header__button::before {
    position: absolute;
    z-index: -1;
    background: var(--color-accent);
    content: "";
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    transition: all 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.header__button:hover::before {
    top: 0;
}




/* START FIX */

/* START SECTION ABOUT US */

.about-us-img-wrapper {
    position: relative;
    border-radius: 0.25rem;
}

.about-us-img-wrapper::before,
.about-us-img-wrapper::after {
    content: "";
    position: absolute;
    width: 25%;
    height: calc(4 / 3 * 25%); /* Making it match the aspect ratio of the image */
    opacity: 0.5;
}

.about-us-img-wrapper::before {
    top: -1rem;
    inset-inline-end: -1rem;
    border-top: solid 2px var(--color-accent);
    border-inline-end: solid 2px var(--color-accent);
    border-start-end-radius: 1.5rem;
}

.about-us-img-wrapper::after {
    bottom: -1rem;
    inset-inline-start: -1rem;
    border-bottom: solid 2px var(--color-accent);
    border-inline-start: solid 2px var(--color-accent);
    border-end-start-radius: 1.5rem;
}

.about-us-img-wrapper img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.25rem;
}

.about-us-img-wrapper img:nth-of-type(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.25s ease-in;
}

.about-us-img-wrapper:hover img:nth-of-type(2) {
    opacity: 1;
}

.about-us-img-backdrop {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    border-radius: 0.25rem;
    background-image: linear-gradient(to bottom, transparent, var(--color-primary-backdrop))
}

.about-us-img-details {
    position: absolute;
    bottom: -1.5rem;
    inset-inline-end: -1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    aspect-ratio: 1/1;
    border-radius: 0.25rem;
    background-color: var(--color-muted-background-85);
    border: solid 1px var(--color-muted-background);
}

.about-us-img-details span:nth-of-type(1) {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.about-us-img-details span:nth-of-type(2) {
    font-size: 0.8rem;
    color: var(--color-primary-text);
    text-align: center;
}

.about-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline-start: 3rem;
}

.about-us__title {
    color: var(--color-accent);
}

.about-us__details {
    color: var(--color-muted-text);
}

.companies {
    border-top: solid 1px var(--color-muted-background);
}

.company {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
} 

.company__details {
    display: flex;
    flex-direction: column;
}

.company__details p {
    color: var(--color-muted-text);
}

.company__logo-wrapper {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
}

.company__logo-wrapper img {
    width: 2rem;
    height: 2rem;
}

.company__logo-wrapper h2 {
    display: flex;
    align-items: center;
    min-height: 2lh;
    min-height: 2.4em;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.company__logo-wrapper h2 a {
    /* text-decoration: none; */
    color: var(--color-primary-text);
}
/* 
.company__logo-wrapper h2 a span {
    position: relative;
}

.company__logo-wrapper h2 a span::before, 
.company__logo-wrapper h2 a span::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    opacity: 1;
    background: var(--color-accent);
    transition: width 0.3s ease-in-out;
}

.company__logo-wrapper h2 a span::before {
    bottom: -0.2rem;
    inset-inline-start: 0%;
}

.company__logo-wrapper h2 a span::after {
    bottom: -0.5rem;
    inset-inline-end: 0%;
}

.company__logo-wrapper h2 a:hover span::before, 
.company__logo-wrapper h2 a:hover span::after {
    width: 100%;
    opacity: 1;
} */

/* END SECTION ABOUT US */

/* START SECTION ADVANTAGES */

.advantages-section {
    position: relative;
    background-color: var(--color-muted-background);
}

.advantages-section__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/cubes.png");
    opacity: 0.2;
}

[data-theme="light"] .advantages-section__backdrop {
    opacity: 0.6;
    background-image: url("../images/escheresque-dark.png");
}

.advantages-section__info {
    position: relative;
    text-align: center;
    z-index: 1;
}

.advantages-section__info span {
    display: block;
    font-weight: bold;
    color: var(--color-accent);
}

.advantages-section__info h2 {
    font-size: 2.5rem;
    color: var(--color-primary-text);
}

.advantages-section__info p {
    color: var(--color-muted-text);
}

.advantage {
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    /* height: 100%; */
    height: -webkit-fill-available;
    border: solid 1px transparent;
    border-radius: 0.5rem;
    transition: all 0.25s ease-in;
}

.advantage:hover {
    border: solid 1px var(--color-muted-border);
    background: var(--color-primary-background);
}

.advantage__icon {
    font-size: 3rem !important;
    font-size: 2.5rem !important;
    color: var(--color-accent);
    background-color: var(--color-primary-background);
    padding: 1rem;
    border: solid 1px var(--color-muted-border);
    border-radius: 50%;
    transition: all 0.25s ease-in;
}

.advantage__title {
    color: var(--color-primary-text);
    font-size: 1.5rem;
    min-height: 2lh;
    min-height: 2.4em;
    transition: all 0.25s ease-in;
}

.advantage:hover .advantage__title {
    color: var(--color-accent);
}

.advantage__details {
    color: var(--color-muted-text);
    margin-bottom: 0;
    /* margin-top: auto; */
}

/* END SECTION ADVANTAGES */

/* START SECTION FEATURED */

.featured-section__info {
    position: relative;
    text-align: center;
}

.featured-section__info > span {
    display: block;
    font-weight: bold;
    color: var(--color-accent);
}

.featured-section__info h2 {
    color: var(--color-primary-text);
    font-size: 2.5rem;
}

.featured-section__info p {
    color: var(--color-muted-text);
}

.featured-section__info a {
    position: absolute;
    bottom: -3rem;
    inset-inline-end: 0;
    /* text-decoration: none; */
    color: var(--color-muted-text);
}
/* 
.featured-section__info a span {
    position: relative;
}

.featured-section__info a span::before, 
.featured-section__info a span::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    opacity: 1;
    background: var(--color-accent);
    transition: width 0.3s ease-in-out;
}

.featured-section__info a span::before {
    bottom: -0.2rem;
    inset-inline-start: 0%;
}

.featured-section__info a span::after {
    bottom: -0.5rem;
    inset-inline-end: 0%;
}

.featured-section__info a:hover span::before, 
.featured-section__info a:hover span::after {
    width: 100%;
    opacity: 1;
} */

/* Properties CSS found in properties.css */

/* END SECTION FEATURED */

/* START SECTION PROCESS */

.process-section {
    position: relative;
    background-color: var(--color-muted-background);
}

.process-section__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/cubes.png");
    opacity: 0.2;
}

[data-theme="light"] .process-section__backdrop {
    opacity: 0.3;
    background-image: url("../images/escheresque-dark.png");
}

.process-section__info {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.process-section__info span {
    display: block;
    font-weight: bold;
    color: var(--color-accent);
}

.process-section__info h2 {
    color: var(--color-primary-text);
    font-size: 2.5rem;
}

.process-section__info p {
    color: var(--color-muted-text);
}

.process-step {
    /* display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start; */
    position: relative;
    /* height: 100%; */
    height: -webkit-fill-available;
    border: solid 1px transparent;
    transition: all 0.25s ease-in;
    border-radius: 1rem;
    text-align: start;
    background: var(--color-primary-background);
    /* transition: all 0.4s cubic-bezier(0.3, 1, 0.8, 1); */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
    transform: translateY(-0.5rem);
    border: solid 1px gray;
}

.process-step__number {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    font-size: 2.5rem;
    color: var(--color-primary-text);
    opacity: 0.25;

}

.process-step__icon {
    font-size: 2rem !important;
    padding: 0.75rem;
    border-radius: 1rem;
    color: var(--color-accent);
    background-color: var(--color-muted-background);
}

.process-step__title {
    font-size: 1.5rem;
    min-height: 2lh;
    min-height: 2.4em;
    color: var(--color-primary-text);
}

.process-step__details {
    color: var(--color-muted-text);
    margin-bottom: 0;
    /* margin-top: auto; */
}

/* END SECTION PROCESS */

/* START SECTION QUALITY */


.quality {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quality__title {
    position: relative;
    color: var(--color-primary-text);
}

.quality__title::before {
    content: "";
    position: absolute;
    top: -5%;
    inset-inline-start: -1rem;
    width: 2px;
    height: 110%;
    background-color: var(--color-accent);
    opacity: 0.8;
}

.quality__details {
    color: var(--color-muted-text);
}

.quality__details span {
    font-style: italic;
    color: var(--color-primary-text);
}




.quality-images-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.quality-images-wrapper img {
    flex-basis: 50%;
    min-width: 0;
    max-width: 50%;
    border-radius: 0.5rem;
    filter: grayscale(100%);
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quality-images-wrapper img:nth-of-type(2) {
    margin-top: 3rem;
}

.quality-images-wrapper img:hover {
    filter: grayscale(0);
}



/* END SECTION QUALITY */





@media screen and (max-width: 991px){

    .about-us {
        padding-inline-start: 15px;
    }

    .about-us-img-details {
        bottom: -1rem;
        inset-inline-end: -1rem;
    }




}


@media screen and (max-width: 575px){

    .header__content {
        top: 25%;
        padding: 0 1rem;
    }


    .about-us-section {
        padding: 0 3rem;
    }

    .about-us-img-details {
        padding: 0.5rem 1rem;
    }

    .about-us-img-details span:nth-of-type(1) {
        font-size: 1.75rem;
    }

    .about-us-img-details span:nth-of-type(2) {
        font-size: 0.8rem;
    }



    .advantages-section__info,
    .advantages {
        padding: 0 3rem;
    }




    .featured-section {
        padding: 0 3rem;
    }



    .process-section__info,
    .process {
        padding: 0 3rem;
    }



    .quality-section {
        padding: 0 3rem;
    }

    .quality-images-wrapper {
        flex-direction: column;
        margin-top: 1.5rem;
    }

    .quality-images-wrapper img {
        flex-basis: 80%;
        max-width: 80%;
    }

    .quality-images-wrapper img:nth-of-type(1) {
        align-self: self-start;
    }

    .quality-images-wrapper img:nth-of-type(2) {
        align-self: self-end;
        margin-top: 0;
    }

  

}

@media screen and (max-width: 425px){

    .header__content {
        top: 20%;
        width: 95%;
        left: 2.5%;
    }

    .header__title {
        font-size: 2rem;
    }

    .about-us-section {
        padding: 0 1.5rem;
    }

    .about-us-img-details {
        width: 100%;
        bottom: 0;
        inset-inline-end: 0;
        aspect-ratio: unset;
    }

    .about-us-img-details span:nth-of-type(1) {
        font-size: 1.25rem;
    }

    .about-us-img-details span:nth-of-type(2) {
        font-size: 0.6rem;
    }


    .advantages-section__info,
    .advantages {
        padding: 0 1rem;
    }


    .featured-section {
        padding: 0 1rem;
    }

    .process-section__info,
    .process {
        padding: 0 1rem;
    }







    .quality-images-wrapper img {
        flex-basis: 90%;
        max-width: 90%;
    }
}

@media screen and (max-width: 320px){

    .header__content {
        width: 100%;
        left: 0;
    }

    .featured-section {
        /* padding: 0 0.5rem; */
    }

}

