/* ================================
   LUXBREW CASE STUDY
   The page reuses the WAYO layout system (body has .wayo-page).
   This file only adds layouts WAYO doesn't have, using the same
   palette (#CA380C / #333), JetBrains Mono labels and radii.
================================ */

/* App screens are exported without rounded corners */
.luxbrew-page .mockup-frame img,
.luxbrew-page .final-design-image-group img {
    border-radius: 20px;
}

/* Diagrams opened in the lightbox sit on white so they read as artefacts */
.luxbrew-page .research-evidence {
    background: #fff;
}

.luxbrew-page .card-grid + .research-evidence,
.luxbrew-page .research-evidence + .card-grid,
.luxbrew-page .research-evidence + .lux-flow-grid,
.luxbrew-page .lux-image-grid + .research-evidence {
    margin-top: 30px;
}

/* Three user flows side by side */
.luxbrew-page .lux-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.luxbrew-page .lux-flow {
    margin: 0;
}

.luxbrew-page .lux-flow .lightbox-trigger {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.luxbrew-page .lux-flow img {
    width: 100%;
    height: auto;
    display: block;
}

.luxbrew-page .lux-flow figcaption {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.55;
}

.luxbrew-page .lux-flow figcaption span {
    display: block;
    margin-bottom: 6px;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 600;
    color: #CA380C;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Colour palette + components side by side */
.luxbrew-page .lux-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
    align-items: start;
}

.luxbrew-page .lux-image-grid > div {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
}

.luxbrew-page .lux-image-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.luxbrew-page .info-card em {
    font-style: italic;
}

@media (max-width: 1024px) {
    .luxbrew-page .lux-flow-grid,
    .luxbrew-page .lux-image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .luxbrew-page .lux-flow figcaption {
        font-size: 16px;
    }
    .luxbrew-page .lux-image-grid > div {
        padding: 16px;
        border-radius: 20px;
    }
}

/* "LuxBrew, in short" has three paragraphs: keep the same 18px gap between
   them as WAYO uses between its two, with the larger gap before the info grid. */
.luxbrew-page .about-project-right > p:not(:last-of-type) {
    margin-bottom: 18px;
}

/* Project metadata ("LuxBrew, in short"): label and value are separate
   elements, so a value that wraps stays aligned under its own first line,
   not under the label. Same type, colours and spacing as the other pages'
   .about-project-info; two fields per row, one per row on small screens. */
.luxbrew-page .lux-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 22px;
    margin: 0 0 34px;
}

.luxbrew-page .lux-meta-item {
    display: grid;
    grid-template-columns: 9ch minmax(0, 1fr);
    column-gap: 14px;
    align-items: baseline;
    font-size: 24px;
    line-height: 1.25;
}

.luxbrew-page .lux-meta dt {
    font-family: "JetBrains Mono", monospace;
    font-size: 1em;
    font-weight: 400;
    color: #000000;
    opacity: 0.6;
    white-space: nowrap;
}

.luxbrew-page .lux-meta-item {
    /* 9ch is measured in the label's monospace font: fits "Platform:" / "Duration:" */
    font-family: "JetBrains Mono", monospace;
}

.luxbrew-page .lux-meta dd {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #333;
    overflow-wrap: break-word;
}

@media (max-width: 1024px) {
    /* wayo-extra.css collapses .about-project-info to one column here;
       LuxBrew keeps two fields per row while there's room. */
    .luxbrew-page .lux-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }
    .luxbrew-page .lux-meta-item {
        font-size: 21px;
    }
}

@media (max-width: 600px) {
    .luxbrew-page .lux-meta {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }
    .luxbrew-page .lux-meta-item {
        font-size: 18px;
        column-gap: 12px;
    }
}

@media (max-width: 1024px) {
    /* wayo.css adds 60px side padding to these intro paragraphs at this size.
       On LuxBrew, keep them on the same left edge as the metadata grid. */
    .luxbrew-page .about-project-right > p {
        padding-left: 0;
        padding-right: 0;
    }
}

/* "The problem": a little more space before the second subheading
   ("The business opportunity") so the two parts read as separate groups. */
.luxbrew-page .lux-problem p + p.split-eyebrow {
    margin-top: 36px;
}

@media (max-width: 768px) {
    .luxbrew-page .lux-problem p + p.split-eyebrow {
        margin-top: 28px;
    }
}

/* Design objectives: cards in a row share a height (grid stretch), and the
   proposed metrics sit at the bottom of each card so they line up across
   the row. */
.luxbrew-page .lux-objectives .info-card {
    display: flex;
    flex-direction: column;
}

.luxbrew-page .lux-objectives .info-card p.lux-metric {
    margin-top: auto;
}

.luxbrew-page .lux-objectives .info-card p:not(.lux-metric) {
    margin-bottom: 18px;
}

/* "Machine status & errors" intro has two paragraphs; they share the
   heading's right-hand grid cell, spaced like the other body paragraphs. */
.luxbrew-page .final-design-heading .lux-heading-text p + p {
    margin-top: 18px;
}
