/*
 * Phase-18 homepage product, craft, Rabenhalle, advice and trust sections.
 */

.bhw-featured-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bhw-layout-grid-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bhw-featured-card {
    overflow: hidden;
    border: var(--bhw-border-thin) solid var(--bhw-color-border);
    border-radius: var(--bhw-radius-large);
    background: var(--bhw-color-panel);
    box-shadow: var(--bhw-shadow-card);
}

.bhw-featured-card > a {
    display: grid;
    height: 100%;
    color: var(--bhw-color-text-primary);
    text-decoration: none;
}

.bhw-featured-card figure {
    overflow: hidden;
    margin: 0;
    background: var(--bhw-color-background-secondary);
}

.bhw-featured-card figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    transition: transform var(--bhw-motion-slow) var(--bhw-easing-standard);
    object-fit: cover;
}

.bhw-featured-card:hover figure img {
    transform: scale(1.035);
}

.bhw-featured-card__body {
    display: grid;
    align-content: start;
    gap: var(--bhw-space-3);
    padding: var(--bhw-space-4);
}

.bhw-featured-card__body > * {
    margin: 0;
}

.bhw-featured-card__body h3 {
    font-size: var(--bhw-text-xl);
}

.bhw-featured-card__body .price {
    color: var(--bhw-color-accent);
    font-weight: var(--bhw-weight-bold);
}

.bhw-featured-card__body > span {
    margin-block-start: auto;
    color: var(--bhw-color-accent);
    font-weight: var(--bhw-weight-semibold);
}

.bhw-craft-story {
    background: var(--bhw-color-surface-warm);
}

.bhw-craft-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: var(--bhw-space-8);
}

.bhw-craft-story figure {
    margin: 0;
}

.bhw-craft-story figure img {
    width: 100%;
    border-radius: var(--bhw-radius-panel);
    box-shadow: var(--bhw-shadow-raised);
}

.bhw-craft-story figcaption {
    margin-block-start: var(--bhw-space-2);
    color: var(--bhw-color-text-secondary);
    font-size: var(--bhw-text-xs);
}

.bhw-craft-story__grid > div {
    display: grid;
    gap: var(--bhw-space-4);
}

.bhw-craft-story__grid > div > * {
    margin: 0;
}

.bhw-process-list {
    display: grid;
    gap: 0;
    margin: var(--bhw-space-3) 0 0;
    padding: 0;
    list-style: none;
}

.bhw-process-list li {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: var(--bhw-space-4);
    padding-block: var(--bhw-space-3);
    border-block-end: var(--bhw-border-thin) solid var(--bhw-color-border);
}

.bhw-process-list span {
    color: var(--bhw-color-text-secondary);
}

.bhw-raven-teaser {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 34rem;
    background: var(--bhw-color-background-primary);
}

.bhw-raven-teaser__art {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.bhw-raven-teaser__art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bhw-color-overlay-deep) 0 50%, var(--bhw-color-overlay-soft));
    content: "";
}

.bhw-raven-teaser__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bhw-raven-teaser__inner {
    display: grid;
    align-content: center;
    gap: var(--bhw-space-4);
    min-height: 28rem;
}

.bhw-raven-teaser__inner > * {
    max-width: 40rem;
    margin: 0;
}

.bhw-raven-teaser h2 {
    font-size: var(--bhw-text-4-xl);
}

.bhw-raven-teaser p:not(.bhw-eyebrow) {
    color: var(--bhw-color-text-secondary);
    font-size: var(--bhw-text-lg);
}

.bhw-raven-teaser a {
    width: fit-content;
}

.bhw-advice-teasers__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bhw-layout-grid-gap);
}

.bhw-advice-card {
    position: relative;
    isolation: isolate;
    min-height: 30rem;
    overflow: hidden;
    border-radius: var(--bhw-radius-panel);
    color: var(--bhw-color-text-primary);
    text-decoration: none;
}

.bhw-advice-card::after {
    position: absolute;
    z-index: -1;
    inset: 30% 0 0;
    background: linear-gradient(transparent, var(--bhw-color-overlay-deep));
    content: "";
}

.bhw-advice-card img {
    position: absolute;
    z-index: -2;
    width: 100%;
    height: 100%;
    transition: transform var(--bhw-motion-slow) var(--bhw-easing-standard);
    object-fit: cover;
}

.bhw-advice-card:hover img {
    transform: scale(1.025);
}

.bhw-advice-card > span {
    position: absolute;
    inset: auto var(--bhw-space-5) var(--bhw-space-5);
    display: grid;
}

.bhw-advice-card small {
    color: var(--bhw-color-accent);
    letter-spacing: var(--bhw-tracking-wide);
    text-transform: uppercase;
}

.bhw-advice-card strong {
    font-family: var(--bhw-font-heading);
    font-size: var(--bhw-text-3-xl);
}

.bhw-trust {
    background: linear-gradient(180deg, transparent, var(--bhw-color-background-secondary));
}

.bhw-trust__grid,
.bhw-values__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bhw-layout-grid-gap);
}

.bhw-trust article,
.bhw-values article {
    padding-block-start: var(--bhw-space-4);
    border-block-start: var(--bhw-border-strong) solid var(--bhw-color-accent);
}

.bhw-trust article > *,
.bhw-values article > * {
    margin-block: 0 var(--bhw-space-2);
}

.bhw-trust article > span,
.bhw-values article > span {
    color: var(--bhw-color-accent);
    font-size: var(--bhw-text-sm);
}

.bhw-trust article p,
.bhw-values article p {
    color: var(--bhw-color-text-secondary);
}

.bhw-about-teaser {
    background: var(--bhw-color-surface-elevated);
}

.bhw-about-teaser__inner h2 {
    max-width: 16ch;
    font-size: var(--bhw-text-3-xl);
}

.bhw-about-teaser__inner > div {
    display: grid;
    align-content: start;
    gap: var(--bhw-space-3);
}

.bhw-about-teaser__inner > div > * {
    margin: 0;
}

@media (max-width: 63.999rem) {
    .bhw-featured-products__grid,
    .bhw-trust__grid,
    .bhw-values__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 51.249rem) {
    .bhw-craft-story__grid {
        grid-template-columns: 1fr;
    }

    .bhw-process-list li {
        grid-template-columns: 1fr;
        gap: var(--bhw-space-1);
    }
}

@media (max-width: 34.999rem) {
    .bhw-featured-products__grid,
    .bhw-advice-teasers__grid,
    .bhw-trust__grid,
    .bhw-values__grid {
        grid-template-columns: 1fr;
    }
}
