/**
 * Homepage Styles – Minimal / Product-First Redesign
 *
 * Sections:
 *  1. Shared helpers
 *  2. Intro Bar          (replaces full-screen hero)
 *  3. Bento Category Grid
 *  4. Products Section (minimal header)
 *  5. Info / Trust Strip
 *  6. Terrassenplaner CTA
 *  7. Product Cards (preserved)
 *  8. Responsive
 *
 * @package Naturholz
 */

/* ==========================================================================
   1. SHARED HELPERS
   ========================================================================== */

.section-divider {
    height: 1px;
    background: var(--color-border, #e8e3dc);
    margin: 0;
}

/* ==========================================================================
   2. INTRO BAR  (slim tagline – replaces the full-screen hero)
   ========================================================================== */

.intro-bar {
    background: #F0EBE3;
    padding: var(--space-md) 0;
    border-bottom: 1px solid #D4C8B8;
}

.intro-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.intro-bar__tagline {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 400;
    color: #6B5D4F;
    letter-spacing: 0.04em;
}

.intro-bar__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: #7A5233;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.intro-bar__link:hover { opacity: 0.75; }

.intro-bar__link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   3. BENTO CATEGORY GRID
   ========================================================================== */

.bento-section {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

/* Section header row */
.bento-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.bento-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    font-weight: 300;
    color: var(--color-dark);
    line-height: 1.25;
    margin: 0 0 var(--space-xs);
}

.bento-header__desc {
    font-size: var(--text-sm);
    color: var(--color-warm-gray);
    margin: 0;
    max-width: 480px;
}

.bento-header__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
}

.bento-header__all:hover { opacity: 0.7; }
.bento-header__all svg { width: 14px; height: 14px; stroke: currentColor; }

/* Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 10px;
}

/* First card spans 2 rows (tall/featured) */
.bento-card--large {
    grid-row: 1 / 3;
}

.bento-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
    background: var(--color-beige, #f5f0ea);
}

.bento-card__img {
    position: absolute;
    inset: 0;
}

.bento-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.bento-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-beige, #e8e0d5);
}

.bento-card:hover .bento-card__img img {
    transform: none;
}

.bento-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 24, 18, 0.55) 0%,
        rgba(30, 24, 18, 0.05) 50%,
        rgba(30, 24, 18, 0.0) 100%
    );
    transition: background 0.3s;
}

.bento-card:hover .bento-card__overlay {
    background: linear-gradient(
        to top,
        rgba(30, 24, 18, 0.65) 0%,
        rgba(30, 24, 18, 0.10) 50%,
        rgba(30, 24, 18, 0.0) 100%
    );
}

.bento-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    gap: var(--space-md);
}

.bento-card__name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

.bento-card__count {
    display: block;
    font-size: var(--text-xs, 0.75rem);
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.bento-card__arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.25s, border-color 0.25s;
}

.bento-card__arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.bento-card:hover .bento-card__arrow {
    background: var(--color-accent, #a07840);
    border-color: var(--color-accent, #a07840);
}

/* ==========================================================================
   4. PRODUCTS SECTION – MINIMAL
   ========================================================================== */

.products-section--minimal {
    padding: var(--space-2xl) 0 var(--space-3xl);
    border-top: 1px solid var(--color-border, #e8e3dc);
}

/* Row header: title left, "see all" right */
.ps-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.ps-header__left { flex: 1; }

.ps-header__kicker {
    display: block;
    font-size: var(--text-xs, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-xs);
}

.ps-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 300;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.25;
}

.ps-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.ps-header__link:hover { opacity: 0.7; }
.ps-header__link svg { width: 14px; height: 14px; stroke: currentColor; }

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Product card (preserved from original, minor tweaks) */
.product-card {
    background: #fff;
    border: 1px solid var(--color-border, #e8e3dc);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 2px 12px rgba(42, 37, 32, 0.08);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-beige, #f5f0ea);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    display: block;
}

.product-card:hover .product-card__image img {
    transform: none;
}

.product-card__content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.product-card__category {
    font-size: var(--text-xs, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-warm-gray);
}

.product-card__title {
    font-family: var(--font-body);
    font-size: var(--text-base, 0.9rem);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.product-card__title a {
    color: var(--color-dark);
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--color-primary);
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-top: auto;
    padding-top: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-dark);
}

.product-card__price del {
    font-weight: 400;
    color: var(--color-warm-gray);
    font-size: var(--text-xs);
}

.product-card__unit {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--color-warm-gray);
}

/* Badge */
.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 3px 8px;
    border-radius: var(--radius-sm, 4px);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-accent, #a07840);
    z-index: 2;
}

