/* Claris (Boom): brochure styling on top of the Dax project template (ProjectPage_CL.ss).
   Brochure palette: sand #dfd6b7, gold lines #b5a47a; thin display type (Advent Pro). */
.project-claris {
    --claris-sand: #dfd6b7;
    --claris-sand-light: #f4f0e4;
    --claris-gold: #b5a47a;
    --claris-display: "Advent Pro", "Red Hat Display", sans-serif;
}

/* Headings: thin and airy like the brochure titles */
.project-claris .section-title h2 {
    font-family: var(--claris-display);
    font-weight: 300;
    letter-spacing: .02em;
}

.project-claris .section-title .sub-title {
    letter-spacing: .12em;
}

.project-claris .claris-logo {
    display: block;
    width: 152px;
    height: auto;
}

/* Counters: gold numbers in the display font, as on the brochure's "24 / 12 / 2 / 46" page */
.project-claris .counter-item-three .count-text {
    font-family: var(--claris-display);
    font-weight: 300;
    font-size: 52px;
    color: var(--claris-gold);
}

.project-claris .counter-item-three .counter-title {
    hyphens: manual;
}

/* Construction progress ("Stand van de werken") */
.claris-werf-grid {
    --bs-gutter-x: 16px;
}

.claris-werf-item {
    display: block;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
    cursor: zoom-in;
}

.claris-werf-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s;
}

.claris-werf-item:after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color .3s, background-color .3s;
}

.claris-werf-item:hover img {
    transform: scale(1.04);
}

.claris-werf-item:hover:after {
    border-color: var(--claris-gold);
    background-color: rgba(223, 214, 183, .15);
}

/* Types from the brochure ("Enkele types"), shown while no units are available */
.claris-types .tab-style-one {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.claris-type {
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: border-color .3s, box-shadow .3s;
}

.claris-type:hover {
    border-color: var(--claris-gold);
    box-shadow: 0 10px 30px rgba(74, 81, 91, .08);
}

.claris-type-plan {
    display: block;
    padding: 20px 20px 0;
    cursor: zoom-in;
}

.claris-type-plan img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center top;
}

.claris-type-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 25px 25px;
    border-top: 1px solid var(--claris-sand-light);
}

.claris-type-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--claris-gold);
}

.claris-type-body h5 {
    margin: 4px 0 18px;
    font-family: var(--claris-display);
    font-weight: 400;
    font-size: 28px;
}

.claris-type-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.claris-type-specs li {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.claris-type-specs strong {
    font-family: var(--claris-display);
    font-weight: 300;
    font-size: 30px;
    line-height: 1.1;
    color: var(--claris-gold);
    white-space: nowrap;
}

.claris-type-specs small {
    font-size: .55em;
}

.claris-type-specs span {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.claris-type-link {
    margin-top: auto;
    font-size: 16px;
    font-weight: 500;
    color: var(--heading-color);
}

.claris-type-link i {
    margin-right: 6px;
    color: var(--claris-gold);
}

.claris-type-link:hover {
    color: var(--claris-gold);
}

.claris-types-note {
    margin-top: 10px;
    font-size: 15px;
}

@media only screen and (max-width: 575px) {
    /* Long Dutch words ("VLOERVERWARMING") overflow the two-column benefit grid on phones */
    .project-claris .benefit-item h6 {
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .project-claris .counter-item-three .count-text {
        font-size: 44px;
    }

    .claris-type-specs strong {
        font-size: 26px;
    }
}

/* Floor plans in the lightbox: white paper on the dark overlay */
.mfp-claris-plan img.mfp-img {
    padding: 20px;
    background: #fff;
}
