/* Homepage "Our Detailed Workflow" section (index.blade.php, .hp-wf).
   Own file because the homepage stylesheet is purged. */

.hp-wf { position: relative; overflow: hidden; padding: 90px 0 100px; background: #fff; }

/* ── Header (same as Services / Elevations) ───────────── */
.hp-wf .hp-wf-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 44px;
}
.hp-wf .hp-wf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #c62828;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hp-wf .hp-wf-eyebrow::before { content: ""; width: 34px; height: 2px; background: #c62828; }
.hp-wf .process-title { margin: 0 0 8px; font-size: 2.6rem; line-height: 1.15; }
.hp-wf .hp-wf-sub { margin: 0; padding: 0; font-size: 17px; color: #555; }
.hp-wf .hp-wf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 14px 26px;
    border: 1px solid #c62828;
    border-radius: 10px;
    background: #c62828;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(198, 40, 40, .25);
    transition: background .2s ease, transform .2s ease;
}
.hp-wf .hp-wf-btn:hover { background: #a91f1f; border-color: #a91f1f; color: #fff; transform: translateY(-2px); }

/* ── Steps grid ───────────────────────────────────────── */
.hp-wf .hp-wf-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hp-wf .hp-wf-step { position: relative; display: flex; flex-direction: column; }
/* dashed line from this number to the next one in the row */
.hp-wf .hp-wf-step:not(:nth-child(4n))::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 60px;
    right: -24px;
    border-top: 2px dashed #ecc3c4;
}
.hp-wf .hp-wf-num {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 2px solid #c62828;
    border-radius: 50%;
    background: #fff;
    color: #c62828;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.hp-wf .hp-wf-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 24px 22px 26px;
    border: 1px solid #f0e2e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 22, 31, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .3s ease;
}
.hp-wf .hp-wf-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: #c62828;
    transition: width .35s ease;
}
.hp-wf .hp-wf-ghost {
    position: absolute;
    right: 14px;
    bottom: 4px;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: rgba(198, 40, 40, .06);
    pointer-events: none;
}
.hp-wf .hp-wf-title { position: relative; margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.35; color: #111; }
.hp-wf .hp-wf-card p { position: relative; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.7; color: #666; }

/* hover + calm spotlight (no size jump) */
.hp-wf .hp-wf-step:hover .hp-wf-card { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(198, 40, 40, .1); }
.hp-wf .hp-wf-step:hover .hp-wf-card::after { width: 100%; }
.hp-wf .hp-wf-step.is-active .hp-wf-card { border-color: rgba(198, 40, 40, .55); box-shadow: 0 18px 36px rgba(198, 40, 40, .1); }
.hp-wf .hp-wf-step:hover .hp-wf-num,
.hp-wf .hp-wf-step.is-active .hp-wf-num { background: #c62828; color: #fff; box-shadow: 0 0 0 6px rgba(198, 40, 40, .12); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1199px) {
    .hp-wf .hp-wf-steps { grid-template-columns: repeat(2, 1fr); }
    .hp-wf .hp-wf-step:not(:nth-child(4n))::after { display: none; }
    .hp-wf .hp-wf-step:nth-child(odd)::after { display: block; content: ""; position: absolute; top: 23px; left: 60px; right: -24px; border-top: 2px dashed #ecc3c4; }
}
@media (max-width: 991px) {
    .hp-wf { padding: 70px 0 80px; }
    .hp-wf .hp-wf-head { flex-direction: column; align-items: center; text-align: center; }
    .hp-wf .process-title { font-size: 2.2rem; }
}
@media (max-width: 767px) {
    .hp-wf { padding: 56px 0; }
    .hp-wf .hp-wf-eyebrow::after { content: ""; width: 34px; height: 2px; background: #c62828; }
    .hp-wf .process-title { font-size: 2rem; }
    .hp-wf .hp-wf-sub { font-size: 15.5px; }
    .hp-wf .hp-wf-head { margin-bottom: 32px; }
    .hp-wf .hp-wf-btn { width: 100%; }
    /* vertical timeline */
    .hp-wf .hp-wf-steps { position: relative; grid-template-columns: 1fr; gap: 16px; }
    .hp-wf .hp-wf-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; border-left: 2px dashed #ecc3c4; }
    .hp-wf .hp-wf-step { flex-direction: row; align-items: flex-start; gap: 12px; }
    .hp-wf .hp-wf-step::after,
    .hp-wf .hp-wf-step:nth-child(odd)::after { display: none !important; }
    .hp-wf .hp-wf-num { flex: 0 0 40px; width: 40px; height: 40px; margin: 6px 0 0; font-size: 14px; }
    .hp-wf .hp-wf-card { padding: 18px 16px 20px; }
    .hp-wf .hp-wf-ghost { font-size: 50px; }
    .hp-wf .hp-wf-title { font-size: 17px; }
    .hp-wf .hp-wf-card p { font-size: 14.5px; }
}

/* Ghost number is drawn from data-num so it is not read as (low-contrast) text */
.hp-wf .hp-wf-ghost::before { content: attr(data-num); }
