/* Homepage styles - builds on modern.css */

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 90px 10% 110px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(251, 172, 54, .18), transparent 45%),
        linear-gradient(135deg, #0d1511 0%, #12241a 45%, var(--green-dark) 100%);
    overflow: hidden;
}

.home-hero h1 {
    margin-top: 22px;
    font-size: clamp(32px, 4.4vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.home-hero h1 span {
    color: var(--amber);
}

.home-hero p {
    margin-top: 22px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .8);
}

.home-hero .prod-hero-actions {
    justify-content: flex-start;
}

.home-hero-media {
    position: relative;
}

.home-hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}

.home-hero-card {
    position: absolute;
    left: -28px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
}

.home-hero-card .prod-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.home-hero-card strong {
    display: block;
    font-size: 15px;
}

.home-hero-card small {
    color: var(--text);
    font-size: 13px;
}

.home-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 14px;
    transition: background-color .2s ease;
}

.home-new:hover {
    background: rgba(255, 255, 255, .15);
}

.home-new b {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Feature strip overlapping the hero */
.home-strip {
    position: relative;
    z-index: 2;
    margin: -50px 10% 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.home-strip > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 24px;
    border-right: 1px solid var(--line);
}

.home-strip > div:last-child {
    border-right: none;
}

.home-strip .prod-icon {
    flex: none;
    width: 46px;
    height: 46px;
    font-size: 19px;
}

.home-strip strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.home-strip small {
    color: var(--text);
    font-size: 13px;
}

/* Gallery */
.home-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 16px;
}

.home-gallery a {
    position: relative;
    display: block;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ddd;
}

.home-gallery a.tall {
    grid-row: span 2;
}

.home-gallery a.wide {
    grid-column: span 2;
}

.home-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.home-gallery a:hover img {
    transform: scale(1.06);
}

.home-gallery span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Cards with bullet lists */
.prod-card ul {
    margin-top: 10px;
    padding-left: 18px;
}

.prod-card li {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
}

.home-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Why choose: card grid on green panel */
.prod-why.stacked {
    display: block;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.home-why-grid > div {
    padding: 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
}

.home-why-grid i {
    color: var(--amber);
    font-size: 22px;
}

.home-why-grid h3 {
    margin-top: 14px;
    font-size: 17px;
    color: #fff;
}

.home-why-grid p {
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .78);
}

/* Pellets teaser */
.home-pellets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: var(--amber-soft);
}

.home-pellets img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.home-pellets > div {
    padding: 50px;
    align-self: center;
}

.home-pellets h2 {
    margin-top: 12px;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.25;
    color: var(--ink);
}

.home-pellets p {
    margin-top: 14px;
    line-height: 1.8;
    color: var(--text);
}

.home-pellets .prod-btn {
    margin-top: 26px;
}

.prod-btn-green {
    background: var(--green);
    color: #fff;
}

.prod-btn-green:hover {
    background: var(--green-dark);
}

/* FAQ */
.home-faq {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.home-faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: box-shadow .2s ease;
}

.home-faq details[open] {
    box-shadow: 0 18px 36px -24px rgba(0, 64, 28, .4);
}

.home-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--ink);
}

.home-faq summary::-webkit-details-marker {
    display: none;
}

.home-faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 20px;
    transition: transform .2s ease;
}

.home-faq details[open] summary::after {
    transform: rotate(45deg);
}

.home-faq details p {
    padding: 0 24px 22px;
    line-height: 1.8;
    color: var(--text);
}

/* Contact CTA */
.prod-cta.block {
    display: block;
}

.prod-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.home-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.home-contact > a,
.home-contact > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    overflow-wrap: anywhere;
    transition: background-color .2s ease;
}

.home-contact > a:hover {
    background: rgba(255, 255, 255, .12);
}

.home-contact i {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--amber);
    color: var(--ink);
}

.home-contact small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Responsive */
@media (max-width: 1110px) {
    .home-hero {
        padding: 70px 7% 100px;
    }

    .home-strip {
        margin: -50px 7% 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .home-strip > div:nth-child(2) {
        border-right: none;
    }

    .home-strip > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .home-grid-4,
    .home-gallery,
    .home-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .home-hero-card {
        left: 12px;
        bottom: 16px;
    }

    .home-pellets {
        grid-template-columns: 1fr;
    }

    .home-pellets > div {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 56px 16px 90px;
    }

    .home-strip {
        margin: -50px 16px 0;
        grid-template-columns: 1fr;
    }

    .home-strip > div,
    .home-strip > div:nth-child(-n+2) {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .home-strip > div:last-child {
        border-bottom: none;
    }

    .home-grid-4,
    .home-why-grid {
        grid-template-columns: 1fr;
    }

    .home-gallery {
        grid-auto-rows: 160px;
        gap: 10px;
    }

    .home-gallery a.wide {
        grid-column: span 2;
    }
}