.product-badge--sale { background: #c0392b; }
.product-badge--new  { background: var(--color-primary, #6b4423); }

/* ==========================================================================
   5. INFO / TRUST STRIP
   ========================================================================== */

.info-strip {
    border-top: 1px solid var(--color-border, #e8e3dc);
    border-bottom: 1px solid var(--color-border, #e8e3dc);
    background: var(--color-beige, #f5f0ea);
    padding: var(--space-lg) 0;
}

.info-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.info-strip__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-dark);
    padding: var(--space-sm) var(--space-2xl);
}

.info-strip__item svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary, #6b4423);
    flex-shrink: 0;
}

.info-strip__item a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.info-strip__item a:hover { color: var(--color-primary); }

.info-strip__divider {
    width: 1px;
    height: 32px;
    background: var(--color-border, #e8e3dc);
    flex-shrink: 0;
}

/* ==========================================================================
   6. TERRASSENPLANER CTA
   ========================================================================== */

.planner-cta {
    padding: var(--space-2xl) 0 var(--space-2xl);
}

/* Info strip sits flush as last element before footer */
.info-strip {
    border-top: 1px solid var(--color-border, #e8e3dc);
    border-bottom: none;
    background: var(--color-beige, #f5f0ea);
    padding: var(--space-lg) 0;
    margin-bottom: 0;
}

.planner-cta__card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: var(--color-cream-dark, #EDE7DC);
    border: 1px solid var(--color-sand, #D4C8B8);
    border-radius: 0;
    padding: var(--space-xl) var(--space-2xl);
}

.planner-cta__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 0;
    background: rgba(122, 82, 51, 0.1);
    border: 1px solid rgba(122, 82, 51, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #7A5233);
}

.planner-cta__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.planner-cta__body {
    flex: 1;
}

.planner-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: var(--color-dark);
    margin: 0 0 var(--space-xs);
}

.planner-cta__text {
    font-size: var(--text-sm);
    color: var(--color-charcoal);
    margin: 0;
    line-height: 1.6;
    max-width: 520px;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-rows: 180px 180px;
    }
}

@media (max-width: 860px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
    }

    .bento-card--large {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ps-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .planner-cta__card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .intro-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 160px);
    }

    .bento-card--large {
        grid-column: 1;
        grid-row: 1;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .info-strip__inner {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .info-strip__divider { display: none; }

    .info-strip__item { padding: var(--space-xs) 0; }

    .planner-cta__card {
        padding: var(--space-lg);
    }
}

/* ==========================================================================

/* ==========================================================================
   HERO — Full viewport, LEFT-ALIGNED, background photo
   Unique touch: left-aligned content + wood-tone accent line
   ========================================================================== */

.nh-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-bar .nh-hero { height: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
    .admin-bar .nh-hero { height: calc(100vh - 46px); }
}

/* Background photo — no zoom animation, just clean */
.nh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.nh-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nh-hero__fallback {
    width: 100%;
    height: 100%;
    background: #3b2410;
}

/* Single honest overlay — light enough to still see the wood clearly */
.nh-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(10, 6, 3, 0.58) 0%,
        rgba(10, 6, 3, 0.30) 55%,
        rgba(10, 6, 3, 0.10) 100%
    );
}

/* Left-aligned inner container */
.nh-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding: 0 var(--space-2xl, 3rem);
    padding-top: var(--header-height, 80px);
    padding-bottom: 100px; /* space for trust bar */
}

/* Content block — max width so it doesn't sprawl on large screens */
.nh-hero__content {
    max-width: 600px;
}

/* THE UNIQUE TOUCH — a short warm wood-tone horizontal rule above the title */
.nh-hero__accent-line {
    display: block;
    width: 48px;
    height: 3px;
    background: #C9A46C;
    margin-bottom: 28px;
}

.nh-hero__title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(2.8rem, 5.5vw, 6rem);
    font-weight: 400;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.nh-hero__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    max-width: 460px;
    margin: 0 0 40px;
}

.nh-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Primary CTA — solid warm brown */
.nh-hero__btn--primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    background: #7A5233;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    border: 2px solid #7A5233;
    transition: background 0.2s, border-color 0.2s;
}
.nh-hero__btn--primary:hover {
    background: #5C3D22;
    border-color: #5C3D22;
    color: #fff;
}

