/* ============================================================
   Home - page stylesheet
   Only what this page uses. Anything shared with another page
   stays in /Shared/assets/css/site.css.
   ============================================================ */

.page-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 13px;
}

/* Over the hero photo */
.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.btn-ghost:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--frm-navy);
}

/* ============================================================
   IMAGE BLURBS  (home pillars)
   ============================================================ */
.blurb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    /* The live page leaves a full row's worth of air between the heading
       and the cards. */
    margin-top: 140px;
}

/* Each pillar is a white column: photo flush to the top, copy below it. */
.blurb {
    display: flex;
    flex-direction: column;
    background: var(--frm-white);
    padding-bottom: 20px;
}

.blurb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Two of the three photos carry a soft drop shadow on the live page. */
.blurb:nth-child(2) img,
.blurb:nth-child(3) img {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.blurb-body {
    padding: 10px 20px 0;
}

.blurb-title {
    font-family: var(--frm-head);
    color: var(--frm-navy);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.5em;
    margin: 0;
    padding-bottom: 10px;
}

.blurb-text {
    font-family: var(--frm-head);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8em;
    color: var(--frm-body);
    margin: 0;
}

/* ============================================================
   STATS  (Our Group at a Glance)
   ============================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-top: 46px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The whole block is set in the serif the live page chose for it, in its
   own darker blue rather than the site's heading grey. */
.stat-number {
    font-family: var(--frm-serif);
    color: var(--frm-glance);
    font-size: 60px;
    font-weight: 600;
    line-height: 1.5em;
    padding-bottom: 10px;
}

.stat-label {
    font-family: var(--frm-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.7em;
    color: var(--frm-glance);
}

.stat-footnote {
    font-family: var(--frm-serif);
    font-size: 15px;
    letter-spacing: normal;
    color: var(--frm-glance);
    text-align: center;
    margin: 2.2rem 0 0;
}

/* ============================================================
   LOGO STRIP  (partnerships and associations - full colour)
   ============================================================ */
.logo-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.logo-carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.logo-carousel-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    /* Set by the script from the measured item width. */
    transition: transform 0.7s ease-in-out;
}

.logo-strip-item {
    /* Three across the viewport, whatever the viewport is. */
    flex: 0 0 calc(100% / 3);
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-strip-item img {
    max-width: 100%;
    max-height: 3.1rem;
    object-fit: contain;
}

.logo-carousel-arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--frm-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.logo-carousel-arrow:hover,
.logo-carousel-arrow:focus-visible {
    color: var(--frm-navy);
}

.logo-carousel-arrow svg { width: 20px; height: 20px; }

/* No animation for anyone who has asked not to have any. */
@media (prefers-reduced-motion: reduce) {
    .logo-carousel-track { transition: none; }
}

.embed-market { height: 600px; background: #ffffff; }

@media (max-width: 900px) {
.blurb-grid { grid-template-columns: 1fr; gap: 34px; }
.stat-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
}

@media (max-width: 900px) {
.logo-strip-item { flex-basis: 50%; }
}

@media (max-width: 600px) {
.stat-grid { grid-template-columns: 1fr; }
.logo-strip-item { flex-basis: 100%; height: 4rem; }
}

/* ============================================================
   PAGE-SPECIFIC BLOCKS
   ============================================================ */

/* Home - Our Group at a Glance sits on the firm background texture.
   The live page paints it as its own absolutely-positioned parallax layer
   rather than as background-attachment:fixed on the section, and so does
   this: a fixed attachment is measured against the viewport, so it drops
   out of any full-page render (print, PDF, screenshot) and leaves the band
   bare. The layer below always paints. */
.glance-section {
    position: relative;
    background-color: var(--frm-white);
    overflow: hidden;
}

.glance-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/Home/Media/GlanceBackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.glance-section > * {
    position: relative;
    z-index: 1;
}

/* Home - Market Indicator */
.market-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.market-embed {
    margin-top: 2.6rem;
    background: var(--frm-white);
}


