/* Shared "Our Process" section (OurProcessSection) — dark 4-step stepper,
   JS-measured connecting line, auto-cycling active step, self-drawing icon
   animation. Used by index.blade.php, city_landing.blade.php, and
   service_page.blade.php via front.partials._process; only content
   differs. JS: initSharedProcess() in shared_process.js. Self-contained —
   see shared_about.css's docblock for why that matters and why this used
   to be one section of a single bundled shared_sections.css. */

:root {
    --hp-dark: #0c2e16;
    --hp-lime: #cfff7f;
}

/* Clears the site-wide fixed "Get your 3 quotes now" tab. */
.shared_process .container {
    padding: 0 30px;
}
@media (min-width: 768px) {
    .shared_process .container {
        padding: 0 45px;
    }
}

.shared_process {
    padding: 48px 0 56px;
    background: linear-gradient(135deg, #0c2e16 0%, #1a4a2a 100%);
    position: relative;
    overflow: hidden;
}
.shared_process-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: var(--hp-lime);
    filter: blur(64px);
    pointer-events: none;
}
.shared_process-glow--1 { top: -80px; right: -80px; opacity: 0.2; }
.shared_process-glow--2 { bottom: -80px; left: -80px; opacity: 0.1; }
.shared_process .container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.shared_process-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}
.shared_process-head .eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hp-lime);
    margin-bottom: 10px;
}
.shared_process-head h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.shared_process-head .subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}
.shared_process-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 768px) {
    .shared_process-row { display: grid; grid-template-columns: repeat(4, 1fr); }
}
.shared_process-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}
.shared_process-line-bg { stroke: rgba(207, 255, 127, 0.18); stroke-width: 2; }
.shared_process-line-fg { stroke: var(--hp-lime); stroke-width: 3; stroke-linecap: round; }
.shared_process-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
@media (min-width: 768px) {
    .shared_process-step { flex-direction: column; align-items: center; gap: 0; }
}
.shared_process-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid rgba(207, 255, 127, 0.4);
    background: var(--hp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s, transform 0.5s;
}
.shared_process-badge span {
    font-size: 18px;
    font-weight: 700;
    color: rgba(207, 255, 127, 0.6);
    transition: color 0.5s;
}
.shared_process-step.active .shared_process-badge {
    background: var(--hp-lime);
    border-color: var(--hp-lime);
    box-shadow: 0 0 0 6px rgba(207, 255, 127, 0.18), 0 0 24px rgba(207, 255, 127, 0.55);
    transform: scale(1.08);
}
.shared_process-step.active .shared_process-badge span { color: var(--hp-dark); }
.shared_process-card {
    flex: 1;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    transition: background 0.5s, border-color 0.5s;
}
@media (min-width: 768px) {
    .shared_process-card { margin-top: 24px; width: 100%; }
}
.shared_process-step.active .shared_process-card {
    background: rgba(207, 255, 127, 0.16);
    border-color: rgba(207, 255, 127, 0.6);
}
.shared_process-icon { margin-bottom: 12px; }
.shared_process-icon svg { width: 40px; height: 40px; }
.shared_process-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.shared_process-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}
.shared_process-draw circle,
.shared_process-draw line,
.shared_process-draw path,
.shared_process-draw rect {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: sharedProcessDraw 2.6s ease-in-out infinite;
}
@keyframes sharedProcessDraw {
    0% { stroke-dashoffset: 1; }
    55% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .shared_process-draw circle,
    .shared_process-draw line,
    .shared_process-draw path,
    .shared_process-draw rect {
        animation: none !important;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}
