/* ==========================================================
   HORIZON BEE AFRICA — HOME PAGE
   Uses the shared styles in site.css (header, footer, buttons,
   sections, CTA items). This file only adds what the home
   page needs. No eyebrow labels on this page: each section
   opens with a centred, bold heading.
   ========================================================== */


/* ----------------------------------------------------------
   Section headings (centred)
   ---------------------------------------------------------- */

.home-head {
    max-width: 720px;
    margin: 0 auto 40px;

    text-align: center;
}

.home-head h2 {
    margin: 0;

    color: var(--brown-dark);

    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Short gold rule under each heading */
.home-head h2::after {
    content: "";

    display: block;

    width: 56px;
    height: 3px;
    margin: 16px auto 0;

    background: var(--gold);
}

.home-head p {
    margin: 16px 0 0;

    color: var(--text-soft);

    font-size: 1.05rem;
    line-height: 1.6;
}

.home-head-light h2 {
    color: var(--white);
}

.home-head-light p {
    color: rgba(255, 255, 255, 0.8);
}

.home-actions {
    display: flex;
    justify-content: center;

    margin-top: 36px;
}

.home-empty {
    margin: 0;
    padding: 24px;

    color: var(--text-muted);

    text-align: center;
}

.home-link {
    align-self: flex-start;

    color: var(--brown);

    font-weight: 600;
    text-decoration: none;

    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

.home-link::after {
    content: " \2192";
}

.home-link:hover {
    color: var(--gold-dark);
}


/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.home-hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: min(80vh, 740px);
    padding: 96px 0 150px;

    background-color: var(--brown-dark);
    background-position: center;
    background-size: cover;

    color: var(--white);
}

/* Image hero overlay (used when the hero has no video) */
.home-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(28, 20, 4, 0.9) 0%,
        rgba(28, 20, 4, 0.72) 45%,
        rgba(28, 20, 4, 0.35) 100%
    );
}

.home-hero-inner {
    position: relative;
    z-index: 2;
}

.home-hero-inner > * {
    max-width: 660px;
}

.home-hero h1 {
    margin: 0 0 20px;

    color: var(--white);

    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.home-hero-lead {
    margin: 0 0 32px;

    color: rgba(255, 255, 255, 0.86);

    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
}


/* ----------------------------------------------------------
   Hero video
   The poster image is the section background; the video fades
   in on top once it is playing. A lighter overlay than the
   image hero keeps the ad visible: dark on the left and bottom
   behind the headline, clear towards the centre and right.
   ---------------------------------------------------------- */

.home-hero--video {
    overflow: hidden;
}

/* The video hero uses its own lighter overlay instead */
.home-hero--video::before {
    display: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.8s ease;
}

.hero-video.is-playing {
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(28, 20, 4, 0.72) 0%,
            rgba(28, 20, 4, 0.35) 45%,
            rgba(28, 20, 4, 0) 75%
        ),
        linear-gradient(
            0deg,
            rgba(28, 20, 4, 0.45) 0%,
            rgba(28, 20, 4, 0) 40%
        );
}

.home-hero--video h1,
.home-hero--video .home-hero-lead {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}


/* ----------------------------------------------------------
   Numbers (over the bottom of the hero)
   ---------------------------------------------------------- */

.home-proof {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin: -84px 0 0;
    padding: 0;

    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    box-shadow: 0 18px 40px rgba(44, 31, 2, 0.1);

    list-style: none;
}

.home-proof li {
    padding: 26px 26px 24px;
}

.home-proof li + li {
    border-left: 1px solid var(--line);
}

.home-proof-number {
    display: block;

    color: var(--brown);

    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
}

.home-proof-label {
    display: block;

    margin-top: 6px;

    color: var(--text-soft);

    font-size: 0.92rem;
}

/* Every section on this page uses the same spacing
   (var(--section-space) from site.css, smaller on phones) */
.home-page main > .section,
.home-work {
    padding: var(--section-space) 0;
}


/* ----------------------------------------------------------
   News For You
   The cards themselves come from css/blog-cards.css (the same
   cards as ForYOU NEWS).
   ---------------------------------------------------------- */

.home-blogs .blog-grid > .home-empty {
    grid-column: 1 / -1;
}

/* Phones: the News compact list, inside one white panel */
@media (max-width: 768px) {

    .home-blogs {
        background: #ffffff;
        border: 1px solid var(--line);
    }
}

/* ----------------------------------------------------------
   Our Focus
   ---------------------------------------------------------- */

.home-focus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.home-focus-media img,
.home-initiative-media img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 0;
}

