/* ============================================================
   Location Hub — Farm & Ranch
   File: assets/css/hub/hub-farm-ranch.css
   Scope: .hub-farm-ranch__* classes only
   Photo-split section for rural/agribusiness claims: photo on one
   side (position swappable via .hub-farm-ranch__grid--image-right),
   copy on the other — eyebrow, H2, short body, check-marked points,
   primary CTA. White background, sitting between the cream
   claims-grid and navy how sections on the Texas hub.

   Default OFF; opt-in per page (Texas). No class names overlap with
   other hub sections, so this file evolves independently.
   ============================================================ */

.hub-farm-ranch {
    background: var(--hub-white);
    color: var(--hub-navy);
    padding: var(--hub-section-pad) 0;
}

.hub-farm-ranch__grid {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 60px;
    align-items: center;
}

.hub-farm-ranch__grid--image-right .hub-farm-ranch__media {
    order: 2;
}

.hub-farm-ranch__grid--image-right .hub-farm-ranch__content {
    order: 1;
}

.hub-farm-ranch__grid--no-image {
    grid-template-columns: 1fr;
    max-width: 825px;
}

.hub-farm-ranch__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--hub-radius-img);
}

.hub-farm-ranch__heading {
    font-family: var(--hub-font-serif);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--hub-navy);
    margin: 0;
}

.hub-farm-ranch__body {
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--hub-grey-dark);
    margin: 16px 0 0;
}

.hub-farm-ranch__points {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hub-farm-ranch__point {
    position: relative;
    padding-left: 32px;
}

.hub-farm-ranch__point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url('../../images/Icons/ico-check.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.hub-farm-ranch__point-title {
    font-family: var(--hub-font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--hub-navy);
    margin: 0 0 8px;
}

.hub-farm-ranch__point-body {
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--hub-grey-dark);
    margin: 0;
}

.hub-farm-ranch__cta {
    margin-top: 32px;
}


/* ============================
   RESPONSIVE — FARM & RANCH
   ============================ */

@media (max-width: 1024px) {
    .hub-farm-ranch__grid,
    .hub-farm-ranch__grid--image-right {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hub-farm-ranch__grid .hub-farm-ranch__media,
    .hub-farm-ranch__grid--image-right .hub-farm-ranch__media {
        order: -1;
    }

    .hub-farm-ranch__grid .hub-farm-ranch__content,
    .hub-farm-ranch__grid--image-right .hub-farm-ranch__content {
        order: 0;
    }
}

@media (max-width: 768px) {
    .hub-farm-ranch__heading {
        font-size: 30px;
        text-wrap: balance;
    }

    /* Center the CTA row on mobile (same pattern as .hub-hero__cta-group). */
    .hub-farm-ranch__cta {
        display: flex;
        justify-content: center;
    }
}
