/* =============================================================
   THE FULCRUM REAL ESTATE - WHY FULCRUM
   Production location: css/why_fulcrum.css

   Approved homepage composition:
   - Full-bleed lifestyle photograph on the left
   - Deep navy panel with a diagonal left edge on the right
   - Gold section label and three illustrated value pillars
   - Client-approved full paragraph, statement, and navigation tabs
   - Stacked, legible arrangement on smaller screens

   Styles are scoped to the Why Fulcrum section. The existing image
   source is defined in includes/home/why_fulcrum.php.
   ============================================================= */

.homepage-why-fulcrum {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    /* Allow the full client copy to determine the final section height. */
    min-height: clamp(690px, 43vw, 850px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #071b2a;
}

/* Photograph beneath the diagonal navy panel. */
.homepage-why-fulcrum-visual {
    position: absolute;
    z-index: 0;
    inset: 0 auto 0 0;
    width: 64%;
    overflow: hidden;
    background: #526676;
}

.homepage-why-fulcrum-visual-image {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* The diagonal moves left as it descends, as in the reference. */
.homepage-why-fulcrum-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 62%;
    min-width: 0;
    min-height: inherit;
    margin-left: auto;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(115deg, #0c2a3b 0%, #071e30 57%, #051725 100%);
}

/* Quiet tonal depth, without a new image asset or repeating pattern. */
.homepage-why-fulcrum-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(35, 78, 91, 0.28), transparent 55%),
        radial-gradient(ellipse at 40% 100%, rgba(6, 44, 65, 0.35), transparent 65%);
}

.homepage-why-fulcrum-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 52px clamp(30px, 4.6vw, 95px) 52px clamp(128px, 15.8vw, 300px);
    color: #ffffff;
}

/* Gold eyebrow label. */
.homepage-why-fulcrum .homepage-section-kicker {
    display: block;
    margin: 0 0 9px;
    color: #d9a957;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.homepage-why-fulcrum-title {
    max-width: 8.6em;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 3vw, 55px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.homepage-why-fulcrum-description {
    max-width: 680px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 0.98vw, 17px);
    font-weight: 400;
    line-height: 1.55;
}

/* The client's closing statement remains visually distinct, not abridged. */
.homepage-why-fulcrum-statement {
    max-width: 680px;
    margin: 24px 0 0;
    padding: 2px 0 2px 17px;
    border-left: 2px solid #d9a957;
    color: #f1d6a8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 1.38vw, 24px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.36;
}

/* Three values sit slightly left of the text's leading edge. */
.homepage-why-fulcrum-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% + clamp(0px, 3vw, 55px));
    margin: clamp(26px, 2vw, 38px) 0 0 calc(-1 * clamp(0px, 3vw, 55px));
    padding: 0;
}

.homepage-why-fulcrum-value {
    position: relative;
    min-width: 0;
    padding: 0 clamp(10px, 1.45vw, 28px);
}

.homepage-why-fulcrum-value:first-child {
    padding-left: 0;
}

.homepage-why-fulcrum-value:last-child {
    padding-right: 0;
}

.homepage-why-fulcrum-value + .homepage-why-fulcrum-value::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 2px;
    left: 0;
    width: 1px;
    background: rgba(222, 183, 113, 0.45);
}

.homepage-why-fulcrum-value-icon {
    display: block;
    width: clamp(32px, 2.6vw, 46px);
    height: clamp(32px, 2.6vw, 46px);
    margin: 0 0 7px;
    color: #d9a957;
}

.homepage-why-fulcrum-value h3 {
    margin: 0 0 7px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(13px, 1.02vw, 18px);
    font-weight: 700;
    line-height: 1.25;
}

.homepage-why-fulcrum-value p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(12px, 0.88vw, 16px);
    font-weight: 400;
    line-height: 1.42;
}

/* Client-requested Lifestyle and Investing navigation tabs. */
.homepage-why-fulcrum-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: clamp(27px, 2.4vw, 38px) 0 0;
    padding: 0;
}

.homepage-why-fulcrum-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 45px;
    max-width: 100%;
    padding: 10px 17px;
    border: 1px solid rgba(217, 169, 87, 0.7);
    border-radius: 5px;
    background: rgba(217, 169, 87, 0.07);
    color: #f0d8ac;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.homepage-why-fulcrum-action span[aria-hidden="true"] {
    font-size: 17px;
    line-height: 1;
}

.homepage-why-fulcrum-actions a.homepage-why-fulcrum-action:hover,
.homepage-why-fulcrum-actions a.homepage-why-fulcrum-action:focus-visible {
    border-color: #e4b665;
    background: #d9a957;
    color: #081d2e;
    text-decoration: none;
}

