/* ==========================================================================
   fundraising/assets/css/index.css
   Page styles for index.php only. Loaded via $page_styles.

   Everything else on the page uses components that already exist in
   styles.css (.hero, .trust, .prod, .close, .sec__head, .btn, .lede, .micro).
   This file adds two things those don't cover: the hub grid, and the
   engraved-lid hero artwork. All colour and type comes from the :root
   tokens in styles.css, so a palette change still flows through.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hub grid — six equal cards. .grid in styles.css is a 4-up product grid,
   which is too tight for cards carrying a paragraph, so this is its own.
   -------------------------------------------------------------------------- */

.home-hub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hub > li {
    display: flex;
}

.home-hub__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 26px 26px 24px;
    box-sizing: border-box;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
    border-top: 3px solid var(--teal);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
}

.home-hub__card:hover,
.home-hub__card:focus-visible {
    transform: translateY(-3px);
    border-top-color: var(--honey);
    box-shadow: var(--shadow-lg);
}

.home-hub__label {
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--teal-deep);
}

.home-hub__title {
    margin-top: 10px;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

.home-hub__copy {
    flex: 1 1 auto;
    margin-top: 11px;
    font-size: 15.5px;
    line-height: 1.58;
    color: #4A4B6B;
}

.home-hub__cta {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--teal-deep);
}

.home-hub__cta::after {
    content: " \2192";
    display: inline-block;
    transition: transform .2s ease;
}

.home-hub__card:hover .home-hub__cta::after,
.home-hub__card:focus-visible .home-hub__cta::after {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Hero artwork — product shot. The source JPEG has a hard white background;
   multiply blends it into the cream hero so the pan reads as cut out.
   -------------------------------------------------------------------------- */

.home-art {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
}

.home-art__img {
    display: block;
    width: 100%;
    max-width: 470px;
    height: auto;
    mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   Closing band
   -------------------------------------------------------------------------- */

.home-close__act {
    display: flex;
    justify-content: flex-end;
}

.home-close__act .btn {
    max-width: 340px;
}

/* --------------------------------------------------------------------------
   Responsive — breakpoints match the ones already used in styles.css
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    .home-hub { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .home-art { justify-content: flex-start; padding-top: 0; }
    .home-art__img { max-width: 400px; }
    .home-close__act { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .home-hub { grid-template-columns: 1fr; }
    .home-art__img { max-width: 100%; }
    .home-close__act .btn { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hub__card,
    .home-hub__cta::after { transition: none; }

    .home-hub__card:hover,
    .home-hub__card:focus-visible { transform: none; }
}
