/* ==========================================================================
   SRH Funds — Home page (home.php)
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.home-hero__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.home-hero__copy {
    background: var(--stone);
    padding: 10%;               /* = 5% of the row, like the live Divi column */
}
.home-hero__title {
    font-size: 70px;
    line-height: 1.1;
    font-weight: 500;
    padding-bottom: 10px;
    max-width: 8.5em;          /* keeps "Disciplined / investment / process." on three lines */
}
.home-hero__lead {
    margin: 50px 0;
    padding-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
    text-align: justify;
}
.home-hero__copy .fancy-link { margin-top: 0; }
.home-hero__media {
    background-color: #c9d3dc;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    min-height: 100%;
}

/* ── Tiles ────────────────────────────────────────────────────────────── */
.home-tiles__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3%;
    padding: 2% 0 40px;         /* Divi row: 2% of section width on top */
}
/* tiles: see .tile in style.css */

/* ── Philosophy ───────────────────────────────────────────────────────── */
.home-philosophy__grid {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 1fr;
    column-gap: 5.5%;
    padding: 40px 0 80px;
}
.home-philosophy__title {
    font-size: 80px;
    line-height: 1.1;
    font-weight: 500;
    padding-bottom: 10px;
    max-width: 8.5em;
}
.home-philosophy__copy h3 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 500;
    padding-bottom: 10px;
    margin-bottom: 37px;
    max-width: 16em;
}
.home-philosophy__copy p {
    font-size: 22px;
    line-height: 1.5;
    text-align: justify;
}

/* ── Insights slider (component styles: assets/css/insights-slider.css) ── */
.home-insights { padding-bottom: 67px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .home-hero__title { font-size: 60px; }
    .home-philosophy__title { font-size: 64px; }
}

@media (max-width: 980px) {
    .home-hero__media { min-height: 420px; }

    .tile { min-height: 220px; }
}

@media (max-width: 767px) {
    .home-hero__copy { padding: 40px 6%; }
    .home-hero__media { min-height: 320px; }

    .tile { min-height: 160px; }
    .tile__arrow { width: 44px; height: 44px; }
    .tile__title { font-size: 26px; }
}

/* ── Tablet parity with live (≤980px) ─────────────────────────────────── */
@media (max-width: 980px) {
    .home-hero__row { grid-template-columns: 1fr; }
    .home-hero__media { display: none; }           /* live hides the image column */
    .home-hero__copy { padding: 5%; }
    .home-hero__title { font-size: 60px; line-height: 66px; max-width: none; }
    .home-hero__lead { font-size: 27px; line-height: 32.4px; margin: 50px 0; }

    .home-tiles__grid { grid-template-columns: 1fr 1fr; gap: 30px 5.5%; padding: 30px 0 40px; }
    .home-tiles .tile { min-height: 278px; }

    .home-philosophy__grid { grid-template-columns: 1fr; row-gap: 30px; }
    .home-philosophy__title { font-size: 80px; line-height: 88px; }
    .home-philosophy__copy h3 { font-size: 40px; line-height: 44px; }

    .home-philosophy__copy h3 { max-width: none; margin-bottom: 30px; }
}

/* ── Phone parity with live (≤767px) ──────────────────────────────────── */
@media (max-width: 767px) {
    .home-hero__title { font-size: 48px; line-height: 52.8px; }
    .home-hero__lead { font-size: 27px; line-height: 32.4px; margin: 50px 0; text-align: justify; }
    .home-hero__copy .fancy-link { font-size: 16px; }

    .home-tiles__grid { grid-template-columns: 1fr; gap: 30px; }
    .home-tiles .tile { min-height: 278px; }
    .home-tiles .tile__arrow { width: 65px; height: 65px; }
    .home-tiles .tile__title { font-size: 30px; }

    .home-philosophy__grid { padding: 40px 0 80px; }
    .home-philosophy__title { font-size: 80px; line-height: 88px; overflow-wrap: anywhere; }
    .home-philosophy__copy h3 { font-size: 40px; line-height: 44px; margin-bottom: 30px; }
    .home-philosophy__copy p { font-size: 22px; text-align: justify; }
}
