﻿/* =========================================================
   HOW HORSE SENSE WORKS
========================================================= */

.hiw-page {
    background: #f4efe6;
    color: #18221c;
}

.hiw-inner {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
}

.hiw-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #7ca64a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hiw-kicker-gold {
    color: #d2ad54;
}

.hiw-center {
    text-align: center;
}

.hiw-section-heading {
    max-width: 920px;
    margin: 0 auto 34px;
}

    .hiw-section-heading h2 {
        margin: 0;
        color: #17231b;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(32px, 3.2vw, 48px);
        font-weight: 500;
        line-height: 1.06;
    }

    .hiw-section-heading p {
        max-width: 790px;
        margin: 14px auto 0;
        color: #667168;
        font-size: 14px;
        line-height: 1.65;
    }


/* =========================================================
   BUTTONS
========================================================= */

.hiw-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

    .hiw-btn:hover {
        transform: translateY(-1px);
    }

.hiw-btn-gold {
    border: 1px solid #c6a34f;
    background: #c6a34f;
    color: #08130d;
}

    .hiw-btn-gold:hover {
        border-color: #d5b65f;
        background: #d5b65f;
        color: #08130d;
    }

.hiw-btn-outline {
    border: 1px solid rgba(255,255,255,.32);
    background: transparent;
    color: #f2f5f2;
}

    .hiw-btn-outline:hover {
        border-color: #d0d9d2;
        background: rgba(255,255,255,.05);
        color: #fff;
    }


/* =========================================================
   HERO
========================================================= */

.hiw-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 58px;
    background: radial-gradient( circle at 84% 18%, rgba(199,161,75,.13), transparent 22% ), radial-gradient( circle at 74% 50%, rgba(69,111,80,.20), transparent 30% ), linear-gradient( 135deg, #07110c 0%, #0a1710 52%, #14291d 100% );
}

    .hiw-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 90deg, rgba(255,255,255,.015) 1px, transparent 1px );
        background-size: 80px 100%;
        opacity: .16;
    }

.hiw-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 56px;
    align-items: center;
}

.hiw-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    color: #f6f1e7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 5.4vw, 80px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.025em;
}

.hiw-hero-lede {
    max-width: 720px;
    margin: 22px 0 0;
    color: #ccd5ce;
    font-size: 18px;
    line-height: 1.58;
}

.hiw-hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hiw-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hiw-hero-image-wrap {
    position: relative;
    width: min(100%, 500px);
    aspect-ratio: 1 / .86;
    overflow: hidden;
    border: 1px solid rgba(199,161,75,.50);
    border-radius: 50% 50% 14px 14px;
    background: #0a2418;
    box-shadow: 0 24px 50px rgba(0,0,0,.28);
}

    .hiw-hero-image-wrap::after {
        content: "";
        position: absolute;
        inset: 0;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -80px 80px rgba(5,15,10,.16);
        pointer-events: none;
    }

    .hiw-hero-image-wrap img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }


/* =========================================================
   PROCESS SECTION
========================================================= */

.hiw-process {
    padding: 58px 0 64px;
    background: #f8f4ec;
}

.hiw-process-diagram {
    position: relative;
    max-width: 1080px;
    min-height: 720px;
    margin: 8px auto 0;
}


/* =========================================================
   PROCESS CENTER
========================================================= */

.hiw-process-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 290px;
    height: 290px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    text-align: center;
    border: 1px solid rgba(199,161,75,.35);
    border-radius: 50%;
    background: radial-gradient( circle at 50% 38%, rgba(199,161,75,.08), transparent 52% ), #f2ede3;
    box-shadow: 0 0 0 22px rgba(19,58,40,.035), 0 14px 28px rgba(32,46,37,.06);
}

.hiw-process-center-badge {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(199,161,75,.50);
    border-radius: 50%;
    background: #0d3626;
}

    .hiw-process-center-badge img {
        width: 94%;
        height: 94%;
        object-fit: contain;
    }

.hiw-process-center-text h3 {
    margin: 14px 0 0;
    color: #173020;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
}

.hiw-process-center-text p {
    margin: 7px 0 0;
    color: #6b746d;
    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   PROCESS ORBIT
========================================================= */

.hiw-process-diagram::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(39,76,54,.34);
    border-radius: 50%;
}

.hiw-process-diagram::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 560px;
    height: 560px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(199,161,75,.18);
    border-radius: 50%;
}


/* =========================================================
   PROCESS NODES
========================================================= */

.hiw-process-node {
    position: absolute;
    z-index: 3;
    width: 240px;
    text-align: center;
}

.hiw-process-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(199,161,75,.55);
    border-radius: 50%;
    background: radial-gradient( circle at 50% 35%, rgba(199,161,75,.07), transparent 55% ), #0c3625;
    box-shadow: 0 8px 18px rgba(15,35,24,.10);
}

    .hiw-process-icon img {
        width: 94%;
        height: 94%;
        display: block;
        object-fit: contain;
    }

.hiw-process-node h3 {
    margin: 0;
    color: #173020;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
}

.hiw-process-node p {
    margin: 8px auto 0;
    max-width: 225px;
    color: #606b63;
    font-size: 11px;
    line-height: 1.5;
}


/* TOP */

.hiw-node-top {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}


/* RIGHT TOP */

.hiw-node-right-top {
    right: 0;
    top: 145px;
}


/* RIGHT BOTTOM */

.hiw-node-right-bottom {
    right: 45px;
    bottom: 25px;
}


/* BOTTOM */

.hiw-node-bottom {
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}


