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

/* ABOUT */
.about {
    background: #fbfbfb;
}

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

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

.about .carousel {
    position: relative;
    overflow: hidden;
    height: 35vh;
    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: 30vh;
    padding: var(--gap);
    border-radius: var(--radius);
    background: white;
}

.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);
}

/* 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);
}

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

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

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

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

    .contact .form_container {
        padding: 12px;
    }

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