.homepage-why-fulcrum-actions a.homepage-why-fulcrum-action:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* The Lifestyle URL is pending, so this tab is not falsely clickable. */
.homepage-why-fulcrum-action-pending {
    color: rgba(240, 216, 172, 0.76);
    cursor: default;
}

.homepage-why-fulcrum-action-separator {
    color: rgba(217, 169, 87, 0.65);
    font-size: 17px;
    line-height: 1;
}

/* Compact desktops: protect title and three value columns. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .homepage-why-fulcrum {
        min-height: 750px;
    }

    .homepage-why-fulcrum-panel {
        width: 69%;
        clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
    }

    .homepage-why-fulcrum-content {
        padding: 43px 35px 43px clamp(145px, 15vw, 190px);
    }

    .homepage-why-fulcrum-title {
        font-size: clamp(34px, 3.5vw, 41px);
    }

    .homepage-why-fulcrum-statement {
        font-size: 20px;
    }

    .homepage-why-fulcrum-values {
        margin-top: 27px;
    }

    .homepage-why-fulcrum-actions {
        margin-top: 28px;
    }
}

/* Tablet: stack the image over the panel with an angled seam. */
@media (max-width: 991.98px) {
    .homepage-why-fulcrum {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .homepage-why-fulcrum-visual {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(290px, 45vw, 425px);
    }

    .homepage-why-fulcrum-panel {
        display: block;
        width: 100%;
        min-height: 0;
        margin: -58px 0 0;
        clip-path: polygon(0 58px, 100% 0, 100% 100%, 0 100%);
    }

    .homepage-why-fulcrum-content {
        max-width: 780px;
        margin: 0 auto;
        padding: 100px 40px 64px;
    }

    .homepage-why-fulcrum-title {
        max-width: 8.6em;
        font-size: clamp(38px, 5.2vw, 51px);
    }

    .homepage-why-fulcrum-description {
        font-size: 16px;
    }

    .homepage-why-fulcrum-statement {
        margin-top: 23px;
        font-size: 23px;
    }

    .homepage-why-fulcrum-values {
        width: 100%;
        margin: 36px 0 0;
    }

    .homepage-why-fulcrum-value {
        padding: 0 20px;
    }

    .homepage-why-fulcrum-value-icon {
        width: 40px;
        height: 40px;
    }

    .homepage-why-fulcrum-value h3 {
        font-size: 15px;
    }

    .homepage-why-fulcrum-value p {
        font-size: 13px;
    }
}

/* Mobile: full-width image, readable heading, vertically stacked values. */
@media (max-width: 575.98px) {
    .homepage-why-fulcrum {
        padding: 0;
    }

    .homepage-why-fulcrum-visual {
        height: clamp(240px, 72vw, 365px);
    }

    .homepage-why-fulcrum-panel {
        margin-top: -38px;
        clip-path: polygon(0 38px, 100% 0, 100% 100%, 0 100%);
    }

    .homepage-why-fulcrum-content {
        padding: 75px 24px 46px;
    }

    .homepage-why-fulcrum .homepage-section-kicker {
        margin-bottom: 11px;
        font-size: 11px;
        letter-spacing: 0.25em;
    }

    .homepage-why-fulcrum-title {
        max-width: 8.6em;
        font-size: clamp(34px, 8.7vw, 47px);
        line-height: 1.08;
    }

    .homepage-why-fulcrum-description {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .homepage-why-fulcrum-statement {
        margin-top: 22px;
        padding-left: 14px;
        font-size: 20px;
    }

    .homepage-why-fulcrum-values {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 24px;
    }

    .homepage-why-fulcrum-value,
    .homepage-why-fulcrum-value:first-child,
    .homepage-why-fulcrum-value:last-child {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 16px;
        align-content: center;
        padding: 17px 0;
    }

    .homepage-why-fulcrum-value + .homepage-why-fulcrum-value {
        border-top: 1px solid rgba(222, 183, 113, 0.3);
    }

    .homepage-why-fulcrum-value + .homepage-why-fulcrum-value::before {
        display: none;
    }

    .homepage-why-fulcrum-value-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        width: 38px;
        height: 38px;
        margin: 0;
    }

    .homepage-why-fulcrum-value h3 {
        grid-column: 2;
        margin: 0 0 4px;
        font-size: 16px;
    }

    .homepage-why-fulcrum-value p {
        grid-column: 2;
        font-size: 13px;
    }

    .homepage-why-fulcrum-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 27px;
    }

    .homepage-why-fulcrum-action {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }

    .homepage-why-fulcrum-action-separator {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-why-fulcrum-action {
        transition: none;
    }
}