.home-focus-points {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-focus-point {
    padding: 20px 0 20px 22px;

    border-left: 3px solid var(--line);

    transition: border-color 0.2s ease;
}

.home-focus-point:hover {
    border-left-color: var(--gold);
}

.home-focus-point + .home-focus-point {
    margin-top: 6px;
}

.home-focus-point h3 {
    margin: 0 0 6px;

    color: var(--brown-dark);

    font-size: 1.2rem;
}

.home-focus-point p {
    margin: 0;

    color: var(--text-soft);

    line-height: 1.6;
}

.home-focus-points .home-link {
    margin: 22px 0 0 25px;
}


/* ----------------------------------------------------------
   Our Store
   ---------------------------------------------------------- */

.home-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-products:empty {
    display: none;
}

.home-products:empty + .home-actions {
    margin-top: 0;
}

.home-product {
    display: flex;
    flex-direction: column;

    background: var(--white);
    border: 1px solid var(--line);

    color: inherit;

    text-decoration: none;

    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-product:hover {
    border-color: #e1d8c3;
    box-shadow: 0 14px 34px rgba(44, 31, 2, 0.1);
}

.home-product-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    aspect-ratio: 1 / 1;
    padding: 16px;

    background: #fafafa;
}

.home-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 0;
}

.home-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    padding: 3px 8px;

    background: var(--brown);

    color: var(--white);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;

    padding: 16px 18px 18px;

    border-top: 1px solid var(--line);
}

.home-product-name {
    color: var(--brown-dark);

    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.home-product:hover .home-product-name {
    color: var(--gold-dark);
}

.home-product-price {
    margin-top: auto;

    color: var(--brown);

    font-weight: 700;
}

.home-product-price s {
    margin-left: 6px;

    color: var(--text-muted);

    font-weight: 400;
}


/* ----------------------------------------------------------
   Our Initiative
   ---------------------------------------------------------- */

.home-initiative {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

#initiative .home-head p {
    color: var(--gold-dark);

    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.home-initiative-lead {
    margin: 0 0 22px;

    color: var(--text);

    font-size: 1.1rem;
    line-height: 1.65;
}

.home-impact {
    margin: 0 0 28px;
    padding: 0;

    list-style: none;
}

.home-impact li {
    padding: 14px 0;

    border-bottom: 1px solid var(--line);

    color: var(--text-soft);
}

.home-impact li:first-child {
    border-top: 1px solid var(--line);
}

.home-impact strong {
    display: block;

    margin-bottom: 2px;

    color: var(--brown-dark);
}


/* ----------------------------------------------------------
   Work With Us
   ---------------------------------------------------------- */

.home-work {
    background: var(--brown);

    color: var(--white);
}

.home-work-contact {
    margin: 36px 0 0;

    color: rgba(255, 255, 255, 0.78);

    text-align: center;
}

.home-work-contact a {
    color: var(--white);
    font-weight: 600;
}

.home-work-contact a:hover {
    color: var(--gold);
}


/* ----------------------------------------------------------
   Tablets
   ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .home-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-proof li:nth-child(3) {
        border-left: 0;
    }

    .home-proof li:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-focus,
    .home-initiative {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* ----------------------------------------------------------
   Phones
   ---------------------------------------------------------- */

@media (max-width: 640px) {

    .home-head {
        margin-bottom: 28px;
    }

    .home-hero {
        min-height: 0;
        padding: 64px 0 120px;
    }

    .home-hero::before {
        background: rgba(28, 20, 4, 0.78);
    }

    /* Phones: text covers most of the width, so darken from the
       bottom up and leave the top of the video clearer */
    .hero-video-overlay {
        background: linear-gradient(
            0deg,
            rgba(28, 20, 4, 0.8) 0%,
            rgba(28, 20, 4, 0.5) 55%,
            rgba(28, 20, 4, 0.25) 100%
        );
    }

    .home-proof {
        margin-top: -72px;
    }

    .home-proof li {
        padding: 18px 16px;
    }

    .home-proof-label {
        font-size: 0.85rem;
    }

    .home-products {
        gap: 10px;
    }

    .home-product-image {
        padding: 10px;
    }

    .home-product-badge {
        top: 8px;
        left: 8px;

        padding: 2px 6px;

        font-size: 10px;
    }

    .home-product-body {
        gap: 4px;

        padding: 10px 10px 12px;
    }

    .home-product-name {
        display: -webkit-box;
        overflow: hidden;

        font-size: 13px;
        line-height: 1.3;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-product-price {
        font-size: 13px;
    }

    .home-product-price s {
        display: block;

        margin-left: 0;

        font-size: 11.5px;
    }

    .home-head h2 {
        font-size: 1.6rem;
    }

    .home-head p {
        font-size: 0.98rem;
    }

    .home-actions {
        margin-top: 28px;
    }

    .home-actions .btn {
        width: 100%;
    }

    .home-initiative .btn {
        width: 100%;
    }
}