.nomargin {
    margin: 0;
}

main, main.category-view section > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-content: center;
    height: min-content;
    overflow: hidden;
    justify-content: space-evenly;
    align-items: flex-start;
}

main.category-view section > div {
    gap: 30px calc(100% * (16/1440));
    flex-flow: row wrap;
    width: 100%;
}

main.category-view section>div:after {
    content: "";
    flex: auto;
}

main.category-view section h1 {
    text-transform: capitalize;
}

main.landing-view, section {
    flex-flow: column;
}

#categories-block .nav {
    border-top: 1px solid var(--color-gray-1);
    justify-content: flex-start;
}

#categories-block a {
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 150px;
    max-width: 23%;
    aspect-ratio: 296/476;
    display: flex;
    flex-flow: column;
}

#categories-block a picture {
    overflow: hidden;
    height: 1px;
    flex-grow: 1;
    display: flex;
    flex-flow: column;
}

#categories-block img {
    height: 1px;
    flex-grow: 1;
}

main.landing-view section div:first-child {
    justify-content: space-between;
}

main.landing-view section > div {
    width: 100%;
    display: flex;
    gap: calc(100% * (32/1440));
    overflow: hidden;
    padding-bottom: 11px;
    flex-flow: row wrap;
    justify-content: space-around;
}

main.landing-view section > div:after {
    content: "";
    flex: auto;
}

main.landing-view img {
    aspect-ratio: 259/344;
    object-fit: cover;
    object-position: center;
}

main.landing-view h2 {
    text-transform: capitalize;
}

main.landing-view h4 {
    text-transform: uppercase;
}

#hero-block {
    background-image: url(https://cdn.erply.com/images/519899/icthero.png);
    background-position: center 70%;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 600px;
    justify-content: flex-end;
    padding: 100px 300px;
    gap: 16px;
}

#hero-block h1 {
    font-size: 64px;
    line-height: 64px;
    margin: 0;
}

#hero-block p {
    max-width: 480px;
    margin: 0;
}

.service-block {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgb(223, 223, 223);
}

.service-block-title {
    padding: 60px min(var(--side-spacing), 80px) 0px;
}

.service-link {
    flex-basis: 33.33%;
    margin: 2rem 1rem;
}

.service-card {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.service-img img {
    margin: auto;
}

.landing-buttons {
	position: absolute;
	right: 10px;
	bottom: 10px;
    min-height: fit-content;
}

.landing-text-on-pic {
	position: absolute;
	bottom: 20px;
	left: 20px;
	color: white;
}

.picture-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #0000002a;
}


/* FAQ */
.plus-icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
    stroke-width: 2px;
    stroke: #b4b4b4;
    fill: #b4b4b4;
    transition: transform 0.5s ease;
}

.rotate {
    transform: rotate(45deg);
}

.answer-block {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
}

.show-smoothly {
    opacity: 1;
    height: auto;
    max-height: 200px;
}

/* contact */

.contact-wrapper {
    min-height: 250px;
    margin-top: 7rem;
    margin-bottom: 5rem;
}

.contact-wrapper div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Start mobile specific rules */
@media only screen and (max-width: 800px) {
    #categories-block div a {
        aspect-ratio: 171/320;
    }
    main.landing-view section > div {
        row-gap: 24px;
    }
    #hero-block {
        /* Use a different background image with more of a fade overlay to make reading the text easier */
        background-image: url(https://cdn.erply.com/images/519899/icthero.png);
        padding: 72px 16px;
        gap: 8px;
    }

    .service-block {
        flex-flow: column;
        gap: 1rem;
    }

    .service-card {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .landing-buttons {
        right: auto;
        bottom: 0;
    }
}
