/* Homepage "3-Step Design Process" section (index.blade.php, .hp-proc).
   Own file because the homepage stylesheet is purged. */

.hp-proc {
    overflow: hidden;
    background-color: #fbf7f7;
    background-image:
        linear-gradient(rgba(198, 40, 40, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 40, 40, .045) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* ── Top row: text + picture ──────────────────────────── */
.hp-proc .hp-proc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #c62828;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hp-proc .hp-proc-eyebrow::before { content: ""; width: 34px; height: 2px; background: #c62828; }
.hp-proc .process-title { margin: 0 0 16px; font-size: 2.75rem; line-height: 1.15; }
.hp-proc .hp-proc-intro { margin: 0 0 28px; font-size: 17px; line-height: 1.7; color: #555; max-width: 480px; }

.hp-proc .hp-proc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-proc .hp-proc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hp-proc button.hp-proc-btn { font-family: inherit; line-height: 1.5; cursor: pointer; }
.hp-proc .hp-proc-btn:hover { transform: translateY(-2px); }
.hp-proc .hp-proc-btn--red { background: #c62828; border: 1px solid #c62828; color: #fff; box-shadow: 0 10px 22px rgba(198, 40, 40, .25); }
.hp-proc .hp-proc-btn--red:hover { background: #a91f1f; border-color: #a91f1f; color: #fff; }
.hp-proc .hp-proc-btn--wa { background: #fff; border: 1px solid #bfe9cf; color: #0b6e36; }
.hp-proc .hp-proc-btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }

.hp-proc .hp-proc-stats { display: flex; gap: 34px; margin-top: 30px; }
.hp-proc .hp-proc-stats span { font-size: 14px; color: #666; line-height: 1.3; }
.hp-proc .hp-proc-stats strong { display: block; font-size: 30px; font-weight: 800; color: #111; }

.hp-proc .hp-proc-media { text-align: center; }
.hp-proc .hp-proc-media img { width: auto; max-width: 100%; max-height: 400px; height: auto; }

/* ── Steps row ────────────────────────────────────────── */
.hp-proc .hp-proc-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    margin: 56px 0 0;
    padding: 0;
}
/* line through the number circles */
.hp-proc .hp-proc-steps::before {
    content: "";
    position: absolute;
    top: 25px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    border-top: 2px dashed #e7a9aa;
}
.hp-proc .hp-proc-step { position: relative; display: flex; flex-direction: column; align-items: center; }
.hp-proc .hp-proc-num {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 7px #fbf7f7, 0 0 0 8px #f0c4c5;
}
/* arrow head on the line after steps 1 and 2 */
.hp-proc .hp-proc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    right: -18px;
    border: 5px solid transparent;
    border-left: 8px solid #e7a9aa;
}
.hp-proc .hp-proc-card {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    padding: 30px 28px 32px;
    border: 1px solid #f0e2e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(17, 22, 31, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hp-proc .hp-proc-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: #c62828;
    transition: width .35s ease;
}
.hp-proc .hp-proc-step:hover .hp-proc-card { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(198, 40, 40, .12); }
.hp-proc .hp-proc-step:hover .hp-proc-card::after { width: 100%; }
.hp-proc .hp-proc-ghost {
    position: absolute;
    top: 6px;
    right: 18px;
    font-size: 78px;
    font-weight: 800;
    line-height: 1;
    color: rgba(198, 40, 40, .07);
    pointer-events: none;
}
.hp-proc .hp-proc-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #fdecec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.hp-proc .hp-proc-icon img { width: 34px; height: 34px; object-fit: contain; transition: filter .25s ease; }
.hp-proc .hp-proc-step:hover .hp-proc-icon { background: #c62828; }
.hp-proc .hp-proc-step:hover .hp-proc-icon img { filter: brightness(0) invert(1); }
.hp-proc .hp-proc-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #111; }
.hp-proc .hp-proc-card p { margin: 0; padding: 0; font-size: 15.5px; line-height: 1.75; color: #555; }

/* ── Tablet / mobile: steps stack with a vertical line ── */
@media (max-width: 991px) {
    .hp-proc .process-title { font-size: 2.3rem; }
    .hp-proc .hp-proc-media { margin-top: 36px; }
    .hp-proc .hp-proc-media img { max-height: 340px; }
    .hp-proc .hp-proc-steps { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
    .hp-proc .hp-proc-steps::before { top: 26px; bottom: 26px; left: 25px; right: auto; border-top: 0; border-left: 2px dashed #e7a9aa; }
    .hp-proc .hp-proc-step { flex-direction: row; align-items: flex-start; gap: 18px; }
    .hp-proc .hp-proc-step:not(:last-child)::after { display: none; }
    .hp-proc .hp-proc-num { flex: 0 0 52px; margin: 0; }
}
@media (max-width: 767px) {
    .hp-proc { padding: 56px 0; background-size: 28px 28px; }
    .hp-proc .hp-proc-top { text-align: center; }
    .hp-proc .hp-proc-eyebrow::after { content: ""; width: 34px; height: 2px; background: #c62828; }
    .hp-proc .process-title { font-size: 2rem; }
    .hp-proc .hp-proc-intro { font-size: 15.5px; margin: 0 auto 22px; }
    .hp-proc .hp-proc-actions { flex-direction: column; }
    .hp-proc .hp-proc-btn { width: 100%; }
    .hp-proc .hp-proc-stats { justify-content: center; margin-top: 22px; }
    .hp-proc .hp-proc-stats strong { font-size: 24px; }
    .hp-proc .hp-proc-media { margin-top: 28px; }
    .hp-proc .hp-proc-media img { max-height: 260px; }
    .hp-proc .hp-proc-steps { margin-top: 36px; }
    .hp-proc .hp-proc-steps::before { left: 19px; }
    .hp-proc .hp-proc-step { gap: 12px; }
    .hp-proc .hp-proc-num { flex-basis: 40px; width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 5px #fbf7f7, 0 0 0 6px #f0c4c5; }
    .hp-proc .hp-proc-card { padding: 20px 18px 22px; }
    .hp-proc .hp-proc-ghost { font-size: 58px; right: 12px; }
    .hp-proc .hp-proc-icon { width: 50px; height: 50px; margin-bottom: 14px; border-radius: 13px; }
    .hp-proc .hp-proc-icon img { width: 28px; height: 28px; }
    .hp-proc .hp-proc-title { font-size: 19px; }
    .hp-proc .hp-proc-card p { font-size: 15px; }
}

/* Ghost number is drawn from data-num so it isn't read as (low-contrast) text */
.hp-proc .hp-proc-ghost::before { content: attr(data-num); }