/* LEFT */

.hiw-node-left {
    left: 0;
    top: 300px;
}


/* =========================================================
   RECEIVE SECTION
========================================================= */

.hiw-receive {
    padding: 52px 0;
    border-top: 1px solid #dfd6c8;
    background: #f2ede4;
}

.hiw-receive-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.hiw-receive-card {
    min-height: 230px;
    padding: 20px 14px;
    text-align: center;
    border: 1px solid #d8cfc1;
    border-radius: 9px;
    background: #fbf8f2;
    box-shadow: 0 7px 15px rgba(40,47,42,.035);
}

.hiw-receive-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(199,161,75,.40);
    border-radius: 50%;
    background: #0d3626;
}

    .hiw-receive-icon img {
        width: 94%;
        height: 94%;
        object-fit: contain;
    }

.hiw-receive-card h3 {
    margin: 0;
    color: #183020;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.15;
}

.hiw-receive-card p {
    margin: 9px 0 0;
    color: #6a746c;
    font-size: 10.5px;
    line-height: 1.5;
}


/* =========================================================
   FOOTER BAND
========================================================= */

.hiw-footer-band {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
    background: radial-gradient( circle at 82% 50%, rgba(199,161,75,.10), transparent 30% ), linear-gradient( 130deg, #07120d 0%, #0b2017 55%, #123223 100% );
}

.hiw-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 52px;
    align-items: center;
}

.hiw-footer-copy h2 {
    max-width: 760px;
    margin: 0;
    color: #f4efe5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 500;
    line-height: 1.08;
}

.hiw-footer-copy p {
    max-width: 760px;
    margin: 16px 0 24px;
    color: #aab7ae;
    font-size: 13px;
    line-height: 1.65;
}

.hiw-footer-quote {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 32px 34px;
    border-left: 1px solid rgba(199,161,75,.42);
}

    .hiw-footer-quote::before {
        content: "“";
        position: absolute;
        left: 22px;
        top: 8px;
        color: rgba(199,161,75,.20);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 100px;
        line-height: 1;
    }

    .hiw-footer-quote blockquote {
        position: relative;
        z-index: 2;
        margin: 0;
        color: #d9bd77;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(24px, 2.4vw, 34px);
        font-style: italic;
        line-height: 1.35;
    }


/* =========================================================
   RESPONSIVE - 1200
========================================================= */

@media (max-width: 1200px) {

    .hiw-receive-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hiw-process-diagram {
        transform: scale(.93);
        transform-origin: center top;
        margin-bottom: -40px;
    }
}


/* =========================================================
   RESPONSIVE - 1050
========================================================= */

@media (max-width: 1050px) {

    .hiw-hero-grid {
        grid-template-columns: 1fr;
    }

    .hiw-hero-copy {
        max-width: 850px;
    }

    .hiw-hero-visual {
        justify-content: center;
    }

    .hiw-hero-image-wrap {
        width: min(100%, 650px);
    }

    .hiw-process-diagram {
        min-height: 680px;
        transform: scale(.84);
        margin-bottom: -95px;
    }

    .hiw-footer-grid {
        grid-template-columns: 1fr;
    }

    .hiw-footer-quote {
        min-height: 0;
        border-left: 0;
        border-top: 1px solid rgba(199,161,75,.30);
        padding: 30px 0 0;
    }
}


/* =========================================================
   RESPONSIVE - 800
========================================================= */

@media (max-width: 800px) {

    .hiw-process-diagram {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        transform: none;
        margin: 0;
    }

        .hiw-process-diagram::before,
        .hiw-process-diagram::after {
            display: none;
        }

    .hiw-process-center,
    .hiw-process-node {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: auto;
    }

    .hiw-process-center {
        grid-column: 1 / -1;
        width: 260px;
        height: 260px;
        margin: 0 auto 8px;
    }

    .hiw-process-node {
        min-height: 240px;
        padding: 20px;
        border: 1px solid #d8cfc1;
        border-radius: 10px;
        background: #fbf8f2;
    }

    .hiw-node-bottom {
        grid-column: 1 / -1;
        width: calc(50% - 9px);
        margin: 0 auto;
    }

    .hiw-receive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE - 650
========================================================= */

@media (max-width: 650px) {

    .hiw-inner {
        width: min(100% - 32px, 1480px);
    }

    .hiw-hero {
        padding: 44px 0 42px;
    }

    .hiw-hero-copy h1 {
        font-size: 44px;
    }

    .hiw-hero-lede {
        font-size: 16px;
    }

    .hiw-hero-actions {
        flex-direction: column;
    }

    .hiw-btn {
        width: 100%;
    }

    .hiw-hero-image-wrap {
        aspect-ratio: 1 / .92;
    }

    .hiw-process {
        padding: 44px 0;
    }

    .hiw-process-diagram {
        grid-template-columns: 1fr;
    }

    .hiw-process-center {
        grid-column: auto;
        width: 230px;
        height: 230px;
    }

    .hiw-node-bottom {
        grid-column: auto;
        width: auto;
    }

    .hiw-receive-grid {
        grid-template-columns: 1fr;
    }

    .hiw-receive-card {
        min-height: 0;
    }

    .hiw-footer-band {
        padding: 42px 0;
    }

    .hiw-footer-quote blockquote {
        font-size: 25px;
    }
}


/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 420px) {

    .hiw-hero-copy h1 {
        font-size: 39px;
    }

    .hiw-process-center {
        width: 210px;
        height: 210px;
    }

    .hiw-process-center-text h3 {
        font-size: 20px;
    }
}
