/* Per-section rules. Section roots are named after the template that uses them. */

/* ABOUT */
.about {
    background: var(--foreground);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.about .content.vertical {
    align-items: center;
    gap: 40px;
    flex: 0;
}

.about h2 {
    max-width: 1000px;
    text-align: center;
}

.about .carousel {
    position: relative;
    overflow: hidden;
    height: 30vh;
    width: 100%;
    border-radius: var(--radius);
}

.about .point_container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.about .point {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 0 var(--col_min);
    height: fit-content;
    padding: var(--gap);
    border-radius: var(--radius);
    background: var(--background);
}

.about .point p {
    padding-top: 16px;
    color: var(--sub_text_color);
}

/* WHY US */
.why_us .top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.why_us .text_content {
    display: grid;
    gap: 16px;
}

.why_us .text_content p {
    color: var(--sub_text_color);
}

/* PRODUCT GRID */
.product_grid {
    /*background: var(--foreground);*/
}

.product_grid .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.product_grid .product_card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: fit-content;
    text-decoration: none;
}

.product_grid .image_container {
    position: relative;
    overflow: hidden;
    height: 300px;
    padding: 16px;
    border-radius: var(--radius);
}

.product_grid img {
    position: absolute;
    inset: auto auto 0 0;
    z-index: 1;
    transition: transform 200ms ease-in-out;
}

.product_grid img:hover {
    transform: scale(1.05);
}

/* CASE GRID */
/* Two per row, laid out sideways: the picture carries less here than on a
   product card, and the sub text needs the room to be read. */
.case_grid .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.case_grid .case_card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--gap);
    width: 100%;
    text-decoration: none;
}

.case_grid .image_container {
    position: relative;
    overflow: hidden;
    flex: 0 0 40%;
    aspect-ratio: 4 / 3;
    padding: 16px;
    border-radius: var(--radius);
}

.case_grid .image_container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease-in-out;
}

.case_grid .case_card:hover .image_container img {
    transform: scale(1.05);
}

.case_grid .link {
    position: absolute;
    top: 16px;
    right: 16px;
}

.case_grid .case_text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.case_grid .case_text p {
    color: var(--sub_text_color);
}

/*!* PRODUCT HIGHLIGHT *!*/
/*.product_highlight {*/
/*    min-height: calc(100vh - 64px);*/
/*}*/

/*.product_highlight .content {*/
/*    gap: 150px;*/
/*}*/

/*.product_highlight .left {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: space-between;*/
/*    gap: 30px;*/
/*    flex: 1 0 var(--col_min);*/
/*}*/

/*.product_highlight .right {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    flex: 3 0 var(--col_min);*/
/*    min-height: 300px;*/
/*    border-radius: var(--radius);*/
/*    background: grey;*/
/*}*/

/*.product_introduction,*/
/*.product_selector {*/
/*    display: grid;*/
/*    gap: 16px;*/
/*}*/

/*.product_introduction p {*/
/*    color: var(--sub_text_color);*/
/*}*/

/*.product {*/
/*    display: grid;*/
/*    gap: 8px;*/
/*    padding-bottom: 16px;*/
/*    border-bottom: 1px solid black;*/
/*    opacity: 0.5;*/
/*    cursor: pointer;*/
/*    transition: opacity 300ms ease-in-out;*/
/*}*/

/*.product[data-active="true"] {*/
/*    opacity: 1;*/
/*}*/

/*.product_highlight .card {*/
/*    position: absolute;*/
/*    display: flex;*/
/*    align-items: end;*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    padding: var(--gap);*/
/*    color: #fff;*/
/*    opacity: 0;*/
/*    transition: opacity 300ms ease-in-out;*/
/*}*/

/*.product_highlight .card[data-active="true"] {*/
/*    opacity: 1;*/
/*}*/

/*.product_highlight .card img {*/
/*    position: absolute;*/
/*    inset: auto auto 0 0;*/
/*    z-index: 1;*/
/*}*/

