/* ============================================================
   STEP-BY-STEP ORDER PROCESS (.ops-*) — product detail page
   Loaded ONLY via product.blade.php @section('css'), so nothing leaks.
   Mirrors the client reference: dashed-ring medallions joined by chunky
   arrows, with an uppercase caption + description underneath. Recoloured
   to the site's amber system (the reference's green is off-brand) and the
   photos are replaced with icons — the project has no process photography.
   ============================================================ */

/* Compound selector + !important beats the global .site-section{padding:20px!important} */
.site-section.ops-section {
    padding-top: 26px !important;
    padding-bottom: 38px !important;
    background: var(--white, #fff);
}

.ops-section .section-header { margin-bottom: 44px; }

.ops-sub {
    max-width: 620px;
    margin: 16px auto 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--Dgray, #666);
}

/* ── Track ── */
.ops-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ops-step {
    position: relative;
    margin: 0;                        /* beats the global li{margin:inherit} reset */
    text-align: center;
    min-width: 0;
}

/* ── Connecting arrow — spans the full run between two medallions, stopping
   4px short of each so it reads as one continuous link (as in the reference).
   Geometry: the 148px medallion is centred in its column, so the clear space
   from one circle's edge to the next is (100% - 148px) + the 36px grid gap.
   The head is a fixed 30px so it stays chunky no matter how wide the column. ── */
.ops-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 74px;
    left: calc(50% + 78px);
    width: calc(100% - 120px);
    height: 30px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--secondary, #E89A0E), #f4b743);
    clip-path: polygon(
        0 32%,
        calc(100% - 30px) 32%,
        calc(100% - 30px) 0,
        100% 50%,
        calc(100% - 30px) 100%,
        calc(100% - 30px) 68%,
        0 68%
    );
}

/* ── Medallion — dashed ring + inner disc, echoing the reference ── */
.ops-medallion {
    position: relative;
    display: flex;
    width: 148px;
    height: 148px;
    margin: 0 auto 22px;
    padding: 7px;
    border: 2px dashed rgba(232, 154, 14, .5);
    border-radius: 50%;
    transition: border-color .3s ease, transform .35s cubic-bezier(.22, .68, 0, 1.2);
}

.ops-medallion__inner {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(232, 154, 14, .1);
    box-shadow: inset 0 0 0 1px rgba(232, 154, 14, .18);
    color: var(--secondary, #E89A0E);
    font-size: 48px;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

/* number badge — keeps the 1-2-3-4 sequence explicit, like the copy */
.ops-num {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary, #E89A0E), #f4b743);
    color: #16181d;
    box-shadow: 0 0 0 4px var(--white, #fff);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* colour-only hover (site policy: lifts are reserved for image-grid cards) */
.ops-step:hover .ops-medallion { border-color: var(--secondary, #E89A0E); }
.ops-step:hover .ops-medallion__inner {
    background: linear-gradient(135deg, var(--secondary, #E89A0E), #f4b743);
    box-shadow: none;
    color: #16181d;               /* dark-on-amber = WCAG-safe */
}

/* ── Copy ── */
.ops-title {
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--steel-blue, #2C3E50);
}

.ops-desc {
    margin: 0 auto;
    max-width: 30ch;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--Dgray, #666);
}

/* ── Staggered reveal — .ops-anim is only added by JS, so no-JS shows all ── */
.ops-track.ops-anim .ops-step {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22, .68, 0, 1.2);
    transition-delay: calc(var(--ops-i, 0) * 90ms);
}
.ops-track.ops-anim .ops-step.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive — arrows only make sense in the single 4-across row ── */
@media (max-width: 991px) {
    .site-section.ops-section { padding-top: 20px !important; padding-bottom: 28px !important; }
    .ops-section .section-header { margin-bottom: 32px; }
    .ops-track { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
    .ops-step:not(:last-child)::after { display: none; }
}
@media (max-width: 575px) {
    .site-section.ops-section { padding-top: 16px !important; padding-bottom: 22px !important; }
    .ops-track { grid-template-columns: 1fr; gap: 30px; }
    .ops-medallion { width: 120px; height: 120px; margin-bottom: 18px; }
    .ops-medallion__inner { font-size: 34px; }
    .ops-num { width: 30px; height: 30px; font-size: 13px; }
    .ops-desc { max-width: 36ch; }
}

/* ── Motion safety ── */
@media (prefers-reduced-motion: reduce) {
    .ops-medallion, .ops-medallion__inner { transition: none; }
    .ops-track.ops-anim .ops-step { opacity: 1; transform: none; transition: none; }
}
