/* ─── BEH Home Page Styles ───────────────────────────────────────────────── */
/* Complement to beh-office.css which contains the hero and core BEH vars    */

/* ─── Buying guide section ─── */
.beh-buying-guide {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto clamp(80px, 10vw, 140px);
}
.beh-buying-guide header {
    max-width: 800px;
    margin-bottom: clamp(36px, 5vw, 60px);
}
.beh-buying-guide h2 {
    margin: 12px 0 0;
    font-size: clamp(2rem, 3.6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--beh-ink);
    text-wrap: balance;
}
.beh-buying-guide ol {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--beh-line);
    border: 1px solid var(--beh-line);
    counter-reset: none;
}
.beh-buying-guide li {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 28px 24px;
    background: var(--beh-surface);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.beh-buying-guide li:hover {
    background: linear-gradient(135deg, #fff, var(--beh-paper));
    box-shadow: 0 10px 24px rgba(20,28,37,.06);
}
.beh-buying-guide li > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--beh-amber);
    color: var(--beh-amber);
    font-size: .7rem;
    font-weight: 800;
}
.beh-buying-guide strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.beh-buying-guide p { margin: 0; color: var(--beh-muted); font-size: .84rem; line-height: 1.6; }

/* ─── Curated products section ─── */
.beh-curated__header a {
    color: var(--beh-amber);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.beh-curated__header a:hover { text-decoration: underline; }
.beh-curated__header h2 {
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--beh-ink);
    margin: 12px 0 0;
}
.beh-curated__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--beh-line);
    border: 1px solid var(--beh-line);
    margin-top: 24px;
}

/* Static product card (curated section on homepage — not GrandNode data-driven) */
.beh-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--beh-surface);
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(20,28,37,.05);
    transition: box-shadow 260ms var(--beh-ease), transform 260ms var(--beh-ease);
}
.beh-product-card:hover {
    box-shadow: 0 18px 40px rgba(20,28,37,.12);
    transform: translateY(-3px);
}

/* Image (static / Vue-driven) */
.beh-product-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--beh-paper);
    text-decoration: none;
}
.beh-product-card__media img,
.beh-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 600ms var(--beh-ease), opacity 300ms ease;
}
.beh-product-card__media:hover img { transform: scale(1.04); opacity: .82; }
.beh-product-card__media > span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--beh-ink);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    z-index: 2;
}

/* Body */
.beh-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-top: 1px solid var(--beh-line);
}
.beh-product-card__body small {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: .62rem;
    color: var(--beh-blueprint);
    background: rgba(43,108,176,.08);
    border: 1px solid rgba(43,108,176,.2);
    padding: 2px 6px;
    display: inline-block;
    margin-bottom: 6px;
}
.beh-product-card__body h3 {
    margin: 0 0 8px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}
.beh-product-card__body h3 a { color: var(--beh-ink); text-decoration: none; }
.beh-product-card__body h3 a:hover { color: var(--beh-amber); }
.beh-product-card__body p {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    color: var(--beh-muted);
}

/* ─── Project CTA section ─── */
.beh-project-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px 60px;
    align-items: center;
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto clamp(80px, 10vw, 140px);
    padding: clamp(40px, 6vw, 70px);
    background: var(--beh-graphite);
    color: #fff;
}
.beh-project-cta div {
    display: grid;
    gap: 8px;
}
.beh-project-cta span {
    color: var(--beh-cyan);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.beh-project-cta h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    text-wrap: balance;
}
.beh-project-cta p { margin: 0; color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.6; }
.beh-project-cta a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 26px;
    background: var(--beh-amber);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease;
}
.beh-project-cta a:hover { background: #163e6d; color: #fff; }

/* ─── Featured recently viewed / new products (homepage components) ─── */
.home-page-section { margin: 30px 0; }
[v-cloak] .products-tabs { display: none; }

/* ─── Responsive ─── */
@media (max-width: 1199px) {
    .beh-buying-guide ol { grid-template-columns: repeat(2, 1fr); }
    .beh-curated__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .beh-project-cta { grid-template-columns: 1fr; }
    .beh-paths { grid-template-columns: 1fr; }
    .beh-category-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .beh-buying-guide ol { grid-template-columns: 1fr; }
    .beh-curated__grid { grid-template-columns: 1fr; }
    .beh-editorial-categories__grid { grid-template-columns: 1fr; }
    .beh-space--large { grid-row: auto; min-height: 300px; }
    .beh-category-index { grid-template-columns: 1fr; }
    .beh-market-hero__spec { display: none; }
}