/*.product_highlight .card strong {*/
/*    z-index: 3;*/
/*}*/

/*.product_highlight .card_content {*/
/*    display: grid;*/
/*    grid-template-columns: 9fr 1fr;*/
/*    align-items: end;*/
/*    width: 100%;*/
/*}*/

/* CONTACT */
.contact {
    background: var(--foreground);
}

.contact .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact .contact_info_container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact .contact_info_container p {
    max-width: 500px;
    color: var(--sub_text_color);
}

.contact .line {
    width: 100%;
    max-width: 500px;
    margin: 16px 0;
    border-bottom: 1px solid var(--line);
}

.contact .form_container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 32px;
    border-radius: var(--radius);
    background: white;
}

.contact .horizontal {
    display: flex;
    gap: 12px;
}

.contact .form_status {
    min-height: 1em;
    font-size: 14px;
}

.contact .form_status[data-state="ok"] {
    color: #1c7c3c;
}

.contact .form_status[data-state="error"] {
    color: #c02626;
}

/* PRODUCT PAGE SIDEBAR */
.product_page > .aside {
    padding: var(--block_space) var(--edge);
}

.sticky_container {
    position: sticky;
    top: var(--block_space);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

.sticky_container h3 {
    margin-bottom: 16px;
}

.other_product_container {
    display: flex;
    gap: 16px;
    text-decoration: none;
    transition: color 200ms;
}

.other_product_container .image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    height: 100px;
    width: 100px;
    border-radius: var(--radius_sm);
}

.other_product_container .image img {
    position: absolute;
    z-index: 1;
    transition: transform 200ms;
}

.other_product_container:hover img {
    transform: scale(1.05);
}

.other_product_container .link {
    opacity: 0;
}

.other_product_container:hover .link {
    opacity: 1;
}

.other_product_container:hover strong {
    color: var(--accent);
}

.other_product_info {
    display: grid;
    gap: 4px;
    height: fit-content;
}

.other_product_info p {
    color: var(--sub_text_color);
}

/* PRODUCT HIGHLIGHT V2 */
.product_introduction,
.product_selector {
    display: grid;
    gap: 16px;
    height: fit-content;
    max-width: 600px;
}

.product_introduction p {
    color: var(--sub_text_color);
}

.product_highlight {
    /*min-height: calc(100vh - 64px);*/
}

.product_highlight .content {
    gap: 64px;
    display: flex;
    /*height: 50%;*/
    /*flex-direction: row !important;*/
}

.product_highlight .card {
    display: flex;
    border-radius: 16px;
    position: relative;
    flex: 1 0 350px;
    align-items: end;
    overflow: hidden;
    width: 100%;
    padding: var(--gap);
    color: #fff;
    background: grey;
    cursor: pointer;
}

.product_highlight .card img {
    position: absolute;
    inset: auto auto 0 0;
    z-index: 1;
    transition: transform 200ms ease-in-out;
}

.product_highlight .card:hover img {
    transform: scale(1.03);
}

.product_highlight .card strong {
    z-index: 3;
}

.product_highlight .card_content {
    display: grid;
    grid-template-columns: 9fr 1fr;
    align-items: end;
    width: 100%;
}


@media (max-width: 1000px) {
    .why_us .top,
    .contact .content {
        grid-template-columns: 1fr;
    }

    .product_grid .content {
        grid-template-columns: repeat(2, 1fr);
    }

    .case_grid .content {
        grid-template-columns: 1fr;
    }

    .contact .line {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .product_grid .content {
        grid-template-columns: 1fr;
    }

    .case_grid .case_card {
        flex-direction: column;
    }

    .case_grid .image_container {
        flex: none;
        width: 100%;
    }

    .contact .form_container {
        padding: 12px;
    }

    .product_page > .aside {
        padding: var(--edge);
    }
}