/* Ghost CTA — white outline */
.nh-hero__btn--ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nh-hero__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* Trust bar — pinned to bottom, transitions cleanly from hero */
.nh-hero__trust {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: rgba(15, 10, 5, 0.50);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nh-hero__trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding: 14px var(--space-2xl);
    gap: 0;
}
.nh-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.70);
    padding: 0 40px;
}
.nh-hero__trust-item svg {
    width: 16px;
    height: 16px;
    stroke: #C9A46C;
    flex-shrink: 0;
}
.nh-hero__trust-item a {
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
    transition: color 0.2s;
}
.nh-hero__trust-item a:hover { color: #fff; }
.nh-hero__trust-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* ==========================================================================
   HEADER — Transparent over hero, solid when scrolled
   ========================================================================== */

.home .site-header {
    background-color: transparent;
    border-bottom-color: transparent;
}
.home .site-header.scrolled {
    background-color: #F7F3EE;
    border-bottom-color: #D4C8B8;
    box-shadow: 0 1px 4px rgba(61, 56, 51, 0.08);
}
.home .site-header:not(.scrolled) .site-logo__text { color: #fff; }
.home .site-header:not(.scrolled) .site-logo__tagline { color: rgba(255,255,255,0.65); }
.home .site-header:not(.scrolled) .site-logo__image { filter: brightness(0) invert(1); }
.home .site-header:not(.scrolled) .nav-menu__link { color: rgba(255,255,255,0.88); }
.home .site-header:not(.scrolled) .nav-menu__link:hover { color: #fff; }
.home .site-header:not(.scrolled) .header-icon { color: rgba(255,255,255,0.88); }
.home .site-header:not(.scrolled) .menu-toggle span { background-color: #fff; }

/* ==========================================================================
   CATEGORY GRID — Clean image tiles, name BELOW image, white background
   Simple 3-column grid. No tricks, no overlays.
   ========================================================================== */

.nh-cats {
    padding: var(--space-4xl, 6rem) 0 var(--space-3xl, 4rem);
    background: #fff;
}

.nh-cats__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl, 4rem);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-beige, #E8E0D5);
}

.nh-cats__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-dark, #2A2520);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.nh-cats__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-warm-gray, #9A8F82);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}
.nh-cats__all:hover { color: var(--color-primary, #7A5233); }
.nh-cats__all svg { width: 13px; height: 13px; stroke: currentColor; }

/* 3-column grid with comfortable gutters */
.nh-cats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.nh-cat-tile {
    display: block;
    text-decoration: none;
    color: var(--color-dark, #2A2520);
    background: #fff;
}

/* Slightly smaller — 4:3 ratio feels more editorial than 1:1 */
.nh-cat-tile__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-beige, #E8E0D5);
}
.nh-cat-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.nh-cat-tile:hover .nh-cat-tile__img img {
    opacity: 0.88;
}
.nh-cat-tile__placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-beige, #E8E0D5);
}

/* Clean label below image */
.nh-cat-tile__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 4px;
}
.nh-cat-tile__name {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-dark, #2A2520);
    transition: color 0.2s;
}
.nh-cat-tile:hover .nh-cat-tile__name {
    color: var(--color-primary, #7A5233);
}
.nh-cat-tile__arrow {
    display: flex;
    align-items: center;
    color: var(--color-warm-gray, #9A8F82);
    transition: transform 0.2s, color 0.2s;
}
.nh-cat-tile__arrow svg { width: 15px; height: 15px; stroke: currentColor; }
.nh-cat-tile:hover .nh-cat-tile__arrow {
    transform: translateX(4px);
    color: var(--color-primary, #7A5233);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .nh-cats__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nh-hero__inner { padding: 0 var(--space-lg, 1.5rem); padding-top: 80px; padding-bottom: 90px; }
    .nh-hero__title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
    .nh-hero__desc  { display: none; }
    .nh-hero__trust-inner { padding: 12px var(--space-lg); gap: 0; }
    .nh-hero__trust-item  { padding: 0 16px; font-size: 0.72rem; }
    .nh-hero__trust-divider { display: none; }
    .nh-cats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .nh-hero__actions { flex-direction: column; align-items: flex-start; }
    .nh-hero__btn--primary,
    .nh-hero__btn--ghost { width: 100%; justify-content: center; }
    .nh-cats__grid { grid-template-columns: repeat(2, 1fr); }
}